mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
First SX change - add a help button to the editor dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4983 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,3 +1,15 @@
|
||||
2001-07-24 Robert Graham Merkel <rgmerk@mira.net>
|
||||
|
||||
* doc/sgml/C/xacc-sxeditor.sgml: New file.
|
||||
|
||||
* doc/sgml/C/Makefile.am, gnucash.sgml: updates for new file
|
||||
|
||||
* src/gnome/glade/sched-xact.glade: add help button
|
||||
|
||||
* src/gnome/dialog-schedxaction.c: add callback for help button.
|
||||
|
||||
* src/gnome/gnc-ui.h: pointer to help file.
|
||||
|
||||
2001-07-22 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/test/gnc-test-stuff.[ch] (get_random_price): new func.
|
||||
|
||||
@@ -55,6 +55,7 @@ GNUCASH_SGML_FILES = \
|
||||
xacc-reports.sgml \
|
||||
xacc-scheme.sgml \
|
||||
xacc-stock-price-report.sgml \
|
||||
xacc-sxeditor.sgml \
|
||||
xacc-tax-report.sgml \
|
||||
xacc-toplevel.sgml \
|
||||
xacc-trans-report.sgml \
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
<!entity xaccreports system "xacc-reports.sgml">
|
||||
<!entity xaccrepdev system "xacc-repdev.sgml">
|
||||
<!entity xaccstockpricereport system "xacc-stock-price-report.sgml">
|
||||
<!entity xaccsxeditor system "xacc-sxeditor.sgml">
|
||||
<!entity xacctaxreport system "xacc-tax-report.sgml">
|
||||
<!entity xacctoplevel system "xacc-toplevel.sgml">
|
||||
<!entity xacctransreport system "xacc-trans-report.sgml">
|
||||
@@ -116,6 +117,7 @@
|
||||
&xaccdochack;
|
||||
&xaccscheme;
|
||||
&xaccstockpricereport;
|
||||
&xaccsxeditor;
|
||||
&xaccrepdev;
|
||||
&xaccwhatsnew;
|
||||
&xaccy2k;
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
#define HH_QUICKSTART "xacc-quickstart.html"
|
||||
#define HH_RECNWIN "xacc-recnwin.html"
|
||||
#define HH_REGWIN "xacc-regwin.html"
|
||||
#define HH_SXEDITOR "xacc-sxeditor.html"
|
||||
|
||||
/* Dialog windows ***************************************************/
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
#include <locale.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "gnc-ui.h"
|
||||
|
||||
#include "FreqSpec.h"
|
||||
#include "SchedXaction.h"
|
||||
#include "gnc-book.h"
|
||||
@@ -35,7 +37,7 @@
|
||||
#include "gnucash-sheet.h"
|
||||
|
||||
#include "window-register.h"
|
||||
|
||||
#include "window-help.h"
|
||||
#include "dialog-scheduledxaction.h"
|
||||
#include "dialog-utils.h"
|
||||
#include "gnc-component-manager.h"
|
||||
@@ -170,6 +172,16 @@ editor_close_button_clicked( GtkButton *b, SchedXactionEditorDialog *sxed )
|
||||
gnc_close_gui_component_by_data( DIALOG_SCHEDXACTION_EDITOR_CM_CLASS, sxed );
|
||||
}
|
||||
|
||||
|
||||
static
|
||||
void
|
||||
editor_help_button_clicked(GtkButton *b, SchedXactionEditorDialog *sxed)
|
||||
{
|
||||
gnc_help_window *help = gnc_help_window_new();
|
||||
gnc_help_window_show_help(help, HH_SXEDITOR, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
editor_ok_button_clicked( GtkButton *b, SchedXactionEditorDialog *sxed )
|
||||
@@ -473,6 +485,7 @@ gnc_ui_scheduled_xaction_editor_dialog_create( SchedXactionDialog *sxd,
|
||||
} widgets[] = {
|
||||
{ "ok_button", "clicked", editor_ok_button_clicked, NULL },
|
||||
{ "cancel_button", "clicked", editor_close_button_clicked, NULL },
|
||||
{ "help_button", "clicked", editor_help_button_clicked, NULL},
|
||||
|
||||
{ "rb_enddate", "toggled", endgroup_rb_toggled, (gpointer)END_OPTION },
|
||||
{ "rb_num_occur", "toggled", endgroup_rb_toggled, (gpointer)NUM_OCCUR_OPTION },
|
||||
|
||||
@@ -68,6 +68,14 @@
|
||||
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>help_button</name>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<stock_button>GNOME_STOCK_BUTTON_HELP</stock_button>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>cancel_button</name>
|
||||
|
||||
Reference in New Issue
Block a user