source: trunk/third/yelp/src/yelp-window.h @ 18397

Revision 18397, 2.2 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18396, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Copyright (C) 2001-2002 Mikael Hallendal <micke@codefactory.se>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 *
20 * Author: Mikael Hallendal <micke@codefactory.se>
21 */
22
23#ifndef __YELP_WINDOW_H__
24#define __YELP_WINDOW_H__
25
26#include <gtk/gtkwindow.h>
27#include <gtk/gtktreemodel.h>
28
29#include "yelp-base.h"
30#include "yelp-uri.h"
31
32#define YELP_TYPE_WINDOW                (yelp_window_get_type ())
33#define YELP_WINDOW(obj)                (GTK_CHECK_CAST ((obj), YELP_TYPE_WINDOW, YelpWindow))
34#define YELP_WINDOW_CLASS(klass)        (GTK_CHECK_CLASS_CAST ((klass), YELP_TYPE_WINDOW, YelpWindowClass))
35#define YELP_IS_WINDOW(obj)             (GTK_CHECK_TYPE ((obj), YELP_TYPE_WINDOW))
36#define YELP_IS_WINDOW_CLASS(klass)     (GTK_CHECK_CLASS_TYPE ((obj), YELP_TYPE_WINDOW))
37
38typedef struct _YelpWindow       YelpWindow;
39typedef struct _YelpWindowClass  YelpWindowClass;
40typedef struct _YelpWindowPriv   YelpWindowPriv;
41
42struct _YelpWindow
43{
44        GtkWindow       parent;
45       
46        YelpWindowPriv *priv;
47};
48
49struct _YelpWindowClass
50{
51        GtkWindowClass  parent_class;
52
53        /* Signals */
54        void (*new_window_requested) (YelpWindow *window);
55};
56
57GType            yelp_window_get_type        (void);
58GtkWidget *      yelp_window_new             (GNode         *doc_tree,
59                                              GList         *index);
60
61void             yelp_window_open_uri        (YelpWindow    *window,
62                                              const gchar   *str_uri);
63YelpURI *        yelp_window_get_current_uri (YelpWindow    *window);
64
65#endif /* __YELP_WINDOW_H__ */
Note: See TracBrowser for help on using the repository browser.