mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-06-13 Dave Peticolas <dave@krondo.com>
* src/scm/extensions.scm: fix bug * src/gnome/dialog-progress.c: use libglade * src/gnome/window-help.c: use libglade git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4675 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
33de0d9ddb
commit
221539bfae
@ -1,5 +1,11 @@
|
||||
2001-06-13 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/scm/extensions.scm: fix bug
|
||||
|
||||
* src/gnome/dialog-progress.c: use libglade
|
||||
|
||||
* src/gnome/window-help.c: use libglade
|
||||
|
||||
* src/gnome/dialog-utils.c (gnc_glade_lookup_widget): new func
|
||||
|
||||
* src/gnome/dialog-tax-info.c: use libglade
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <guile/gh.h>
|
||||
|
||||
#include "dialog-progress.h"
|
||||
#include "glade-gnc-dialogs.h"
|
||||
#include "dialog-utils.h"
|
||||
#include "messages.h"
|
||||
|
||||
|
||||
@ -158,8 +158,11 @@ gnc_progress_dialog_create(GtkWidget * parent, GNCProgressDialog *progress)
|
||||
{
|
||||
GtkWidget *dialog;
|
||||
GtkObject *tdo;
|
||||
GladeXML *xml;
|
||||
|
||||
dialog = create_Progress_Dialog();
|
||||
xml = gnc_glade_xml_new ("progress.glade", "Progress Dialog");
|
||||
|
||||
dialog = glade_xml_get_widget (xml, "Progress Dialog");
|
||||
progress->dialog = dialog;
|
||||
tdo = GTK_OBJECT (dialog);
|
||||
|
||||
@ -172,15 +175,15 @@ gnc_progress_dialog_create(GtkWidget * parent, GNCProgressDialog *progress)
|
||||
|
||||
gtk_signal_connect (tdo, "destroy", GTK_SIGNAL_FUNC (destroy_cb), progress);
|
||||
|
||||
progress->heading_label = gtk_object_get_data(tdo, "heading_label");
|
||||
progress->heading_label = glade_xml_get_widget (xml, "heading_label");
|
||||
gtk_widget_hide(progress->heading_label);
|
||||
|
||||
progress->progress_bar = gtk_object_get_data(tdo, "progress_bar");
|
||||
progress->progress_bar = glade_xml_get_widget (xml, "progress_bar");
|
||||
gtk_progress_set_show_text (GTK_PROGRESS(progress->progress_bar), TRUE);
|
||||
gtk_progress_configure (GTK_PROGRESS(progress->progress_bar),
|
||||
0.0, 0.0, 100.0);
|
||||
|
||||
progress->ok_button = gtk_object_get_data(tdo, "ok_button");
|
||||
progress->ok_button = glade_xml_get_widget (xml, "ok_button");
|
||||
|
||||
gtk_signal_connect(GTK_OBJECT(progress->ok_button), "clicked",
|
||||
GTK_SIGNAL_FUNC(ok_cb), progress);
|
||||
@ -188,7 +191,7 @@ gnc_progress_dialog_create(GtkWidget * parent, GNCProgressDialog *progress)
|
||||
if (!progress->use_ok_button)
|
||||
gtk_widget_hide (progress->ok_button);
|
||||
|
||||
progress->cancel_button = gtk_object_get_data(tdo, "cancel_button");
|
||||
progress->cancel_button = glade_xml_get_widget (xml, "cancel_button");
|
||||
|
||||
gtk_signal_connect(GTK_OBJECT(progress->cancel_button), "clicked",
|
||||
GTK_SIGNAL_FUNC(cancel_cb), progress);
|
||||
|
@ -5423,354 +5423,3 @@ create_Transfer_Dialog (void)
|
||||
return Transfer_Dialog;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
create_Progress_Dialog (void)
|
||||
{
|
||||
GtkWidget *Progress_Dialog;
|
||||
GtkWidget *vbox85;
|
||||
GtkWidget *heading_label;
|
||||
GtkWidget *progress_bar;
|
||||
GtkWidget *hbuttonbox3;
|
||||
GtkWidget *ok_button;
|
||||
GtkWidget *cancel_button;
|
||||
|
||||
Progress_Dialog = gtk_window_new (GTK_WINDOW_DIALOG);
|
||||
gtk_object_set_data (GTK_OBJECT (Progress_Dialog), "Progress_Dialog", Progress_Dialog);
|
||||
gtk_window_set_title (GTK_WINDOW (Progress_Dialog), _("Working..."));
|
||||
gtk_window_set_modal (GTK_WINDOW (Progress_Dialog), TRUE);
|
||||
gtk_window_set_policy (GTK_WINDOW (Progress_Dialog), FALSE, FALSE, FALSE);
|
||||
|
||||
vbox85 = gtk_vbox_new (FALSE, 5);
|
||||
gtk_widget_ref (vbox85);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Progress_Dialog), "vbox85", vbox85,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox85);
|
||||
gtk_container_add (GTK_CONTAINER (Progress_Dialog), vbox85);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (vbox85), 5);
|
||||
|
||||
heading_label = gtk_label_new (_("Heading"));
|
||||
gtk_widget_ref (heading_label);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Progress_Dialog), "heading_label", heading_label,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (heading_label);
|
||||
gtk_box_pack_start (GTK_BOX (vbox85), heading_label, FALSE, FALSE, 0);
|
||||
|
||||
progress_bar = gtk_progress_bar_new ();
|
||||
gtk_widget_ref (progress_bar);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Progress_Dialog), "progress_bar", progress_bar,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (progress_bar);
|
||||
gtk_box_pack_start (GTK_BOX (vbox85), progress_bar, FALSE, FALSE, 0);
|
||||
gtk_progress_set_show_text (GTK_PROGRESS (progress_bar), TRUE);
|
||||
|
||||
hbuttonbox3 = gtk_hbutton_box_new ();
|
||||
gtk_widget_ref (hbuttonbox3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Progress_Dialog), "hbuttonbox3", hbuttonbox3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbuttonbox3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox85), hbuttonbox3, TRUE, TRUE, 0);
|
||||
|
||||
ok_button = gnome_stock_button (GNOME_STOCK_BUTTON_OK);
|
||||
gtk_widget_ref (ok_button);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Progress_Dialog), "ok_button", ok_button,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (ok_button);
|
||||
gtk_container_add (GTK_CONTAINER (hbuttonbox3), ok_button);
|
||||
gtk_widget_set_sensitive (ok_button, FALSE);
|
||||
GTK_WIDGET_SET_FLAGS (ok_button, GTK_CAN_DEFAULT);
|
||||
|
||||
cancel_button = gnome_stock_button (GNOME_STOCK_BUTTON_CANCEL);
|
||||
gtk_widget_ref (cancel_button);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Progress_Dialog), "cancel_button", cancel_button,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_container_add (GTK_CONTAINER (hbuttonbox3), cancel_button);
|
||||
GTK_WIDGET_SET_FLAGS (cancel_button, GTK_CAN_DEFAULT);
|
||||
|
||||
return Progress_Dialog;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
create_Help_Window (void)
|
||||
{
|
||||
GtkWidget *Help_Window;
|
||||
GtkWidget *vbox90;
|
||||
GtkWidget *handlebox1;
|
||||
GtkWidget *help_toolbar;
|
||||
GtkWidget *help_paned;
|
||||
GtkWidget *notebook3;
|
||||
GtkWidget *scrolledwindow15;
|
||||
GtkWidget *viewport3;
|
||||
GtkWidget *help_topics_tree;
|
||||
GtkWidget *label847;
|
||||
GtkWidget *label847666;
|
||||
GtkWidget *frame37;
|
||||
GtkWidget *vbox91;
|
||||
GtkWidget *label849;
|
||||
GtkWidget *help_search_entry;
|
||||
GtkWidget *hbox80;
|
||||
GtkWidget *help_search_button;
|
||||
GtkWidget *help_search_help_button;
|
||||
GtkWidget *frame38;
|
||||
GtkWidget *scrolledwindow16;
|
||||
GtkWidget *viewport4;
|
||||
GtkWidget *search_results_list;
|
||||
GtkWidget *label848;
|
||||
GtkWidget *help_html_vbox;
|
||||
GtkWidget *statusbar_hbox;
|
||||
GtkWidget *help_statusbar;
|
||||
GtkTooltips *tooltips;
|
||||
|
||||
tooltips = gtk_tooltips_new ();
|
||||
|
||||
Help_Window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_object_set_data (GTK_OBJECT (Help_Window), "Help_Window", Help_Window);
|
||||
gtk_window_set_title (GTK_WINDOW (Help_Window), _("GnuCash Help"));
|
||||
|
||||
vbox90 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (vbox90);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "vbox90", vbox90,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox90);
|
||||
gtk_container_add (GTK_CONTAINER (Help_Window), vbox90);
|
||||
|
||||
handlebox1 = gtk_handle_box_new ();
|
||||
gtk_widget_ref (handlebox1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "handlebox1", handlebox1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (handlebox1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox90), handlebox1, FALSE, FALSE, 0);
|
||||
|
||||
help_toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH);
|
||||
gtk_widget_ref (help_toolbar);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "help_toolbar", help_toolbar,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (help_toolbar);
|
||||
gtk_container_add (GTK_CONTAINER (handlebox1), help_toolbar);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (help_toolbar), 2);
|
||||
gtk_toolbar_set_space_style (GTK_TOOLBAR (help_toolbar), GTK_TOOLBAR_SPACE_LINE);
|
||||
gtk_toolbar_set_button_relief (GTK_TOOLBAR (help_toolbar), GTK_RELIEF_NONE);
|
||||
|
||||
help_paned = gtk_hpaned_new ();
|
||||
gtk_widget_ref (help_paned);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "help_paned", help_paned,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (help_paned);
|
||||
gtk_box_pack_start (GTK_BOX (vbox90), help_paned, TRUE, TRUE, 0);
|
||||
gtk_paned_set_gutter_size (GTK_PANED (help_paned), 15);
|
||||
gtk_paned_set_position (GTK_PANED (help_paned), 200);
|
||||
|
||||
notebook3 = gtk_notebook_new ();
|
||||
gtk_widget_ref (notebook3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "notebook3", notebook3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (notebook3);
|
||||
gtk_paned_pack1 (GTK_PANED (help_paned), notebook3, FALSE, TRUE);
|
||||
gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook3), GTK_POS_BOTTOM);
|
||||
|
||||
scrolledwindow15 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_ref (scrolledwindow15);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "scrolledwindow15", scrolledwindow15,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (scrolledwindow15);
|
||||
gtk_container_add (GTK_CONTAINER (notebook3), scrolledwindow15);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow15), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
|
||||
viewport3 = gtk_viewport_new (NULL, NULL);
|
||||
gtk_widget_ref (viewport3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "viewport3", viewport3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (viewport3);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow15), viewport3);
|
||||
|
||||
help_topics_tree = gtk_ctree_new (1, 0);
|
||||
gtk_widget_ref (help_topics_tree);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "help_topics_tree", help_topics_tree,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (help_topics_tree);
|
||||
gtk_container_add (GTK_CONTAINER (viewport3), help_topics_tree);
|
||||
gtk_clist_set_column_width (GTK_CLIST (help_topics_tree), 0, 80);
|
||||
gtk_clist_column_titles_hide (GTK_CLIST (help_topics_tree));
|
||||
|
||||
label847 = gtk_label_new (_("Help Topics"));
|
||||
gtk_widget_ref (label847);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "label847", label847,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label847);
|
||||
gtk_clist_set_column_widget (GTK_CLIST (help_topics_tree), 0, label847);
|
||||
|
||||
label847666 = gtk_label_new (_("Topics"));
|
||||
gtk_widget_ref (label847666);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "label847666", label847666,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label847666);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook3), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook3), 0), label847666);
|
||||
|
||||
frame37 = gtk_frame_new (_("Search GnuCash Help"));
|
||||
gtk_widget_ref (frame37);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "frame37", frame37,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (frame37);
|
||||
gtk_container_add (GTK_CONTAINER (notebook3), frame37);
|
||||
|
||||
vbox91 = gtk_vbox_new (FALSE, 5);
|
||||
gtk_widget_ref (vbox91);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "vbox91", vbox91,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox91);
|
||||
gtk_container_add (GTK_CONTAINER (frame37), vbox91);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (vbox91), 3);
|
||||
|
||||
label849 = gtk_label_new (_("Search Term:"));
|
||||
gtk_widget_ref (label849);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "label849", label849,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label849);
|
||||
gtk_box_pack_start (GTK_BOX (vbox91), label849, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label849), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label849), 7.45058e-09, 0.5);
|
||||
|
||||
help_search_entry = gtk_entry_new ();
|
||||
gtk_widget_ref (help_search_entry);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "help_search_entry", help_search_entry,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (help_search_entry);
|
||||
gtk_box_pack_start (GTK_BOX (vbox91), help_search_entry, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, help_search_entry, _("Type a single term into the box and hit 'search'. At the moment, this search engine does not support complex searches, just single words."), NULL);
|
||||
|
||||
hbox80 = gtk_hbox_new (TRUE, 0);
|
||||
gtk_widget_ref (hbox80);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "hbox80", hbox80,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox80);
|
||||
gtk_box_pack_start (GTK_BOX (vbox91), hbox80, FALSE, FALSE, 0);
|
||||
|
||||
help_search_button = gtk_button_new_with_label (_("Search"));
|
||||
gtk_widget_ref (help_search_button);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "help_search_button", help_search_button,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (help_search_button);
|
||||
gtk_box_pack_start (GTK_BOX (hbox80), help_search_button, TRUE, TRUE, 0);
|
||||
|
||||
help_search_help_button = gtk_button_new_with_label (_("Help"));
|
||||
gtk_widget_ref (help_search_help_button);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "help_search_help_button", help_search_help_button,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (help_search_help_button);
|
||||
gtk_box_pack_start (GTK_BOX (hbox80), help_search_help_button, TRUE, TRUE, 0);
|
||||
|
||||
frame38 = gtk_frame_new (_("Search results"));
|
||||
gtk_widget_ref (frame38);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "frame38", frame38,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (frame38);
|
||||
gtk_box_pack_start (GTK_BOX (vbox91), frame38, TRUE, TRUE, 0);
|
||||
|
||||
scrolledwindow16 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_ref (scrolledwindow16);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "scrolledwindow16", scrolledwindow16,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (scrolledwindow16);
|
||||
gtk_container_add (GTK_CONTAINER (frame38), scrolledwindow16);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow16), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
|
||||
viewport4 = gtk_viewport_new (NULL, NULL);
|
||||
gtk_widget_ref (viewport4);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "viewport4", viewport4,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (viewport4);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow16), viewport4);
|
||||
|
||||
search_results_list = gtk_list_new ();
|
||||
gtk_widget_ref (search_results_list);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "search_results_list", search_results_list,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (search_results_list);
|
||||
gtk_container_add (GTK_CONTAINER (viewport4), search_results_list);
|
||||
|
||||
label848 = gtk_label_new (_("Search"));
|
||||
gtk_widget_ref (label848);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "label848", label848,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label848);
|
||||
gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook3), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook3), 1), label848);
|
||||
|
||||
help_html_vbox = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (help_html_vbox);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "help_html_vbox", help_html_vbox,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (help_html_vbox);
|
||||
gtk_paned_pack2 (GTK_PANED (help_paned), help_html_vbox, TRUE, FALSE);
|
||||
|
||||
statusbar_hbox = gtk_hbox_new (FALSE, 5);
|
||||
gtk_widget_ref (statusbar_hbox);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "statusbar_hbox", statusbar_hbox,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (statusbar_hbox);
|
||||
gtk_box_pack_end (GTK_BOX (help_html_vbox), statusbar_hbox, FALSE, FALSE, 0);
|
||||
|
||||
help_statusbar = gtk_statusbar_new ();
|
||||
gtk_widget_ref (help_statusbar);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Help_Window), "help_statusbar", help_statusbar,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (help_statusbar);
|
||||
gtk_box_pack_end (GTK_BOX (statusbar_hbox), help_statusbar, TRUE, TRUE, 0);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (help_search_button), "clicked",
|
||||
GTK_SIGNAL_FUNC (gnc_help_window_search_button_cb),
|
||||
Help_Window);
|
||||
gtk_signal_connect (GTK_OBJECT (help_search_help_button), "clicked",
|
||||
GTK_SIGNAL_FUNC (gnc_help_window_search_help_button_cb),
|
||||
Help_Window);
|
||||
|
||||
gtk_object_set_data (GTK_OBJECT (Help_Window), "tooltips", tooltips);
|
||||
|
||||
return Help_Window;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
create_Report_Window (void)
|
||||
{
|
||||
GtkWidget *Report_Window;
|
||||
GtkWidget *report_vbox;
|
||||
GtkWidget *handlebox2;
|
||||
GtkWidget *report_toolbar;
|
||||
GtkWidget *report_frame;
|
||||
|
||||
Report_Window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_object_set_data (GTK_OBJECT (Report_Window), "Report_Window", Report_Window);
|
||||
|
||||
report_vbox = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (report_vbox);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Report_Window), "report_vbox", report_vbox,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (report_vbox);
|
||||
gtk_container_add (GTK_CONTAINER (Report_Window), report_vbox);
|
||||
|
||||
handlebox2 = gtk_handle_box_new ();
|
||||
gtk_widget_ref (handlebox2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Report_Window), "handlebox2", handlebox2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (handlebox2);
|
||||
gtk_box_pack_start (GTK_BOX (report_vbox), handlebox2, FALSE, FALSE, 0);
|
||||
|
||||
report_toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH);
|
||||
gtk_widget_ref (report_toolbar);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Report_Window), "report_toolbar", report_toolbar,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (report_toolbar);
|
||||
gtk_container_add (GTK_CONTAINER (handlebox2), report_toolbar);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (report_toolbar), 2);
|
||||
gtk_toolbar_set_space_style (GTK_TOOLBAR (report_toolbar), GTK_TOOLBAR_SPACE_LINE);
|
||||
gtk_toolbar_set_button_relief (GTK_TOOLBAR (report_toolbar), GTK_RELIEF_NONE);
|
||||
|
||||
report_frame = gtk_frame_new (NULL);
|
||||
gtk_widget_ref (report_frame);
|
||||
gtk_object_set_data_full (GTK_OBJECT (Report_Window), "report_frame", report_frame,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (report_frame);
|
||||
gtk_box_pack_start (GTK_BOX (report_vbox), report_frame, TRUE, TRUE, 0);
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (report_frame), GTK_SHADOW_NONE);
|
||||
|
||||
return Report_Window;
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,3 @@ GtkWidget* create_Account_Dialog (void);
|
||||
GtkWidget* create_New_Commodity_Format_Druid (void);
|
||||
GtkWidget* create_QIF_Import_Druid (void);
|
||||
GtkWidget* create_Transfer_Dialog (void);
|
||||
GtkWidget* create_Progress_Dialog (void);
|
||||
GtkWidget* create_Help_Window (void);
|
||||
GtkWidget* create_Report_Window (void);
|
||||
|
@ -1,7 +1,9 @@
|
||||
gladedir = $(GNC_GLADE_DIR)
|
||||
glade_DATA = \
|
||||
commodity.glade \
|
||||
help.glade \
|
||||
price.glade \
|
||||
progress.glade \
|
||||
register.glade \
|
||||
report.glade \
|
||||
stocks.glade \
|
||||
@ -10,11 +12,13 @@ glade_DATA = \
|
||||
|
||||
STRING_FILES = \
|
||||
commodity_strings.c \
|
||||
help_strings.c \
|
||||
price_strings.c \
|
||||
progress_strings.c \
|
||||
register_strings.c \
|
||||
report_strings.c \
|
||||
stocks.glade \
|
||||
tax.glade \
|
||||
stocks_strings.c \
|
||||
tax_strings.c \
|
||||
userpass_strings.c
|
||||
|
||||
EXTRA_DIST = $(glade_DATA) $(STRING_FILES)
|
||||
|
342
src/gnome/glade/help.glade
Normal file
342
src/gnome/glade/help.glade
Normal file
@ -0,0 +1,342 @@
|
||||
<?xml version="1.0"?>
|
||||
<GTK-Interface>
|
||||
|
||||
<project>
|
||||
<name>Glade</name>
|
||||
<program_name>glade</program_name>
|
||||
<directory></directory>
|
||||
<source_directory></source_directory>
|
||||
<pixmaps_directory></pixmaps_directory>
|
||||
<language>C</language>
|
||||
<gnome_support>True</gnome_support>
|
||||
<gettext_support>True</gettext_support>
|
||||
<output_main_file>False</output_main_file>
|
||||
<output_support_files>False</output_support_files>
|
||||
<output_build_files>False</output_build_files>
|
||||
<backup_source_files>False</backup_source_files>
|
||||
<output_translatable_strings>True</output_translatable_strings>
|
||||
<translatable_strings_file>help_strings.c</translatable_strings_file>
|
||||
</project>
|
||||
|
||||
<widget>
|
||||
<class>GtkWindow</class>
|
||||
<name>Help Window</name>
|
||||
<title>GnuCash Help</title>
|
||||
<type>GTK_WINDOW_TOPLEVEL</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>False</modal>
|
||||
<allow_shrink>False</allow_shrink>
|
||||
<allow_grow>True</allow_grow>
|
||||
<auto_shrink>False</auto_shrink>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox90</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
|
||||
<widget>
|
||||
<class>GtkHandleBox</class>
|
||||
<name>handlebox1</name>
|
||||
<shadow_type>GTK_SHADOW_OUT</shadow_type>
|
||||
<handle_position>GTK_POS_LEFT</handle_position>
|
||||
<snap_edge>GTK_POS_TOP</snap_edge>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkToolbar</class>
|
||||
<name>help_toolbar</name>
|
||||
<border_width>2</border_width>
|
||||
<orientation>GTK_ORIENTATION_HORIZONTAL</orientation>
|
||||
<type>GTK_TOOLBAR_BOTH</type>
|
||||
<space_size>5</space_size>
|
||||
<space_style>GTK_TOOLBAR_SPACE_LINE</space_style>
|
||||
<relief>GTK_RELIEF_NONE</relief>
|
||||
<tooltips>True</tooltips>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHPaned</class>
|
||||
<name>help_paned</name>
|
||||
<handle_size>10</handle_size>
|
||||
<gutter_size>15</gutter_size>
|
||||
<position>200</position>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkNotebook</class>
|
||||
<name>notebook3</name>
|
||||
<can_focus>True</can_focus>
|
||||
<show_tabs>True</show_tabs>
|
||||
<show_border>True</show_border>
|
||||
<tab_pos>GTK_POS_BOTTOM</tab_pos>
|
||||
<scrollable>False</scrollable>
|
||||
<tab_hborder>2</tab_hborder>
|
||||
<tab_vborder>2</tab_vborder>
|
||||
<popup_enable>False</popup_enable>
|
||||
<child>
|
||||
<shrink>True</shrink>
|
||||
<resize>False</resize>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkScrolledWindow</class>
|
||||
<name>scrolledwindow15</name>
|
||||
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
|
||||
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
|
||||
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
||||
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
||||
|
||||
<widget>
|
||||
<class>GtkViewport</class>
|
||||
<name>viewport3</name>
|
||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkCTree</class>
|
||||
<name>help_topics_tree</name>
|
||||
<can_focus>True</can_focus>
|
||||
<columns>1</columns>
|
||||
<column_widths>80</column_widths>
|
||||
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
|
||||
<show_titles>False</show_titles>
|
||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<child_name>CTree:title</child_name>
|
||||
<name>label847</name>
|
||||
<label>Help Topics</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<child_name>Notebook:tab</child_name>
|
||||
<name>label847666</name>
|
||||
<label>Topics</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkFrame</class>
|
||||
<name>frame37</name>
|
||||
<label>Search GnuCash Help</label>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox91</name>
|
||||
<border_width>3</border_width>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>5</spacing>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label849</name>
|
||||
<label>Search Term:</label>
|
||||
<justify>GTK_JUSTIFY_LEFT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>7.45058e-09</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>help_search_entry</name>
|
||||
<tooltip>Type a single term into the box and hit 'search'. At the moment, this search engine does not support complex searches, just single words.</tooltip>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox80</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>help_search_button</name>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_help_window_search_button_cb</handler>
|
||||
<data>Help_Window</data>
|
||||
<last_modification_time>Fri, 15 Dec 2000 18:13:53 GMT</last_modification_time>
|
||||
</signal>
|
||||
<label>Search</label>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>help_search_help_button</name>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_help_window_search_help_button_cb</handler>
|
||||
<data>Help_Window</data>
|
||||
<last_modification_time>Fri, 15 Dec 2000 18:14:21 GMT</last_modification_time>
|
||||
</signal>
|
||||
<label>Help</label>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkFrame</class>
|
||||
<name>frame38</name>
|
||||
<label>Search results</label>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkScrolledWindow</class>
|
||||
<name>scrolledwindow16</name>
|
||||
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
|
||||
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
|
||||
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
||||
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
||||
|
||||
<widget>
|
||||
<class>GtkViewport</class>
|
||||
<name>viewport4</name>
|
||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkList</class>
|
||||
<name>search_results_list</name>
|
||||
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<child_name>Notebook:tab</child_name>
|
||||
<name>label848</name>
|
||||
<label>Search</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>help_html_vbox</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<shrink>False</shrink>
|
||||
<resize>True</resize>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>statusbar_hbox</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>5</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
<pack>GTK_PACK_END</pack>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkStatusbar</class>
|
||||
<name>help_statusbar</name>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
<pack>GTK_PACK_END</pack>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
</GTK-Interface>
|
16
src/gnome/glade/help_strings.c
Normal file
16
src/gnome/glade/help_strings.c
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Translatable strings file generated by Glade.
|
||||
* Add this file to your project's POTFILES.in.
|
||||
* DO NOT compile it as part of your application.
|
||||
*/
|
||||
|
||||
gchar *s = N_("GnuCash Help");
|
||||
gchar *s = N_("Help Topics");
|
||||
gchar *s = N_("Topics");
|
||||
gchar *s = N_("Search GnuCash Help");
|
||||
gchar *s = N_("Search Term:");
|
||||
gchar *s = N_("Type a single term into the box and hit 'search'. At the moment, this search engine does not support complex searches, just single words.");
|
||||
gchar *s = N_("Search");
|
||||
gchar *s = N_("Help");
|
||||
gchar *s = N_("Search results");
|
||||
gchar *s = N_("Search");
|
112
src/gnome/glade/progress.glade
Normal file
112
src/gnome/glade/progress.glade
Normal file
@ -0,0 +1,112 @@
|
||||
<?xml version="1.0"?>
|
||||
<GTK-Interface>
|
||||
|
||||
<project>
|
||||
<name>Glade</name>
|
||||
<program_name>glade</program_name>
|
||||
<directory></directory>
|
||||
<source_directory></source_directory>
|
||||
<pixmaps_directory></pixmaps_directory>
|
||||
<language>C</language>
|
||||
<gnome_support>True</gnome_support>
|
||||
<gettext_support>True</gettext_support>
|
||||
<output_main_file>False</output_main_file>
|
||||
<output_support_files>False</output_support_files>
|
||||
<output_build_files>False</output_build_files>
|
||||
<backup_source_files>False</backup_source_files>
|
||||
<output_translatable_strings>True</output_translatable_strings>
|
||||
<translatable_strings_file>progress_strings.c</translatable_strings_file>
|
||||
</project>
|
||||
|
||||
<widget>
|
||||
<class>GtkWindow</class>
|
||||
<name>Progress Dialog</name>
|
||||
<title>Working...</title>
|
||||
<type>GTK_WINDOW_DIALOG</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>True</modal>
|
||||
<allow_shrink>False</allow_shrink>
|
||||
<allow_grow>False</allow_grow>
|
||||
<auto_shrink>False</auto_shrink>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox85</name>
|
||||
<border_width>5</border_width>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>5</spacing>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>heading_label</name>
|
||||
<label>Heading</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkProgressBar</class>
|
||||
<name>progress_bar</name>
|
||||
<value>0</value>
|
||||
<lower>0</lower>
|
||||
<upper>100</upper>
|
||||
<bar_style>GTK_PROGRESS_CONTINUOUS</bar_style>
|
||||
<orientation>GTK_PROGRESS_LEFT_TO_RIGHT</orientation>
|
||||
<activity_mode>False</activity_mode>
|
||||
<show_text>True</show_text>
|
||||
<format>%P %%</format>
|
||||
<text_xalign>0.5</text_xalign>
|
||||
<text_yalign>0.5</text_yalign>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHButtonBox</class>
|
||||
<name>hbuttonbox3</name>
|
||||
<layout_style>GTK_BUTTONBOX_DEFAULT_STYLE</layout_style>
|
||||
<spacing>30</spacing>
|
||||
<child_min_width>85</child_min_width>
|
||||
<child_min_height>27</child_min_height>
|
||||
<child_ipad_x>7</child_ipad_x>
|
||||
<child_ipad_y>0</child_ipad_y>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>ok_button</name>
|
||||
<sensitive>False</sensitive>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>cancel_button</name>
|
||||
<visible>False</visible>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
</GTK-Interface>
|
9
src/gnome/glade/progress_strings.c
Normal file
9
src/gnome/glade/progress_strings.c
Normal file
@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Translatable strings file generated by Glade.
|
||||
* Add this file to your project's POTFILES.in.
|
||||
* DO NOT compile it as part of your application.
|
||||
*/
|
||||
|
||||
gchar *s = N_("Working...");
|
||||
gchar *s = N_("Heading");
|
||||
gchar *s = N_("%P %%");
|
@ -8023,488 +8023,4 @@ Click "Cancel" to abort the QIF import process.</text>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkWindow</class>
|
||||
<name>Progress Dialog</name>
|
||||
<title>Working...</title>
|
||||
<type>GTK_WINDOW_DIALOG</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>True</modal>
|
||||
<allow_shrink>False</allow_shrink>
|
||||
<allow_grow>False</allow_grow>
|
||||
<auto_shrink>False</auto_shrink>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox85</name>
|
||||
<border_width>5</border_width>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>5</spacing>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>heading_label</name>
|
||||
<label>Heading</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkProgressBar</class>
|
||||
<name>progress_bar</name>
|
||||
<value>0</value>
|
||||
<lower>0</lower>
|
||||
<upper>100</upper>
|
||||
<bar_style>GTK_PROGRESS_CONTINUOUS</bar_style>
|
||||
<orientation>GTK_PROGRESS_LEFT_TO_RIGHT</orientation>
|
||||
<activity_mode>False</activity_mode>
|
||||
<show_text>True</show_text>
|
||||
<format>%P %%</format>
|
||||
<text_xalign>0.5</text_xalign>
|
||||
<text_yalign>0.5</text_yalign>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHButtonBox</class>
|
||||
<name>hbuttonbox3</name>
|
||||
<layout_style>GTK_BUTTONBOX_DEFAULT_STYLE</layout_style>
|
||||
<spacing>30</spacing>
|
||||
<child_min_width>85</child_min_width>
|
||||
<child_min_height>27</child_min_height>
|
||||
<child_ipad_x>7</child_ipad_x>
|
||||
<child_ipad_y>0</child_ipad_y>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>ok_button</name>
|
||||
<sensitive>False</sensitive>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>cancel_button</name>
|
||||
<visible>False</visible>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkWindow</class>
|
||||
<name>Help Window</name>
|
||||
<title>GnuCash Help</title>
|
||||
<type>GTK_WINDOW_TOPLEVEL</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>False</modal>
|
||||
<allow_shrink>False</allow_shrink>
|
||||
<allow_grow>True</allow_grow>
|
||||
<auto_shrink>False</auto_shrink>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox90</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
|
||||
<widget>
|
||||
<class>GtkHandleBox</class>
|
||||
<name>handlebox1</name>
|
||||
<shadow_type>GTK_SHADOW_OUT</shadow_type>
|
||||
<handle_position>GTK_POS_LEFT</handle_position>
|
||||
<snap_edge>GTK_POS_TOP</snap_edge>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkToolbar</class>
|
||||
<name>help_toolbar</name>
|
||||
<border_width>2</border_width>
|
||||
<orientation>GTK_ORIENTATION_HORIZONTAL</orientation>
|
||||
<type>GTK_TOOLBAR_BOTH</type>
|
||||
<space_size>5</space_size>
|
||||
<space_style>GTK_TOOLBAR_SPACE_LINE</space_style>
|
||||
<relief>GTK_RELIEF_NONE</relief>
|
||||
<tooltips>True</tooltips>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHPaned</class>
|
||||
<name>help_paned</name>
|
||||
<handle_size>10</handle_size>
|
||||
<gutter_size>15</gutter_size>
|
||||
<position>200</position>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkNotebook</class>
|
||||
<name>notebook3</name>
|
||||
<can_focus>True</can_focus>
|
||||
<show_tabs>True</show_tabs>
|
||||
<show_border>True</show_border>
|
||||
<tab_pos>GTK_POS_BOTTOM</tab_pos>
|
||||
<scrollable>False</scrollable>
|
||||
<tab_hborder>2</tab_hborder>
|
||||
<tab_vborder>2</tab_vborder>
|
||||
<popup_enable>False</popup_enable>
|
||||
<child>
|
||||
<shrink>True</shrink>
|
||||
<resize>False</resize>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkScrolledWindow</class>
|
||||
<name>scrolledwindow15</name>
|
||||
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
|
||||
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
|
||||
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
||||
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
||||
|
||||
<widget>
|
||||
<class>GtkViewport</class>
|
||||
<name>viewport3</name>
|
||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkCTree</class>
|
||||
<name>help_topics_tree</name>
|
||||
<can_focus>True</can_focus>
|
||||
<columns>1</columns>
|
||||
<column_widths>80</column_widths>
|
||||
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
|
||||
<show_titles>False</show_titles>
|
||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<child_name>CTree:title</child_name>
|
||||
<name>label847</name>
|
||||
<label>Help Topics</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<child_name>Notebook:tab</child_name>
|
||||
<name>label847666</name>
|
||||
<label>Topics</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkFrame</class>
|
||||
<name>frame37</name>
|
||||
<label>Search GnuCash Help</label>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox91</name>
|
||||
<border_width>3</border_width>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>5</spacing>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label849</name>
|
||||
<label>Search Term:</label>
|
||||
<justify>GTK_JUSTIFY_LEFT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>7.45058e-09</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>help_search_entry</name>
|
||||
<tooltip>Type a single term into the box and hit 'search'. At the moment, this search engine does not support complex searches, just single words.</tooltip>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox80</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>help_search_button</name>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_help_window_search_button_cb</handler>
|
||||
<data>Help_Window</data>
|
||||
<last_modification_time>Fri, 15 Dec 2000 18:13:53 GMT</last_modification_time>
|
||||
</signal>
|
||||
<label>Search</label>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>help_search_help_button</name>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_help_window_search_help_button_cb</handler>
|
||||
<data>Help_Window</data>
|
||||
<last_modification_time>Fri, 15 Dec 2000 18:14:21 GMT</last_modification_time>
|
||||
</signal>
|
||||
<label>Help</label>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkFrame</class>
|
||||
<name>frame38</name>
|
||||
<label>Search results</label>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkScrolledWindow</class>
|
||||
<name>scrolledwindow16</name>
|
||||
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
|
||||
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
|
||||
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
||||
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
||||
|
||||
<widget>
|
||||
<class>GtkViewport</class>
|
||||
<name>viewport4</name>
|
||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkList</class>
|
||||
<name>search_results_list</name>
|
||||
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<child_name>Notebook:tab</child_name>
|
||||
<name>label848</name>
|
||||
<label>Search</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>help_html_vbox</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<shrink>False</shrink>
|
||||
<resize>True</resize>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>statusbar_hbox</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>5</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
<pack>GTK_PACK_END</pack>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkStatusbar</class>
|
||||
<name>help_statusbar</name>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
<pack>GTK_PACK_END</pack>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkWindow</class>
|
||||
<name>Report Window</name>
|
||||
<title></title>
|
||||
<type>GTK_WINDOW_TOPLEVEL</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>False</modal>
|
||||
<allow_shrink>False</allow_shrink>
|
||||
<allow_grow>True</allow_grow>
|
||||
<auto_shrink>False</auto_shrink>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>report_vbox</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
|
||||
<widget>
|
||||
<class>GtkHandleBox</class>
|
||||
<name>handlebox2</name>
|
||||
<shadow_type>GTK_SHADOW_OUT</shadow_type>
|
||||
<handle_position>GTK_POS_LEFT</handle_position>
|
||||
<snap_edge>GTK_POS_TOP</snap_edge>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkToolbar</class>
|
||||
<name>report_toolbar</name>
|
||||
<border_width>2</border_width>
|
||||
<orientation>GTK_ORIENTATION_HORIZONTAL</orientation>
|
||||
<type>GTK_TOOLBAR_BOTH</type>
|
||||
<space_size>5</space_size>
|
||||
<space_style>GTK_TOOLBAR_SPACE_LINE</space_style>
|
||||
<relief>GTK_RELIEF_NONE</relief>
|
||||
<tooltips>True</tooltips>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkFrame</class>
|
||||
<name>report_frame</name>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_NONE</shadow_type>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>Placeholder</class>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
</GTK-Interface>
|
||||
|
@ -65,8 +65,6 @@
|
||||
|
||||
#include "File.h"
|
||||
#include "dialog-utils.h"
|
||||
#include "glade-cb-gnc-dialogs.h"
|
||||
#include "glade-gnc-dialogs.h"
|
||||
#include "gnc-component-manager.h"
|
||||
#include "gnc-engine-util.h"
|
||||
#include "gnc-html-history.h"
|
||||
@ -524,10 +522,9 @@ show_search_results(gnc_help_window * help, const char * matches,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_help_window_search_button_cb(GtkButton * button, gpointer data) {
|
||||
GtkObject * hw = data;
|
||||
gnc_help_window * help = gtk_object_get_data(hw, "help_window_struct");
|
||||
gnc_help_window * help = data;
|
||||
char * search_string =
|
||||
gtk_entry_get_text(GTK_ENTRY(help->search_entry));
|
||||
DBT key, value;
|
||||
@ -551,11 +548,10 @@ gnc_help_window_search_button_cb(GtkButton * button, gpointer data) {
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_help_window_search_help_button_cb(GtkButton * button, gpointer data) {
|
||||
#if 0
|
||||
GtkObject * hw = data;
|
||||
gnc_help_window * help = gtk_object_get_data(hw, "help_window_struct");
|
||||
gnc_help_window * help = data;
|
||||
#endif
|
||||
|
||||
printf("help on help\n");
|
||||
@ -591,7 +587,6 @@ gnc_help_window *
|
||||
gnc_help_window_new (void) {
|
||||
|
||||
gnc_help_window * help = g_new0(gnc_help_window, 1);
|
||||
GtkObject * tlo;
|
||||
char * indexfile;
|
||||
GnomeUIInfo toolbar_data[] =
|
||||
{
|
||||
@ -663,25 +658,33 @@ gnc_help_window_new (void) {
|
||||
},
|
||||
GNOMEUIINFO_END
|
||||
};
|
||||
|
||||
help->toplevel = create_Help_Window();
|
||||
tlo = GTK_OBJECT(help->toplevel);
|
||||
GladeXML *xml;
|
||||
|
||||
xml = gnc_glade_xml_new ("help.glade", "Help Window");
|
||||
|
||||
help->toplevel = glade_xml_get_widget (xml, "Help Window");
|
||||
|
||||
gnc_register_gui_component (WINDOW_HELP_CM_CLASS, NULL, close_handler, help);
|
||||
|
||||
help->toolbar = gtk_object_get_data(tlo, "help_toolbar");
|
||||
help->statusbar = gtk_object_get_data(tlo, "help_statusbar");
|
||||
help->statusbar_hbox = gtk_object_get_data(tlo, "statusbar_hbox");
|
||||
help->html_vbox = gtk_object_get_data(tlo, "help_html_vbox");
|
||||
help->topics_tree = gtk_object_get_data(tlo, "help_topics_tree");
|
||||
help->paned = gtk_object_get_data(tlo, "help_paned");
|
||||
help->search_entry = gtk_object_get_data(tlo, "help_search_entry");
|
||||
help->search_results = gtk_object_get_data(tlo, "search_results_list");
|
||||
help->type_pixmap = gtk_object_get_data(tlo, "file_type_pixmap");
|
||||
|
||||
help->toolbar = glade_xml_get_widget (xml, "help_toolbar");
|
||||
help->statusbar = glade_xml_get_widget (xml, "help_statusbar");
|
||||
help->statusbar_hbox = glade_xml_get_widget (xml, "statusbar_hbox");
|
||||
help->html_vbox = glade_xml_get_widget (xml, "help_html_vbox");
|
||||
help->topics_tree = glade_xml_get_widget (xml, "help_topics_tree");
|
||||
help->paned = glade_xml_get_widget (xml, "help_paned");
|
||||
help->search_entry = glade_xml_get_widget (xml, "help_search_entry");
|
||||
help->search_results = glade_xml_get_widget (xml, "search_results_list");
|
||||
help->type_pixmap = glade_xml_get_widget (xml, "file_type_pixmap");
|
||||
|
||||
help->html = gnc_html_new();
|
||||
|
||||
gtk_object_set_data(tlo, "help_window_struct", (gpointer)help);
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_help_window_search_button_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_help_window_search_button_cb), help);
|
||||
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_help_window_search_help_button_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_help_window_search_help_button_cb), help);
|
||||
|
||||
gnome_app_fill_toolbar(GTK_TOOLBAR(help->toolbar), toolbar_data, NULL);
|
||||
gtk_box_pack_start(GTK_BOX(help->html_vbox),
|
||||
|
@ -71,8 +71,7 @@
|
||||
(N_ "Test progress dialog")
|
||||
(list "Extensions" "")
|
||||
(lambda ()
|
||||
(let ((dialog (gnc:progress-dialog-new
|
||||
(gnc:get-ui-data) #f))
|
||||
(let ((dialog (gnc:progress-dialog-new #f #f))
|
||||
(canceled #f))
|
||||
(gnc:progress-dialog-set-activity-mode dialog #t)
|
||||
(gnc:progress-dialog-set-heading dialog #f)
|
||||
|
Loading…
Reference in New Issue
Block a user