GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Files | Data Structures | Macros | Typedefs | Enumerations | Functions
An Account Tree Plugin

Files

 
 

Data Structures

struct  GncPluginPageAccountTreePrivate
 
struct  _delete_helper
 
struct  GncPluginPageAccountTree
 
struct  GncPluginPageAccountTreeClass
 

Macros

#define PLUGIN_PAGE_ACCT_TREE_CM_CLASS   "plugin-page-acct-tree"
 
#define STATE_SECTION   "Account Hierarchy"
 
#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)
 

Detailed Description

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

499 {
501  Account *account;
502 
503  priv = GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_PRIVATE(page);
504  ENTER("page %p (tree view %p)", page, priv->tree_view);
505  account = gnc_tree_view_account_get_selected_account (GNC_TREE_VIEW_ACCOUNT(priv->tree_view));
506  if (account == NULL)
507  {
508  LEAVE("no account");
509  return NULL;
510  }
511 
512  LEAVE("account %p", account);
513  return account;
514 }
#define ENTER(format, args...)
Definition: qoflog.h:261
Account * gnc_tree_view_account_get_selected_account(GncTreeViewAccount *view)
#define LEAVE(format, args...)
Definition: qoflog.h:271
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 351 of file gnc-plugin-page-account-tree.c.

352 {
353  static GType gnc_plugin_page_account_tree_type = 0;
354 
355  if (gnc_plugin_page_account_tree_type == 0)
356  {
357  static const GTypeInfo our_info =
358  {
360  NULL,
361  NULL,
362  (GClassInitFunc) gnc_plugin_page_account_tree_class_init,
363  NULL,
364  NULL,
365  sizeof (GncPluginPageAccountTree),
366  0,
367  (GInstanceInitFunc) gnc_plugin_page_account_tree_init
368  };
369 
370  gnc_plugin_page_account_tree_type = g_type_register_static (GNC_TYPE_PLUGIN_PAGE,
371  GNC_PLUGIN_PAGE_ACCOUNT_TREE_NAME,
372  &our_info, 0);
373  }
374 
375  return gnc_plugin_page_account_tree_type;
376 }
GncPluginPage * gnc_plugin_page_account_tree_new ( void  )

Create a new "account tree" plugin page.

Returns
The newly created plugin page.

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

380 {
381  GncPluginPageAccountTree *plugin_page;
382 
383  ENTER(" ");
384  plugin_page = g_object_new (GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE,
385  NULL);
386 
387  LEAVE("new account tree page %p", plugin_page);
388  return GNC_PLUGIN_PAGE (plugin_page);
389 }
#define ENTER(format, args...)
Definition: qoflog.h:261
#define LEAVE(format, args...)
Definition: qoflog.h:271