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

Files

 
 
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
 

Macros

#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)
 

Detailed Description

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.

84 {
85  static GType gnc_plugin_account_tree_type = 0;
86 
87  if (gnc_plugin_account_tree_type == 0)
88  {
89  static const GTypeInfo our_info =
90  {
92  NULL, /* base_init */
93  NULL, /* base_finalize */
94  (GClassInitFunc) gnc_plugin_account_tree_class_init,
95  NULL, /* class_finalize */
96  NULL, /* class_data */
97  sizeof (GncPluginAccountTree),
98  0, /* n_preallocs */
99  (GInstanceInitFunc) gnc_plugin_account_tree_init
100  };
101 
102  gnc_plugin_account_tree_type = g_type_register_static (GNC_TYPE_PLUGIN,
103  "GncPluginAccountTree",
104  &our_info, 0);
105  }
106 
107  return gnc_plugin_account_tree_type;
108 }
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.

114 {
115  GncPluginAccountTree *plugin;
116 
117  /* Reference the account tree page plugin to ensure it exists
118  * in the gtk type system. */
119  GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE;
120 
121  plugin = g_object_new (GNC_TYPE_PLUGIN_ACCOUNT_TREE,
122  NULL);
123 
124  return GNC_PLUGIN (plugin);
125 }
GType gnc_plugin_basic_commands_get_type ( void  )

Get the type of the basic commands menu plugin.

Returns
A GType.

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

254 {
255  static GType gnc_plugin_basic_commands_type = 0;
256 
257  if (gnc_plugin_basic_commands_type == 0)
258  {
259  static const GTypeInfo our_info =
260  {
262  NULL, /* base_init */
263  NULL, /* base_finalize */
264  (GClassInitFunc) gnc_plugin_basic_commands_class_init,
265  NULL, /* class_finalize */
266  NULL, /* class_data */
267  sizeof (GncPluginBasicCommands),
268  0, /* n_preallocs */
269  (GInstanceInitFunc) gnc_plugin_basic_commands_init
270  };
271 
272  gnc_plugin_basic_commands_type = g_type_register_static (GNC_TYPE_PLUGIN,
273  "GncPluginBasicCommands",
274  &our_info, 0);
275  }
276 
277  return gnc_plugin_basic_commands_type;
278 }
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 283 of file gnc-plugin-basic-commands.c.

284 {
285  GncPluginBasicCommands *plugin;
286 
287  /* We just need to mention it, so the GType is registered and will be
288  * reflected during plugin-page restore. */
290 
291  plugin = g_object_new (GNC_TYPE_PLUGIN_BASIC_COMMANDS, NULL);
292 
293  return GNC_PLUGIN (plugin);
294 }
#define GNC_TYPE_PLUGIN_PAGE_SX_LIST
Functions providing a list of scheduled transactions as a plugin page.