GnuCash  5.6-150-g038405b370+
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 <jpetersen@uni-bonn.de>
6  * Copyright (C) 2003 David Hampton <hampton@employees.org>
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 gnu@gnu.org
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 G_DECLARE_FINAL_TYPE (GncEmbeddedWindow, gnc_embedded_window, GNC, EMBEDDED_WINDOW, GtkBox)
48 
49 /* typedefs & structures */
50 
51 /* function prototypes */
52 
53 
57 GncEmbeddedWindow *gnc_embedded_window_new (const gchar *action_group_name,
58  GActionEntry *action_entries,
59  gint n_action_entries,
60  const gchar *ui_filename,
61  GtkWidget *enclosing_win,
62  gboolean add_accelerators,
63  gpointer user_data);
64 
65 
72 void gnc_embedded_window_open_page (GncEmbeddedWindow *window,
73  GncPluginPage *page);
74 
75 
81 void gnc_embedded_window_close_page (GncEmbeddedWindow *window,
82  GncPluginPage *page);
83 
84 
90 GncPluginPage *gnc_embedded_window_get_page (GncEmbeddedWindow *window);
91 
92 G_END_DECLS
93 
94 #endif /* __GNC_EMBEDDED_WINDOW_H */
95 
The instance data structure for a content plugin.
void gnc_embedded_window_close_page(GncEmbeddedWindow *window, GncPluginPage *page)
Remove a data plugin page from a window.
void gnc_embedded_window_open_page(GncEmbeddedWindow *window, GncPluginPage *page)
Display a data plugin page in a window.
GncEmbeddedWindow * gnc_embedded_window_new(const gchar *action_group_name, GActionEntry *action_entries, gint n_action_entries, const gchar *ui_filename, GtkWidget *enclosing_win, gboolean add_accelerators, gpointer user_data)
Create a new gnc embedded window plugin.
Functions for adding plugins to a GnuCash window.
GncPluginPage * gnc_embedded_window_get_page(GncEmbeddedWindow *window)
Retrieve the plugin that is embedded in the specified window.