GnuCash 2.3.0
Data Structures | Files | Defines | Typedefs | Enumerations | Functions
An Account Tree Plugin
Content Plugins

Data Structures

struct  GncPluginPageAccountTreePrivate
struct  _delete_helper
struct  GncPluginPageAccountTree
struct  GncPluginPageAccountTreeClass

Files

file  gnc-plugin-page-account-tree.c
 

Functions providing a chart of account page.


file  gnc-plugin-page-account-tree.h
 

Functions providing a chart of account page.


Defines

#define PLUGIN_PAGE_ACCT_TREE_CM_CLASS   "plugin-page-acct-tree"
#define GCONF_SECTION   "window/pages/account_tree"
#define DELETE_DIALOG_FILTER   "filter"
#define DELETE_DIALOG_ACCOUNT   "account"
#define DELETE_DIALOG_TRANS_MAS   "trans_mas"
#define DELETE_DIALOG_SA_MAS   "sa_mas"
#define DELETE_DIALOG_SA_TRANS_MAS   "sa_trans_mas"
#define DELETE_DIALOG_OK_BUTTON   "deletebutton"
#define GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTreePrivate))
#define GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE   (gnc_plugin_page_account_tree_get_type ())
#define GNC_PLUGIN_PAGE_ACCOUNT_TREE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTree))
#define GNC_PLUGIN_PAGE_ACCOUNT_TREE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTreeClass))
#define GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE))
#define GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE))
#define GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTreeClass))
#define GNC_PLUGIN_PAGE_ACCOUNT_TREE_NAME   "GncPluginPageAccountTree"

Typedefs

typedef struct
GncPluginPageAccountTreePrivate 
GncPluginPageAccountTreePrivate
typedef struct _delete_helper delete_helper_t

Enumerations

enum  { ACCOUNT_SELECTED, LAST_SIGNAL }

Functions

void gppat_populate_trans_mas_list (GtkToggleButton *sa_mrb, GtkWidget *dialog)
void gppat_set_insensitive_iff_rb_active (GtkWidget *widget, GtkToggleButton *b)
GType gnc_plugin_page_account_tree_get_type (void)
GncPluginPagegnc_plugin_page_account_tree_new (void)
Accountgnc_plugin_page_account_tree_get_current_account (GncPluginPageAccountTree *page)

Function Documentation

Account * gnc_plugin_page_account_tree_get_current_account ( GncPluginPageAccountTree page)

Given a pointer to an account tree plugin page, return the selected account (if any).

Parameters:
pageThe "account tree" page.
Returns:
The currently selected account. NULL if no account is selected.

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

{
    GncPluginPageAccountTreePrivate *priv;
    Account *account;

    priv = GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_PRIVATE(page);
    ENTER("page %p (tree view %p)", page, priv->tree_view);
    account = gnc_tree_view_account_get_selected_account (GNC_TREE_VIEW_ACCOUNT(priv->tree_view));
    if (account == NULL)
    {
        LEAVE("no account");
        return NULL;
    }

    LEAVE("account %p", account);
    return account;
}
GType gnc_plugin_page_account_tree_get_type ( void  )

Retrieve the type number for an "account tree" plugin page.

Returns:
The type number.

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

{
    static GType gnc_plugin_page_account_tree_type = 0;

    if (gnc_plugin_page_account_tree_type == 0)
    {
        static const GTypeInfo our_info =
        {
            sizeof (GncPluginPageAccountTreeClass),
            NULL,
            NULL,
            (GClassInitFunc) gnc_plugin_page_account_tree_class_init,
            NULL,
            NULL,
            sizeof (GncPluginPageAccountTree),
            0,
            (GInstanceInitFunc) gnc_plugin_page_account_tree_init
        };

        gnc_plugin_page_account_tree_type = g_type_register_static (GNC_TYPE_PLUGIN_PAGE,
                                            GNC_PLUGIN_PAGE_ACCOUNT_TREE_NAME,
                                            &our_info, 0);
    }

    return gnc_plugin_page_account_tree_type;
}
GncPluginPage * gnc_plugin_page_account_tree_new ( void  )

Create a new "account tree" plugin page.

Returns:
The newly created plugin page.

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

{
    GncPluginPageAccountTree *plugin_page;

    ENTER(" ");
    plugin_page = g_object_new (GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE,
                                NULL);

    LEAVE("new account tree page %p", plugin_page);
    return GNC_PLUGIN_PAGE (plugin_page);
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines