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 | |
---|
38 | typedef struct _YelpWindow YelpWindow; |
---|
39 | typedef struct _YelpWindowClass YelpWindowClass; |
---|
40 | typedef struct _YelpWindowPriv YelpWindowPriv; |
---|
41 | |
---|
42 | struct _YelpWindow |
---|
43 | { |
---|
44 | GtkWindow parent; |
---|
45 | |
---|
46 | YelpWindowPriv *priv; |
---|
47 | }; |
---|
48 | |
---|
49 | struct _YelpWindowClass |
---|
50 | { |
---|
51 | GtkWindowClass parent_class; |
---|
52 | |
---|
53 | /* Signals */ |
---|
54 | void (*new_window_requested) (YelpWindow *window); |
---|
55 | }; |
---|
56 | |
---|
57 | GType yelp_window_get_type (void); |
---|
58 | GtkWidget * yelp_window_new (GNode *doc_tree, |
---|
59 | GList *index); |
---|
60 | |
---|
61 | void yelp_window_open_uri (YelpWindow *window, |
---|
62 | const gchar *str_uri); |
---|
63 | YelpURI * yelp_window_get_current_uri (YelpWindow *window); |
---|
64 | |
---|
65 | #endif /* __YELP_WINDOW_H__ */ |
---|