[Gnucash-changes] Remove duplicate source files and implement the
"format" provider.
Derek Atkins
warlord at cvs.gnucash.org
Sat Apr 10 14:43:52 EDT 2004
Log Message:
-----------
Remove duplicate source files and implement the "format" provider.
* src/app-utils/gnc-druid-provider-desc.h: add a comment about
the callback functions.
* src/import-export/Makefile.am: remove duplicate files, add
import format gnome provider.
* src/import-export/gnc-import-format-gnome.c: add a new format
provider to let the user choose a date or numeric format.
* src/import-export/import-provider-format.glade: glade file
for the format provider
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash:
ChangeLog
gnucash/src/app-utils:
gnc-druid-provider-desc.h
gnucash/src/import-export:
Makefile.am
Added Files:
-----------
gnucash/src/import-export:
gnc-import-format-gnome.c
gnc-import-format-gnome.h
import-provider-format.glade
Removed Files:
-------------
gnucash/src/import-export:
import-prov-desc-format.c
import-prov-desc-format.h
import-prov-format-cb.c
import-prov-format-cb.h
Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.118
retrieving revision 1.1487.2.119
diff -LChangeLog -LChangeLog -u -r1.1487.2.118 -r1.1487.2.119
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,14 @@
+2004-04-10 Derek Atkins <derek at ihtfp.com>
+
+ * src/app-utils/gnc-druid-provider-desc.h: add a comment about
+ the callback functions.
+ * src/import-export/Makefile.am: remove duplicate files, add
+ import format gnome provider.
+ * src/import-export/gnc-import-format-gnome.c: add a new format
+ provider to let the user choose a date or numeric format.
+ * src/import-export/import-provider-format.glade: glade file
+ for the format provider
+
2004-03-05 Tomas Cernaj <tcernaj at gmx.de>
* src/register/register-gnome/gnucash-grid.c:
Index: gnc-druid-provider-desc.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/app-utils/Attic/gnc-druid-provider-desc.h,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -Lsrc/app-utils/gnc-druid-provider-desc.h -Lsrc/app-utils/gnc-druid-provider-desc.h -u -r1.1.2.4 -r1.1.2.5
--- src/app-utils/gnc-druid-provider-desc.h
+++ src/app-utils/gnc-druid-provider-desc.h
@@ -22,6 +22,7 @@
#include "gnc-druid.h"
#include "gnc-druid-provider.h"
+/* return TRUE if the page should be changed, FALSE if it should not */
typedef gboolean (*GNCDruidProviderCB)(GNCDruidCB*);
struct _GNCDruidProviderDesc
--- /dev/null
+++ src/import-export/gnc-import-format-gnome.h
@@ -0,0 +1,54 @@
+
+
+#ifndef GNC_IMPORT_FORMAT_GNOME_H
+#define GNC_IMPORT_FORMAT_GNOME_H
+
+#ifdef __cplusplus
+//extern "C" {
+#endif
+
+#include <glob.h>
+#include <glib.h>
+#include <glib-object.h>
+#include <libgnomeui/libgnomeui.h>
+#include "gnc-druid.h"
+#include "gnc-import-format-cb.h"
+
+#define G_TYPE_GNC_IMPORT_FORMAT_GNOME (gnc_import_format_gnome_get_type())
+#define GNC_IMPORT_FORMAT_GNOME(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_GNC_IMPORT_FORMAT_GNOME, GNCImportProvFormatGnome)
+#define GNC_IMPORT_FORMAT_GNOME_CLASS(klass) G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_GNC_IMPORT_FORMAT_GNOME, GNCImportProvFormatGnomeClass)
+#define IS_GNC_IMPORT_FORMAT_GNOME(obj) G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_GNC_IMPORT_FORMAT_GNOME)
+#define IS_GNC_IMPORT_FORMAT_GNOME_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_GNC_IMPORT_FORMAT_GNOME)
+#define GNC_IMPORT_FORMAT_GNOME_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), G_TYPE_GNC_IMPORT_FORMAT_GNOME, GNCImportProvFormatGnomeClass))
+
+typedef struct _GNCImportProvFormatGnome GNCImportProvFormatGnome;
+typedef struct _GNCImportProvFormatGnomeClass GNCImportProvFormatGnomeClass;
+
+struct _GNCImportProvFormatGnome
+{
+ GNCDruidProvider parent;
+
+ GnomeDruidPage* page;
+ GtkOptionMenu* format_menu;
+ GtkLabel* sample_label;
+
+ GncImportFormat choice;
+
+ GNCImportFormatCB* cb;
+};
+
+struct _GNCImportProvFormatGnomeClass
+{
+ GNCDruidProviderClass parent_class;
+};
+
+GType gnc_import_format_gnome_get_type(void);
+void gnc_import_format_gnome_register(void);
+
+/* methods */
+
+#ifdef __cplusplus
+//}
+#endif
+
+#endif /* GNC_IMPORT_FORMAT_GNOME_H */
--- /dev/null
+++ src/import-export/gnc-import-format-gnome.c
@@ -0,0 +1,219 @@
+
+
+#include "config.h"
+#include "gnc-druid-gnome-ui.h"
+#include "gnc-import-format-gnome.h"
+#include "gnc-import-desc-format.h"
+
+#include "gnc-basic-gobject.h"
+#include "dialog-utils.h"
+#include "messages.h"
+#include "gnc-ui.h"
+#include "gnc-gui-query.h"
+
+static void gnc_import_format_gnome_class_init (GNCImportProvFormatGnomeClass *class);
+static void gnc_import_format_gnome_finalize (GObject *obj);
+
+static GNCDruidPage* gnc_ip_format_gnome_first_page(GNCDruidProvider*);
+static GNCDruidPage* gnc_ip_format_gnome_next_page(GNCDruidProvider*);
+
+static GNCDruidProviderClass *parent_class;
+
+GNC_BASIC_GOBJECT_TYPE(GNCImportProvFormatGnome,GNCImportProvFormatGnomeClass,
+ G_TYPE_GNC_DRUID_PROVIDER,
+ gnc_import_format_gnome_class_init, NULL,
+ gnc_import_format_gnome_get_type)
+
+static void
+gnc_import_format_gnome_class_init (GNCImportProvFormatGnomeClass *klass)
+{
+ GObjectClass *object_class;
+ GNCDruidProviderClass *gdp_class = (GNCDruidProviderClass*)klass;
+
+ object_class = G_OBJECT_CLASS (klass);
+ parent_class = g_type_class_peek_parent (klass);
+
+ object_class->finalize = gnc_import_format_gnome_finalize;
+
+ /* override methods */
+ gdp_class->first_page = gnc_ip_format_gnome_first_page;
+ gdp_class->last_page = gnc_ip_format_gnome_first_page;
+ gdp_class->next_page = gnc_ip_format_gnome_next_page;
+ // gdp_class->prev_page = gnc_ip_format_gnome_prev_page;
+}
+
+static void
+gnc_import_format_gnome_finalize (GObject *obj)
+{
+ //GNCImportProvFormatGnome *prov_f = (GNCImportProvFormatGnome *)obj;
+
+ G_OBJECT_CLASS(parent_class)->finalize(obj);
+}
+
+static void
+gnc_ifg_option_changed (GtkWidget *widget, GNCImportProvFormatGnome *prov_f)
+{
+ prov_f->choice = (GncImportFormat)
+ g_object_get_data(G_OBJECT(widget), "option");
+}
+
+static GtkWidget *
+add_menu_item (GtkWidget *menu, gpointer user_data, char *label,
+ GncImportFormat option)
+{
+ GtkWidget *item = gtk_menu_item_new_with_label(label);
+ g_object_set_data(G_OBJECT(item), "option", (gpointer) option);
+ g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(gnc_ifg_option_changed),
+ user_data);
+ gtk_menu_append(GTK_MENU(menu), item);
+ gtk_widget_show(item);
+ return item;
+}
+
+#define ADD_MENU_ITEM(str,op) { \
+ if (formats && op) { \
+ item = add_menu_item(menu, prov_f, str, op); \
+ if (!first) first = item; \
+ } \
+}
+
+static void
+make_menu (GNCImportProvFormatGnome *prov_f, GncImportFormat formats)
+{
+ GtkWidget *menu, *item, *first = NULL;
+
+ menu = gtk_menu_new();
+
+ /* Numeric formats */
+ ADD_MENU_ITEM("1,000.00", GNCIF_NUM_PERIOD);
+ ADD_MENU_ITEM("1.000,00", GNCIF_NUM_COMMA);
+
+ /* Date formats */
+ ADD_MENU_ITEM(_("m-d-y"), GNCIF_DATE_MDY);
+ ADD_MENU_ITEM(_("d-m-y"), GNCIF_DATE_DMY);
+ ADD_MENU_ITEM(_("y-m-d"), GNCIF_DATE_YMD);
+ ADD_MENU_ITEM(_("y-d-m"), GNCIF_DATE_YDM);
+
+ gtk_option_menu_set_menu(prov_f->format_menu, menu);
+
+ g_signal_emit_by_name(G_OBJECT(first), "activate", prov_f);
+ gtk_option_menu_set_history(prov_f->format_menu, 0);
+
+ gtk_widget_show(menu);
+}
+
+static GNCDruidPage*
+gnc_ip_format_gnome_first_page(GNCDruidProvider* prov)
+{
+ GNCImportProvFormatGnome *prov_f = GNC_IMPORT_FORMAT_GNOME(prov);
+ GNCImportDescFormat *desc_f = GNC_IMPORT_DESC_FORMAT(prov->desc);
+ GncImportFormat formats;
+ const gchar* sample;
+
+ /* See if we have anything to do. */
+ formats = desc_f->get_formats(prov->druid->be_ctx);
+
+ /* If nothing to do, return NULL */
+ if (formats == GNCIF_NONE)
+ return NULL;
+
+ /* Otherwise set up the menu and sample, then let the user at it */
+ sample = desc_f->get_sample(prov->druid->be_ctx);
+
+ if (sample)
+ gtk_label_set_text(prov_f->sample_label, sample);
+
+ make_menu(prov_f, formats);
+
+ return prov->pages->data;
+}
+
+static GNCDruidPage*
+gnc_ip_format_gnome_next_page(GNCDruidProvider* prov)
+{
+ GNCImportProvFormatGnome *prov_f = GNC_IMPORT_FORMAT_GNOME(prov);
+
+ /* Grab the entry from the user and supply it to the backend */
+ prov_f->cb->format = prov_f->choice;
+
+ /* Figure out whether they want to move on or not */
+ if (prov->desc->next_cb(&(prov_f->cb->parent)))
+ return NULL;
+
+ return prov->pages->data;
+}
+
+static GNCDruidProvider*
+gnc_import_pf_gnome_build(GNCDruid* druid, GNCDruidProviderDesc* desc)
+{
+ GNCDruidProvider *prov_base;
+ GNCImportProvFormatGnome *prov;
+ GNCImportDescFormat *desc_f;
+ GNCImportFormatCB *cb;
+ GtkWidget *window, *page, *label, *format_menu, *sample_label;
+ GladeXML *xml;
+
+ /* verify that this is the correct provider descriptor */
+ g_return_val_if_fail(IS_GNC_IMPORT_DESC_FORMAT(desc), NULL);
+ desc_f = GNC_IMPORT_DESC_FORMAT(desc);
+
+ g_return_val_if_fail(desc->next_cb, NULL);
+ g_return_val_if_fail(desc_f->get_formats, NULL);
+ g_return_val_if_fail(desc_f->get_sample, NULL);
+
+ /* Build the provider */
+ prov = GNC_IMPORT_FORMAT_GNOME(g_object_new(G_TYPE_GNC_IMPORT_FORMAT_GNOME, NULL));
+ g_assert(prov);
+ prov_base = GNC_DRUID_PROVIDER(prov);
+
+ /* Build the callback object. */
+ cb = gnc_import_format_cb_new();
+ g_assert(cb);
+ cb->parent.prov_ctx = prov_base;
+ cb->parent.druid_ctx = druid;
+ prov->cb = cb;
+
+ /* Build the Druid Page */
+ xml = gnc_glade_xml_new("import-provider-format.glade",
+ "Format Provider Window");
+ g_assert(xml);
+ window = glade_xml_get_widget(xml, "Format Provider Window");
+ page = glade_xml_get_widget(xml, "Format Provider Page");
+ label = glade_xml_get_widget(xml, "inst_label");
+ format_menu = glade_xml_get_widget(xml, "import_format_menu");
+ sample_label = glade_xml_get_widget(xml, "format_sample_label");
+
+ prov->format_menu = GTK_OPTION_MENU(format_menu);
+ prov->sample_label = GTK_LABEL(sample_label);
+
+ g_object_ref(page);
+ gtk_container_remove(GTK_CONTAINER(window), page);
+ gtk_widget_destroy(window);
+
+ /* XXX: Am I going to have to unref this later? */
+
+ /* Remember this page for later */
+ g_assert(page);
+ prov->page = GNOME_DRUID_PAGE(page);
+ prov_base->pages = g_list_prepend(NULL, page);
+
+ if (desc->title)
+ gnome_druid_page_standard_set_title(GNOME_DRUID_PAGE_STANDARD(page),
+ desc->title);
+
+ if (desc_f->text)
+ gtk_label_set_text(GTK_LABEL(label), desc_f->text);
+
+ /* Show the page */
+ gtk_widget_show_all(GTK_WIDGET(page));
+
+ /* Return the provider instance */
+ return prov_base;
+}
+
+void
+gnc_import_format_gnome_register(void)
+{
+ gnc_druid_provider_register(GNC_DRUID_GNOME_UI, GNC_IMPORT_DESC_TYPE_FORMAT,
+ gnc_import_pf_gnome_build);
+}
--- src/import-export/import-prov-format-cb.h
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-#ifndef GNC_IMPORT_PROV_FORMAT_CB_H
-#define GNC_IMPORT_PROV_FORMAT_CB_H
-
-#ifdef __cplusplus
-//extern "C" {
-#endif
-
-#include <glib.h>
-#include <glib-object.h>
-
-#define G_TYPE_GNC_IMPORT_PROV_FORMAT_CB gnc_import_prov_format_cb_get_type()
-#define GNC_IMPORT_PROV_FORMAT_CB(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_GNC_IMPORT_PROV_FORMAT_CB, GNCImportProvFormatCB)
-#define GNC_IMPORT_PROV_FORMAT_CB_CLASS(klass) G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_GNC_IMPORT_PROV_FORMAT_CB, GNCImportProvFormatCBClass)
-#define IS_GNC_IMPORT_PROV_FORMAT_CB(obj) G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_GNC_IMPORT_PROV_FORMAT_CB)
-#define IS_GNC_IMPORT_PROV_FORMAT_CB_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_GNC_IMPORT_PROV_FORMAT_CB)
-
-typedef struct _GNCImportProvFormatCB GNCImportProvFormatCB;
-typedef struct _GNCImportProvFormatCBClass GNCImportProvFormatCBClass;
-
-#include "gnc-druid-cb.h"
-#include "import-parse.h"
-
-struct _GNCImportProvFormatCB
-{
- GNCDruidCB parent;
-
- GncImportFormat format;
-};
-
-struct _GNCImportProvFormatCBClass
-{
- GNCDruidCBClass parent_class;
-};
-
-GType gnc_import_prov_format_cb_get_type(void);
-GNCImportProvFormatCB* gnc_import_prov_format_cb_new(void);
-
-/* methods */
-
-#ifdef __cplusplus
-//}
-#endif
-
-#endif /* GNC_IMPORT_PROV_FORMAT_CB_H */
--- src/import-export/import-prov-format-cb.c
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-#include "config.h"
-#include "import-prov-format-cb.h"
-#include "gnc-basic-gobject.h"
-
-GNC_BASIC_GOBJECT(GNCImportProvFormatCB, GNCImportProvFormatCBClass,
- G_TYPE_GNC_DRUID_CB, NULL, NULL,
- gnc_import_prov_format_cb_get_type, gnc_import_prov_format_cb_new)
--- src/import-export/import-prov-desc-format.c
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-#include "config.h"
-#include "import-prov-desc-format.h"
-#include "gnc-basic-gobject.h"
-
-static void gnc_import_prov_desc_format_class_init (GNCImportProvDescFormatClass *class);
-static void gnc_import_prov_desc_format_init (GNCImportProvDescFormat *gspaper);
-static void gnc_import_prov_desc_format_finalize (GObject *obj);
-
-static GNCDruidProviderDescClass *parent_class;
-
-GNC_BASIC_GOBJECT(GNCImportProvDescFormat, GNCImportProvDescFormatClass,
- G_TYPE_GNC_DRUID_PROVIDER_DESC,
- gnc_import_prov_desc_format_class_init,
- gnc_import_prov_desc_format_init,
- gnc_import_prov_desc_format_get_type,
- gnc_import_prov_desc_format_new)
-
-static void
-gnc_import_prov_desc_format_class_init (GNCImportProvDescFormatClass *klass)
-{
- GObjectClass *object_class;
-
- object_class = G_OBJECT_CLASS (klass);
- parent_class = g_type_class_peek_parent (klass);
-
- object_class->finalize = gnc_import_prov_desc_format_finalize;
-}
-
-static void
-gnc_import_prov_desc_format_finalize (GObject *obj)
-{
- GNCImportProvDescFormat *desc = (GNCImportProvDescFormat *)obj;
-
- if (desc->instructions)
- g_free(desc->instructions);
-
- G_OBJECT_CLASS (parent_class)->finalize(obj);
-}
-
-static void
-gnc_import_prov_desc_format_init (GNCImportProvDescFormat *o)
-{
- o->parent.name = GNC_IMPORT_PROV_TYPE_FORMAT;
-}
-
-GNCImportProvDescFormat*
-gnc_import_prov_desc_format_new_with_data(const gchar* title,
- const gchar* instructions,
- GncImportFormat (*get_formats)(gpointer),
- const gchar* (*get_example)(gpointer),
- GNCDruidProviderCB next_cb,
- GNCDruidProviderCB prev_cb)
-{
- GNCImportProvDescFormat* desc;
- GNCDruidProviderDesc* gdp_desc;
-
- desc = gnc_import_prov_desc_format_new();
- g_assert(desc);
- gdp_desc = GNC_DRUID_PROVIDER_DESC(desc);
-
- desc->get_formats = get_formats;
- desc->get_example = get_example;
- gdp_desc->next_cb = next_cb;
- gdp_desc->prev_cb = prev_cb;
-
- if (instructions)
- gnc_import_prov_desc_format_set_instructions(desc, instructions);
- if (title)
- gnc_druid_provider_desc_set_title(gdp_desc, title);
-
- return desc;
-}
-
-void
-gnc_import_prov_desc_format_set_instructions(GNCImportProvDescFormat* desc,
- const gchar* instructions)
-{
- g_return_if_fail(desc);
- g_return_if_fail(IS_GNC_IMPORT_PROV_DESC_FORMAT(desc));
- g_return_if_fail(instructions);
-
- if (desc->instructions)
- g_free(desc->instructions);
- desc->instructions = g_strdup(instructions);
-}
Index: Makefile.am
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/Makefile.am,v
retrieving revision 1.25.4.7
retrieving revision 1.25.4.8
diff -Lsrc/import-export/Makefile.am -Lsrc/import-export/Makefile.am -u -r1.25.4.7 -r1.25.4.8
--- src/import-export/Makefile.am
+++ src/import-export/Makefile.am
@@ -10,14 +10,13 @@
import-format-dialog.c \
import-match-picker.c \
import-parse.c \
- import-prov-format-cb.c \
- import-prov-desc-format.c \
import-utilities.c \
import-settings.c \
import-match-map.c \
import-main-matcher.c \
gnc-import-desc-format.c \
gnc-import-format-cb.c \
+ gnc-import-format-gnome.c \
gncmod-generic-import.c
gncincludedir = ${GNC_INCLUDE_DIR}
@@ -34,8 +33,6 @@
import-main-matcher.h \
import-match-map.h \
import-match-picker.h \
- import-prov-format-cb.h \
- import-prov-desc-format.h \
import-settings.h \
import-utilities.h
@@ -57,7 +54,9 @@
generic-import.scm
gladedir = ${GNC_GLADE_DIR}
-glade_DATA = generic-import.glade
+glade_DATA = \
+ generic-import.glade \
+ import-provider-format.glade
AM_CFLAGS = \
-I${top_srcdir}/src \
--- src/import-export/import-prov-desc-format.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-#ifndef GNC_IMPORT_PROV_DESC_FORMAT_H
-#define GNC_IMPORT_PROV_DESC_FORMAT_H
-
-#ifdef __cplusplus
-//extern "C" {
-#endif
-
-#include <glib.h>
-#include <glib-object.h>
-
-#define G_TYPE_GNC_IMPORT_PROV_DESC_FORMAT gnc_import_prov_desc_format_get_type()
-#define GNC_IMPORT_PROV_DESC_FORMAT(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_GNC_IMPORT_PROV_DESC_FORMAT, GNCImportProvDescFormat)
-#define IS_GNC_IMPORT_PROV_DESC_FORMAT(obj) G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_GNC_IMPORT_PROV_DESC_FORMAT)
-
-typedef struct _GNCImportProvDescFormat GNCImportProvDescFormat;
-typedef struct _GNCImportProvDescFormatClass GNCImportProvDescFormatClass;
-
-#include "gnc-druid.h"
-#include "import-prov-format-cb.h"
-
-#define GNC_IMPORT_PROV_TYPE_FORMAT "import:format"
-
-struct _GNCImportProvDescFormat
-{
- GNCDruidProviderDesc parent;
-
- gchar* instructions;
- GncImportFormat (*get_formats)(gpointer be_ctx);
- const gchar * (*get_example)(gpointer be_ctx);
-};
-
-struct _GNCImportProvDescFormatClass
-{
- GNCDruidProviderDescClass parent;
-};
-
-GType gnc_import_prov_desc_format_get_type(void);
-GNCImportProvDescFormat* gnc_import_prov_desc_format_new(void);
-GNCImportProvDescFormat*
-gnc_import_prov_desc_format_new_with_data(const gchar* title,
- const gchar* instructions,
- GncImportFormat (*get_formats)(gpointer),
- const gchar* (*get_example)(gpointer),
- GNCDruidProviderCB next_cb,
- GNCDruidProviderCB prev_cb);
-
-void gnc_import_prov_desc_format_set_instructions(GNCImportProvDescFormat*,
- const gchar* inst);
-
-/* methods */
-
-#ifdef __cplusplus
-//}
-#endif
-
-#endif /* GNC_IMPORT_PROV_DESC_FORMAT_H */
--- /dev/null
+++ src/import-export/import-provider-format.glade
@@ -0,0 +1,156 @@
+<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
+<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
+
+<glade-interface>
+<requires lib="gnome"/>
+
+<widget class="GtkWindow" id="Format Provider Window">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes">window1</property>
+ <property name="type">GTK_WINDOW_TOPLEVEL</property>
+ <property name="window_position">GTK_WIN_POS_NONE</property>
+ <property name="modal">False</property>
+ <property name="resizable">True</property>
+ <property name="destroy_with_parent">False</property>
+
+ <child>
+ <widget class="GnomeDruidPageStandard" id="Format Provider Page">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes">Set a date format for this QIF file</property>
+ <property name="title_foreground">#a028081e49eb</property>
+ <property name="background">#a028081ed728</property>
+ <property name="logo_background">#57804081d718</property>
+
+ <child internal-child="vbox">
+ <widget class="GtkVBox" id="druid-vbox22">
+ <property name="border_width">25</property>
+ <property name="visible">True</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">0</property>
+
+ <child>
+ <widget class="GtkLabel" id="inst_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">The QIF file format does not specify which order the day, month, and
+year components of a date are printed. In most cases, it is possible
+to automatically determine which format is in use in a particular file.
+However, in the file you have just imported there exist more than one
+possible format that fits the data.
+
+Please select a date format for the file. QIF files created by European
+software are likely to be in "d-m-y" or day-month-year format, where
+US QIF files are likely to be "m-d-y" or month-year-day.
+</property>
+ <property name="use_underline">False</property>
+ <property name="use_markup">False</property>
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
+ <property name="xalign">0.5</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkHBox" id="hbox1">
+ <property name="visible">True</property>
+ <property name="homogeneous">True</property>
+ <property name="spacing">0</property>
+
+ <child>
+ <widget class="GtkLabel" id="label847714">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Sample data:</property>
+ <property name="use_underline">False</property>
+ <property name="use_markup">False</property>
+ <property name="justify">GTK_JUSTIFY_RIGHT</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
+ <property name="xalign">1</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkLabel" id="format_sample_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">(no)</property>
+ <property name="use_underline">False</property>
+ <property name="use_markup">False</property>
+ <property name="justify">GTK_JUSTIFY_CENTER</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
+ <property name="xalign">0.5</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkOptionMenu" id="import_format_menu">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="history">-1</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkLabel" id="label847713">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Click "Back" to cancel the loading of this file and choose another.</property>
+ <property name="use_underline">False</property>
+ <property name="use_markup">False</property>
+ <property name="justify">GTK_JUSTIFY_CENTER</property>
+ <property name="wrap">False</property>
+ <property name="selectable">False</property>
+ <property name="xalign">0.5</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">GTK_PACK_END</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
+</widget>
+
+</glade-interface>
More information about the Gnucash-changes
mailing list