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

Revision 18397, 2.4 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_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
38typedef struct _YelpViewContent        YelpViewContent;
39typedef struct _YelpViewContentClass   YelpViewContentClass;
40typedef struct _YelpViewContentPriv    YelpViewContentPriv;
41
42struct _YelpViewContent {
43        GtkHPaned         parent;
44       
45        YelpViewContentPriv *priv;
46};
47
48struct _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
59GType           yelp_view_content_get_type     (void);
60GtkWidget      *yelp_view_content_new          (GNode             *doc_tree);
61
62void            yelp_view_content_show_uri     (YelpViewContent   *content,
63                                                YelpURI           *uri,
64                                                GError           **error);
65
66#endif /* __YELP_VIEW_CONTENT__ */
Note: See TracBrowser for help on using the repository browser.