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_VIEW_CONTENT_H__ |
---|
24 | #define __YELP_VIEW_CONTENT_H__ |
---|
25 | |
---|
26 | #include <gtk/gtkhpaned.h> |
---|
27 | #include <gtk/gtktreemodel.h> |
---|
28 | |
---|
29 | #include "yelp-section.h" |
---|
30 | #include "yelp-uri.h" |
---|
31 | |
---|
32 | #define YELP_TYPE_VIEW_CONTENT (yelp_view_content_get_type ()) |
---|
33 | #define YELP_VIEW_CONTENT(o) (GTK_CHECK_CAST ((o), YELP_TYPE_VIEW_CONTENT, YelpViewContent)) |
---|
34 | #define YELP_VIEW_CONTENT_CLASS(k) (GTK_CHECK_FOR_CAST((k), YELP_TYPE_VIEW_CONTENT, YelpViewContentClass)) |
---|
35 | #define YELP_IS_VIEW_CONTENT(o) (GTK_CHECK_TYPE ((o), YELP_TYPE_VIEW_CONTENT)) |
---|
36 | #define YELP_IS_VIEW_CONTENT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), YELP_TYPE_VIEW_CONTENT)) |
---|
37 | |
---|
38 | typedef struct _YelpViewContent YelpViewContent; |
---|
39 | typedef struct _YelpViewContentClass YelpViewContentClass; |
---|
40 | typedef struct _YelpViewContentPriv YelpViewContentPriv; |
---|
41 | |
---|
42 | struct _YelpViewContent { |
---|
43 | GtkHPaned parent; |
---|
44 | |
---|
45 | YelpViewContentPriv *priv; |
---|
46 | }; |
---|
47 | |
---|
48 | struct _YelpViewContentClass { |
---|
49 | GtkHPanedClass parent_class; |
---|
50 | |
---|
51 | /* Signals */ |
---|
52 | void (*uri_selected) (YelpViewContent *view, |
---|
53 | YelpURI *uri, |
---|
54 | gboolean handled); |
---|
55 | void (*title_changed) (YelpViewContent *view, |
---|
56 | const gchar *new_title); |
---|
57 | }; |
---|
58 | |
---|
59 | GType yelp_view_content_get_type (void); |
---|
60 | GtkWidget *yelp_view_content_new (GNode *doc_tree); |
---|
61 | |
---|
62 | void yelp_view_content_show_uri (YelpViewContent *content, |
---|
63 | YelpURI *uri, |
---|
64 | GError **error); |
---|
65 | |
---|
66 | #endif /* __YELP_VIEW_CONTENT__ */ |
---|