GnuCash 2.3.0
Data Structures | Files | Defines | Typedefs | Functions
An Account Tree Plugin
Menu Only Plugins

Data Structures

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

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.


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"

Typedefs

typedef struct
GncPluginAccountTreePrivate 
GncPluginAccountTreePrivate
typedef struct
GncPluginBasicCommandsPrivate 
GncPluginBasicCommandsPrivate

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)

Typedef Documentation

The instance private data structure for an account tree plugin.

The instance private data structure for an basic commands plugin.


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 83 of file gnc-plugin-account-tree.c.

{
    static GType gnc_plugin_account_tree_type = 0;

    if (gnc_plugin_account_tree_type == 0)
    {
        static const GTypeInfo our_info =
        {
            sizeof (GncPluginAccountTreeClass),
            NULL,               /* base_init */
            NULL,               /* base_finalize */
            (GClassInitFunc) gnc_plugin_account_tree_class_init,
            NULL,               /* class_finalize */
            NULL,               /* class_data */
            sizeof (GncPluginAccountTree),
            0,          /* n_preallocs */
            (GInstanceInitFunc) gnc_plugin_account_tree_init
        };

        gnc_plugin_account_tree_type = g_type_register_static (GNC_TYPE_PLUGIN,
                                       "GncPluginAccountTree",
                                       &our_info, 0);
    }

    return gnc_plugin_account_tree_type;
}
GncPlugin * gnc_plugin_account_tree_new ( void  )

Create a new account tree menu plugin.

Returns:
A pointer to the new object.

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

{
    GncPluginAccountTree *plugin;

    /* Reference the account tree page plugin to ensure it exists
     * in the gtk type system. */
    GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE;

    plugin = g_object_new (GNC_TYPE_PLUGIN_ACCOUNT_TREE,
                           NULL);

    return GNC_PLUGIN (plugin);
}
GType gnc_plugin_basic_commands_get_type ( void  )

Get the type of the basic commands menu plugin.

Returns:
A GType.

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

{
    static GType gnc_plugin_basic_commands_type = 0;

    if (gnc_plugin_basic_commands_type == 0)
    {
        static const GTypeInfo our_info =
        {
            sizeof (GncPluginBasicCommandsClass),
            NULL,               /* base_init */
            NULL,               /* base_finalize */
            (GClassInitFunc) gnc_plugin_basic_commands_class_init,
            NULL,               /* class_finalize */
            NULL,               /* class_data */
            sizeof (GncPluginBasicCommands),
            0,          /* n_preallocs */
            (GInstanceInitFunc) gnc_plugin_basic_commands_init
        };

        gnc_plugin_basic_commands_type = g_type_register_static (GNC_TYPE_PLUGIN,
                                         "GncPluginBasicCommands",
                                         &our_info, 0);
    }

    return gnc_plugin_basic_commands_type;
}
GncPlugin * gnc_plugin_basic_commands_new ( void  )

Create a new basic commands menu plugin.

Create a new basic commands menu plugin.

Returns:
A pointer to the new object.

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

{
    GncPluginBasicCommands *plugin;

    /* We just need to mention it, so the GType is registered and will be
     * reflected during plugin-page restore. */
    GNC_TYPE_PLUGIN_PAGE_SX_LIST;

    plugin = g_object_new (GNC_TYPE_PLUGIN_BASIC_COMMANDS, NULL);

    return GNC_PLUGIN (plugin);
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines