37 #include <glib/gi18n.h> 42 #include "dialog-find-account.h" 44 static void gnc_plugin_account_tree_finalize (GObject *
object);
47 static void gnc_plugin_account_tree_cmd_new_account_tree (GSimpleAction *simple, GVariant *parameter, gpointer user_data);
49 #define PLUGIN_ACTIONS_NAME "gnc-plugin-account-tree-actions" 50 #define PLUGIN_UI_FILENAME "gnc-plugin-account-tree.ui" 54 static GActionEntry gnc_plugin_actions [] =
56 {
"ViewAccountTreeAction", gnc_plugin_account_tree_cmd_new_account_tree, NULL, NULL, NULL },
59 static guint gnc_plugin_n_actions = G_N_ELEMENTS(gnc_plugin_actions);
62 static const gchar *gnc_plugin_load_ui_items [] =
75 G_DEFINE_TYPE(GncPluginAccountTree, gnc_plugin_account_tree, GNC_TYPE_PLUGIN)
81 GncPluginAccountTree *plugin;
85 GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE;
87 plugin = g_object_new (GNC_TYPE_PLUGIN_ACCOUNT_TREE,
90 return GNC_PLUGIN (plugin);
102 gnc_plugin_account_tree_class_init (GncPluginAccountTreeClass *klass)
104 GObjectClass *object_class = G_OBJECT_CLASS (klass);
105 GncPluginClass *plugin_class = GNC_PLUGIN_CLASS (klass);
107 object_class->finalize = gnc_plugin_account_tree_finalize;
110 plugin_class->plugin_name = GNC_PLUGIN_ACCOUNT_TREE_NAME;
114 plugin_class->actions = gnc_plugin_actions;
115 plugin_class->n_actions = gnc_plugin_n_actions;
117 plugin_class->ui_updates = gnc_plugin_load_ui_items;
127 gnc_plugin_account_tree_init (GncPluginAccountTree *plugin)
141 gnc_plugin_account_tree_finalize (GObject *
object)
143 g_return_if_fail (GNC_IS_PLUGIN_ACCOUNT_TREE (
object));
145 G_OBJECT_CLASS (gnc_plugin_account_tree_parent_class)->finalize (
object);
153 gnc_plugin_account_tree_cmd_new_account_tree (GSimpleAction *simple,
160 g_return_if_fail (data != NULL);
GncPlugin gnc_plugin
The parent object for this widget.
The instance data structure for a content plugin.
GncPluginPage * gnc_plugin_page_account_tree_new(void)
Create a new "account tree" plugin page.
void gnc_main_window_open_page(GncMainWindow *window, GncPluginPage *page)
Display a data plugin page in a window.
Functions providing a chart of account page.
GncPlugin * gnc_plugin_account_tree_new(void)
Create a new account tree menu plugin.
Provide the menus to create a chart of account page.
#define PLUGIN_ACTIONS_NAME
The label given to the main window for this plugin.
The instance data structure for an account tree menu plugin.
#define PLUGIN_UI_FILENAME
The name of the UI description file for this plugin.