/usr/include/gnucash/gnc-embedded-window.h is in gnucash-common 1:2.6.12-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | /*
* gnc-embedded-window.h -- GtkWindow which represents an
* embedded GnuCash window.
*
* Copyright (C) 2003 Jan Arne Petersen <jpetersen@uni-bonn.de>
* Copyright (C) 2003 David Hampton <hampton@employees.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, contact:
*
* Free Software Foundation Voice: +1-617-542-5942
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
* Boston, MA 02110-1301, USA gnu@gnu.org
*/
/** @addtogroup Windows
@{ */
/** @addtogroup GncEmbeddedWindow Embedded Window Functions
@{ */
/** @file gnc-embedded-window.h
@brief Functions that are supported by all types of windows.
@author Copyright (C) 2003 Jan Arne Petersen
@author Copyright (C) 2003 David Hampton <hampton@employees.org>
*/
#ifndef __GNC_EMBEDDED_WINDOW_H
#define __GNC_EMBEDDED_WINDOW_H
#include <gtk/gtk.h>
#include "gnc-plugin-page.h"
G_BEGIN_DECLS
/* type macros */
#define GNC_TYPE_EMBEDDED_WINDOW (gnc_embedded_window_get_type ())
#define GNC_EMBEDDED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindow))
#define GNC_EMBEDDED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindowClass))
#define GNC_IS_EMBEDDED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_EMBEDDED_WINDOW))
#define GNC_IS_EMBEDDED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_EMBEDDED_WINDOW))
#define GNC_EMBEDDED_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_EMBEDDED_WINDOW, GncEmbeddedWindowClass))
/* typedefs & structures */
/** The instance data structure for an embedded window object. */
typedef struct
{
/** The parent object for an embedded window. */
GtkVBox vbox;
/** A pointer to the UI Manager data structure for the whole
* window. */
GtkUIManager *ui_merge;
} GncEmbeddedWindow;
/** The class data structure for an embedded window object. */
typedef struct
{
/** The parent class for an embedded window. */
GtkVBoxClass vbox;
} GncEmbeddedWindowClass;
/* function prototypes */
/** Get the type of a gnc embedded window.
*
* @return A GType. */
GType gnc_embedded_window_get_type (void);
/** Create a new gnc embedded window plugin.
*
* @return A pointer to the new object.
*/
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);
/** Display a data plugin page in a window.
*
* @param window The window to display a new page in.
*
* @param page The new page of data to be displayed.
*/
void gnc_embedded_window_open_page (GncEmbeddedWindow *window,
GncPluginPage *page);
/** Remove a data plugin page from a window.
*
* @param window The window whose plugin is to be removed.
*
* @param page The page of data to be removed. */
void gnc_embedded_window_close_page (GncEmbeddedWindow *window,
GncPluginPage *page);
/** Retrieve the plugin that is embedded in the specified window.
*
* @param window The window whose plugin is desired.
*
* @return A pointer to a GncPluginPage. */
GncPluginPage *gnc_embedded_window_get_page (GncEmbeddedWindow *window);
G_END_DECLS
#endif /* __GNC_EMBEDDED_WINDOW_H */
/** @} */
/** @} */
|