GnuCash 2.4.99
gnc-embedded-window.h
Go to the documentation of this file.
00001 /*
00002  * gnc-embedded-window.h -- GtkWindow which represents an
00003  *      embedded GnuCash window.
00004  *
00005  * Copyright (C) 2003 Jan Arne Petersen <jpetersen@uni-bonn.de>
00006  * Copyright (C) 2003 David Hampton <hampton@employees.org>
00007  *
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License as
00010  * published by the Free Software Foundation; either version 2 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, contact:
00020  *
00021  * Free Software Foundation           Voice:  +1-617-542-5942
00022  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00023  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00024  */
00025 
00036 #ifndef __GNC_EMBEDDED_WINDOW_H
00037 #define __GNC_EMBEDDED_WINDOW_H
00038 
00039 #include <gtk/gtk.h>
00040 
00041 #include "gnc-plugin-page.h"
00042 
00043 G_BEGIN_DECLS
00044 
00045 /* type macros */
00046 #define GNC_TYPE_EMBEDDED_WINDOW            (gnc_embedded_window_get_type ())
00047 #define GNC_EMBEDDED_WINDOW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindow))
00048 #define GNC_EMBEDDED_WINDOW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindowClass))
00049 #define GNC_IS_EMBEDDED_WINDOW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_EMBEDDED_WINDOW))
00050 #define GNC_IS_EMBEDDED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_EMBEDDED_WINDOW))
00051 #define GNC_EMBEDDED_WINDOW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindowClass))
00052 
00053 /* typedefs & structures */
00054 
00056 typedef struct
00057 {
00059     GtkVBox vbox;
00062     GtkUIManager *ui_merge;
00063 } GncEmbeddedWindow;
00064 
00065 
00067 typedef struct
00068 {
00070     GtkVBoxClass vbox;
00071 } GncEmbeddedWindowClass;
00072 
00073 
00074 /* function prototypes */
00075 
00079 GType gnc_embedded_window_get_type (void);
00080 
00081 
00086 GncEmbeddedWindow *gnc_embedded_window_new (const gchar *action_group_name,
00087         GtkActionEntry *action_entries,
00088         gint n_action_entries,
00089         const gchar *ui_filename,
00090         GtkWidget *enclosing_win,
00091         gboolean add_accelerators,
00092         gpointer user_data);
00093 
00094 
00101 void gnc_embedded_window_open_page (GncEmbeddedWindow *window,
00102                                     GncPluginPage *page);
00103 
00104 
00110 void gnc_embedded_window_close_page (GncEmbeddedWindow *window,
00111                                      GncPluginPage *page);
00112 
00113 
00119 GncPluginPage *gnc_embedded_window_get_page (GncEmbeddedWindow *window);
00120 
00121 G_END_DECLS
00122 
00123 #endif /* __GNC_EMBEDDED_WINDOW_H */
00124 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines