An Account Tree Plugin
[Menu Only Plugins]


Files

file  gnc-plugin-account-tree.c
 Provide the menus to create a chart of account page.
file  gnc-plugin-account-tree.h
 Provide the menus to create a chart of account page.
file  gnc-plugin-basic-commands.c
 Functions providing a basic set of menu items.
file  gnc-plugin-basic-commands.h
 Functions providing a basic set of menu items.

Data Structures

struct  GncPluginAccountTreePrivate
struct  GncPluginAccountTree
struct  GncPluginAccountTreeClass
struct  GncPluginBasicCommandsPrivate
struct  GncPluginBasicCommands
struct  GncPluginBasicCommandsClass

Defines

#define PLUGIN_ACTIONS_NAME   "gnc-plugin-account-tree-actions"
#define PLUGIN_UI_FILENAME   "gnc-plugin-account-tree-ui.xml"
#define GNC_PLUGIN_ACCOUNT_TREE_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_PLUGIN_ACCOUNT_TREE, GncPluginAccountTreePrivate))
#define GNC_TYPE_PLUGIN_ACCOUNT_TREE   (gnc_plugin_account_tree_get_type ())
#define GNC_PLUGIN_ACCOUNT_TREE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_ACCOUNT_TREE, GncPluginAccountTree))
#define GNC_PLUGIN_ACCOUNT_TREE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_ACCOUNT_TREE, GncPluginAccountTreeClass))
#define GNC_IS_PLUGIN_ACCOUNT_TREE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_ACCOUNT_TREE))
#define GNC_IS_PLUGIN_ACCOUNT_TREE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_ACCOUNT_TREE))
#define GNC_PLUGIN_ACCOUNT_TREE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_ACCOUNT_TREE, GncPluginAccountTreeClass))
#define GNC_PLUGIN_ACCOUNT_TREE_NAME   "gnc-plugin-account-tree"
#define PLUGIN_ACTIONS_NAME   "gnc-plugin-basic-commands-actions"
#define PLUGIN_UI_FILENAME   "gnc-plugin-basic-commands-ui.xml"
#define GNC_PLUGIN_BASIC_COMMANDS_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_PLUGIN_BASIC_COMMANDS, GncPluginBasicCommandsPrivate))
#define GNC_TYPE_PLUGIN_BASIC_COMMANDS   (gnc_plugin_basic_commands_get_type ())
#define GNC_PLUGIN_BASIC_COMMANDS(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_BASIC_COMMANDS, GncPluginBasicCommands))
#define GNC_PLUGIN_BASIC_COMMANDS_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_BASIC_COMMANDS, GncPluginBasicCommandsClass))
#define GNC_IS_PLUGIN_BASIC_COMMANDS(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_BASIC_COMMANDS))
#define GNC_IS_PLUGIN_BASIC_COMMANDS_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_BASIC_COMMANDS))
#define GNC_PLUGIN_BASIC_COMMANDS_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_BASIC_COMMANDS, GncPluginBasicCommandsClass))
#define GNC_PLUGIN_BASIC_COMMANDS_NAME   "gnc-plugin-basic-commands"

Functions

GType gnc_plugin_account_tree_get_type (void)
GncPlugingnc_plugin_account_tree_new (void)
GType gnc_plugin_basic_commands_get_type (void)
GncPlugingnc_plugin_basic_commands_new (void)


Function Documentation

GType gnc_plugin_account_tree_get_type ( void   ) 

Get the type of the account tree menu plugin.

Returns:
A GType.

Definition at line 80 of file gnc-plugin-account-tree.c.

00081 {
00082         static GType gnc_plugin_account_tree_type = 0;
00083 
00084         if (gnc_plugin_account_tree_type == 0) {
00085                 static const GTypeInfo our_info = {
00086                         sizeof (GncPluginAccountTreeClass),
00087                         NULL,           /* base_init */
00088                         NULL,           /* base_finalize */
00089                         (GClassInitFunc) gnc_plugin_account_tree_class_init,
00090                         NULL,           /* class_finalize */
00091                         NULL,           /* class_data */
00092                         sizeof (GncPluginAccountTree),
00093                         0,              /* n_preallocs */
00094                         (GInstanceInitFunc) gnc_plugin_account_tree_init
00095                 };
00096                 
00097                 gnc_plugin_account_tree_type = g_type_register_static (GNC_TYPE_PLUGIN,
00098                                                                        "GncPluginAccountTree",
00099                                                                        &our_info, 0);
00100         }
00101 
00102         return gnc_plugin_account_tree_type;
00103 }

GncPlugin * gnc_plugin_account_tree_new ( void   ) 

Create a new account tree menu plugin.

Returns:
A pointer to the new object.

Definition at line 108 of file gnc-plugin-account-tree.c.

00109 {
00110         GncPluginAccountTree *plugin;
00111 
00112         /* Reference the account tree page plugin to ensure it exists
00113          * in the gtk type system. */
00114         GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE;
00115 
00116         plugin = g_object_new (GNC_TYPE_PLUGIN_ACCOUNT_TREE,
00117                               NULL);
00118 
00119         return GNC_PLUGIN (plugin);
00120 }

GType gnc_plugin_basic_commands_get_type ( void   ) 

Get the type of the basic commands menu plugin.

Returns:
A GType.

Definition at line 202 of file gnc-plugin-basic-commands.c.

00203 {
00204   static GType gnc_plugin_basic_commands_type = 0;
00205 
00206   if (gnc_plugin_basic_commands_type == 0) {
00207     static const GTypeInfo our_info = {
00208       sizeof (GncPluginBasicCommandsClass),
00209       NULL,             /* base_init */
00210       NULL,             /* base_finalize */
00211       (GClassInitFunc) gnc_plugin_basic_commands_class_init,
00212       NULL,             /* class_finalize */
00213       NULL,             /* class_data */
00214       sizeof (GncPluginBasicCommands),
00215       0,                /* n_preallocs */
00216       (GInstanceInitFunc) gnc_plugin_basic_commands_init
00217     };
00218  
00219     gnc_plugin_basic_commands_type = g_type_register_static (GNC_TYPE_PLUGIN,
00220                                                              "GncPluginBasicCommands",
00221                                                              &our_info, 0);
00222   }
00223 
00224   return gnc_plugin_basic_commands_type;
00225 }

GncPlugin * gnc_plugin_basic_commands_new ( void   ) 

Create a new basic commands menu plugin.

Definition at line 230 of file gnc-plugin-basic-commands.c.

00231 {
00232   GncPluginBasicCommands *plugin;
00233 
00234   /* We just need to mention it, so the GType is registered and will be
00235    * reflected during plugin-page restore. */
00236   GNC_TYPE_PLUGIN_PAGE_SX_LIST;
00237 
00238   plugin = g_object_new (GNC_TYPE_PLUGIN_BASIC_COMMANDS, NULL);
00239 
00240   return GNC_PLUGIN (plugin);
00241 }


Generated on Thu Jul 3 05:07:18 2008 for GnuCash by  doxygen 1.5.2