mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Changes for business owner pages
This commit is contained in:
parent
db15edd8f3
commit
97f28ab56b
@ -107,6 +107,7 @@ static GtkWidget *gnc_plugin_page_owner_tree_create_widget (GncPluginPage *plugi
|
||||
static void gnc_plugin_page_owner_tree_destroy_widget (GncPluginPage *plugin_page);
|
||||
static void gnc_plugin_page_owner_tree_save_page (GncPluginPage *plugin_page, GKeyFile *file, const gchar *group);
|
||||
static GncPluginPage *gnc_plugin_page_owner_tree_recreate_page (GtkWidget *window, GKeyFile *file, const gchar *group);
|
||||
static void set_menu_and_toolbar_qualifier (GncPluginPage *plugin_page);
|
||||
|
||||
/* Callbacks */
|
||||
static gboolean gnc_plugin_page_owner_tree_button_press_cb (GtkWidget *widget,
|
||||
@ -132,7 +133,7 @@ static void gnc_plugin_page_owner_tree_cmd_new_invoice (GSimpleAction *simple, G
|
||||
static void gnc_plugin_page_owner_tree_cmd_owners_report (GSimpleAction *simple, GVariant *parameter, gpointer user_data);
|
||||
static void gnc_plugin_page_owner_tree_cmd_owner_report (GSimpleAction *simple, GVariant *parameter, gpointer user_data);
|
||||
static void gnc_plugin_page_owner_tree_cmd_process_payment (GSimpleAction *simple, GVariant *parameter, gpointer user_data);
|
||||
|
||||
static void gnc_plugin_page_owner_tree_cmd_edit_tax (GSimpleAction *simple, GVariant *parameter, gpointer user_data);
|
||||
|
||||
static guint plugin_page_signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
@ -152,6 +153,7 @@ static GActionEntry gnc_plugin_page_owner_tree_actions [] =
|
||||
|
||||
{ "ViewFilterByAction", gnc_plugin_page_owner_tree_cmd_view_filter_by, NULL, NULL, NULL },
|
||||
{ "ViewRefreshAction", gnc_plugin_page_owner_tree_cmd_refresh, NULL, NULL, NULL },
|
||||
{ "EditTaxOptionsAction", gnc_plugin_page_owner_tree_cmd_edit_tax, NULL, NULL, NULL },
|
||||
{ "OTNewBillAction", gnc_plugin_page_owner_tree_cmd_new_invoice, NULL, NULL, NULL },
|
||||
{ "OTNewInvoiceAction", gnc_plugin_page_owner_tree_cmd_new_invoice, NULL, NULL, NULL },
|
||||
{ "OTNewVoucherAction", gnc_plugin_page_owner_tree_cmd_new_invoice, NULL, NULL, NULL },
|
||||
@ -249,6 +251,18 @@ static GncDisplayItem gnc_plugin_page_owner_tree_display_items [] =
|
||||
/** The number of display items provided by this plugin. */
|
||||
static guint gnc_plugin_page_owner_tree_n_display_items = G_N_ELEMENTS(gnc_plugin_page_owner_tree_display_items);
|
||||
|
||||
/** The default menu items that need to be add to the menu */
|
||||
static const gchar *gnc_plugin_load_ui_items [] =
|
||||
{
|
||||
"EditPlaceholder2",
|
||||
"EditPlaceholder3",
|
||||
"EditPlaceholder5",
|
||||
"ViewPlaceholder1",
|
||||
"ViewPlaceholder4",
|
||||
"ReportsPlaceholder1",
|
||||
NULL,
|
||||
};
|
||||
|
||||
/** Actions that require an owner to be selected before they are
|
||||
* enabled. These ones are only sensitive in a read-write book. */
|
||||
static const gchar *actions_requiring_owner_rw[] =
|
||||
@ -367,17 +381,6 @@ gnc_plugin_page_owner_tree_new (GncOwnerType owner_type)
|
||||
priv = GNC_PLUGIN_PAGE_OWNER_TREE_GET_PRIVATE(plugin_page);
|
||||
priv->owner_type = owner_type;
|
||||
|
||||
/* Hide menu and toolbar items that are not relevant for the active owner list */
|
||||
simple_action_group = gnc_plugin_page_get_action_groupb (GNC_PLUGIN_PAGE(plugin_page));
|
||||
for (i = 0; action_owners[i].action_name; i++)
|
||||
{
|
||||
action = g_action_map_lookup_action (G_ACTION_MAP(simple_action_group),
|
||||
action_owners[i].action_name);
|
||||
//FIXMEb g_object_set (G_OBJECT(action),
|
||||
// "visible", (priv->owner_type == action_owners[i].owner_type),
|
||||
// NULL);
|
||||
}
|
||||
|
||||
LEAVE("new %s tree page %p", gncOwnerTypeToQofIdType(owner_type), plugin_page);
|
||||
return GNC_PLUGIN_PAGE(plugin_page);
|
||||
}
|
||||
@ -394,6 +397,21 @@ gnc_plugin_page_owner_focus_widget (GncPluginPage *owner_plugin_page)
|
||||
GncPluginPageOwnerTreePrivate *priv = GNC_PLUGIN_PAGE_OWNER_TREE_GET_PRIVATE(owner_plugin_page);
|
||||
GtkTreeView *tree_view = priv->tree_view;
|
||||
|
||||
/* Disable the Transaction Menu */
|
||||
GAction *action = gnc_main_window_find_action (GNC_MAIN_WINDOW(owner_plugin_page->window), "TransactionAction");
|
||||
g_simple_action_set_enabled (G_SIMPLE_ACTION(action), FALSE);
|
||||
/* Disable the Schedule menu */
|
||||
action = gnc_main_window_find_action (GNC_MAIN_WINDOW(owner_plugin_page->window), "ScheduledAction");
|
||||
g_simple_action_set_enabled (G_SIMPLE_ACTION(action), FALSE);
|
||||
/* Disable the FilePrintAction */
|
||||
action = gnc_main_window_find_action (GNC_MAIN_WINDOW(owner_plugin_page->window), "FilePrintAction");
|
||||
g_simple_action_set_enabled (G_SIMPLE_ACTION(action), FALSE);
|
||||
|
||||
set_menu_and_toolbar_qualifier (owner_plugin_page);
|
||||
|
||||
gnc_main_window_update_menu (GNC_MAIN_WINDOW(owner_plugin_page->window), owner_plugin_page,
|
||||
gnc_plugin_load_ui_items);
|
||||
|
||||
if (GTK_IS_TREE_VIEW(tree_view))
|
||||
{
|
||||
if (!gtk_widget_is_focus (GTK_WIDGET(tree_view)))
|
||||
@ -453,7 +471,7 @@ gnc_plugin_page_owner_tree_init (GncPluginPageOwnerTree *plugin_page)
|
||||
G_CALLBACK (gnc_plugin_page_owner_tree_selected), plugin_page);
|
||||
|
||||
/* change me when the system supports multiple books */
|
||||
gnc_plugin_page_add_book(parent, gnc_get_current_book());
|
||||
gnc_plugin_page_add_book (parent, gnc_get_current_book());
|
||||
|
||||
/* Create menu and toolbar information */
|
||||
simple_action_group = gnc_plugin_page_create_action_groupb (parent, "GncPluginPageOwnerTreeActions");
|
||||
@ -461,8 +479,8 @@ gnc_plugin_page_owner_tree_init (GncPluginPageOwnerTree *plugin_page)
|
||||
gnc_plugin_page_owner_tree_actions,
|
||||
gnc_plugin_page_owner_tree_n_actions,
|
||||
plugin_page);
|
||||
//FIXMEb gnc_plugin_init_short_names (action_group, toolbar_labels);
|
||||
|
||||
//FIXMEb gnc_plugin_init_short_names (action_group, toolbar_labels);
|
||||
|
||||
/* Init filter */
|
||||
priv->fd.show_inactive = TRUE;
|
||||
@ -488,7 +506,8 @@ gnc_plugin_page_owner_tree_finalize (GObject *object)
|
||||
LEAVE(" ");
|
||||
}
|
||||
|
||||
static void update_inactive_actions(GncPluginPage *plugin_page)
|
||||
static void
|
||||
update_inactive_actions(GncPluginPage *plugin_page)
|
||||
{
|
||||
GSimpleActionGroup *simple_action_group;
|
||||
gboolean is_sensitive = !qof_book_is_readonly(gnc_get_current_book());
|
||||
@ -499,13 +518,33 @@ static void update_inactive_actions(GncPluginPage *plugin_page)
|
||||
|
||||
/* Get the action group */
|
||||
simple_action_group = gnc_plugin_page_get_action_groupb (plugin_page);
|
||||
g_return_if_fail (G_IS_SIMPLE_ACTION_GROUP (simple_action_group));
|
||||
g_return_if_fail (G_IS_SIMPLE_ACTION_GROUP(simple_action_group));
|
||||
|
||||
/* Set the action's sensitivity */
|
||||
gnc_plugin_update_actionsb (simple_action_group, readonly_inactive_actions,
|
||||
"sensitive", is_sensitive);
|
||||
}
|
||||
|
||||
static void
|
||||
set_menu_and_toolbar_qualifier (GncPluginPage *plugin_page)
|
||||
{
|
||||
GncPluginPageOwnerTree *page = GNC_PLUGIN_PAGE_OWNER_TREE(plugin_page);
|
||||
GncPluginPageOwnerTreePrivate *priv;
|
||||
|
||||
g_return_if_fail (GNC_IS_PLUGIN_PAGE_OWNER_TREE(page));
|
||||
|
||||
priv = GNC_PLUGIN_PAGE_OWNER_TREE_GET_PRIVATE(page);
|
||||
|
||||
if (priv->owner_type == GNC_OWNER_CUSTOMER)
|
||||
gnc_plugin_page_set_menu_qualifier (plugin_page, "c");
|
||||
else if (priv->owner_type == GNC_OWNER_VENDOR)
|
||||
gnc_plugin_page_set_menu_qualifier (plugin_page, "v");
|
||||
else if (priv->owner_type == GNC_OWNER_EMPLOYEE)
|
||||
gnc_plugin_page_set_menu_qualifier (plugin_page, "e");
|
||||
else
|
||||
gnc_plugin_page_set_menu_qualifier (plugin_page, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
gnc_plugin_page_owner_tree_selected (GObject *object, gpointer user_data)
|
||||
{
|
||||
@ -685,6 +724,8 @@ gnc_plugin_page_owner_tree_create_widget (GncPluginPage *plugin_page)
|
||||
G_CALLBACK(gnc_plugin_page_inserted_cb),
|
||||
NULL);
|
||||
|
||||
set_menu_and_toolbar_qualifier (plugin_page);
|
||||
|
||||
LEAVE("widget = %p", priv->widget);
|
||||
return priv->widget;
|
||||
}
|
||||
@ -1180,6 +1221,21 @@ gnc_plugin_page_owner_tree_cmd_refresh (GSimpleAction *simple,
|
||||
gtk_widget_queue_draw (priv->widget);
|
||||
}
|
||||
|
||||
static void
|
||||
gnc_plugin_page_owner_tree_cmd_edit_tax (GSimpleAction *simple,
|
||||
GVariant *parameter,
|
||||
gpointer user_data)
|
||||
{
|
||||
GncPluginPageOwnerTree *plugin_page = user_data;
|
||||
GtkWidget *parent;
|
||||
|
||||
g_return_if_fail (GNC_IS_PLUGIN_PAGE_OWNER_TREE(plugin_page));
|
||||
|
||||
parent = GTK_WIDGET(gnc_plugin_page_get_window (GNC_PLUGIN_PAGE(plugin_page)));
|
||||
|
||||
gnc_tax_info_dialog (parent, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
gnc_plugin_page_owner_tree_cmd_new_invoice (GSimpleAction *simple,
|
||||
GVariant *parameter,
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
<file>ui/gnc-plugin-page-account-tree.ui</file>
|
||||
<file>ui/gnc-plugin-page-budget.ui</file>
|
||||
<file>ui/gnc-plugin-page-owner-tree.ui</file>
|
||||
<file>ui/gnc-plugin-page-register.ui</file>
|
||||
<file>ui/gnc-plugin-page-sx-list.ui</file>
|
||||
|
||||
|
685
gnucash/ui/gnc-plugin-page-owner-tree.ui
Normal file
685
gnucash/ui/gnc-plugin-page-owner-tree.ui
Normal file
@ -0,0 +1,685 @@
|
||||
<?xml version="1.0"?>
|
||||
<interface>
|
||||
|
||||
<menu id="EditPlaceholder2-c">
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">E_dit Customer</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTEditCustomerAction</attribute>
|
||||
<attribute name="accel"><Primary>e</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Edit the selected customer</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_New Customer...</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTNewCustomerAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Create a new customer</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="EditPlaceholder2-v">
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">E_dit Vendor</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTEditVendorAction</attribute>
|
||||
<attribute name="accel"><Primary>e</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Edit the selected vendor</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_New Vendor...</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTNewVendorAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Create a new vendor</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="EditPlaceholder2-e">
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">E_dit Employee</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTEditEmployeeAction</attribute>
|
||||
<attribute name="accel"><Primary>e</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Edit the selected employee</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_New Employee...</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTNewEmployeeAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Create a new employee</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
|
||||
<menu id="EditPlaceholder3">
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_Find...</attribute>
|
||||
<attribute name="action">gnc-plugin-basic-commands-actions.EditFindTransactionsAction</attribute>
|
||||
<attribute name="accel"><Primary>f</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Find transactions with a search</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="EditPlaceholder5">
|
||||
<item>
|
||||
<!-- Translators: remember to reuse this translation in dialog-account.glade -->
|
||||
<attribute name="label" translatable="yes">Ta_x Report Options</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.EditTaxOptionsAction</attribute>
|
||||
<!-- Translators: currently implemented are, US: income tax and DE: VAT, So adjust this string -->
|
||||
<attribute name="tooltip" translatable="yes">Setup relevant accounts for tax reports, e.g. US income tax</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="ViewPlaceholder1">
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_Filter By...</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.ViewFilterByAction</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="ViewPlaceholder4">
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">_Refresh</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.ViewRefreshAction</attribute>
|
||||
<attribute name="accel"><Primary>r</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Refresh this window</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="ReportsPlaceholder1-c">
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Customer Report</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTCustomerReportAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Show customer report</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Customer Listing</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTCustomerListingReportAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Show customer aging overview for all customers</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="ReportsPlaceholder1-v">
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Vendor Report</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTVendorReportAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Show vendor report</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="no">Vendor Listing</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTVendorListingReportAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Show vendor aging overview for all vendors</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
<menu id="ReportsPlaceholder1-e">
|
||||
<item>
|
||||
<attribute name="label" translatable="no">Employee Report</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTEmployeeReportAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Show employee report</attribute>
|
||||
<attribute name="temp" translatable="no">yes</attribute>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
|
||||
<menu id="mainwin-popup-c">
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Re_name Page</attribute>
|
||||
<attribute name="action">mainwin.ActionsRenamePageAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Rename this page</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">E_dit Customer</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTEditCustomerAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Edit the selected customer</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">New _Invoice...</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTNewInvoiceAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Create a new invoice</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Customer Report</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTCustomerReportAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Show customer report</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Process Payment</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTProcessPaymentAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Process Payment</attribute>
|
||||
</item>
|
||||
</section>
|
||||
</menu>
|
||||
|
||||
<menu id="mainwin-popup-v">
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Re_name Page</attribute>
|
||||
<attribute name="action">mainwin.ActionsRenamePageAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Rename this page</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">E_dit Vendor</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTEditVendorAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Edit the selected vendor</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">New _Bill...</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTNewBillAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Create a new bill</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Vendor Report</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTVendorReportAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Show vendor report</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Process Payment</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTProcessPaymentAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Process Payment</attribute>
|
||||
</item>
|
||||
</section>
|
||||
</menu>
|
||||
|
||||
<menu id="mainwin-popup-e">
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Re_name Page</attribute>
|
||||
<attribute name="action">mainwin.ActionsRenamePageAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Rename this page</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">E_dit Employee</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTEditEmployeeAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Edit the selected customer</attribute>
|
||||
</item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">New _Voucher...</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTNewVoucherAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Create a new voucher</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Employee Report</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTEmployeeReportAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Show employee report</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Process Payment</attribute>
|
||||
<attribute name="action">GncPluginPageOwnerTreeActions.OTProcessPaymentAction</attribute>
|
||||
<attribute name="tooltip" translatable="yes">Process Payment</attribute>
|
||||
</item>
|
||||
</section>
|
||||
</menu>
|
||||
|
||||
|
||||
<object class="GtkToolbar" id="mainwin-toolbar-c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but1c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_Save</property>
|
||||
<property name="action-name">gnc-plugin-basic-commands-actions.FileSaveAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Save the current file</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">document-save</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but2c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_Close</property>
|
||||
<property name="action-name">mainwin.FileCloseAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Close the currently active page</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">window-close</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but2ca">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">New _Invoice...</property>
|
||||
<property name="action-name">gnc-plugin-business-actions.ToolbarNewInvoiceAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Open the New Invoice dialog</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-new</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem" id="extra_separator_c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but3c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_New Customer...</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTNewCustomerAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Create a new customer</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-account-new</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but4c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">E_dit Customer</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTEditCustomerAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Edit the selected customer</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-account-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but5c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">New _Invoice...</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTNewInvoiceAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Create a new invoice</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-pay</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but6c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">Customer Listing</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTCustomerListingReportAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Show customer aging overview for all customers</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">document-print-preview</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but7c">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">Process Payment</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTProcessPaymentAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Process Payment</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-pay</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
<object class="GtkToolbar" id="mainwin-toolbar-v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but1v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_Save</property>
|
||||
<property name="action-name">gnc-plugin-basic-commands-actions.FileSaveAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Save the current file</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">document-save</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but2v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_Close</property>
|
||||
<property name="action-name">mainwin.FileCloseAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Close the currently active page</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">window-close</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but2va">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">New _Invoice...</property>
|
||||
<property name="action-name">gnc-plugin-business-actions.ToolbarNewInvoiceAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Open the New Invoice dialog</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-new</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem" id="extra_separator_v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but3v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_New Vendor...</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTNewVendorAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Create a new vendor</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-account-new</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but4v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">E_dit Vendor</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTEditVendorAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Edit the selected vendor</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-account-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but5v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">New _Bill...</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTNewBillAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Create a new bill</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-pay</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but6v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">Vendor Listing</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTVendorListingReportAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Show vendor aging overview for all vendors</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">document-print-preview</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but7v">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">Process Payment</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTProcessPaymentAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Process Payment</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-pay</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
<object class="GtkToolbar" id="mainwin-toolbar-e">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but1e">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_Save</property>
|
||||
<property name="action-name">gnc-plugin-basic-commands-actions.FileSaveAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Save the current file</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">document-save</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but2e">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_Close</property>
|
||||
<property name="action-name">mainwin.FileCloseAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Close the currently active page</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">window-close</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but2ea">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">New _Invoice...</property>
|
||||
<property name="action-name">gnc-plugin-business-actions.ToolbarNewInvoiceAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Open the New Invoice dialog</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-new</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem" id="extra_separator_e">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but3e">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">_New Employee...</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTNewEmployeeAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Create a new employee</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-account-new</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but4e">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">E_dit Employee</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTEditEmployeeAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Edit the selected employee</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-account-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but5e">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">New _Voucher...</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTNewVoucherAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Create a new voucher</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-pay</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="but6e">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">Process Payment</property>
|
||||
<property name="action-name">GncPluginPageOwnerTreeActions.OTProcessPaymentAction</property>
|
||||
<property name="tooltip-text" translatable="yes">Process Payment</property>
|
||||
<property name="use-underline">True</property>
|
||||
<property name="icon-name">gnc-invoice-pay</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user