Add the "Close Books" menu item.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9653 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2003-10-26 21:50:21 +00:00
parent 8b9483c355
commit 26203fabcd
3 changed files with 21 additions and 7 deletions

View File

@@ -41,9 +41,9 @@ data in such a way that it cannot be repaired!</property>
<widget class="GnomeDruidPageStandard" id="menu page">
<property name="visible">True</property>
<property name="title" translatable="yes">Book Closing Dates</property>
<property name="title_foreground">#6f80082dceb8</property>
<property name="background">#8b600831e9eb</property>
<property name="logo_background">#1df0081d0001</property>
<property name="title_foreground">#ffffffffffff</property>
<property name="background">#666666669998</property>
<property name="logo_background">#666666669998</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="druid-vbox-xx">
@@ -121,9 +121,10 @@ Books will be closed on midnight of the selected date.</property>
<widget class="GnomeDruidPageStandard" id="book page">
<property name="visible">True</property>
<property name="title" translatable="yes">Close Book</property>
<property name="title_foreground">#dde8082cceb8</property>
<property name="background">#7c380830e9eb</property>
<property name="logo_background">#1df0081d0001</property>
<property name="title_foreground">#ffffffffffff</property>
<property name="background">#666666669998</property>
<property name="logo_background">#666666669998</property>
<property name="contents_background">#e6e6e6e6e6e6</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="druid-vbox-yy">
@@ -311,7 +312,7 @@ Books will be closed on midnight of the selected date.</property>
<property name="text" translatable="yes">xxx</property>
<property name="title_color">#ffffffffffff</property>
<property name="text_color">#000000000000</property>
<property name="background_color">#666666669999</property>
<property name="background_color">#666666669998</property>
<property name="logo_background_color">#666666669999</property>
<property name="textbox_color">#ffffffffffff</property>
</widget>

View File

@@ -41,6 +41,7 @@
#include "dialog-scheduledxaction.h"
#include "dialog-sxsincelast.h"
#include "dialog-transfer.h"
#include "druid-acct-period.h"
#include "druid-loan.h"
#include "gnc-component-manager.h"
#include "gnc-engine-util.h"
@@ -108,6 +109,7 @@ static void gnc_main_window_cmd_view_statusbar (EggAction *action, GncMainWindow
static void gnc_main_window_cmd_actions_scheduled_transaction_editor (EggAction *action, GncMainWindow *window);
static void gnc_main_window_cmd_actions_since_last_run (EggAction *action, GncMainWindow *window);
static void gnc_main_window_cmd_actions_mortgage_loan (EggAction *action, GncMainWindow *window);
static void gnc_main_window_cmd_actions_close_books (EggAction *action, GncMainWindow *window);
static void gnc_main_window_cmd_tools_price_editor (EggAction *action, GncMainWindow *window);
static void gnc_main_window_cmd_tools_commodity_editor (EggAction *action, GncMainWindow *window);
static void gnc_main_window_cmd_tools_financial_calculator (EggAction *action, GncMainWindow *window);
@@ -218,6 +220,9 @@ static EggActionEntry gnc_menu_entries [] =
{ "ActionsMortgageLoanAction", N_("_Mortgage & Loan Repayment..."), NULL, "NULL",
N_("Setup scheduled transactions for repayment of a loan"),
G_CALLBACK (gnc_main_window_cmd_actions_mortgage_loan) },
{ "ActionsCloseBooksAction", N_("Close Books"), NULL, "NULL",
N_("Archive old data using accounting periods"),
G_CALLBACK (gnc_main_window_cmd_actions_close_books) },
/* Tools menu */
{ "ToolsPriceEditorAction", N_("_Price Editor"), NULL, NULL,
@@ -1078,6 +1083,12 @@ gnc_main_window_cmd_actions_mortgage_loan (EggAction *action, GncMainWindow *win
gnc_ui_sx_loan_druid_create ();
}
static void
gnc_main_window_cmd_actions_close_books (EggAction *action, GncMainWindow *window)
{
gnc_acct_period_dialog();
}
static void
gnc_main_window_cmd_tools_price_editor (EggAction *action, GncMainWindow *window)
{

View File

@@ -38,6 +38,7 @@
<placeholder name="EditPlaceholder"/>
<menuitem name="EditPreferences" action="EditPreferencesAction"/>
<placeholder name="EditPreferencesPlaceholder"/>
<placeholder name="EditStyleSheetsPlaceholder"/>
<menuitem name="EditTaxOptions" action="EditTaxOptionsAction"/>
</menu>
@@ -58,6 +59,7 @@
<menuitem name="ActionsMortgageLoan" action="ActionsMortgageLoanAction"/>
</menu>
<placeholder name="ActionsPlaceholder"/>
<menuitem name="ActionsCloseBooks" action="ActionsCloseBooksAction"/>
</menu>
<placeholder name="AdditionalMenusPlaceholder"/>