2001-05-20 Dave Peticolas <dave@krondo.com>

* src/gnome/new-user-funs.h: add api & glade work for new
	user choices dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4249 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldreleases/1.6
Dave Peticolas 25 years ago
parent fb258f4b78
commit 8e9e884aa4

@ -1,13 +1,18 @@
2001-05-20 Dave Peticolas <dave@krondo.com>
* src/gnome/new-user-funs.h: add api & glade work for new
user choices dialog.
2001-05-21 Robert Graham Merkel <rgmerk@mira.net>
* doc/sgml/C/xacc-multicolumn-view-reports.sgml: preliminary description.
* doc/sgml/C/xacc-multicolumn-view-reports.sgml: preliminary
description.
* doc/sgml/C/xacc-report.sgml, xacc-balancesheet.sgml,
xacc-asset-liability-piecharts.sgml : more updates.
* src/scm/tip-list.scm: more tips.
2001-05-19 Dave Peticolas <dave@krondo.com>
* src/engine/sixtp.c (gnc_is_our_xml_file): fix mem leak
@ -31,7 +36,8 @@
pointer to NULL
(xaccAccountRemoveGroup): set parent's child pointer to NULL
* src/engine/sixtp-dom-parsers.c (dom_tree_to_integer): fix mem leak
* src/engine/sixtp-dom-parsers.c (dom_tree_to_integer): fix mem
leak
2001-05-18 James LewisMoss <jimdres@mindspring.com>

@ -32,6 +32,8 @@
int gnc_ui_show_new_user_window(void);
int gnc_ui_delete_new_user_window(void);
int gnc_ui_show_new_user_choice_window(void);
int gnc_ui_show_nu_cancel_dialog(void);
int gnc_ui_delete_nu_cancel_dialog(void);

@ -105,7 +105,7 @@ create_newUserDialog (void)
gnome_druid_page_start_set_logo_bg_color (GNOME_DRUID_PAGE_START (newUserStartPage), &newUserStartPage_logo_bg_color);
gnome_druid_page_start_set_title_color (GNOME_DRUID_PAGE_START (newUserStartPage), &newUserStartPage_title_color);
gnome_druid_page_start_set_title (GNOME_DRUID_PAGE_START (newUserStartPage), _("New Account List Setup"));
gnome_druid_page_start_set_text (GNOME_DRUID_PAGE_START (newUserStartPage), _("This wizard will help you to set up a default set of accounts to use. If this is the first\ntime you have run GnuCash this dialog will appear. If you choose New File in the\nFile menu this dialog will also appear unless you have set the \"No account list setup\non new file\" option."));
gnome_druid_page_start_set_text (GNOME_DRUID_PAGE_START (newUserStartPage), _("This wizard will help you to set up a default set of accounts to use. This wizard\nwill appear If you choose New File in the File menu unless you have set the\n\"No account list setup on new file\" option in the Preferences window."));
newAccountCurrencyChoosePage = gnome_druid_page_standard_new_with_vals ("", NULL);
gtk_widget_set_name (newAccountCurrencyChoosePage, "newAccountCurrencyChoosePage");
@ -543,3 +543,100 @@ create_addAccountCancelDialog (void)
return addAccountCancelDialog;
}
GtkWidget*
create_newUserChoiceWindow (void)
{
GtkWidget *newUserChoiceWindow;
GtkWidget *dialog_vbox1;
GtkWidget *frame4;
GtkWidget *vbox6;
GSList *new_user_group_group = NULL;
GtkWidget *radiobutton1;
GtkWidget *radiobutton2;
GtkWidget *radiobutton3;
GtkWidget *dialog_action_area2;
GtkWidget *button1;
GtkWidget *button3;
newUserChoiceWindow = gnome_dialog_new (_("Welcome to GnuCash 1.6!"), NULL);
gtk_widget_set_name (newUserChoiceWindow, "newUserChoiceWindow");
gtk_object_set_data (GTK_OBJECT (newUserChoiceWindow), "newUserChoiceWindow", newUserChoiceWindow);
gtk_window_set_policy (GTK_WINDOW (newUserChoiceWindow), FALSE, FALSE, FALSE);
dialog_vbox1 = GNOME_DIALOG (newUserChoiceWindow)->vbox;
gtk_widget_set_name (dialog_vbox1, "dialog_vbox1");
gtk_object_set_data (GTK_OBJECT (newUserChoiceWindow), "dialog_vbox1", dialog_vbox1);
gtk_widget_show (dialog_vbox1);
frame4 = gtk_frame_new (NULL);
gtk_widget_set_name (frame4, "frame4");
gtk_widget_ref (frame4);
gtk_object_set_data_full (GTK_OBJECT (newUserChoiceWindow), "frame4", frame4,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (frame4);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame4, FALSE, FALSE, 0);
vbox6 = gtk_vbox_new (FALSE, 0);
gtk_widget_set_name (vbox6, "vbox6");
gtk_widget_ref (vbox6);
gtk_object_set_data_full (GTK_OBJECT (newUserChoiceWindow), "vbox6", vbox6,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox6);
gtk_container_add (GTK_CONTAINER (frame4), vbox6);
gtk_container_set_border_width (GTK_CONTAINER (vbox6), 3);
radiobutton1 = gtk_radio_button_new_with_label (new_user_group_group, _("Create a new set of accounts"));
new_user_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (radiobutton1));
gtk_widget_set_name (radiobutton1, "radiobutton1");
gtk_widget_ref (radiobutton1);
gtk_object_set_data_full (GTK_OBJECT (newUserChoiceWindow), "radiobutton1", radiobutton1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (radiobutton1);
gtk_box_pack_start (GTK_BOX (vbox6), radiobutton1, FALSE, FALSE, 0);
radiobutton2 = gtk_radio_button_new_with_label (new_user_group_group, _("Import my QIF files"));
new_user_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (radiobutton2));
gtk_widget_set_name (radiobutton2, "radiobutton2");
gtk_widget_ref (radiobutton2);
gtk_object_set_data_full (GTK_OBJECT (newUserChoiceWindow), "radiobutton2", radiobutton2,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (radiobutton2);
gtk_box_pack_start (GTK_BOX (vbox6), radiobutton2, FALSE, FALSE, 0);
radiobutton3 = gtk_radio_button_new_with_label (new_user_group_group, _("Open the new user tutorial"));
new_user_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (radiobutton3));
gtk_widget_set_name (radiobutton3, "radiobutton3");
gtk_widget_ref (radiobutton3);
gtk_object_set_data_full (GTK_OBJECT (newUserChoiceWindow), "radiobutton3", radiobutton3,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (radiobutton3);
gtk_box_pack_start (GTK_BOX (vbox6), radiobutton3, FALSE, FALSE, 0);
dialog_action_area2 = GNOME_DIALOG (newUserChoiceWindow)->action_area;
gtk_widget_set_name (dialog_action_area2, "dialog_action_area2");
gtk_object_set_data (GTK_OBJECT (newUserChoiceWindow), "dialog_action_area2", dialog_action_area2);
gtk_widget_show (dialog_action_area2);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area2), 8);
gnome_dialog_append_button (GNOME_DIALOG (newUserChoiceWindow), GNOME_STOCK_BUTTON_OK);
button1 = GTK_WIDGET (g_list_last (GNOME_DIALOG (newUserChoiceWindow)->buttons)->data);
gtk_widget_set_name (button1, "button1");
gtk_widget_ref (button1);
gtk_object_set_data_full (GTK_OBJECT (newUserChoiceWindow), "button1", button1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (button1);
GTK_WIDGET_SET_FLAGS (button1, GTK_CAN_DEFAULT);
gnome_dialog_append_button (GNOME_DIALOG (newUserChoiceWindow), GNOME_STOCK_BUTTON_CANCEL);
button3 = GTK_WIDGET (g_list_last (GNOME_DIALOG (newUserChoiceWindow)->buttons)->data);
gtk_widget_set_name (button3, "button3");
gtk_widget_ref (button3);
gtk_object_set_data_full (GTK_OBJECT (newUserChoiceWindow), "button3", button3,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (button3);
GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);
return newUserChoiceWindow;
}

@ -4,3 +4,4 @@
GtkWidget* create_newUserDialog (void);
GtkWidget* create_addAccountCancelDialog (void);
GtkWidget* create_newUserChoiceWindow (void);

@ -55,10 +55,9 @@
<last_modification_time>Tue, 09 Jan 2001 18:04:50 GMT</last_modification_time>
</signal>
<title>New Account List Setup</title>
<text>This wizard will help you to set up a default set of accounts to use. If this is the first
time you have run GnuCash this dialog will appear. If you choose New File in the
File menu this dialog will also appear unless you have set the &quot;No account list setup
on new file&quot; option.</text>
<text>This wizard will help you to set up a default set of accounts to use. This wizard
will appear If you choose New File in the File menu unless you have set the
&quot;No account list setup on new file&quot; option in the Preferences window.</text>
<title_color>255,255,255</title_color>
<text_color>0,0,0</text_color>
<background_color>25,25,112</background_color>
@ -665,4 +664,130 @@ on new file&quot; option.</text>
</widget>
</widget>
<widget>
<class>GnomeDialog</class>
<name>newUserChoiceWindow</name>
<title>Welcome to GnuCash 1.6!</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>False</allow_grow>
<auto_shrink>False</auto_shrink>
<auto_close>False</auto_close>
<hide_on_close>False</hide_on_close>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDialog:vbox</child_name>
<name>dialog-vbox1</name>
<homogeneous>False</homogeneous>
<spacing>8</spacing>
<child>
<padding>4</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkHButtonBox</class>
<child_name>GnomeDialog:action_area</child_name>
<name>dialog-action_area2</name>
<layout_style>GTK_BUTTONBOX_END</layout_style>
<spacing>8</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>False</expand>
<fill>True</fill>
<pack>GTK_PACK_END</pack>
</child>
<widget>
<class>GtkButton</class>
<name>button1</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
</widget>
<widget>
<class>GtkButton</class>
<name>button3</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>frame4</name>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox6</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<widget>
<class>GtkRadioButton</class>
<name>radiobutton1</name>
<can_focus>True</can_focus>
<label>Create a new set of accounts</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>new_user_group</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkRadioButton</class>
<name>radiobutton2</name>
<can_focus>True</can_focus>
<label>Import my QIF files</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>new_user_group</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkRadioButton</class>
<name>radiobutton3</name>
<can_focus>True</can_focus>
<label>Open the new user tutorial</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>new_user_group</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
</widget>
</widget>
</GTK-Interface>

Loading…
Cancel
Save