void gnc_plugin_ofx_create_plugin (void) { GncPlugin *plugin = gnc_plugin_ofx_new (); gnc_plugin_manager_add_plugin (gnc_plugin_manager_get (), plugin); }
int libgncmod_bi_import_gnc_module_init (int refcount) { if (!gnc_module_load ("gnucash/app-utils", 0)) { return FALSE; } if (!gnc_module_load ("gnucash/gnome-utils", 0)) { return FALSE; } if (!gnc_module_load ("gnucash/engine", 0)) { return FALSE; } if (refcount == 0) { /* this is the first time the module is loaded */ gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_bi_import_new ()); } return TRUE; }
void gnc_plugin_stylesheets_create_plugin (void) { GncPlugin *plugin = gnc_plugin_stylesheets_new (); gnc_plugin_manager_add_plugin (gnc_plugin_manager_get (), plugin); }
void gnc_plugin_log_replay_create_plugin (void) { GncPlugin *plugin = gnc_plugin_log_replay_new (); gnc_plugin_manager_add_plugin (gnc_plugin_manager_get (), plugin); }
/************************************************************ * Plugin Bootstrapping * ************************************************************/ void gnc_plugin_csv_import_create_plugin (void) { GncPlugin *plugin = gnc_plugin_csv_import_new (); gnc_plugin_manager_add_plugin (gnc_plugin_manager_get (), plugin); }
void gnc_plugin_qif_import_create_plugin (void) { GncPlugin *plugin = gnc_plugin_qif_import_new (); gnc_plugin_manager_add_plugin (gnc_plugin_manager_get (), plugin); /* Add to preferences under Online Banking */ /* The parameters are; glade file, items to add from glade file - last being the dialog, preference tab name */ gnc_preferences_add_to_page ("dialog-account-picker.glade", "prefs_table", _("Online Banking")); }
void gnc_main_gui_init (void) { ENTER(" "); if (!gnucash_style_init()) gnc_shutdown(1); gnucash_color_init(); gnc_html_register_url_handler (URL_TYPE_REGISTER, gnc_html_register_url_cb); gnc_html_register_url_handler (URL_TYPE_PRICE, gnc_html_price_url_cb); gnc_ui_sx_initialize(); /* FIXME Remove this test code */ gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_account_tree_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_basic_commands_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_file_history_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_menu_additions_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_register_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_register2_new ()); /* I'm not sure why the FIXME note says to remove this. Maybe each module should be adding its own plugin to the manager? Anyway... Oh, maybe... nah */ gnc_plugin_manager_add_plugin (gnc_plugin_manager_get (), gnc_plugin_budget_new ()); gnc_ui_hierarchy_assistant_initialize(); /* Run the ui startup hooks. */ gnc_hook_run(HOOK_UI_STARTUP, NULL); gnc_hook_add_dangler(HOOK_BOOK_OPENED, gnc_restore_all_state, NULL); gnc_hook_add_dangler(HOOK_BOOK_CLOSED, gnc_save_all_state, NULL); // /* CAS: I'm not really sure why we remove before adding. */ // gnc_hook_remove_dangler(HOOK_BOOK_CLOSED, (GFunc)gnc_reports_flush_global); // gnc_hook_add_dangler(HOOK_BOOK_CLOSED, // (GFunc)gnc_reports_flush_global, NULL); LEAVE(" "); return; }
int libgncmod_business_gnome_gnc_module_init(int refcount) { /* load app-utils: we depend on it -- and it depends on the engine */ if (!gnc_module_load ("gnucash/app-utils", 0)) { return FALSE; } /* We also depend on gnome-utils and gnome-search modules */ if (!gnc_module_load ("gnucash/gnome-utils", 0)) { return FALSE; } if (!gnc_module_load ("gnucash/gnome-search", 0)) { return FALSE; } if (!gnc_module_load ("gnucash/report/report-gnome", 0)) { return FALSE; } scm_c_eval_string("(use-modules (gnucash business-gnome))"); scm_c_eval_string("(use-modules (gnucash report business-reports))"); if (refcount == 0) { /* Register the Owner search type */ gnc_search_core_register_type (GNC_OWNER_MODULE_NAME, (GNCSearchCoreNew) gnc_search_owner_new); gnc_business_urls_initialize (); gnc_business_options_gnome_initialize (); gnc_plugin_manager_add_plugin (gnc_plugin_manager_get (), gnc_plugin_business_new ()); gnc_hook_add_dangler(HOOK_BOOK_OPENED, (GFunc)gnc_invoice_remind_bills_due_cb, NULL); gnc_hook_add_dangler(HOOK_BOOK_OPENED, (GFunc)gnc_invoice_remind_invoices_due_cb, NULL); /* Add to preferences under Business */ /* The parameters are; glade file, items to add from glade file - last being the dialog, preference tab name */ gnc_preferences_add_page("business-prefs.glade", "liststore_printinvoice,days_in_adj,cust_days_in_adj,business_prefs", _("Business")); } return TRUE; }
void gnc_main_gui_init (void) { ENTER(" "); if (!gnucash_style_init()) gnc_shutdown(1); gnucash_color_init(); gnc_html_register_url_handler (URL_TYPE_REGISTER, gnc_html_register_url_cb); gnc_html_register_url_handler (URL_TYPE_PRICE, gnc_html_price_url_cb); /* Register the Owner search type */ gnc_search_core_register_type (GNC_OWNER_MODULE_NAME, (GNCSearchCoreNew) gnc_search_owner_new); gnc_business_urls_initialize (); gnc_business_options_gnome_initialize (); /* FIXME Remove this test code */ gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_account_tree_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_basic_commands_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_file_history_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_menu_additions_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_register_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_register2_new ()); gnc_plugin_manager_add_plugin ( gnc_plugin_manager_get (), gnc_plugin_business_new ()); /* I'm not sure why the FIXME note says to remove this. Maybe each module should be adding its own plugin to the manager? Anyway... Oh, maybe... nah */ gnc_plugin_manager_add_plugin (gnc_plugin_manager_get (), gnc_plugin_budget_new ()); gnc_ui_hierarchy_assistant_initialize(); /* Run the ui startup hooks. */ gnc_hook_run(HOOK_UI_STARTUP, NULL); gnc_hook_add_dangler(HOOK_BOOK_OPENED, gnc_restore_all_state, NULL); gnc_hook_add_dangler(HOOK_BOOK_CLOSED, gnc_save_all_state, NULL); gnc_hook_add_dangler(HOOK_BOOK_CLOSED, (GFunc)gnc_reports_flush_global, NULL); gnc_hook_add_dangler(HOOK_BOOK_OPENED, (GFunc)gnc_invoice_remind_bills_due_cb, NULL); gnc_hook_add_dangler(HOOK_BOOK_OPENED, (GFunc)gnc_invoice_remind_invoices_due_cb, NULL); gnc_ui_sx_initialize(); /* Add to preferences under Business */ /* The parameters are; glade file, items to add from glade file - last being the dialog, preference tab name */ gnc_preferences_add_page("business-prefs.glade", "liststore_printinvoice,days_in_adj,cust_days_in_adj,business_prefs", _("Business")); LEAVE(" "); return; }