Add more tooltips to actions.

src/report/report-gnome/gnc-plugin-page-report.c: Rename "Save report"
menu item to "Add report" according to IRC discussion with warlord.
	



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12289 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2006-01-07 17:13:21 +00:00
parent 5613dbec34
commit 4ae6ac8ffa
3 changed files with 59 additions and 22 deletions

View File

@ -1,5 +1,21 @@
2006-01-07 Christian Stimming <stimming@tuhh.de>
* src/gnome/gnc-plugin-page-register.c,
src/report/report-gnome/gnc-plugin-page-report.c: Add more
tooltips to actions.
* src/gnome-utils/gnc-main-window.c: Add display of a GtkAction's
tooltip in the statusbar when the mouse is selection its menu
item. Code copied from gtk+'s test/testmerge.c. Works fine, except
that in non-C locales some "" tooltips are translated in a weird
way. Maybe because "" is errorneously passed through gettext(),
which will accidentally catch a wrong string from the po
files. This needs to be fixed.
* src/report/report-gnome/gnc-plugin-page-report.c: Rename "Save
report" menu item to "Add report" according to IRC discussion with
warlord.
* autogen.sh: Move code from macros/autogen.sh to here to make it
more obvious what happens. Add checks for all programs that are
called, fixes bug#325721. However in principle the code wasn't

View File

@ -172,11 +172,14 @@ static GtkActionEntry gnc_plugin_page_register_actions [] =
/* Transaction menu */
{ "CutTransactionAction", GTK_STOCK_CUT, N_("Cu_t Transaction"), "", NULL,
{ "CutTransactionAction", GTK_STOCK_CUT, N_("Cu_t Transaction"), "",
N_("Cut the selected transaction into clipboard"),
G_CALLBACK (gnc_plugin_page_register_cmd_cut_transaction) },
{ "CopyTransactionAction", GTK_STOCK_COPY, N_("_Copy Transaction"), "", NULL,
{ "CopyTransactionAction", GTK_STOCK_COPY, N_("_Copy Transaction"), "",
N_("Copy the selected transaction into clipboard"),
G_CALLBACK (gnc_plugin_page_register_cmd_copy_transaction) },
{ "PasteTransactionAction", GTK_STOCK_PASTE, N_("_Paste Transaction"), "", NULL,
{ "PasteTransactionAction", GTK_STOCK_PASTE, N_("_Paste Transaction"), "",
N_("Paste the transaction from the clipboard"),
G_CALLBACK (gnc_plugin_page_register_cmd_paste_transaction) },
{ "DuplicateTransactionAction", GTK_STOCK_COPY, N_("Du_plicate Transaction"), "",
N_("Make a copy of the current transaction"),
@ -233,22 +236,27 @@ static GtkActionEntry gnc_plugin_page_register_actions [] =
{ "ScheduleTransactionAction", GTK_STOCK_COPY, N_("Schedule..."), NULL,
N_("Create a Scheduled Transaction with the current transaction as a template"),
G_CALLBACK (gnc_plugin_page_register_cmd_schedule) },
{ "ScrubAllAction", NULL, N_("_All transactions"), NULL, NULL,
{ "ScrubAllAction", NULL, N_("_All transactions"), NULL,
NULL,
G_CALLBACK (gnc_plugin_page_register_cmd_scrub_all) },
{ "ScrubCurrentAction", NULL, N_("_This transaction"), NULL, NULL,
{ "ScrubCurrentAction", NULL, N_("_This transaction"), NULL,
NULL,
G_CALLBACK (gnc_plugin_page_register_cmd_scrub_current) },
/* Reports menu */
{ "ReportsAccountReportAction", NULL, N_("Account Report"), NULL, NULL,
{ "ReportsAccountReportAction", NULL, N_("Account Report"), NULL,
N_("Open a register report window for this transaction"),
G_CALLBACK (gnc_plugin_page_register_cmd_account_report) },
{ "ReportsAcctTransReportAction", NULL, N_("Account Transaction Report"), NULL, NULL,
{ "ReportsAcctTransReportAction", NULL, N_("Account Transaction Report"), NULL,
N_("Open a register report window for this transaction"),
G_CALLBACK (gnc_plugin_page_register_cmd_transaction_report) },
};
static guint gnc_plugin_page_register_n_actions = G_N_ELEMENTS (gnc_plugin_page_register_actions);
static GtkToggleActionEntry toggle_entries[] = {
{ "ViewStyleDoubleLineAction", NULL, N_("_Double Line"), NULL, NULL,
{ "ViewStyleDoubleLineAction", NULL, N_("_Double Line"), NULL,
N_("Show two lines of information for each transaction"),
G_CALLBACK (gnc_plugin_page_register_cmd_style_double_line), FALSE },
{ "SplitTransactionAction", GTK_STOCK_MISSING_IMAGE, N_("S_plit Transaction"), NULL,
@ -259,9 +267,15 @@ static guint n_toggle_entries = G_N_ELEMENTS (toggle_entries);
static GtkRadioActionEntry radio_entries_2 [] =
{
{ "ViewStyleBasicAction", NULL, N_("_Basic Ledger"), NULL, NULL, REG_STYLE_LEDGER },
{ "ViewStyleAutoSplitAction", NULL, N_("_Auto-Split Ledger"), NULL, NULL, REG_STYLE_AUTO_LEDGER },
{ "ViewStyleJournalAction", NULL, N_("Transaction _Journal"), NULL, NULL, REG_STYLE_JOURNAL }
/* Translators: This is a menu item in the View menu */
{ "ViewStyleBasicAction", NULL, N_("_Basic Ledger"), NULL,
N_("Show transactions on one or two lines"), REG_STYLE_LEDGER },
/* Translators: This is a menu item in the View menu */
{ "ViewStyleAutoSplitAction", NULL, N_("_Auto-Split Ledger"), NULL,
N_("Show transactions on one or two lines and expand the current transaction"), REG_STYLE_AUTO_LEDGER },
/* Translators: This is a menu item in the View menu */
{ "ViewStyleJournalAction", NULL, N_("Transaction _Journal"), NULL,
N_("Show expanded transactions with all splits"), REG_STYLE_JOURNAL }
};
static guint n_radio_entries_2 = G_N_ELEMENTS (radio_entries_2);

View File

@ -820,26 +820,33 @@ gnc_plugin_page_report_destroy(GncPluginPageReportPrivate * priv)
static GtkActionEntry report_actions[] =
{
{ "FilePrintAction", GTK_STOCK_PRINT, N_("_Print Report..."), "<control>p", NULL,
{ "FilePrintAction", GTK_STOCK_PRINT, N_("_Print Report..."), "<control>p",
N_("Print the current report"),
G_CALLBACK(gnc_plugin_page_report_print_cb) },
{ "ReportSaveAction", GTK_STOCK_SAVE, N_("Save _Report"), NULL,
N_("Save the current report for later use in "
"~/.gnucash/saved-reports-2.0 so that they are accessible as "
"menu entries in the report menu. Will go into effect at the "
{ "ReportSaveAction", GTK_STOCK_SAVE, N_("Add _Report"), NULL,
N_("Add the current report to the `Custom' menu for later use. "
"The report will be saved in the file ~/.gnucash/saved-reports-2.0. "
"It will be accessible as menu entry in the report menu at the "
"next startup of gnucash."),
G_CALLBACK(gnc_plugin_page_report_save_cb) },
{ "ReportExportAction", GTK_STOCK_CONVERT, N_("Export _Report"), NULL, NULL,
{ "ReportExportAction", GTK_STOCK_CONVERT, N_("Export _Report"), NULL,
N_("Export HTML-formatted report to file"),
G_CALLBACK(gnc_plugin_page_report_export_cb) },
{ "ReportOptionsAction", GTK_STOCK_PROPERTIES, N_("_Report Options"), NULL, NULL,
{ "ReportOptionsAction", GTK_STOCK_PROPERTIES, N_("_Report Options"), NULL,
N_("Edit report options"),
G_CALLBACK(gnc_plugin_page_report_options_cb) },
{ "ReportBackAction", GTK_STOCK_GO_BACK, N_("Back"), NULL, NULL,
{ "ReportBackAction", GTK_STOCK_GO_BACK, N_("Back"), NULL,
N_("Move back one step in the history"),
G_CALLBACK(gnc_plugin_page_report_back_cb) },
{ "ReportForwAction", GTK_STOCK_GO_FORWARD, N_("Forward"), NULL, NULL,
{ "ReportForwAction", GTK_STOCK_GO_FORWARD, N_("Forward"), NULL,
N_("Move forward one step in the history"),
G_CALLBACK(gnc_plugin_page_report_forw_cb) },
{ "ReportReloadAction", GTK_STOCK_REFRESH, N_("Reload"), NULL, NULL,
{ "ReportReloadAction", GTK_STOCK_REFRESH, N_("Reload"), NULL,
N_("Reload the current page"),
G_CALLBACK(gnc_plugin_page_report_reload_cb) },
{ "ReportStopAction", GTK_STOCK_STOP, N_("Stop"), NULL, NULL,
{ "ReportStopAction", GTK_STOCK_STOP, N_("Stop"), NULL,
N_("Cancel outstanding HTML requests"),
G_CALLBACK(gnc_plugin_page_report_stop_cb) },
};
static guint num_report_actions = G_N_ELEMENTS( report_actions );