Files linked to assistant-acct-period.glade

This commit is contained in:
Robert Fewell 2017-06-21 17:51:53 +01:00
parent ff70c67e56
commit e2592baef1
2 changed files with 42 additions and 30 deletions

View File

@ -26,7 +26,7 @@
* This is still a work in progress so may damage your data, to enable *
* for testing do the following :- *
* Add a define entry to gnc-plugin-basic-commands.c as below *
* #define CLOSE_BOOKS_ACTUALLY_WORKS *
* #define CLOSE_BOOKS_ACTUALLY_WORKS 1 *
* *
* Add the following to gnc-plugin-basic-commands-ui.xml on line 43 *
* <menuitem name="ActionsCloseBooks" action="ActionsCloseBooksAction"/> *
@ -541,8 +541,8 @@ ap_assistant_create (AcctPeriodInfo *info)
GtkWidget *box;
builder = gtk_builder_new();
gnc_builder_add_from_file (builder , "assistant-acct-period.glade", "Account Period Assistant");
window = GTK_WIDGET(gtk_builder_get_object (builder, "Account Period Assistant"));
gnc_builder_add_from_file (builder , "assistant-acct-period.glade", "account_period_assistant");
window = GTK_WIDGET(gtk_builder_get_object (builder, "account_period_assistant"));
info->window = window;
/* Enable all pages except menu page. */

View File

@ -1,14 +1,15 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkAssistant" id="Account Period Assistant">
<requires lib="gtk+" version="3.10"/>
<object class="GtkAssistant" id="account_period_assistant">
<property name="can_focus">False</property>
<property name="border_width">12</property>
<signal name="close" handler="ap_assistant_close" swapped="no"/>
<property name="default_width">500</property>
<signal name="apply" handler="ap_assistant_finish" swapped="no"/>
<signal name="prepare" handler="ap_assistant_prepare" swapped="no"/>
<signal name="cancel" handler="ap_assistant_cancel" swapped="no"/>
<signal name="close" handler="ap_assistant_close" swapped="no"/>
<signal name="prepare" handler="ap_assistant_prepare" swapped="no"/>
<child>
<object class="GtkLabel" id="start_page">
<property name="visible">True</property>
@ -22,12 +23,14 @@ Danger: this feature does not work correctly at this time; it is still under dev
<property name="page_type">intro</property>
<property name="title" translatable="yes">Setup Account Period</property>
<property name="complete">True</property>
<property name="has_padding">False</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="menu_page">
<object class="GtkBox" id="menu_page">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="menu_label">
<property name="visible">True</property>
@ -46,7 +49,7 @@ Books will be closed at midnight on the selected date.</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="period_hbox">
<object class="GtkBox" id="period_hbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">12</property>
@ -77,12 +80,14 @@ Books will be closed at midnight on the selected date.</property>
</object>
<packing>
<property name="title" translatable="yes">Book Closing Dates</property>
<property name="has_padding">False</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="book_page">
<object class="GtkBox" id="book_page">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="book_label">
<property name="visible">True</property>
@ -92,7 +97,7 @@ Books will be closed at midnight on the selected date.</property>
<property name="wrap">True</property>
</object>
<packing>
<property name="expand">True</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
@ -106,26 +111,26 @@ Books will be closed at midnight on the selected date.</property>
<property name="wrap">True</property>
</object>
<packing>
<property name="expand">True</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkTable" id="book_table">
<object class="GtkGrid" id="book_table">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="n_rows">2</property>
<property name="n_columns">2</property>
<child>
<object class="GtkLabel" id="book_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">False</property>
<property name="label" translatable="yes">Title:</property>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
@ -136,17 +141,16 @@ Books will be closed at midnight on the selected date.</property>
<property name="wrap">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">GTK_FILL</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
<property name="vscrollbar_policy">automatic</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkTextView" id="book_notes_view">
<property name="visible">True</property>
@ -158,25 +162,21 @@ Books will be closed at midnight on the selected date.</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="book_title_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>
<property name="hexpand">True</property>
<property name="invisible_char">●</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<property name="primary_icon_sensitive">True</property>
<property name="secondary_icon_sensitive">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="y_options"></property>
<property name="top_attach">0</property>
</packing>
</child>
</object>
@ -189,6 +189,7 @@ Books will be closed at midnight on the selected date.</property>
</object>
<packing>
<property name="title" translatable="yes">Close Book</property>
<property name="has_padding">False</property>
</packing>
</child>
<child>
@ -202,12 +203,14 @@ Books will be closed at midnight on the selected date.</property>
<packing>
<property name="page_type">confirm</property>
<property name="title" translatable="yes">Account Period Finish</property>
<property name="has_padding">False</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="summary_page">
<object class="GtkBox" id="summary_page">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="summary_label">
<property name="visible">True</property>
@ -239,10 +242,19 @@ Books will be closed at midnight on the selected date.</property>
<property name="page_type">summary</property>
<property name="title" translatable="yes">Summary Page</property>
<property name="complete">True</property>
<property name="has_padding">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child internal-child="action_area">
<object class="GtkBox" id="assistant-action_area2">
<property name="can_focus">False</property>
</object>
<packing>
<property name="has_padding">False</property>
</packing>
</child>
</object>
</interface>