GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-embedded-window.h
Go to the documentation of this file.
1 /*
2  * gnc-embedded-window.h -- GtkWindow which represents an
3  * embedded GnuCash window.
4  *
5  * Copyright (C) 2003 Jan Arne Petersen <[email protected]>
6  * Copyright (C) 2003 David Hampton <[email protected]>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, contact:
20  *
21  * Free Software Foundation Voice: +1-617-542-5942
22  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
23  * Boston, MA 02110-1301, USA [email protected]
24  */
25 
36 #ifndef __GNC_EMBEDDED_WINDOW_H
37 #define __GNC_EMBEDDED_WINDOW_H
38 
39 #include <gtk/gtk.h>
40 
41 #include "gnc-plugin-page.h"
42 
43 G_BEGIN_DECLS
44 
45 /* type macros */
46 #define GNC_TYPE_EMBEDDED_WINDOW (gnc_embedded_window_get_type ())
47 #define GNC_EMBEDDED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindow))
48 #define GNC_EMBEDDED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindowClass))
49 #define GNC_IS_EMBEDDED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_EMBEDDED_WINDOW))
50 #define GNC_IS_EMBEDDED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_EMBEDDED_WINDOW))
51 #define GNC_EMBEDDED_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindowClass))
52 
53 /* typedefs & structures */
54 
56 typedef struct
57 {
59  GtkVBox vbox;
62  GtkUIManager *ui_merge;
64 
65 
67 typedef struct
68 {
70  GtkVBoxClass vbox;
72 
73 
74 /* function prototypes */
75 
79 GType gnc_embedded_window_get_type (void);
80 
81 
86 GncEmbeddedWindow *gnc_embedded_window_new (const gchar *action_group_name,
87  GtkActionEntry *action_entries,
88  gint n_action_entries,
89  const gchar *ui_filename,
90  GtkWidget *enclosing_win,
91  gboolean add_accelerators,
92  gpointer user_data);
93 
94 
102  GncPluginPage *page);
103 
104 
111  GncPluginPage *page);
112 
113 
120 
121 G_END_DECLS
122 
123 #endif /* __GNC_EMBEDDED_WINDOW_H */
124 
GncEmbeddedWindow * gnc_embedded_window_new(const gchar *action_group_name, GtkActionEntry *action_entries, gint n_action_entries, const gchar *ui_filename, GtkWidget *enclosing_win, gboolean add_accelerators, gpointer user_data)
void gnc_embedded_window_close_page(GncEmbeddedWindow *window, GncPluginPage *page)
void gnc_embedded_window_open_page(GncEmbeddedWindow *window, GncPluginPage *page)
Functions for adding plugins to a GnuCash window.
GncPluginPage * gnc_embedded_window_get_page(GncEmbeddedWindow *window)
GType gnc_embedded_window_get_type(void)
GtkUIManager * ui_merge