mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
*** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2085 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0fe89ee04e
commit
a4b86a4e1c
2
configure
vendored
2
configure
vendored
@ -830,7 +830,7 @@ fi
|
||||
|
||||
|
||||
|
||||
ALL_LINGUAS="fr de en_GB"
|
||||
ALL_LINGUAS="fr de en_GB sv"
|
||||
|
||||
# Find a good install program. We prefer a C program (faster),
|
||||
# so one script is as good as another. But avoid the broken or
|
||||
|
@ -26,7 +26,7 @@ AC_INIT(src/guile/gnucash.h.in)
|
||||
AM_INIT_AUTOMAKE(gnucash,1.3.2)
|
||||
|
||||
dnl Set of available languages.
|
||||
ALL_LINGUAS="fr de en_GB"
|
||||
ALL_LINGUAS="fr de en_GB sv"
|
||||
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_RANLIB
|
||||
|
@ -1,6 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=GnuCash
|
||||
Comment=GnuCash Personal Finance
|
||||
Comment[sv]=GnuCash Personliga Finanser
|
||||
Exec=gnucash
|
||||
Terminal=0
|
||||
Type=Application
|
||||
|
@ -95,6 +95,7 @@ config.h
|
||||
*.patch
|
||||
*.diff
|
||||
*.diffs
|
||||
*.bak
|
||||
xacc
|
||||
*.xac.*.xac
|
||||
errs*
|
||||
@ -112,6 +113,7 @@ gnucash.pm
|
||||
gnucash-engine-perl5_wrap.c
|
||||
g-wrap-guile
|
||||
libgwrapguile.la
|
||||
libgwraprs.la
|
||||
gnc-autogen.h
|
||||
src/g-wrap/gnc.c
|
||||
src/g-wrap/gnc.h
|
||||
|
204
po/de.po
204
po/de.po
@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: gnucash 1.3.1\n"
|
||||
"POT-Creation-Date: 2000-03-15 03:12-0800\n"
|
||||
"PO-Revision-Date: 2000-03-12 15:20+0100\n"
|
||||
"PO-Revision-Date: 2000-03-16 15:20+0100\n"
|
||||
"Last-Translator: Jan-Uwe Finck <Jan-Uwe.Finck@bigfoot.de>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@ -70,7 +70,7 @@ msgstr "Das Gute"
|
||||
#: ../po/guile_strings.txt:14
|
||||
#, c-format
|
||||
msgid "The current time is %s."
|
||||
msgstr ""
|
||||
msgstr "Es ist jetzt %s Uhr."
|
||||
|
||||
#: ../po/guile_strings.txt:15 messages-i18n.c:170
|
||||
msgid "Double Line"
|
||||
@ -82,18 +82,17 @@ msgstr "24 Stunden-Format statt 12 Stunden-Format"
|
||||
|
||||
#: ../po/guile_strings.txt:17
|
||||
msgid "Income:Salary:Taxable"
|
||||
msgstr "Einnahmen:Einkommen:zu versteürn"
|
||||
msgstr "Einnahmen:Einkommen:zu versteuern"
|
||||
|
||||
#: ../po/guile_strings.txt:18
|
||||
msgid "Type of budget report"
|
||||
msgstr ""
|
||||
msgstr "Budget-Reportstyp"
|
||||
|
||||
#: ../po/guile_strings.txt:19
|
||||
msgid "reg_win_width"
|
||||
msgstr ""
|
||||
|
||||
#: ../po/guile_strings.txt:20
|
||||
#, fuzzy
|
||||
msgid "Balancing"
|
||||
msgstr "Saldo"
|
||||
|
||||
@ -134,12 +133,10 @@ msgid "_Account Transactions"
|
||||
msgstr "Konten Transkationen"
|
||||
|
||||
#: ../po/guile_strings.txt:29
|
||||
#, fuzzy, c-format
|
||||
msgid "The date option is %s."
|
||||
msgstr "Dies ist eine Datums-Option"
|
||||
msgstr "Die Datums-Option ist %s."
|
||||
|
||||
#: ../po/guile_strings.txt:30
|
||||
#, fuzzy
|
||||
msgid "Account Transactions"
|
||||
msgstr "Konten Transkationen"
|
||||
|
||||
@ -173,7 +170,7 @@ msgstr "Boolean Option"
|
||||
|
||||
#: ../po/guile_strings.txt:38
|
||||
msgid "Income-Salary-Taxable"
|
||||
msgstr "zu versteürndes Einkommen"
|
||||
msgstr "zu versteuerndes Einkommen"
|
||||
|
||||
#: ../po/guile_strings.txt:39
|
||||
msgid "Testing"
|
||||
@ -197,7 +194,7 @@ msgstr "Multizeilen"
|
||||
|
||||
#: ../po/guile_strings.txt:44
|
||||
msgid "View"
|
||||
msgstr ""
|
||||
msgstr "Betrachten"
|
||||
|
||||
#: ../po/guile_strings.txt:45
|
||||
msgid "The default background color for odd rows in double mode"
|
||||
@ -208,9 +205,8 @@ msgid "UK-style dd/mm/yyyy"
|
||||
msgstr "UK-Stil: Tag/Monat/Jahr"
|
||||
|
||||
#: ../po/guile_strings.txt:47
|
||||
#, fuzzy
|
||||
msgid "Show all columns"
|
||||
msgstr "Alle Buchungen anzeigen"
|
||||
msgstr "Alle Spalten anzeigen"
|
||||
|
||||
#: ../po/guile_strings.txt:48 messages-i18n.c:229
|
||||
msgid "Account"
|
||||
@ -244,6 +240,10 @@ msgstr "Den 'Hallo Welt'-Report anzeigen"
|
||||
msgid "Hello Again"
|
||||
msgstr "Hallo mal wieder.."
|
||||
|
||||
#: ../po/guile_strings.txt:49
|
||||
msgid "This page shows your profits and losses."
|
||||
msgstr "Diese Seite zeigt Ihnen Gewinn und Verlust"
|
||||
|
||||
#: ../po/guile_strings.txt:56
|
||||
msgid "Show Vertical Borders"
|
||||
msgstr "Vertikale Grenzen anzeigen"
|
||||
@ -252,6 +252,7 @@ msgstr "Vertikale Grenzen anzeigen"
|
||||
msgid "This is a boolean option."
|
||||
msgstr "Dies ist eine boolsche Option"
|
||||
|
||||
#: ../po/guile_strings.txt:52
|
||||
#: ../po/guile_strings.txt:58
|
||||
msgid "_Profit and Loss"
|
||||
msgstr "Saldo Einnahmen/Ausgaben"
|
||||
@ -262,17 +263,15 @@ msgstr "Hintergrund Farbe"
|
||||
|
||||
#: ../po/guile_strings.txt:60
|
||||
msgid "Income/Salary/Taxable"
|
||||
msgstr "Einkommen/Bezahlung/zu Versteürndes"
|
||||
msgstr "Einkommen/Bezahlung/zu Versteuerndes"
|
||||
|
||||
#: ../po/guile_strings.txt:61
|
||||
#, fuzzy
|
||||
msgid "There are no selected accounts in the account list option."
|
||||
msgstr "Öffne das gewählte Konto und alle Sub-Konten"
|
||||
msgstr "Es wurden keine Konten in der Kontenliste ausgewählt."
|
||||
|
||||
#: ../po/guile_strings.txt:62
|
||||
#, fuzzy
|
||||
msgid "_Budget"
|
||||
msgstr "Gekauft"
|
||||
msgstr "_Budget"
|
||||
|
||||
#: ../po/guile_strings.txt:63
|
||||
msgid "Continental Europe: dd.mm.yyyy"
|
||||
@ -296,21 +295,17 @@ msgstr "Sortieren nach Check-/Transaktionsnr."
|
||||
|
||||
#: ../po/guile_strings.txt:68
|
||||
msgid "The background color for the active transaction in double mode"
|
||||
msgstr ""
|
||||
"Standard Hintergrundfarbe der aktiven Transaktion für Zeilen im "
|
||||
"Doppel-Zeilen-Modus"
|
||||
msgstr "Standard Hintergrundfarbe der aktiven Transaktion für Zeilen im Doppel-Zeilen-Modus"
|
||||
|
||||
#: ../po/guile_strings.txt:69
|
||||
msgid "Register Colors"
|
||||
msgstr "Register Farben"
|
||||
|
||||
#: ../po/guile_strings.txt:70
|
||||
#, fuzzy, c-format
|
||||
msgid "The boolean option is %s."
|
||||
msgstr "Dies ist eine boolsche Option"
|
||||
msgstr "Diese boolsche Option ist %s."
|
||||
|
||||
#: ../po/guile_strings.txt:71
|
||||
#, fuzzy
|
||||
msgid "Multi mode default transaction background"
|
||||
msgstr "Standard Hintergrundfarbe der Transaktion"
|
||||
|
||||
@ -320,7 +315,7 @@ msgid ""
|
||||
"opening a register."
|
||||
msgstr ""
|
||||
"Doppelklicken auf ein Konto mit Unterkonten führt zum Anzeigen dieser, "
|
||||
"anstatt ein neüs Konto zu öffnen."
|
||||
"anstatt ein neues Konto zu öffnen."
|
||||
|
||||
#: ../po/guile_strings.txt:73
|
||||
msgid "The background color for the active transaction in single mode"
|
||||
@ -352,7 +347,7 @@ msgstr "Bank"
|
||||
|
||||
#: ../po/guile_strings.txt:80
|
||||
msgid "Reverse Income and Expense Accounts"
|
||||
msgstr ""
|
||||
msgstr "Zeige Einnahme- und Ausgabenkonten mit umgedrehter Datumsreihenfolge"
|
||||
|
||||
#: ../po/guile_strings.txt:81
|
||||
msgid "Europe"
|
||||
@ -378,9 +373,8 @@ msgid "Average"
|
||||
msgstr "Durchscnitt"
|
||||
|
||||
#: ../po/guile_strings.txt:86
|
||||
#, fuzzy
|
||||
msgid "The items selected in the list option are:"
|
||||
msgstr "Dies ist eine Kontoaufzählungsoption"
|
||||
msgstr "Die gewählten Optionen in der Lsite sind :"
|
||||
|
||||
#: ../po/guile_strings.txt:87
|
||||
msgid "A_ccount Balance Tracker"
|
||||
@ -408,7 +402,7 @@ msgstr "Standardhintergrund f
|
||||
|
||||
#: ../po/guile_strings.txt:93 messages-i18n.c:258
|
||||
msgid "Currency"
|
||||
msgstr "Fremdwährungsdepot"
|
||||
msgstr "Währung"
|
||||
|
||||
#: ../po/guile_strings.txt:94
|
||||
msgid "Week"
|
||||
@ -440,7 +434,7 @@ msgstr "ISO"
|
||||
|
||||
#: ../po/guile_strings.txt:101
|
||||
msgid "A report useful for balancing the budget"
|
||||
msgstr ""
|
||||
msgstr "Ein Bericht, der das Ausgleichen des Budgets erleichtert"
|
||||
|
||||
#: ../po/guile_strings.txt:102
|
||||
msgid "Date Format Display"
|
||||
@ -459,13 +453,12 @@ msgid "Account fields to display"
|
||||
msgstr "Diese Felder in den Konten anzeigen"
|
||||
|
||||
#: ../po/guile_strings.txt:106
|
||||
#, fuzzy
|
||||
msgid "Account Balance Tracker"
|
||||
msgstr "Konten-Saldo-Beobachter"
|
||||
|
||||
#: ../po/guile_strings.txt:107
|
||||
msgid "Report Options"
|
||||
msgstr "Bericht"
|
||||
msgstr "Berichtsoptionen"
|
||||
|
||||
#: ../po/guile_strings.txt:108 messages-i18n.c:108
|
||||
msgid "Show transactions on single lines"
|
||||
@ -477,9 +470,7 @@ msgstr "Beschreibung"
|
||||
|
||||
#: ../po/guile_strings.txt:110
|
||||
msgid "Alternate the even and odd colors with each transaction, not each row"
|
||||
msgstr ""
|
||||
"Tausche die Farben jeder ausgeglichenen und Buchung mit Fehlern in jeder "
|
||||
"Buchung, nicht in jeder Spalte"
|
||||
msgstr "Tausche die Farben jeder ausgeglichenen und Buchung mit Fehlern in jeder Buchung, nicht in jeder Spalte"
|
||||
|
||||
#: ../po/guile_strings.txt:111
|
||||
msgid "Gain/Loss"
|
||||
@ -505,7 +496,8 @@ msgstr "Alles anzeigen aus diesem Zeitraum"
|
||||
msgid ""
|
||||
"The default background color for transactions in multi-line mode and the "
|
||||
"auto modes"
|
||||
msgstr "Standard Hintergrundfarbe für Buchungen im Multi- und den Auto-Modi"
|
||||
msgstr ""
|
||||
"Standard Hintergrundfarbe für Buchungen im Multi- und den Auto-Modi"
|
||||
|
||||
#: ../po/guile_strings.txt:117
|
||||
msgid "Fourth Options"
|
||||
@ -521,7 +513,7 @@ msgstr "H
|
||||
|
||||
#: ../po/guile_strings.txt:120
|
||||
msgid "How are you doing on your budget?"
|
||||
msgstr ""
|
||||
msgstr "Wie gehts es ihrem Budget ?"
|
||||
|
||||
#: ../po/guile_strings.txt:121
|
||||
msgid "Save Translatable Strings"
|
||||
@ -576,9 +568,9 @@ msgid "Double mode default even row background"
|
||||
msgstr "Standardhintergrund der ausgeglichenen Buchungen im Doppel-Modus"
|
||||
|
||||
#: ../po/guile_strings.txt:134
|
||||
#, fuzzy, c-format
|
||||
#,c-format
|
||||
msgid "The multi-choice option is %s."
|
||||
msgstr "Dies ist eine Multi-Auswahl"
|
||||
msgstr "Diese Multi-Auswahl ist %s."
|
||||
|
||||
#: ../po/guile_strings.txt:135
|
||||
msgid "Double mode colors alternate with transactions"
|
||||
@ -603,11 +595,11 @@ msgstr "Unter-Konten"
|
||||
#: ../po/guile_strings.txt:140
|
||||
#, c-format
|
||||
msgid "The date and time option is %s."
|
||||
msgstr ""
|
||||
msgstr "Die Datums und Zeit-Option ist %s."
|
||||
|
||||
#: ../po/guile_strings.txt:141 messages-i18n.c:290
|
||||
msgid "Liability"
|
||||
msgstr "Kreditkonto"
|
||||
msgstr "Verbindlichkeiten"
|
||||
|
||||
#: ../po/guile_strings.txt:142
|
||||
msgid "Don't reverse any accounts"
|
||||
@ -626,7 +618,6 @@ msgid "account_edit_win_width"
|
||||
msgstr ""
|
||||
|
||||
#: ../po/guile_strings.txt:146
|
||||
#, fuzzy
|
||||
msgid "Ba_lance sheet"
|
||||
msgstr "Saldo"
|
||||
|
||||
@ -651,9 +642,9 @@ msgid "Notes"
|
||||
msgstr "Notizen"
|
||||
|
||||
#: ../po/guile_strings.txt:152
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "The string option is %s."
|
||||
msgstr "Dies ist eine String-Option"
|
||||
msgstr "Die String-Option ist %s."
|
||||
|
||||
#: ../po/guile_strings.txt:153
|
||||
msgid "_Reports"
|
||||
@ -709,14 +700,13 @@ msgstr "Speicher Fenster-Einstellungen"
|
||||
|
||||
#: ../po/guile_strings.txt:166
|
||||
msgid "Income\\Salary\\Taxable"
|
||||
msgstr "Einkommen/Bezahlung/zu versteürn"
|
||||
msgstr "Einkommen/Bezahlung/zu versteuern"
|
||||
|
||||
#: ../po/guile_strings.txt:167
|
||||
msgid "Code"
|
||||
msgstr "Code"
|
||||
|
||||
#: ../po/guile_strings.txt:168
|
||||
#, fuzzy
|
||||
msgid "Balance sheet"
|
||||
msgstr "Saldo"
|
||||
|
||||
@ -734,7 +724,7 @@ msgstr "Reihenfolge des prim
|
||||
|
||||
#: ../po/guile_strings.txt:172
|
||||
msgid "Default Currency For New Accounts"
|
||||
msgstr "Standard-Währung für neü Konten"
|
||||
msgstr "Standard-Währung für neue Konten"
|
||||
|
||||
#: ../po/guile_strings.txt:173
|
||||
msgid "Sort by this criterion second"
|
||||
@ -742,11 +732,11 @@ msgstr "Sortiere als zweite Bedingung hiernach"
|
||||
|
||||
#: ../po/guile_strings.txt:174
|
||||
msgid "true"
|
||||
msgstr ""
|
||||
msgstr "wahr"
|
||||
|
||||
#: ../po/guile_strings.txt:175
|
||||
msgid "Income.Salary.Taxable"
|
||||
msgstr "Einkommen.Bezahlung.zu versteürn"
|
||||
msgstr "Einkommen.Bezahlung.zu versteuern"
|
||||
|
||||
#: ../po/guile_strings.txt:176 messages-i18n.c:286
|
||||
msgid "Income"
|
||||
@ -785,9 +775,12 @@ msgid "Just a Date Option"
|
||||
msgstr "Nur eine Datums-Option"
|
||||
|
||||
#: ../po/guile_strings.txt:185
|
||||
#, fuzzy
|
||||
msgid "The accounts selected in the account list option are:"
|
||||
msgstr "Dies ist eine Kontoaufzählungsoption"
|
||||
msgstr "Die gewählten Konten aus der Kontenliste sind :"
|
||||
|
||||
#: ../po/guile_strings.txt:165
|
||||
msgid "The default background color for even rows in single mode"
|
||||
msgstr "Standard Hintergrundfarbe für ausgeglichene Zeilen im Single-Mode"
|
||||
|
||||
#: ../po/guile_strings.txt:186
|
||||
#, c-format
|
||||
@ -795,6 +788,9 @@ msgid ""
|
||||
"This is a sample GnuCash report. See the guile (scheme) source code in %s "
|
||||
"for details on writing your own reports, or extending existing reports."
|
||||
msgstr ""
|
||||
"Dies ist ein Beispiel-Bericht von GnuCash. Sehen sie in den Guile (Scheme) "
|
||||
" SourceCode in %s, um Details zu erfahren, wie sie ihre eigenen Berichte"
|
||||
"verfasseb können oder die bestehenden abändern."
|
||||
|
||||
#: ../po/guile_strings.txt:187
|
||||
msgid "The default background color for even rows in single mode"
|
||||
@ -805,7 +801,6 @@ msgid "The default background color for even rows in double mode"
|
||||
msgstr "Standard Hintergrundfarbe für ausgeglichene Zeilen im Double-Mode"
|
||||
|
||||
#: ../po/guile_strings.txt:189
|
||||
#, fuzzy
|
||||
msgid "Display the Budget report."
|
||||
msgstr "Anzeigen der Bilanz"
|
||||
|
||||
@ -840,9 +835,8 @@ msgid "Plot Type"
|
||||
msgstr "Darstellungsart"
|
||||
|
||||
#: ../po/guile_strings.txt:197
|
||||
#, fuzzy
|
||||
msgid "Budget"
|
||||
msgstr "Gekauft"
|
||||
msgstr "Budget"
|
||||
|
||||
#: ../po/guile_strings.txt:198
|
||||
msgid "Choose whether to display icons, text, or both for toolbar buttons"
|
||||
@ -858,8 +852,7 @@ msgstr "Icons und Text"
|
||||
|
||||
#: ../po/guile_strings.txt:201
|
||||
msgid "Automatically raise the list of accounts or actions during input."
|
||||
msgstr ""
|
||||
"Automatisches Oeffnen der Kontenliste oder Tätigkeiten während der Eingabe."
|
||||
msgstr "Automatisches Öffnen der Kontenliste oder Tätigkeiten während der Eingabe."
|
||||
|
||||
#: ../po/guile_strings.txt:202
|
||||
msgid "Sort by account transferred from/to's name"
|
||||
@ -898,9 +891,8 @@ msgid "Default number of register rows to display."
|
||||
msgstr "Standardanzahl von Zeilen, die angezeigt werden sollen"
|
||||
|
||||
#: ../po/guile_strings.txt:211
|
||||
#, fuzzy
|
||||
msgid "Report end date"
|
||||
msgstr "Nach Datum sortieren"
|
||||
msgstr "Zeige das End-Datum an."
|
||||
|
||||
#: ../po/guile_strings.txt:212
|
||||
msgid "None"
|
||||
@ -935,9 +927,8 @@ msgid "__gui"
|
||||
msgstr "__gui"
|
||||
|
||||
#: ../po/guile_strings.txt:220
|
||||
#, fuzzy
|
||||
msgid "Report start date"
|
||||
msgstr "Alles anzeigen aus diesem Zeitraum"
|
||||
msgstr "Zeige das Anfangsdatum an"
|
||||
|
||||
#: ../po/guile_strings.txt:221 messages-i18n.c:334
|
||||
msgid "To"
|
||||
@ -1009,12 +1000,11 @@ msgstr "Nichts"
|
||||
|
||||
#: ../po/guile_strings.txt:238
|
||||
msgid "You have selected no values in the list option."
|
||||
msgstr ""
|
||||
msgstr "Sie haben keine Werte aus der Liste gewählt."
|
||||
|
||||
#: ../po/guile_strings.txt:239
|
||||
#, fuzzy
|
||||
msgid "false"
|
||||
msgstr "Schliessen"
|
||||
msgstr "falsch/unwahr"
|
||||
|
||||
#: ../po/guile_strings.txt:240 messages-i18n.c:276
|
||||
msgid "Expense"
|
||||
@ -1038,7 +1028,7 @@ msgstr "Quicken-File-Import(QIF) (Vorsicht: Unstabil)"
|
||||
|
||||
#: ../po/guile_strings.txt:245
|
||||
msgid "Make No Plot"
|
||||
msgstr ""
|
||||
msgstr "Keine Anzeige"
|
||||
|
||||
#: ../po/guile_strings.txt:246
|
||||
msgid "Bad option"
|
||||
@ -1054,7 +1044,7 @@ msgstr "Anzeigen des Transkaktionsberichts"
|
||||
|
||||
#: ../po/guile_strings.txt:249
|
||||
msgid "Have a nice day!"
|
||||
msgstr ""
|
||||
msgstr "Einen schönen Tag noch !"
|
||||
|
||||
#: ../po/guile_strings.txt:250
|
||||
msgid "This is a list option"
|
||||
@ -1083,14 +1073,17 @@ msgid ""
|
||||
"report, consult the mailing list %s. For details on subscribing to that "
|
||||
"list, see %s."
|
||||
msgstr ""
|
||||
"Um Hilfe beim Schreiben von Berichten zu bekommen, oder ihren eigenen,"
|
||||
"brandneuen Bericht uns zu senden, wenden sie sich an die Mailingliste %s."
|
||||
"Details, wie man in diese Liste reinkommt gibt's hier : %s."
|
||||
|
||||
#: ../po/guile_strings.txt:256
|
||||
msgid ""
|
||||
"The background color for an active transaction in multi-line mode and the "
|
||||
"auto modes"
|
||||
msgstr ""
|
||||
"Hintergrundfarbe für eine aktive Buchung im Multi-Zeilen-Modusund den "
|
||||
"Auto-Modi"
|
||||
"Hintergrundfarbe für eine aktive Buchung im Multi-Zeilen-Modus"
|
||||
"und den Auto-Modi"
|
||||
|
||||
#: ../po/guile_strings.txt:257
|
||||
msgid "This is a multi choice option."
|
||||
@ -1101,7 +1094,6 @@ msgid "Income & Expense"
|
||||
msgstr "Einnahmen & Ausgaben"
|
||||
|
||||
#: ../po/guile_strings.txt:259
|
||||
#, fuzzy
|
||||
msgid "Hello, World"
|
||||
msgstr "Hallo Welt !"
|
||||
|
||||
@ -1139,7 +1131,7 @@ msgid ""
|
||||
"To adjust an account's balance, you must first\n"
|
||||
"choose an account to adjust.\n"
|
||||
msgstr ""
|
||||
"Um ein Konto zu bearbeiten, müssen Sie zürst \n"
|
||||
"Um ein Konto zu bearbeiten, müssen Sie zuerst \n"
|
||||
"eines auswählen.\n"
|
||||
|
||||
#: messages-i18n.c:15
|
||||
@ -1152,7 +1144,7 @@ msgid ""
|
||||
"If not, then please select an account\n"
|
||||
"to open in the main window.\n"
|
||||
msgstr ""
|
||||
"Möchten Sie ein neüs Konto erzeugen ?\n"
|
||||
"Möchten Sie ein neues Konto erzeugen ?\n"
|
||||
"Wenn nicht, dann wählen Sie bitte ein zu\n"
|
||||
"öffnendes Konto im Haupt-Fenster.\n"
|
||||
|
||||
@ -1161,7 +1153,7 @@ msgid ""
|
||||
"To edit an account, you must first\n"
|
||||
"choose an account to edit.\n"
|
||||
msgstr ""
|
||||
"Um ein Konto zu bearbeiten, müssen Sie zürst \n"
|
||||
"Um ein Konto zu bearbeiten, müssen Sie zuerst \n"
|
||||
"eines auswählen.\n"
|
||||
|
||||
#: messages-i18n.c:18
|
||||
@ -1169,7 +1161,7 @@ msgid ""
|
||||
"To delete an account, you must first\n"
|
||||
"choose an account to delete.\n"
|
||||
msgstr ""
|
||||
"Um ein Konto zu löschen, müssen Sie zürst \n"
|
||||
"Um ein Konto zu löschen, müssen Sie zuerst \n"
|
||||
"eines auswählen.\n"
|
||||
|
||||
#: messages-i18n.c:19
|
||||
@ -1186,7 +1178,7 @@ msgid ""
|
||||
"To open an account, you must first\n"
|
||||
"choose an account to open.\n"
|
||||
msgstr ""
|
||||
"Um ein Konto zu öffnen, müssen Sie zürst \n"
|
||||
"Um ein Konto zu öffnen, müssen Sie zuerst \n"
|
||||
"eines auswählen.\n"
|
||||
|
||||
#: messages-i18n.c:22
|
||||
@ -1202,7 +1194,7 @@ msgid ""
|
||||
"To reconcile an account, you must first\n"
|
||||
"choose an account to reconcile.\n"
|
||||
msgstr ""
|
||||
"Um ein Konto auszugleichen, müssen Sie zürst \n"
|
||||
"Um ein Konto auszugleichen, müssen Sie zuerst \n"
|
||||
"eines auswählen.\n"
|
||||
|
||||
#: messages-i18n.c:25
|
||||
@ -1230,15 +1222,14 @@ msgstr ""
|
||||
"das."
|
||||
|
||||
#: messages-i18n.c:30
|
||||
#, fuzzy
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Warning: Just deleting all the splits will make your account unbalanced. You "
|
||||
"probably shouldn't do this unless you're going to immediately add another "
|
||||
"split to bring the transaction back into balance."
|
||||
"Warning: Just deleting all the splits will make your account unbalanced. You\n"
|
||||
"probably shouldn't do this unless you're going to immediately add another\n "
|
||||
"split to bring the transaction back into balance.\n"
|
||||
msgstr ""
|
||||
"Warnung : Das Löschen aller Splits führt zu einem unausgeglichenen Konto. \n"
|
||||
"Sie sollten das nicht tun, es sei denn, sie wollen sofort einen anderen "
|
||||
"Split\n"
|
||||
"Sie sollten das nicht tun,es sei denn, sie wollen sofort einen anderen Split\n"
|
||||
"hinzufügen, um das Konto wieder auszugleichen.\n"
|
||||
|
||||
#: messages-i18n.c:31
|
||||
@ -1254,7 +1245,6 @@ msgstr ""
|
||||
"%s zu %sändern.\n"
|
||||
"Sind sie sicher?\n"
|
||||
|
||||
# c-format
|
||||
#: messages-i18n.c:32
|
||||
#, c-format
|
||||
msgid ""
|
||||
@ -1281,7 +1271,7 @@ msgid ""
|
||||
"This file appears to be from a newer version of GnuCash. \n"
|
||||
"Do you want to continue?"
|
||||
msgstr ""
|
||||
"Diese Datei ist von einer neüren Version von GnuCash. \n"
|
||||
"Diese Datei ist von einer neueren Version von GnuCash. \n"
|
||||
"Möchten Sie fortfahren?"
|
||||
|
||||
#: messages-i18n.c:35
|
||||
@ -1320,11 +1310,11 @@ msgstr ""
|
||||
" %s."
|
||||
|
||||
#: messages-i18n.c:39
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid ""
|
||||
"The file \n"
|
||||
" %s\n"
|
||||
" could not be found."
|
||||
" could not be found.\n"
|
||||
msgstr ""
|
||||
"Die Datei \n"
|
||||
" %s\n"
|
||||
@ -1387,7 +1377,7 @@ msgstr ""
|
||||
|
||||
#: messages-i18n.c:45
|
||||
msgid "The source for price quotes"
|
||||
msgstr "Qülle der Aktien-/Fonds-Kurse"
|
||||
msgstr "Quelle der Aktien-/Fonds-Kurse"
|
||||
|
||||
#: messages-i18n.c:46
|
||||
msgid ""
|
||||
@ -1410,7 +1400,7 @@ msgid "Warning! This is a reconciled transaction. Do you want do continue?"
|
||||
msgstr "Warnung! Dies ist eine ausgeglichene Buchung. Möchten Sie fortfahren?"
|
||||
|
||||
#: messages-i18n.c:49
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid ""
|
||||
"You cannot transfer funds from the %s account.\n"
|
||||
"It does not have a matching currency."
|
||||
@ -1435,7 +1425,7 @@ msgid ""
|
||||
"The current transaction has been changed.\n"
|
||||
"Would you like to record it?"
|
||||
msgstr ""
|
||||
"Die aktülle Buchung wurde verändert.\n"
|
||||
"Die aktuelle Buchung wurde verändert.\n"
|
||||
"Soll sie gespeichert werden ?"
|
||||
|
||||
#: messages-i18n.c:54
|
||||
@ -1461,7 +1451,7 @@ msgid ""
|
||||
"created before you can transfer funds."
|
||||
msgstr ""
|
||||
"Es müssen zumindest zwei Konten eröffnet\n"
|
||||
"werden bevor Sie Geld transferieren können."
|
||||
"werden ,bevor Sie Geld transferieren können."
|
||||
|
||||
#: messages-i18n.c:57
|
||||
msgid ""
|
||||
@ -1540,13 +1530,12 @@ msgid "Delete the current transaction"
|
||||
msgstr "Buchung löschen"
|
||||
|
||||
#: messages-i18n.c:74
|
||||
#, fuzzy
|
||||
msgid "Make a copy of the current transaction"
|
||||
msgstr "Buchung durchführen"
|
||||
msgstr "Aktuelle Buchung kopieren"
|
||||
|
||||
#: messages-i18n.c:75
|
||||
msgid "Edit the selected account"
|
||||
msgstr "Gewahltes Konto bearbeiten."
|
||||
msgstr "Gewähltes Konto bearbeiten."
|
||||
|
||||
#: messages-i18n.c:76
|
||||
msgid "Edit the main account for this register"
|
||||
@ -1598,15 +1587,15 @@ msgstr ""
|
||||
|
||||
#: messages-i18n.c:87
|
||||
msgid "Create a new account"
|
||||
msgstr "Ein neüs Konto eröffnen."
|
||||
msgstr "Ein neues Konto eröffnen."
|
||||
|
||||
#: messages-i18n.c:88
|
||||
msgid "Create a new file"
|
||||
msgstr "Eine neü Datei anlegen"
|
||||
msgstr "Eine neue Datei anlegen"
|
||||
|
||||
#: messages-i18n.c:89
|
||||
msgid "Add a new transaction to the account"
|
||||
msgstr "Eine neü Transktion hinzufügen"
|
||||
msgstr "Eine neue Transaktion hinzufügen"
|
||||
|
||||
#: messages-i18n.c:90
|
||||
msgid "Open the selected account"
|
||||
@ -1675,7 +1664,6 @@ msgid "Identify and fix problems in the accounts of this register"
|
||||
msgstr "Identifizieren und Beseitigen von Problemen in diesem Konto"
|
||||
|
||||
#: messages-i18n.c:106
|
||||
#, fuzzy
|
||||
msgid "Set the option to its default value"
|
||||
msgstr "Standardeinstellung wiederherstellen"
|
||||
|
||||
@ -1736,7 +1724,6 @@ msgid "Enter the number of shares sold"
|
||||
msgstr "Geben sie die verkaufte Anzahl von Anteilen ein"
|
||||
|
||||
#: messages-i18n.c:122
|
||||
#, fuzzy
|
||||
msgid "Enter the total value of the shares"
|
||||
msgstr "Geben sie den Gesamtwert der Anteile ein"
|
||||
|
||||
@ -1777,9 +1764,8 @@ msgid "_Delete"
|
||||
msgstr "Löschen"
|
||||
|
||||
#: messages-i18n.c:132
|
||||
#, fuzzy
|
||||
msgid "D_uplicate"
|
||||
msgstr "Datum"
|
||||
msgstr "Wiederholen"
|
||||
|
||||
#: messages-i18n.c:133
|
||||
msgid "_Edit"
|
||||
@ -1787,11 +1773,11 @@ msgstr "Bearbeiten"
|
||||
|
||||
#: messages-i18n.c:134
|
||||
msgid "_Edit Account"
|
||||
msgstr "Konto bearbeiten"
|
||||
msgstr "_Konto bearbeiten"
|
||||
|
||||
#: messages-i18n.c:135
|
||||
msgid "_Ending Balance"
|
||||
msgstr "Schlußsaldo"
|
||||
msgstr "_Schlußsaldo"
|
||||
|
||||
#: messages-i18n.c:136
|
||||
msgid "_Finish"
|
||||
@ -1799,7 +1785,7 @@ msgstr "_Ende"
|
||||
|
||||
#: messages-i18n.c:137
|
||||
msgid "_Help"
|
||||
msgstr "Hilfe"
|
||||
msgstr "_Hilfe"
|
||||
|
||||
#: messages-i18n.c:138
|
||||
msgid "_Jump"
|
||||
@ -1807,15 +1793,15 @@ msgstr "Springe"
|
||||
|
||||
#: messages-i18n.c:139
|
||||
msgid "_New"
|
||||
msgstr "Neu"
|
||||
msgstr "_Neu"
|
||||
|
||||
#: messages-i18n.c:140
|
||||
msgid "_New Account"
|
||||
msgstr "Neues Konto"
|
||||
msgstr "_Neues Konto"
|
||||
|
||||
#: messages-i18n.c:141
|
||||
msgid "_Open Account"
|
||||
msgstr "Konto öffnen"
|
||||
msgstr "_Konto öffnen"
|
||||
|
||||
#: messages-i18n.c:142
|
||||
msgid "Open S_ubaccounts"
|
||||
@ -1823,11 +1809,11 @@ msgstr "
|
||||
|
||||
#: messages-i18n.c:143
|
||||
msgid "_Preferences"
|
||||
msgstr "Einstellungen"
|
||||
msgstr "_Einstellungen"
|
||||
|
||||
#: messages-i18n.c:144
|
||||
msgid "_Reconcile"
|
||||
msgstr "Abstimmen"
|
||||
msgstr "_Abstimmen"
|
||||
|
||||
#: messages-i18n.c:145
|
||||
msgid "_Record"
|
||||
@ -2011,7 +1997,7 @@ msgstr "Kaufpreis"
|
||||
|
||||
#: messages-i18n.c:195
|
||||
msgid "Price Quote Source"
|
||||
msgstr "Preisberechnungsqülle"
|
||||
msgstr "Preisberechnungsquelle"
|
||||
|
||||
#: messages-i18n.c:196
|
||||
msgid "Register date ranges"
|
||||
@ -2263,7 +2249,7 @@ msgstr "Diffenrenz"
|
||||
|
||||
#: messages-i18n.c:269
|
||||
msgid "Direct Debit"
|
||||
msgstr ""
|
||||
msgstr "Soll"
|
||||
|
||||
#: messages-i18n.c:270
|
||||
msgid "Dist"
|
||||
@ -2274,9 +2260,8 @@ msgid "Div"
|
||||
msgstr "Dividende"
|
||||
|
||||
#: messages-i18n.c:272
|
||||
#, fuzzy
|
||||
msgid "Duplicate"
|
||||
msgstr "Datum"
|
||||
msgstr "Wiederholen"
|
||||
|
||||
#: messages-i18n.c:273
|
||||
msgid "Edit"
|
||||
@ -2491,7 +2476,6 @@ msgid "Transfer"
|
||||
msgstr "Transfer"
|
||||
|
||||
#: messages-i18n.c:340
|
||||
#, fuzzy
|
||||
msgid "Value"
|
||||
msgstr "Wert"
|
||||
|
||||
|
@ -277,8 +277,8 @@ gncFileOpen (void)
|
||||
/* This dialogue can show up early in the startup process.
|
||||
* If the user fails to pick a file (by e.g. hitting the cancel
|
||||
* button), we might be left with a null topgroup, which leads
|
||||
* to nastiness when user goes to create thier very first account.
|
||||
* Don't leave thier ass in a sling, give them what they need.
|
||||
* to nastiness when user goes to create their very first account.
|
||||
* Don't leave their ass in a sling, give them what they need.
|
||||
*/
|
||||
if (NULL == topgroup)
|
||||
{
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
#include "glade-account-picker.h"
|
||||
#include "glade-cb-account-picker.h"
|
||||
#include "dialog-account-picker.h"
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
@ -85,100 +86,101 @@ build_acct_tree(AccountGroup * group, GtkWidget * tree, GtkWidget * picker) {
|
||||
|
||||
SCM
|
||||
accountPickerBox(char * initial_selection, int initial_type) {
|
||||
|
||||
QIFAccountPickerDialog * wind;
|
||||
|
||||
AccountGroup * topgroup;
|
||||
Account * selected;
|
||||
int i;
|
||||
|
||||
GtkWidget * picker = create_GNUcash_Account_Picker();
|
||||
GtkWidget * treeview = gtk_object_get_data(GTK_OBJECT(picker),
|
||||
"account_tree");
|
||||
GtkWidget * entry = gtk_object_get_data(GTK_OBJECT(picker),
|
||||
"acct_entry");
|
||||
GtkWidget * descript = gtk_object_get_data(GTK_OBJECT(picker),
|
||||
"acct_description_entry");
|
||||
GtkWidget * type_pick = gtk_object_get_data(GTK_OBJECT(picker),
|
||||
"acct_type_picker");
|
||||
GtkWidget * treeitem = gtk_tree_item_new_with_label("All Accounts");
|
||||
GtkWidget * subtree = gtk_tree_new();
|
||||
|
||||
char * selected_account = NULL;
|
||||
SCM infolist;
|
||||
|
||||
GtkWidget * active, * menu;
|
||||
|
||||
gtk_object_set_data(GTK_OBJECT(picker), "string_return",
|
||||
&selected_account);
|
||||
wind = g_new0(QIFAccountPickerDialog, 1);
|
||||
|
||||
wind->dialog = create_GNUcash_Account_Picker();
|
||||
wind->treeview =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog), "account_tree");
|
||||
wind->acct_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog), "acct_entry");
|
||||
wind->descript_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog), "acct_description_entry");
|
||||
wind->type_picker =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog), "acct_type_picker");
|
||||
|
||||
gtk_object_set_data(GTK_OBJECT(wind->dialog), "account-picker-dialog",
|
||||
wind);
|
||||
|
||||
gtk_signal_connect(GTK_OBJECT(subtree), "select_child",
|
||||
GTK_SIGNAL_FUNC(gnc_ui_account_picker_select_cb),
|
||||
picker);
|
||||
wind->dialog);
|
||||
|
||||
/* do some setup */
|
||||
topgroup = gncGetCurrentGroup();
|
||||
gtk_tree_append(GTK_TREE(treeview), treeitem);
|
||||
gtk_tree_append(GTK_TREE(wind->treeview), treeitem);
|
||||
gtk_widget_show(treeitem);
|
||||
|
||||
build_acct_tree(topgroup, subtree, picker);
|
||||
build_acct_tree(topgroup, subtree, wind->dialog);
|
||||
gtk_tree_item_set_subtree(GTK_TREE_ITEM(treeitem), subtree);
|
||||
|
||||
gtk_tree_set_view_lines(GTK_TREE(treeview), TRUE);
|
||||
gtk_tree_set_view_lines(GTK_TREE(wind->treeview), TRUE);
|
||||
gtk_tree_item_expand(GTK_TREE_ITEM(treeitem));
|
||||
|
||||
/* this is a pain in the butt but there's no other way to easily
|
||||
* find out the index of the optionmeny selection */
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(type_pick));
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(wind->type_picker));
|
||||
for(i = 0; i < 11; i++) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(type_pick), i);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->type_picker), i);
|
||||
active = gtk_menu_get_active(GTK_MENU(menu));
|
||||
gtk_object_set_data(GTK_OBJECT(active),
|
||||
"option_index",
|
||||
(gpointer)(i));
|
||||
GINT_TO_POINTER(i));
|
||||
}
|
||||
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(type_pick), 0);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->type_picker), 0);
|
||||
|
||||
if(initial_selection) {
|
||||
printf("setting up initial selection..\n");
|
||||
selected = xaccGetAccountFromFullName(topgroup, initial_selection, ':');
|
||||
gtk_entry_set_text(GTK_ENTRY(entry), initial_selection);
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->acct_entry), initial_selection);
|
||||
|
||||
if(selected) {
|
||||
if(xaccAccountGetDescription(selected)) {
|
||||
gtk_entry_set_text(GTK_ENTRY(descript),
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->descript_entry),
|
||||
xaccAccountGetDescription(selected));
|
||||
}
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(type_pick),
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->type_picker),
|
||||
xaccAccountGetType(selected));
|
||||
infolist = SCM_LIST3(gh_str02scm(selected_account),
|
||||
infolist = SCM_LIST3(gh_str02scm(initial_selection),
|
||||
gh_int2scm(xaccAccountGetType(selected)),
|
||||
gh_str02scm(xaccAccountGetDescription(selected)));
|
||||
}
|
||||
else {
|
||||
gtk_entry_set_text(GTK_ENTRY(descript), "");
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(type_pick),
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->descript_entry), "");
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->type_picker),
|
||||
initial_type);
|
||||
infolist = SCM_LIST3(gh_str02scm(selected_account),
|
||||
infolist = SCM_LIST3(gh_str02scm(initial_selection),
|
||||
gh_int2scm(initial_type),
|
||||
gh_str02scm(""));
|
||||
}
|
||||
|
||||
scm_protect_object(infolist);
|
||||
gtk_object_set_data(GTK_OBJECT(picker),
|
||||
"scm_acct_info", (gpointer)infolist);
|
||||
wind->scm_acct_info = infolist;
|
||||
}
|
||||
|
||||
/* make sure the window is modal, then wait on it */
|
||||
gtk_window_set_modal(GTK_WINDOW(picker), TRUE);
|
||||
gtk_widget_show(GTK_WIDGET(treeview));
|
||||
gtk_widget_show(GTK_WIDGET(picker));
|
||||
gtk_window_set_modal(GTK_WINDOW(wind->dialog), TRUE);
|
||||
gtk_widget_show(GTK_WIDGET(wind->treeview));
|
||||
gtk_widget_show(GTK_WIDGET(wind->dialog));
|
||||
gtk_main();
|
||||
|
||||
infolist = (SCM)gtk_object_get_data(GTK_OBJECT(picker),
|
||||
"scm_acct_info");
|
||||
infolist = wind->scm_acct_info;
|
||||
|
||||
/* destroy the window */
|
||||
gtk_widget_destroy(wind->dialog);
|
||||
scm_unprotect_object(wind->scm_acct_info);
|
||||
g_free(wind);
|
||||
|
||||
/* murder it */
|
||||
gtk_widget_destroy(picker);
|
||||
|
||||
return infolist;
|
||||
}
|
||||
|
||||
@ -186,51 +188,43 @@ void
|
||||
gnc_ui_account_picker_select_cb(GtkTree * tree,
|
||||
GtkWidget * widget,
|
||||
gpointer user_data) {
|
||||
QIFAccountPickerDialog * wind;
|
||||
AccountGroup * topgroup = gncGetCurrentGroup();
|
||||
Account * gnc_acct;
|
||||
GtkWidget * acct_entry = gtk_object_get_data(GTK_OBJECT(user_data),
|
||||
"acct_entry");
|
||||
GtkWidget * descript = gtk_object_get_data(GTK_OBJECT(user_data),
|
||||
"acct_description_entry");
|
||||
GtkWidget * type_pick = gtk_object_get_data(GTK_OBJECT(user_data),
|
||||
"acct_type_picker");
|
||||
char * selected_acct;
|
||||
char * description;
|
||||
int acct_type;
|
||||
SCM infolist;
|
||||
|
||||
printf("in select cb\n");
|
||||
wind = gtk_object_get_data(GTK_OBJECT(user_data),
|
||||
"account-picker-dialog");
|
||||
|
||||
selected_acct = gtk_object_get_data(GTK_OBJECT(widget), "acct_name");
|
||||
gnc_acct = xaccGetAccountFromFullName(topgroup, selected_acct,
|
||||
':');
|
||||
|
||||
gtk_entry_set_text(GTK_ENTRY(acct_entry), selected_acct);
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->acct_entry), selected_acct);
|
||||
description = xaccAccountGetDescription(gnc_acct);
|
||||
acct_type = xaccAccountGetType(gnc_acct);
|
||||
|
||||
gtk_entry_set_text(GTK_ENTRY(descript),
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->descript_entry),
|
||||
description);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(type_pick),
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->type_picker),
|
||||
acct_type);
|
||||
infolist = SCM_LIST3(gh_str02scm(selected_acct),
|
||||
gh_int2scm(acct_type),
|
||||
gh_str02scm(description));
|
||||
scm_protect_object(infolist);
|
||||
gtk_object_set_data(GTK_OBJECT(user_data),
|
||||
"scm_acct_info", (gpointer)infolist);
|
||||
printf("leaving select cb\n");
|
||||
|
||||
scm_unprotect_object(wind->scm_acct_info);
|
||||
wind->scm_acct_info = infolist;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
gnc_ui_account_picker_ok_cb(GtkButton *button,
|
||||
gpointer user_data) {
|
||||
GtkWidget * acct_entry = gtk_object_get_data(GTK_OBJECT(user_data),
|
||||
"acct_entry");
|
||||
GtkWidget * descript = gtk_object_get_data(GTK_OBJECT(user_data),
|
||||
"acct_description_entry");
|
||||
GtkWidget * type_pick = gtk_object_get_data(GTK_OBJECT(user_data),
|
||||
"acct_type_picker");
|
||||
QIFAccountPickerDialog * wind;
|
||||
GtkWidget * type_menu;
|
||||
GtkWidget * menuitem;
|
||||
|
||||
@ -239,24 +233,29 @@ gnc_ui_account_picker_ok_cb(GtkButton *button,
|
||||
int acct_type;
|
||||
SCM infolist;
|
||||
|
||||
selected_acct = gtk_entry_get_text(GTK_ENTRY(acct_entry));
|
||||
description = gtk_entry_get_text(GTK_ENTRY(descript));
|
||||
wind = gtk_object_get_data(GTK_OBJECT(user_data),
|
||||
"account-picker-dialog");
|
||||
|
||||
type_menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(type_pick));
|
||||
selected_acct = gtk_entry_get_text(GTK_ENTRY(wind->acct_entry));
|
||||
description = gtk_entry_get_text(GTK_ENTRY(wind->descript_entry));
|
||||
|
||||
type_menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(wind->type_picker));
|
||||
menuitem = gtk_menu_get_active(GTK_MENU(type_menu));
|
||||
acct_type = (int)(gtk_object_get_data(GTK_OBJECT(menuitem),
|
||||
"option_index"));
|
||||
|
||||
gtk_entry_set_text(GTK_ENTRY(descript),
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->descript_entry),
|
||||
description);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(type_pick),
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->type_picker),
|
||||
acct_type);
|
||||
|
||||
infolist = SCM_LIST3(gh_str02scm(selected_acct),
|
||||
gh_int2scm(acct_type),
|
||||
gh_str02scm(description));
|
||||
scm_protect_object(infolist);
|
||||
gtk_object_set_data(GTK_OBJECT(user_data),
|
||||
"scm_acct_info", (gpointer)infolist);
|
||||
|
||||
scm_unprotect_object(wind->scm_acct_info);
|
||||
wind->scm_acct_info = infolist;
|
||||
|
||||
gtk_main_quit();
|
||||
}
|
||||
@ -264,8 +263,13 @@ gnc_ui_account_picker_ok_cb(GtkButton *button,
|
||||
void
|
||||
gnc_ui_account_picker_cancel_cb(GtkButton * button,
|
||||
gpointer user_data) {
|
||||
gtk_object_set_data(GTK_OBJECT(user_data),
|
||||
"scm_acct_info",
|
||||
(gpointer)SCM_BOOL_F);
|
||||
QIFAccountPickerDialog * wind =
|
||||
gtk_object_get_data(GTK_OBJECT(user_data), "account-picker-dialog");
|
||||
|
||||
scm_unprotect_object(wind->scm_acct_info);
|
||||
|
||||
wind->scm_acct_info = SCM_BOOL_F;
|
||||
scm_protect_object(wind->scm_acct_info);
|
||||
|
||||
gtk_main_quit();
|
||||
}
|
||||
|
@ -60,10 +60,11 @@
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox1</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<class>GtkFrame</class>
|
||||
<name>frame1</name>
|
||||
<label>Accounts</label>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
@ -71,79 +72,123 @@
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkFrame</class>
|
||||
<name>frame1</name>
|
||||
<label>Accounts</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>
|
||||
<class>GtkScrolledWindow</class>
|
||||
<name>scrolledwindow1</name>
|
||||
<width>250</width>
|
||||
<height>200</height>
|
||||
<hscrollbar_policy>GTK_POLICY_ALWAYS</hscrollbar_policy>
|
||||
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
|
||||
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
||||
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
||||
|
||||
<widget>
|
||||
<class>GtkScrolledWindow</class>
|
||||
<name>scrolledwindow1</name>
|
||||
<width>250</width>
|
||||
<height>200</height>
|
||||
<hscrollbar_policy>GTK_POLICY_ALWAYS</hscrollbar_policy>
|
||||
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
|
||||
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
||||
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
||||
<class>GtkViewport</class>
|
||||
<name>viewport1</name>
|
||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkViewport</class>
|
||||
<name>viewport1</name>
|
||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||
|
||||
<widget>
|
||||
<class>GtkTree</class>
|
||||
<name>account_tree</name>
|
||||
<signal>
|
||||
<name>select_child</name>
|
||||
<handler>gnc_ui_account_picker_select_cb</handler>
|
||||
<data>GNUcash_Account_Picker</data>
|
||||
<last_modification_time>Thu, 02 Mar 2000 21:32:14 GMT</last_modification_time>
|
||||
</signal>
|
||||
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
|
||||
<view_mode>GTK_TREE_VIEW_LINE</view_mode>
|
||||
<view_line>True</view_line>
|
||||
</widget>
|
||||
<class>GtkTree</class>
|
||||
<name>account_tree</name>
|
||||
<signal>
|
||||
<name>select_child</name>
|
||||
<handler>gnc_ui_account_picker_select_cb</handler>
|
||||
<data>GNUcash_Account_Picker</data>
|
||||
<last_modification_time>Thu, 02 Mar 2000 21:32:14 GMT</last_modification_time>
|
||||
</signal>
|
||||
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
|
||||
<view_mode>GTK_TREE_VIEW_LINE</view_mode>
|
||||
<view_line>True</view_line>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox5</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox2</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox4</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>6</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
<padding>5</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label1</name>
|
||||
<width>90</width>
|
||||
<label>Selected account</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<label>Selected account:</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>8</padding>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label2</name>
|
||||
<label>Description:</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</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>GtkLabel</class>
|
||||
<name>label3</name>
|
||||
<label>Account type:</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox5</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>acct_entry</name>
|
||||
@ -154,94 +199,33 @@
|
||||
<text></text>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox3</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>acct_description_entry</name>
|
||||
<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>GtkLabel</class>
|
||||
<name>label2</name>
|
||||
<width>90</width>
|
||||
<label>Description</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>8</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>acct_description_entry</name>
|
||||
<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>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox4</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label3</name>
|
||||
<width>90</width>
|
||||
<label>Account type</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>8</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkOptionMenu</class>
|
||||
<name>acct_type_picker</name>
|
||||
<width>150</width>
|
||||
<height>30</height>
|
||||
<can_focus>True</can_focus>
|
||||
<items>Bank
|
||||
<widget>
|
||||
<class>GtkOptionMenu</class>
|
||||
<name>acct_type_picker</name>
|
||||
<width>150</width>
|
||||
<height>30</height>
|
||||
<can_focus>True</can_focus>
|
||||
<items>Bank
|
||||
Cash
|
||||
Asset
|
||||
Credit
|
||||
@ -253,12 +237,13 @@ Income
|
||||
Expense
|
||||
Equity
|
||||
</items>
|
||||
<initial_choice>0</initial_choice>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
<initial_choice>0</initial_choice>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
|
@ -24,6 +24,21 @@
|
||||
#include "glade-account-picker.h"
|
||||
#include "glade-cb-account-picker.h"
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM accountPickerBox(char *initial_pick, int initial_type);
|
||||
|
||||
typedef struct _accountpickerdialog {
|
||||
|
||||
GtkWidget * dialog;
|
||||
GtkWidget * treeview;
|
||||
GtkWidget * acct_entry;
|
||||
GtkWidget * descript_entry;
|
||||
GtkWidget * type_picker;
|
||||
|
||||
SCM scm_acct_info;
|
||||
|
||||
} QIFAccountPickerDialog;
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -3,6 +3,7 @@
|
||||
* (GnuCash) *
|
||||
* Copyright (C) 1997 Robin D. Clark *
|
||||
* Copyright (C) 1997, 1998, 1999 Linas Vepstas *
|
||||
* Copyright (C) 2000 Dave Peticolas <peticola@cs.ucdavis.edu> *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License as *
|
||||
|
@ -2,6 +2,7 @@
|
||||
* dialog-edit.h -- window for editing account information *
|
||||
* (GnuCash) *
|
||||
* Copyright (C) 1999 Linas Vepstas *
|
||||
* Copyright (C) 2000 Dave Peticolas <peticola@cs.ucdavis.edu> *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License as *
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "window-help.h"
|
||||
#include "messages.h"
|
||||
#include "gnome-top-level.h"
|
||||
#include "ui-callbacks.h"
|
||||
|
||||
#include "Account.h"
|
||||
#include "AccInfo.h"
|
||||
@ -53,15 +54,11 @@ static void update_categories_page(QIFImportWindow * win);
|
||||
\********************************************************************/
|
||||
|
||||
QIFImportWindow *
|
||||
gnc_ui_qif_import_dialog_make(GtkWidget * parent)
|
||||
gnc_ui_qif_import_dialog_make()
|
||||
{
|
||||
QIFImportWindow * retval;
|
||||
|
||||
GtkWidget * optionmenu;
|
||||
GtkWidget * menu;
|
||||
GtkWidget * active;
|
||||
GtkWidget * currency_entry;
|
||||
|
||||
int i;
|
||||
|
||||
SCM load_map_prefs;
|
||||
@ -71,14 +68,37 @@ gnc_ui_qif_import_dialog_make(GtkWidget * parent)
|
||||
SCM default_currency;
|
||||
int scm_strlen;
|
||||
|
||||
retval = (QIFImportWindow *) malloc(sizeof(QIFImportWindow));
|
||||
retval = g_new0(QIFImportWindow, 1);
|
||||
|
||||
retval->parent = parent;
|
||||
retval->dialog = create_QIF_File_Import_Dialog();
|
||||
retval->imported_files =
|
||||
SCM_EOL;
|
||||
retval->selected_file = SCM_BOOL_F;
|
||||
|
||||
retval->currency_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "qif_currency_entry");
|
||||
retval->radix_picker =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "qif_radix_picker");
|
||||
retval->date_picker =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "qif_date_picker");
|
||||
retval->filename_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "qif_filename_entry");
|
||||
retval->acct_auto_button =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "qif_account_auto_check");
|
||||
retval->acct_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "qif_account_entry");
|
||||
retval->selected_file_list =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "selected_file_list");
|
||||
|
||||
retval->acct_list =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "account_page_list");
|
||||
retval->cat_list =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "category_page_list");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
gtk_object_set_data(GTK_OBJECT(retval->dialog),
|
||||
"qif_window_struct", retval);
|
||||
|
||||
@ -100,39 +120,33 @@ gnc_ui_qif_import_dialog_make(GtkWidget * parent)
|
||||
scm_protect_object(retval->mapping_info);
|
||||
|
||||
/* set the currency entry to the GNC default currency */
|
||||
currency_entry = gtk_object_get_data(GTK_OBJECT(retval->dialog),
|
||||
"qif_currency_entry");
|
||||
gtk_entry_set_text(GTK_ENTRY(currency_entry),
|
||||
gtk_entry_set_text(GTK_ENTRY(retval->currency_entry),
|
||||
gh_scm2newstr(default_currency, &scm_strlen));
|
||||
|
||||
/* repair the option menus to associate "option_index" with the
|
||||
* index number for each menu item */
|
||||
optionmenu = gtk_object_get_data(GTK_OBJECT(retval->dialog),
|
||||
"qif_radix_picker");
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(optionmenu));
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(retval->radix_picker));
|
||||
|
||||
for(i = 0; i < 3; i++) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(optionmenu), i);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(retval->radix_picker), i);
|
||||
active = gtk_menu_get_active(GTK_MENU(menu));
|
||||
gtk_object_set_data(GTK_OBJECT(active),
|
||||
"option_index",
|
||||
(gpointer)(i));
|
||||
gtk_object_set_data(GTK_OBJECT(active), "option_index",
|
||||
GINT_TO_POINTER(i));
|
||||
}
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(optionmenu), 0);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(retval->radix_picker), 0);
|
||||
|
||||
|
||||
optionmenu = gtk_object_get_data(GTK_OBJECT(retval->dialog),
|
||||
"qif_date_picker");
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(optionmenu));
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(retval->date_picker));
|
||||
|
||||
for(i = 0; i < 5; i++) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(optionmenu), i);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(retval->date_picker), i);
|
||||
active = gtk_menu_get_active(GTK_MENU(menu));
|
||||
gtk_object_set_data(GTK_OBJECT(active),
|
||||
"option_index",
|
||||
(gpointer)(i));
|
||||
GINT_TO_POINTER(i));
|
||||
}
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(optionmenu), 0);
|
||||
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(retval->date_picker), 0);
|
||||
|
||||
gtk_widget_show(retval->dialog);
|
||||
|
||||
if (retval->dialog->window == NULL) {
|
||||
@ -157,6 +171,14 @@ gnc_ui_qif_import_dialog_destroy (QIFImportWindow * window)
|
||||
if(window) {
|
||||
gnome_dialog_close(GNOME_DIALOG(window->dialog));
|
||||
}
|
||||
|
||||
scm_unprotect_object(window->imported_files);
|
||||
scm_unprotect_object(window->selected_file);
|
||||
scm_unprotect_object(window->mapping_info);
|
||||
scm_unprotect_object(window->cat_display_info);
|
||||
scm_unprotect_object(window->acct_display_info);
|
||||
|
||||
g_free(window);
|
||||
}
|
||||
|
||||
|
||||
@ -174,21 +196,6 @@ gnc_ui_qif_import_select_file_cb(GtkButton * button,
|
||||
QIFImportWindow * wind =
|
||||
gtk_object_get_data(GTK_OBJECT(dialog), "qif_window_struct");
|
||||
|
||||
GtkWidget * qif_filename_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog), "qif_filename_entry");
|
||||
GtkWidget * acct_auto_button =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_account_auto_check");
|
||||
GtkWidget * qif_acct_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_account_entry");
|
||||
GtkWidget * qif_radix_picker =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_radix_picker");
|
||||
GtkWidget * qif_date_picker =
|
||||
gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_date_picker");
|
||||
|
||||
char * new_file_name;
|
||||
|
||||
new_file_name = (char *)fileBox("Select QIF File", "*.qif");
|
||||
@ -196,30 +203,30 @@ gnc_ui_qif_import_select_file_cb(GtkButton * button,
|
||||
if(new_file_name) {
|
||||
|
||||
/* set the filename entry for what was selected */
|
||||
if(qif_filename_entry) {
|
||||
gtk_entry_set_text(GTK_ENTRY(qif_filename_entry),
|
||||
if(wind->filename_entry) {
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->filename_entry),
|
||||
new_file_name);
|
||||
}
|
||||
|
||||
|
||||
/* the account should be auto-determined by default
|
||||
* if the "opening balance" trick doesn't work "auto" will
|
||||
* use the file name as a guess */
|
||||
if(acct_auto_button) {
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(acct_auto_button),
|
||||
if(wind->acct_auto_button) {
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(wind->acct_auto_button),
|
||||
TRUE);
|
||||
}
|
||||
if(qif_acct_entry) {
|
||||
gtk_entry_set_text(GTK_ENTRY(qif_acct_entry),
|
||||
if(wind->acct_entry) {
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->acct_entry),
|
||||
"");
|
||||
}
|
||||
|
||||
/* radix and date formats are auto-determined by default */
|
||||
if(qif_date_picker) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(qif_date_picker),
|
||||
if(wind->date_picker) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->date_picker),
|
||||
0);
|
||||
}
|
||||
if(qif_radix_picker) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(qif_radix_picker),
|
||||
if(wind->radix_picker) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->radix_picker),
|
||||
0);
|
||||
}
|
||||
}
|
||||
@ -247,19 +254,7 @@ gnc_ui_qif_import_load_file_cb (GtkButton *button,
|
||||
int radix_format;
|
||||
int date_format;
|
||||
|
||||
GtkWidget * filename_box = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_filename_entry");
|
||||
GtkWidget * currency_box = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_currency_entry");
|
||||
GtkWidget * radix_picker = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_radix_picker");
|
||||
GtkWidget * date_picker = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_date_picker");
|
||||
GtkWidget * account_entry = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_account_entry");
|
||||
GtkWidget * account_auto = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"qif_account_auto_check");
|
||||
|
||||
GtkWidget * menu;
|
||||
GtkWidget * menuitem;
|
||||
|
||||
SCM make_qif_file, qif_file_load, qif_file_loaded, unload_qif_file;
|
||||
@ -272,27 +267,27 @@ gnc_ui_qif_import_load_file_cb (GtkButton *button,
|
||||
"y-m-d", "y-d-m" };
|
||||
|
||||
/* get the UI elements */
|
||||
path_to_load = gtk_entry_get_text(GTK_ENTRY(filename_box));
|
||||
currency = gtk_entry_get_text(GTK_ENTRY(currency_box));
|
||||
qif_account = gtk_entry_get_text(GTK_ENTRY(account_entry));
|
||||
path_to_load = gtk_entry_get_text(GTK_ENTRY(wind->filename_entry));
|
||||
currency = gtk_entry_get_text(GTK_ENTRY(wind->currency_entry));
|
||||
qif_account = gtk_entry_get_text(GTK_ENTRY(wind->acct_entry));
|
||||
|
||||
radix_picker = gtk_option_menu_get_menu(GTK_OPTION_MENU(radix_picker));
|
||||
menuitem = gtk_menu_get_active(GTK_MENU(radix_picker));
|
||||
radix_format = (int)(gtk_object_get_data(GTK_OBJECT(menuitem),
|
||||
"option_index"));
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(wind->radix_picker));
|
||||
menuitem = gtk_menu_get_active(GTK_MENU(menu));
|
||||
radix_format = GPOINTER_TO_INT(gtk_object_get_data(GTK_OBJECT(menuitem),
|
||||
"option_index"));
|
||||
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(wind->date_picker));
|
||||
menuitem = gtk_menu_get_active(GTK_MENU(menu));
|
||||
date_format = GPOINTER_TO_INT(gtk_object_get_data(GTK_OBJECT(menuitem),
|
||||
"option_index"));
|
||||
|
||||
date_picker = gtk_option_menu_get_menu(GTK_OPTION_MENU(date_picker));
|
||||
menuitem = gtk_menu_get_active(GTK_MENU(date_picker));
|
||||
date_format = (int)(gtk_object_get_data(GTK_OBJECT(menuitem),
|
||||
"option_index"));
|
||||
|
||||
if(strlen(path_to_load) == 0) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"You must specify a file to load.");
|
||||
_("You must specify a file to load."));
|
||||
}
|
||||
else if(strlen(currency) == 0) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"You must specify a currency.");
|
||||
_("You must specify a currency."));
|
||||
}
|
||||
else {
|
||||
/* find the make and load functions. */
|
||||
@ -304,8 +299,9 @@ gnc_ui_qif_import_load_file_cb (GtkButton *button,
|
||||
if((!gh_procedure_p(make_qif_file)) ||
|
||||
(!gh_procedure_p(qif_file_load)) ||
|
||||
(!gh_procedure_p(qif_file_loaded))) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"QIF File scheme code not loaded properly.");
|
||||
gnc_error_dialog_parented
|
||||
(GTK_WINDOW(wind->dialog),
|
||||
_("QIF File scheme code not loaded properly."));
|
||||
}
|
||||
else {
|
||||
/* convert args */
|
||||
@ -314,20 +310,22 @@ gnc_ui_qif_import_load_file_cb (GtkButton *button,
|
||||
scm_radix = gh_symbol2scm(radix_symbols[radix_format]);
|
||||
scm_date = gh_symbol2scm(date_symbols[date_format]);
|
||||
|
||||
if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(account_auto))) {
|
||||
if(gtk_toggle_button_get_active
|
||||
(GTK_TOGGLE_BUTTON(wind->acct_auto_button))) {
|
||||
scm_qif_account = gh_symbol2scm("unknown");
|
||||
}
|
||||
else {
|
||||
scm_qif_account = gh_str02scm(qif_account);
|
||||
}
|
||||
|
||||
|
||||
imported_files = wind->imported_files;
|
||||
|
||||
if(gh_call2(qif_file_loaded, scm_filename, wind->imported_files)
|
||||
== SCM_BOOL_T) {
|
||||
if(gnc_verify_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"QIF File already loaded. Reload "
|
||||
"with current settings?", TRUE)) {
|
||||
if(gnc_verify_dialog_parented
|
||||
(GTK_WINDOW(wind->dialog),
|
||||
_("QIF File already loaded. Reload with current settings?"),
|
||||
TRUE)) {
|
||||
imported_files =
|
||||
gh_call2(unload_qif_file, scm_filename, wind->imported_files);
|
||||
}
|
||||
@ -335,6 +333,9 @@ gnc_ui_qif_import_load_file_cb (GtkButton *button,
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* turn on the busy cursor */
|
||||
gnc_set_busy_cursor(NULL);
|
||||
|
||||
/* create the <qif-file> object */
|
||||
scm_qiffile = gh_apply(make_qif_file,
|
||||
@ -354,9 +355,9 @@ gnc_ui_qif_import_load_file_cb (GtkButton *button,
|
||||
if(gh_call2(qif_file_load,
|
||||
gh_car(imported_files),
|
||||
scm_filename) != SCM_BOOL_T) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"Failed to load QIF file. Are you "
|
||||
"sure it's a QIF file?");
|
||||
gnc_error_dialog_parented
|
||||
(GTK_WINDOW(wind->dialog),
|
||||
_("Failed to load QIF file. Are you sure it's a QIF file?"));
|
||||
imported_files =
|
||||
gh_call2(unload_qif_file, scm_filename, imported_files);
|
||||
}
|
||||
@ -367,7 +368,9 @@ gnc_ui_qif_import_load_file_cb (GtkButton *button,
|
||||
update_file_page(wind);
|
||||
update_accounts_page(wind);
|
||||
update_categories_page(wind);
|
||||
|
||||
|
||||
/* turn back the cursor */
|
||||
gnc_unset_busy_cursor(NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -383,7 +386,8 @@ gnc_ui_qif_import_select_loaded_file_cb(GtkList * list,
|
||||
|
||||
SCM scm_qiffile;
|
||||
|
||||
scm_qiffile = (SCM)gtk_object_get_data(GTK_OBJECT(widget), "scm-object");
|
||||
scm_qiffile = GPOINTER_TO_INT
|
||||
(gtk_object_get_data(GTK_OBJECT(widget), "scm-object"));
|
||||
|
||||
wind->selected_file = scm_qiffile;
|
||||
scm_protect_object(wind->selected_file);
|
||||
@ -412,30 +416,28 @@ gnc_ui_qif_import_ok_cb(GtkButton * button, gpointer user_data) {
|
||||
QIFImportWindow * wind =
|
||||
gtk_object_get_data(GTK_OBJECT(dialog), "qif_window_struct");
|
||||
|
||||
GtkWidget * acc_list = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"account_page_list");
|
||||
GtkWidget * cat_list = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"category_page_list");
|
||||
|
||||
save_map_prefs = gh_eval_str("qif-import:save-map-prefs");
|
||||
qif_to_gnc = gh_eval_str("qif-import:qif-to-gnc");
|
||||
hash_set = gh_eval_str("hash-set!");
|
||||
|
||||
/* busy cursor */
|
||||
gnc_set_busy_cursor(NULL);
|
||||
|
||||
/* transfer the info from the account / category pickers to
|
||||
* the mapping info hash tables */
|
||||
for(row=0; row < GTK_CLIST(acc_list)->rows; row++) {
|
||||
gtk_clist_get_text(GTK_CLIST(acc_list), row, 0, &qif_acct_name);
|
||||
|
||||
hash_data = (SCM)gtk_clist_get_row_data(GTK_CLIST(acc_list), row);
|
||||
for(row=0; row < GTK_CLIST(wind->acct_list)->rows; row++) {
|
||||
gtk_clist_get_text(GTK_CLIST(wind->acct_list), row, 0, &qif_acct_name);
|
||||
|
||||
hash_data = (SCM)gtk_clist_get_row_data(GTK_CLIST(wind->acct_list), row);
|
||||
gh_call3(hash_set, gh_cadr(wind->mapping_info),
|
||||
gh_str02scm(qif_acct_name),
|
||||
hash_data);
|
||||
}
|
||||
|
||||
for(row=0; row < GTK_CLIST(cat_list)->rows; row++) {
|
||||
gtk_clist_get_text(GTK_CLIST(cat_list), row, 0, &qif_cat_name);
|
||||
for(row=0; row < GTK_CLIST(wind->cat_list)->rows; row++) {
|
||||
gtk_clist_get_text(GTK_CLIST(wind->cat_list), row, 0, &qif_cat_name);
|
||||
|
||||
hash_data = (SCM)gtk_clist_get_row_data(GTK_CLIST(cat_list), row);
|
||||
hash_data = (SCM)gtk_clist_get_row_data(GTK_CLIST(wind->cat_list), row);
|
||||
gh_call3(hash_set, gh_caddr(wind->mapping_info),
|
||||
gh_str02scm(qif_cat_name),
|
||||
hash_data);
|
||||
@ -448,6 +450,8 @@ gnc_ui_qif_import_ok_cb(GtkButton * button, gpointer user_data) {
|
||||
/* write out mapping info before destroying the window */
|
||||
gh_call1(save_map_prefs, wind->mapping_info);
|
||||
|
||||
gnc_unset_busy_cursor(NULL);
|
||||
|
||||
gnc_ui_qif_import_dialog_destroy(wind);
|
||||
wind = NULL;
|
||||
}
|
||||
@ -546,27 +550,25 @@ update_file_page(QIFImportWindow * wind) {
|
||||
SCM qif_file_path;
|
||||
int path_strlen;
|
||||
|
||||
/* find the list of loaded files */
|
||||
GtkWidget * loaded_files = gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"selected_file_list");
|
||||
/* clear the list */
|
||||
gtk_list_remove_items(GTK_LIST(loaded_files),
|
||||
gtk_container_children(GTK_CONTAINER(loaded_files)));
|
||||
gtk_list_remove_items(GTK_LIST(wind->selected_file_list),
|
||||
gtk_container_children
|
||||
(GTK_CONTAINER(wind->selected_file_list)));
|
||||
qif_file_path = gh_eval_str("qif-file:path");
|
||||
|
||||
/* iterate over all the imported files */
|
||||
while(!gh_null_p(loaded_file_list)) {
|
||||
scm_qiffile = gh_car(loaded_file_list);
|
||||
|
||||
|
||||
/* make a list item with the SCM object attached as data */
|
||||
new_list_item =
|
||||
gtk_list_item_new_with_label(gh_scm2newstr(gh_call1(qif_file_path,
|
||||
scm_qiffile),
|
||||
scm_qiffile),
|
||||
&path_strlen));
|
||||
gtk_object_set_data(GTK_OBJECT(new_list_item),
|
||||
"scm-object", (gpointer)scm_qiffile);
|
||||
"scm-object", GINT_TO_POINTER(scm_qiffile));
|
||||
scm_protect_object(scm_qiffile);
|
||||
|
||||
|
||||
/* tack it on to the displayed list */
|
||||
new_loaded_file = g_list_alloc();
|
||||
new_loaded_file->next = NULL;
|
||||
@ -575,13 +577,14 @@ update_file_page(QIFImportWindow * wind) {
|
||||
new_loaded_file->data = new_list_item;
|
||||
|
||||
/* now add the file to the loaded-files list */
|
||||
gtk_list_append_items(GTK_LIST(loaded_files), new_loaded_file);
|
||||
gtk_list_append_items(GTK_LIST(wind->selected_file_list),
|
||||
new_loaded_file);
|
||||
|
||||
/* select_child will update the file info */
|
||||
if(scm_qiffile == wind->selected_file) {
|
||||
gtk_list_select_child(GTK_LIST(loaded_files), new_list_item);
|
||||
gtk_list_select_child(GTK_LIST(wind->selected_file_list), new_list_item);
|
||||
}
|
||||
|
||||
|
||||
loaded_file_list = gh_cdr(loaded_file_list);
|
||||
}
|
||||
}
|
||||
@ -597,7 +600,7 @@ update_file_page(QIFImportWindow * wind) {
|
||||
\********************************************************************/
|
||||
|
||||
static void
|
||||
update_file_info(QIFImportWindow * win, SCM qif_file) {
|
||||
update_file_info(QIFImportWindow * wind, SCM qif_file) {
|
||||
|
||||
SCM qif_file_radix_format;
|
||||
SCM qif_file_date_format;
|
||||
@ -610,13 +613,6 @@ update_file_info(QIFImportWindow * win, SCM qif_file) {
|
||||
SCM scm_qif_account;
|
||||
SCM scm_qif_path;
|
||||
|
||||
GtkWidget * path_entry;
|
||||
GtkWidget * currency_entry;
|
||||
GtkWidget * radix_optionmenu;
|
||||
GtkWidget * date_optionmenu;
|
||||
GtkWidget * account_entry;
|
||||
GtkWidget * account_auto;
|
||||
|
||||
int scm_strlen;
|
||||
|
||||
/* look up the <qif-file> methods */
|
||||
@ -632,28 +628,14 @@ update_file_info(QIFImportWindow * win, SCM qif_file) {
|
||||
(!gh_procedure_p(qif_file_currency)) ||
|
||||
(!gh_procedure_p(qif_file_account)) ||
|
||||
(!gh_procedure_p(qif_file_path))) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(win->dialog),
|
||||
"QIF File scheme code not loaded properly.");
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
_("QIF File scheme code not loaded properly."));
|
||||
return;
|
||||
}
|
||||
else {
|
||||
/* find the relevant widgets */
|
||||
path_entry = gtk_object_get_data(GTK_OBJECT(win->dialog),
|
||||
"qif_filename_entry");
|
||||
currency_entry = gtk_object_get_data(GTK_OBJECT(win->dialog),
|
||||
"qif_currency_entry");
|
||||
radix_optionmenu = gtk_object_get_data(GTK_OBJECT(win->dialog),
|
||||
"qif_radix_picker");
|
||||
date_optionmenu = gtk_object_get_data(GTK_OBJECT(win->dialog),
|
||||
"qif_date_picker");
|
||||
account_entry = gtk_object_get_data(GTK_OBJECT(win->dialog),
|
||||
"qif_account_entry");
|
||||
account_auto = gtk_object_get_data(GTK_OBJECT(win->dialog),
|
||||
"qif_account_auto_check");
|
||||
|
||||
/* stick the currently-selected qiffile scm in the window data */
|
||||
gtk_object_set_data(GTK_OBJECT(win->dialog),
|
||||
"current_qif_file", (gpointer)qif_file);
|
||||
gtk_object_set_data(GTK_OBJECT(wind->dialog),
|
||||
"current_qif_file", GINT_TO_POINTER(qif_file));
|
||||
|
||||
scm_protect_object(qif_file);
|
||||
|
||||
@ -670,50 +652,51 @@ update_file_info(QIFImportWindow * win, SCM qif_file) {
|
||||
qif_file);
|
||||
|
||||
/* put the data in the info fields */
|
||||
gtk_entry_set_text(GTK_ENTRY(path_entry),
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->filename_entry),
|
||||
gh_scm2newstr(scm_qif_path, &scm_strlen));
|
||||
gtk_entry_set_text(GTK_ENTRY(currency_entry),
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->currency_entry),
|
||||
gh_scm2newstr(scm_currency, &scm_strlen));
|
||||
|
||||
/* account is weird. after loading, either we know it or we don't
|
||||
* but in either case the auto should be off. */
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(account_auto), FALSE);
|
||||
gtk_entry_set_text(GTK_ENTRY(account_entry),
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(wind->acct_auto_button),
|
||||
FALSE);
|
||||
gtk_entry_set_text(GTK_ENTRY(wind->acct_entry),
|
||||
gh_scm2newstr(scm_qif_account, &scm_strlen));
|
||||
|
||||
/* set the option menu selections */
|
||||
if(!strcmp(gh_symbol2newstr(scm_radix_format, &scm_strlen),
|
||||
"unknown")) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(radix_optionmenu), 0);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->radix_picker), 0);
|
||||
}
|
||||
else if(!strcmp(gh_symbol2newstr(scm_radix_format, &scm_strlen),
|
||||
"decimal")) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(radix_optionmenu), 1);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->radix_picker), 1);
|
||||
}
|
||||
else if(!strcmp(gh_symbol2newstr(scm_radix_format, &scm_strlen),
|
||||
"comma")) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(radix_optionmenu), 2);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->radix_picker), 2);
|
||||
}
|
||||
|
||||
if(!strcmp(gh_symbol2newstr(scm_date_format, &scm_strlen),
|
||||
"unknown")) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(date_optionmenu), 0);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->date_picker), 0);
|
||||
}
|
||||
else if(!strcmp(gh_symbol2newstr(scm_date_format, &scm_strlen),
|
||||
"m-d-y")) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(date_optionmenu), 1);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->date_picker), 1);
|
||||
}
|
||||
else if(!strcmp(gh_symbol2newstr(scm_date_format, &scm_strlen),
|
||||
"d-m-y")) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(date_optionmenu), 2);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->date_picker), 2);
|
||||
}
|
||||
else if(!strcmp(gh_symbol2newstr(scm_date_format, &scm_strlen),
|
||||
"y-m-d")) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(date_optionmenu), 3);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->date_picker), 3);
|
||||
}
|
||||
else if(!strcmp(gh_symbol2newstr(scm_date_format, &scm_strlen),
|
||||
"y-d-m")) {
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(date_optionmenu), 4);
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU(wind->date_picker), 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -738,7 +721,6 @@ update_accounts_page(QIFImportWindow * wind) {
|
||||
int xtn_count;
|
||||
char * xtn_count_string;
|
||||
char * qif_acct_name;
|
||||
GtkWidget * account_list;
|
||||
int row;
|
||||
int scheme_strlen;
|
||||
char * row_text[4];
|
||||
@ -749,19 +731,16 @@ update_accounts_page(QIFImportWindow * wind) {
|
||||
/* make sure we found the procedure */
|
||||
if(!gh_procedure_p(make_account_display)) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"QIF File scheme code not loaded properly.");
|
||||
_("QIF File scheme code not loaded properly."));
|
||||
return;
|
||||
}
|
||||
|
||||
account_list = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"account_page_list");
|
||||
|
||||
/* transfer the existing info from the account picker to
|
||||
* the mapping info hash table */
|
||||
for(row=0; row < GTK_CLIST(account_list)->rows; row++) {
|
||||
gtk_clist_get_text(GTK_CLIST(account_list), row, 0, &qif_acct_name);
|
||||
for(row=0; row < GTK_CLIST(wind->acct_list)->rows; row++) {
|
||||
gtk_clist_get_text(GTK_CLIST(wind->acct_list), row, 0, &qif_acct_name);
|
||||
|
||||
hash_data = (SCM)gtk_clist_get_row_data(GTK_CLIST(account_list), row);
|
||||
hash_data = (SCM)gtk_clist_get_row_data(GTK_CLIST(wind->acct_list), row);
|
||||
gh_call3(hash_set, gh_cadr(wind->mapping_info),
|
||||
gh_str02scm(qif_acct_name),
|
||||
hash_data);
|
||||
@ -778,18 +757,19 @@ update_accounts_page(QIFImportWindow * wind) {
|
||||
|
||||
strings_left = wind->acct_display_info;
|
||||
if(!gh_list_p(strings_left)) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"Something is very wrong with QIF Importing.");
|
||||
gnc_error_dialog_parented
|
||||
(GTK_WINDOW(wind->dialog),
|
||||
_("Something is very wrong with QIF Importing."));
|
||||
return;
|
||||
}
|
||||
|
||||
/* clear the list */
|
||||
gtk_clist_clear(GTK_CLIST(account_list));
|
||||
gtk_clist_clear(GTK_CLIST(wind->acct_list));
|
||||
|
||||
/* update the text in the boxes */
|
||||
gtk_clist_freeze(GTK_CLIST(account_list));
|
||||
gtk_clist_freeze(GTK_CLIST(wind->acct_list));
|
||||
|
||||
gtk_clist_set_column_justification(GTK_CLIST(account_list),
|
||||
gtk_clist_set_column_justification(GTK_CLIST(wind->acct_list),
|
||||
0,
|
||||
GTK_JUSTIFY_RIGHT);
|
||||
row = 0;
|
||||
@ -805,10 +785,10 @@ update_accounts_page(QIFImportWindow * wind) {
|
||||
xaccAccountTypeEnumAsString(gh_scm2int
|
||||
(gh_caddr(gh_car(strings_left))));
|
||||
|
||||
gtk_clist_append(GTK_CLIST(account_list), row_text);
|
||||
gtk_clist_append(GTK_CLIST(wind->acct_list), row_text);
|
||||
|
||||
gtk_clist_set_row_data(GTK_CLIST(account_list), row,
|
||||
(gpointer)(gh_car(strings_left)));
|
||||
gtk_clist_set_row_data(GTK_CLIST(wind->acct_list), row,
|
||||
GINT_TO_POINTER((gh_car(strings_left))));
|
||||
|
||||
scm_protect_object(gh_car(strings_left));
|
||||
|
||||
@ -817,7 +797,7 @@ update_accounts_page(QIFImportWindow * wind) {
|
||||
}
|
||||
|
||||
|
||||
gtk_clist_thaw(GTK_CLIST(account_list));
|
||||
gtk_clist_thaw(GTK_CLIST(wind->acct_list));
|
||||
}
|
||||
|
||||
|
||||
@ -839,7 +819,6 @@ update_categories_page(QIFImportWindow * wind) {
|
||||
int xtn_count;
|
||||
char * xtn_count_string;
|
||||
char * qif_cat_name;
|
||||
GtkWidget * category_list;
|
||||
int row;
|
||||
int scheme_strlen;
|
||||
char * row_text[4];
|
||||
@ -850,18 +829,15 @@ update_categories_page(QIFImportWindow * wind) {
|
||||
/* make sure we found the procedure */
|
||||
if(!gh_procedure_p(make_category_display)) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"QIF File scheme code not loaded properly.");
|
||||
_("QIF File scheme code not loaded properly."));
|
||||
return;
|
||||
}
|
||||
|
||||
category_list = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(wind->dialog),
|
||||
"category_page_list");
|
||||
|
||||
/* get the existing mappings from the display */
|
||||
for(row=0; row < GTK_CLIST(category_list)->rows; row++) {
|
||||
gtk_clist_get_text(GTK_CLIST(category_list), row, 0, &qif_cat_name);
|
||||
for(row=0; row < GTK_CLIST(wind->cat_list)->rows; row++) {
|
||||
gtk_clist_get_text(GTK_CLIST(wind->cat_list), row, 0, &qif_cat_name);
|
||||
|
||||
hash_data = (SCM)gtk_clist_get_row_data(GTK_CLIST(category_list), row);
|
||||
hash_data = (SCM)gtk_clist_get_row_data(GTK_CLIST(wind->cat_list), row);
|
||||
gh_call3(hash_set, gh_caddr(wind->mapping_info),
|
||||
gh_str02scm(qif_cat_name),
|
||||
hash_data);
|
||||
@ -879,18 +855,19 @@ update_categories_page(QIFImportWindow * wind) {
|
||||
|
||||
strings_left = wind->cat_display_info;
|
||||
if(!gh_list_p(strings_left)) {
|
||||
gnc_error_dialog_parented(GTK_WINDOW(wind->dialog),
|
||||
"Something is very wrong with QIF Importing.");
|
||||
gnc_error_dialog_parented
|
||||
(GTK_WINDOW(wind->dialog),
|
||||
_("Something is very wrong with QIF Importing."));
|
||||
return;
|
||||
}
|
||||
|
||||
/* clear the list */
|
||||
gtk_clist_clear(GTK_CLIST(category_list));
|
||||
gtk_clist_clear(GTK_CLIST(wind->cat_list));
|
||||
|
||||
/* update the text in the boxes */
|
||||
gtk_clist_freeze(GTK_CLIST(category_list));
|
||||
gtk_clist_freeze(GTK_CLIST(wind->cat_list));
|
||||
|
||||
gtk_clist_set_column_justification(GTK_CLIST(category_list),
|
||||
gtk_clist_set_column_justification(GTK_CLIST(wind->cat_list),
|
||||
0,
|
||||
GTK_JUSTIFY_RIGHT);
|
||||
row = 0;
|
||||
@ -905,15 +882,15 @@ update_categories_page(QIFImportWindow * wind) {
|
||||
row_text[3] = xaccAccountTypeEnumAsString(gh_scm2int
|
||||
(gh_caddr(gh_car(strings_left))));
|
||||
|
||||
gtk_clist_append(GTK_CLIST(category_list), row_text);
|
||||
gtk_clist_set_row_data(GTK_CLIST(category_list), row,
|
||||
(gpointer)gh_car(strings_left));
|
||||
gtk_clist_append(GTK_CLIST(wind->cat_list), row_text);
|
||||
gtk_clist_set_row_data(GTK_CLIST(wind->cat_list), row,
|
||||
GINT_TO_POINTER(gh_car(strings_left)));
|
||||
scm_protect_object(gh_car(strings_left));
|
||||
strings_left = gh_cdr(strings_left);
|
||||
row++;
|
||||
}
|
||||
|
||||
gtk_clist_thaw(GTK_CLIST(category_list));
|
||||
gtk_clist_thaw(GTK_CLIST(wind->cat_list));
|
||||
}
|
||||
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
<modal>False</modal>
|
||||
<allow_shrink>True</allow_shrink>
|
||||
<allow_grow>True</allow_grow>
|
||||
<auto_shrink>False</auto_shrink>
|
||||
<auto_shrink>True</auto_shrink>
|
||||
<auto_close>False</auto_close>
|
||||
<hide_on_close>False</hide_on_close>
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
<name>frame2</name>
|
||||
<width>200</width>
|
||||
<label>Loaded Files</label>
|
||||
<label_xalign>0.05</label_xalign>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
@ -115,73 +115,25 @@
|
||||
|
||||
<widget>
|
||||
<class>GtkFrame</class>
|
||||
<name>frame1</name>
|
||||
<width>325</width>
|
||||
<name>frame3</name>
|
||||
<label>File Info</label>
|
||||
<label_xalign>0.01</label_xalign>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox1</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<name>vbox2</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox5</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label1</name>
|
||||
<width>70</width>
|
||||
<label>QIF Filename</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>10</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>qif_filename_entry</name>
|
||||
<can_default>True</can_default>
|
||||
<has_default>True</has_default>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<child>
|
||||
<padding>5</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox8</name>
|
||||
<name>hbox10</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
@ -191,212 +143,236 @@
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label679</name>
|
||||
<width>70</width>
|
||||
<label>QIF Account</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>10</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkCheckButton</class>
|
||||
<name>qif_account_auto_check</name>
|
||||
<width>45</width>
|
||||
<height>16</height>
|
||||
<can_focus>True</can_focus>
|
||||
<label>Auto</label>
|
||||
<active>True</active>
|
||||
<draw_indicator>True</draw_indicator>
|
||||
<child>
|
||||
<padding>2</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>qif_account_entry</name>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox3</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>5</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox2</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label1</name>
|
||||
<label>QIF Filename:</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</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>GtkLabel</class>
|
||||
<name>currency_label</name>
|
||||
<width>70</width>
|
||||
<label>Currency</label>
|
||||
<justify>GTK_JUSTIFY_LEFT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>10</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label679</name>
|
||||
<label>QIF Account:</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>5</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>currency_label</name>
|
||||
<label>Currency:</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</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>GtkLabel</class>
|
||||
<name>radix_format_label</name>
|
||||
<label>Radix format:</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</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>GtkLabel</class>
|
||||
<name>date_format_label</name>
|
||||
<label>Date format:</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>qif_currency_entry</name>
|
||||
<width>75</width>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox4</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>5</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox3</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>qif_filename_entry</name>
|
||||
<can_default>True</can_default>
|
||||
<has_default>True</has_default>
|
||||
<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>GtkLabel</class>
|
||||
<name>radix_format_label</name>
|
||||
<width>70</width>
|
||||
<label>Radix format</label>
|
||||
<justify>GTK_JUSTIFY_RIGHT</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>10</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox11</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkOptionMenu</class>
|
||||
<name>qif_radix_picker</name>
|
||||
<width>140</width>
|
||||
<can_focus>True</can_focus>
|
||||
<items>Autodetect
|
||||
<widget>
|
||||
<class>GtkCheckButton</class>
|
||||
<name>qif_account_auto_check</name>
|
||||
<can_focus>True</can_focus>
|
||||
<label>Auto</label>
|
||||
<active>True</active>
|
||||
<draw_indicator>True</draw_indicator>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>qif_account_entry</name>
|
||||
<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>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>qif_currency_entry</name>
|
||||
<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>GtkOptionMenu</class>
|
||||
<name>qif_radix_picker</name>
|
||||
<can_focus>True</can_focus>
|
||||
<items>Autodetect
|
||||
Decimal (1,000.00)
|
||||
Comma (1.000,00)
|
||||
</items>
|
||||
<initial_choice>0</initial_choice>
|
||||
<child>
|
||||
<padding>5</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
<initial_choice>0</initial_choice>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox4</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>date_format_label</name>
|
||||
<width>70</width>
|
||||
<label>Date format</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>10</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkOptionMenu</class>
|
||||
<name>qif_date_picker</name>
|
||||
<width>140</width>
|
||||
<can_focus>True</can_focus>
|
||||
<items>Autodetect
|
||||
<widget>
|
||||
<class>GtkOptionMenu</class>
|
||||
<name>qif_date_picker</name>
|
||||
<can_focus>True</can_focus>
|
||||
<items>Autodetect
|
||||
MM/DD/YYYY
|
||||
DD/MM/YYYY
|
||||
YYYY/MM/DD
|
||||
YYYY/DD/MM
|
||||
</items>
|
||||
<initial_choice>0</initial_choice>
|
||||
<child>
|
||||
<padding>5</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
<initial_choice>0</initial_choice>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox6</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<name>hbox9</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>5</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>file_select_btn</name>
|
||||
<width>125</width>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
@ -406,16 +382,15 @@ YYYY/DD/MM
|
||||
</signal>
|
||||
<label>Select file</label>
|
||||
<child>
|
||||
<padding>3</padding>
|
||||
<padding>5</padding>
|
||||
<expand>True</expand>
|
||||
<fill>False</fill>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>add_file_button</name>
|
||||
<width>125</width>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
@ -425,9 +400,9 @@ YYYY/DD/MM
|
||||
</signal>
|
||||
<label>Load file</label>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<padding>5</padding>
|
||||
<expand>True</expand>
|
||||
<fill>False</fill>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
@ -29,8 +29,21 @@
|
||||
typedef struct _qifimportwindow
|
||||
{
|
||||
|
||||
GtkWidget * parent;
|
||||
/* on the Files tab */
|
||||
GtkWidget * dialog;
|
||||
GtkWidget * currency_entry;
|
||||
GtkWidget * radix_picker;
|
||||
GtkWidget * date_picker;
|
||||
GtkWidget * filename_entry;
|
||||
GtkWidget * acct_auto_button;
|
||||
GtkWidget * acct_entry;
|
||||
GtkWidget * selected_file_list;
|
||||
|
||||
/* on the Accounts tab */
|
||||
GtkWidget * acct_list;
|
||||
|
||||
/* on the Categories tab */
|
||||
GtkWidget * cat_list;
|
||||
|
||||
SCM imported_files;
|
||||
SCM selected_file;
|
||||
@ -40,7 +53,7 @@ typedef struct _qifimportwindow
|
||||
|
||||
} QIFImportWindow;
|
||||
|
||||
QIFImportWindow * gnc_ui_qif_import_dialog_make(GtkWidget * parent);
|
||||
QIFImportWindow * gnc_ui_qif_import_dialog_make();
|
||||
void gnc_ui_qif_import_dialog_destroy(QIFImportWindow * window);
|
||||
|
||||
#endif
|
||||
|
@ -110,11 +110,11 @@ gnc_ui_account_field_box_create(AccountEditInfo * info,
|
||||
gboolean include_type)
|
||||
{
|
||||
GtkWidget *frame, *vbox, *hbox, *widget;
|
||||
|
||||
|
||||
frame = gtk_frame_new(ACC_INFO_STR);
|
||||
gtk_container_border_width(GTK_CONTAINER(frame), 5);
|
||||
gtk_widget_show(frame);
|
||||
|
||||
|
||||
hbox = gtk_hbox_new(FALSE, 5);
|
||||
gtk_container_border_width(GTK_CONTAINER(hbox), 5);
|
||||
gtk_container_add(GTK_CONTAINER(frame), hbox);
|
||||
|
@ -23,19 +23,18 @@ create_GNUcash_Account_Picker (void)
|
||||
GtkWidget *GNUcash_Account_Picker;
|
||||
GtkWidget *vbox1;
|
||||
GtkWidget *vbox2;
|
||||
GtkWidget *hbox1;
|
||||
GtkWidget *frame1;
|
||||
GtkWidget *scrolledwindow1;
|
||||
GtkWidget *viewport1;
|
||||
GtkWidget *account_tree;
|
||||
GtkWidget *hbox2;
|
||||
GtkWidget *hbox5;
|
||||
GtkWidget *vbox4;
|
||||
GtkWidget *label1;
|
||||
GtkWidget *acct_entry;
|
||||
GtkWidget *hbox3;
|
||||
GtkWidget *label2;
|
||||
GtkWidget *acct_description_entry;
|
||||
GtkWidget *hbox4;
|
||||
GtkWidget *label3;
|
||||
GtkWidget *vbox5;
|
||||
GtkWidget *acct_entry;
|
||||
GtkWidget *acct_description_entry;
|
||||
GtkWidget *acct_type_picker;
|
||||
GtkWidget *acct_type_picker_menu;
|
||||
GtkWidget *glade_menuitem;
|
||||
@ -58,19 +57,12 @@ create_GNUcash_Account_Picker (void)
|
||||
gtk_widget_show (vbox2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), vbox2, TRUE, TRUE, 0);
|
||||
|
||||
hbox1 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "hbox1", hbox1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox1, TRUE, TRUE, 0);
|
||||
|
||||
frame1 = gtk_frame_new (_("Accounts"));
|
||||
gtk_widget_ref (frame1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "frame1", frame1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (frame1);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), frame1, TRUE, TRUE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), frame1, TRUE, TRUE, 0);
|
||||
|
||||
scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_ref (scrolledwindow1);
|
||||
@ -94,74 +86,74 @@ create_GNUcash_Account_Picker (void)
|
||||
gtk_widget_show (account_tree);
|
||||
gtk_container_add (GTK_CONTAINER (viewport1), account_tree);
|
||||
|
||||
hbox2 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "hbox2", hbox2,
|
||||
hbox5 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox5);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "hbox5", hbox5,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox2, FALSE, FALSE, 6);
|
||||
gtk_widget_show (hbox5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox5, FALSE, FALSE, 0);
|
||||
|
||||
label1 = gtk_label_new (_("Selected account"));
|
||||
vbox4 = gtk_vbox_new (TRUE, 0);
|
||||
gtk_widget_ref (vbox4);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "vbox4", vbox4,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox4);
|
||||
gtk_box_pack_start (GTK_BOX (hbox5), vbox4, TRUE, TRUE, 5);
|
||||
|
||||
label1 = gtk_label_new (_("Selected account:"));
|
||||
gtk_widget_ref (label1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "label1", label1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label1);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), label1, FALSE, FALSE, 8);
|
||||
gtk_widget_set_usize (label1, 90, -2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), label1, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label1), 1, 0.5);
|
||||
|
||||
label2 = gtk_label_new (_("Description:"));
|
||||
gtk_widget_ref (label2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "label2", label2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), label2, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label2), 1, 0.5);
|
||||
|
||||
label3 = gtk_label_new (_("Account type:"));
|
||||
gtk_widget_ref (label3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "label3", label3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), label3, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label3), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label3), 1, 0.5);
|
||||
|
||||
vbox5 = gtk_vbox_new (TRUE, 0);
|
||||
gtk_widget_ref (vbox5);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "vbox5", vbox5,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox5), vbox5, TRUE, TRUE, 0);
|
||||
|
||||
acct_entry = gtk_entry_new ();
|
||||
gtk_widget_ref (acct_entry);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "acct_entry", acct_entry,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (acct_entry);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), acct_entry, TRUE, TRUE, 0);
|
||||
|
||||
hbox3 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "hbox3", hbox3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox3, FALSE, FALSE, 0);
|
||||
|
||||
label2 = gtk_label_new (_("Description"));
|
||||
gtk_widget_ref (label2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "label2", label2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), label2, FALSE, FALSE, 8);
|
||||
gtk_widget_set_usize (label2, 90, -2);
|
||||
gtk_misc_set_alignment (GTK_MISC (label2), 1, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox5), acct_entry, FALSE, FALSE, 0);
|
||||
|
||||
acct_description_entry = gtk_entry_new ();
|
||||
gtk_widget_ref (acct_description_entry);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "acct_description_entry", acct_description_entry,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (acct_description_entry);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), acct_description_entry, TRUE, TRUE, 0);
|
||||
|
||||
hbox4 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox4);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "hbox4", hbox4,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox4);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox4, FALSE, FALSE, 0);
|
||||
|
||||
label3 = gtk_label_new (_("Account type"));
|
||||
gtk_widget_ref (label3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "label3", label3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), label3, FALSE, FALSE, 8);
|
||||
gtk_widget_set_usize (label3, 90, -2);
|
||||
gtk_misc_set_alignment (GTK_MISC (label3), 1, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox5), acct_description_entry, FALSE, FALSE, 0);
|
||||
|
||||
acct_type_picker = gtk_option_menu_new ();
|
||||
gtk_widget_ref (acct_type_picker);
|
||||
gtk_object_set_data_full (GTK_OBJECT (GNUcash_Account_Picker), "acct_type_picker", acct_type_picker,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (acct_type_picker);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), acct_type_picker, FALSE, FALSE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (vbox5), acct_type_picker, FALSE, FALSE, 0);
|
||||
gtk_widget_set_usize (acct_type_picker, 150, 30);
|
||||
acct_type_picker_menu = gtk_menu_new ();
|
||||
glade_menuitem = gtk_menu_item_new_with_label (_("Bank"));
|
||||
|
@ -28,28 +28,27 @@ create_QIF_File_Import_Dialog (void)
|
||||
GtkWidget *scrolledwindow1;
|
||||
GtkWidget *viewport1;
|
||||
GtkWidget *selected_file_list;
|
||||
GtkWidget *frame1;
|
||||
GtkWidget *vbox1;
|
||||
GtkWidget *hbox5;
|
||||
GtkWidget *frame3;
|
||||
GtkWidget *vbox2;
|
||||
GtkWidget *hbox10;
|
||||
GtkWidget *vbox3;
|
||||
GtkWidget *label1;
|
||||
GtkWidget *qif_filename_entry;
|
||||
GtkWidget *hbox8;
|
||||
GtkWidget *label679;
|
||||
GtkWidget *currency_label;
|
||||
GtkWidget *radix_format_label;
|
||||
GtkWidget *date_format_label;
|
||||
GtkWidget *vbox4;
|
||||
GtkWidget *qif_filename_entry;
|
||||
GtkWidget *hbox11;
|
||||
GtkWidget *qif_account_auto_check;
|
||||
GtkWidget *qif_account_entry;
|
||||
GtkWidget *hbox2;
|
||||
GtkWidget *currency_label;
|
||||
GtkWidget *qif_currency_entry;
|
||||
GtkWidget *hbox3;
|
||||
GtkWidget *radix_format_label;
|
||||
GtkWidget *qif_radix_picker;
|
||||
GtkWidget *qif_radix_picker_menu;
|
||||
GtkWidget *glade_menuitem;
|
||||
GtkWidget *hbox4;
|
||||
GtkWidget *date_format_label;
|
||||
GtkWidget *qif_date_picker;
|
||||
GtkWidget *qif_date_picker_menu;
|
||||
GtkWidget *hbox6;
|
||||
GtkWidget *hbox9;
|
||||
GtkWidget *file_select_btn;
|
||||
GtkWidget *add_file_button;
|
||||
GtkWidget *label69;
|
||||
@ -74,7 +73,7 @@ create_QIF_File_Import_Dialog (void)
|
||||
|
||||
QIF_File_Import_Dialog = gnome_dialog_new (NULL, NULL);
|
||||
gtk_object_set_data (GTK_OBJECT (QIF_File_Import_Dialog), "QIF_File_Import_Dialog", QIF_File_Import_Dialog);
|
||||
gtk_window_set_policy (GTK_WINDOW (QIF_File_Import_Dialog), TRUE, TRUE, FALSE);
|
||||
gtk_window_set_policy (GTK_WINDOW (QIF_File_Import_Dialog), TRUE, TRUE, TRUE);
|
||||
|
||||
dialog_vbox2 = GNOME_DIALOG (QIF_File_Import_Dialog)->vbox;
|
||||
gtk_object_set_data (GTK_OBJECT (QIF_File_Import_Dialog), "dialog_vbox2", dialog_vbox2);
|
||||
@ -101,7 +100,6 @@ create_QIF_File_Import_Dialog (void)
|
||||
gtk_widget_show (frame2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), frame2, TRUE, TRUE, 0);
|
||||
gtk_widget_set_usize (frame2, 200, -2);
|
||||
gtk_frame_set_label_align (GTK_FRAME (frame2), 0.05, 0.5);
|
||||
|
||||
scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_ref (scrolledwindow1);
|
||||
@ -126,69 +124,107 @@ create_QIF_File_Import_Dialog (void)
|
||||
gtk_widget_show (selected_file_list);
|
||||
gtk_container_add (GTK_CONTAINER (viewport1), selected_file_list);
|
||||
|
||||
frame1 = gtk_frame_new (_("File Info"));
|
||||
gtk_widget_ref (frame1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "frame1", frame1,
|
||||
frame3 = gtk_frame_new (_("File Info"));
|
||||
gtk_widget_ref (frame3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "frame3", frame3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (frame1);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), frame1, FALSE, FALSE, 0);
|
||||
gtk_widget_set_usize (frame1, 325, -2);
|
||||
gtk_frame_set_label_align (GTK_FRAME (frame1), 0.01, 0.5);
|
||||
gtk_widget_show (frame3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox1), frame3, TRUE, TRUE, 0);
|
||||
|
||||
vbox1 = gtk_vbox_new (TRUE, 0);
|
||||
gtk_widget_ref (vbox1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "vbox1", vbox1,
|
||||
vbox2 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_ref (vbox2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "vbox2", vbox2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox1);
|
||||
gtk_container_add (GTK_CONTAINER (frame1), vbox1);
|
||||
gtk_widget_show (vbox2);
|
||||
gtk_container_add (GTK_CONTAINER (frame3), vbox2);
|
||||
|
||||
hbox5 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox5);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox5", hbox5,
|
||||
hbox10 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox10);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox10", hbox10,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox5, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox10);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox10, TRUE, TRUE, 0);
|
||||
|
||||
label1 = gtk_label_new (_("QIF Filename"));
|
||||
vbox3 = gtk_vbox_new (TRUE, 0);
|
||||
gtk_widget_ref (vbox3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "vbox3", vbox3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox10), vbox3, TRUE, TRUE, 5);
|
||||
|
||||
label1 = gtk_label_new (_("QIF Filename:"));
|
||||
gtk_widget_ref (label1);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "label1", label1,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label1);
|
||||
gtk_box_pack_start (GTK_BOX (hbox5), label1, FALSE, FALSE, 10);
|
||||
gtk_widget_set_usize (label1, 70, -2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), label1, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label1), 1, 0.5);
|
||||
|
||||
label679 = gtk_label_new (_("QIF Account:"));
|
||||
gtk_widget_ref (label679);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "label679", label679,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label679);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), label679, FALSE, FALSE, 5);
|
||||
gtk_label_set_justify (GTK_LABEL (label679), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (label679), 1, 0.5);
|
||||
|
||||
currency_label = gtk_label_new (_("Currency:"));
|
||||
gtk_widget_ref (currency_label);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "currency_label", currency_label,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (currency_label);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), currency_label, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (currency_label), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (currency_label), 1, 0.5);
|
||||
|
||||
radix_format_label = gtk_label_new (_("Radix format:"));
|
||||
gtk_widget_ref (radix_format_label);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "radix_format_label", radix_format_label,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (radix_format_label);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), radix_format_label, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (radix_format_label), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (radix_format_label), 1, 0.5);
|
||||
|
||||
date_format_label = gtk_label_new (_("Date format:"));
|
||||
gtk_widget_ref (date_format_label);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "date_format_label", date_format_label,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (date_format_label);
|
||||
gtk_box_pack_start (GTK_BOX (vbox3), date_format_label, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (date_format_label), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (date_format_label), 1, 0.5);
|
||||
|
||||
vbox4 = gtk_vbox_new (TRUE, 0);
|
||||
gtk_widget_ref (vbox4);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "vbox4", vbox4,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (vbox4);
|
||||
gtk_box_pack_start (GTK_BOX (hbox10), vbox4, TRUE, TRUE, 5);
|
||||
|
||||
qif_filename_entry = gtk_entry_new ();
|
||||
gtk_widget_ref (qif_filename_entry);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "qif_filename_entry", qif_filename_entry,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (qif_filename_entry);
|
||||
gtk_box_pack_start (GTK_BOX (hbox5), qif_filename_entry, TRUE, TRUE, 5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), qif_filename_entry, FALSE, FALSE, 0);
|
||||
GTK_WIDGET_SET_FLAGS (qif_filename_entry, GTK_CAN_DEFAULT);
|
||||
|
||||
hbox8 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox8);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox8", hbox8,
|
||||
hbox11 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox11);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox11", hbox11,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox8);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox8, TRUE, TRUE, 0);
|
||||
|
||||
label679 = gtk_label_new (_("QIF Account"));
|
||||
gtk_widget_ref (label679);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "label679", label679,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (label679);
|
||||
gtk_box_pack_start (GTK_BOX (hbox8), label679, FALSE, FALSE, 10);
|
||||
gtk_widget_set_usize (label679, 70, -2);
|
||||
gtk_misc_set_alignment (GTK_MISC (label679), 1, 0.5);
|
||||
gtk_widget_show (hbox11);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), hbox11, TRUE, TRUE, 0);
|
||||
|
||||
qif_account_auto_check = gtk_check_button_new_with_label (_("Auto"));
|
||||
gtk_widget_ref (qif_account_auto_check);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "qif_account_auto_check", qif_account_auto_check,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (qif_account_auto_check);
|
||||
gtk_box_pack_start (GTK_BOX (hbox8), qif_account_auto_check, FALSE, FALSE, 2);
|
||||
gtk_widget_set_usize (qif_account_auto_check, 45, 16);
|
||||
gtk_box_pack_start (GTK_BOX (hbox11), qif_account_auto_check, FALSE, FALSE, 0);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (qif_account_auto_check), TRUE);
|
||||
|
||||
qif_account_entry = gtk_entry_new ();
|
||||
@ -196,57 +232,21 @@ create_QIF_File_Import_Dialog (void)
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "qif_account_entry", qif_account_entry,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (qif_account_entry);
|
||||
gtk_box_pack_start (GTK_BOX (hbox8), qif_account_entry, TRUE, TRUE, 5);
|
||||
|
||||
hbox2 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox2);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox2", hbox2,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox2, FALSE, FALSE, 0);
|
||||
|
||||
currency_label = gtk_label_new (_("Currency"));
|
||||
gtk_widget_ref (currency_label);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "currency_label", currency_label,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (currency_label);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), currency_label, FALSE, FALSE, 10);
|
||||
gtk_widget_set_usize (currency_label, 70, -2);
|
||||
gtk_label_set_justify (GTK_LABEL (currency_label), GTK_JUSTIFY_LEFT);
|
||||
gtk_misc_set_alignment (GTK_MISC (currency_label), 1, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox11), qif_account_entry, TRUE, TRUE, 0);
|
||||
|
||||
qif_currency_entry = gtk_entry_new ();
|
||||
gtk_widget_ref (qif_currency_entry);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "qif_currency_entry", qif_currency_entry,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (qif_currency_entry);
|
||||
gtk_box_pack_start (GTK_BOX (hbox2), qif_currency_entry, FALSE, FALSE, 5);
|
||||
gtk_widget_set_usize (qif_currency_entry, 75, -2);
|
||||
|
||||
hbox3 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox3);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox3", hbox3,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox3);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox3, FALSE, FALSE, 0);
|
||||
|
||||
radix_format_label = gtk_label_new (_("Radix format"));
|
||||
gtk_widget_ref (radix_format_label);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "radix_format_label", radix_format_label,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (radix_format_label);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), radix_format_label, FALSE, FALSE, 10);
|
||||
gtk_widget_set_usize (radix_format_label, 70, -2);
|
||||
gtk_label_set_justify (GTK_LABEL (radix_format_label), GTK_JUSTIFY_RIGHT);
|
||||
gtk_misc_set_alignment (GTK_MISC (radix_format_label), 1, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), qif_currency_entry, FALSE, FALSE, 0);
|
||||
|
||||
qif_radix_picker = gtk_option_menu_new ();
|
||||
gtk_widget_ref (qif_radix_picker);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "qif_radix_picker", qif_radix_picker,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (qif_radix_picker);
|
||||
gtk_box_pack_start (GTK_BOX (hbox3), qif_radix_picker, FALSE, FALSE, 5);
|
||||
gtk_widget_set_usize (qif_radix_picker, 140, -2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), qif_radix_picker, FALSE, FALSE, 0);
|
||||
qif_radix_picker_menu = gtk_menu_new ();
|
||||
glade_menuitem = gtk_menu_item_new_with_label (_("Autodetect"));
|
||||
gtk_widget_show (glade_menuitem);
|
||||
@ -259,29 +259,12 @@ create_QIF_File_Import_Dialog (void)
|
||||
gtk_menu_append (GTK_MENU (qif_radix_picker_menu), glade_menuitem);
|
||||
gtk_option_menu_set_menu (GTK_OPTION_MENU (qif_radix_picker), qif_radix_picker_menu);
|
||||
|
||||
hbox4 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox4);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox4", hbox4,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox4);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox4, FALSE, FALSE, 0);
|
||||
|
||||
date_format_label = gtk_label_new (_("Date format"));
|
||||
gtk_widget_ref (date_format_label);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "date_format_label", date_format_label,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (date_format_label);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), date_format_label, FALSE, FALSE, 10);
|
||||
gtk_widget_set_usize (date_format_label, 70, -2);
|
||||
gtk_misc_set_alignment (GTK_MISC (date_format_label), 1, 0.5);
|
||||
|
||||
qif_date_picker = gtk_option_menu_new ();
|
||||
gtk_widget_ref (qif_date_picker);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "qif_date_picker", qif_date_picker,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (qif_date_picker);
|
||||
gtk_box_pack_start (GTK_BOX (hbox4), qif_date_picker, FALSE, FALSE, 5);
|
||||
gtk_widget_set_usize (qif_date_picker, 140, -2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox4), qif_date_picker, FALSE, FALSE, 0);
|
||||
qif_date_picker_menu = gtk_menu_new ();
|
||||
glade_menuitem = gtk_menu_item_new_with_label (_("Autodetect "));
|
||||
gtk_widget_show (glade_menuitem);
|
||||
@ -300,28 +283,26 @@ create_QIF_File_Import_Dialog (void)
|
||||
gtk_menu_append (GTK_MENU (qif_date_picker_menu), glade_menuitem);
|
||||
gtk_option_menu_set_menu (GTK_OPTION_MENU (qif_date_picker), qif_date_picker_menu);
|
||||
|
||||
hbox6 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_ref (hbox6);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox6", hbox6,
|
||||
hbox9 = gtk_hbox_new (TRUE, 0);
|
||||
gtk_widget_ref (hbox9);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "hbox9", hbox9,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (hbox6);
|
||||
gtk_box_pack_start (GTK_BOX (vbox1), hbox6, TRUE, TRUE, 5);
|
||||
gtk_widget_show (hbox9);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox9, FALSE, FALSE, 5);
|
||||
|
||||
file_select_btn = gtk_button_new_with_label (_("Select file"));
|
||||
gtk_widget_ref (file_select_btn);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "file_select_btn", file_select_btn,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (file_select_btn);
|
||||
gtk_box_pack_start (GTK_BOX (hbox6), file_select_btn, TRUE, FALSE, 3);
|
||||
gtk_widget_set_usize (file_select_btn, 125, -2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox9), file_select_btn, TRUE, TRUE, 5);
|
||||
|
||||
add_file_button = gtk_button_new_with_label (_("Load file"));
|
||||
gtk_widget_ref (add_file_button);
|
||||
gtk_object_set_data_full (GTK_OBJECT (QIF_File_Import_Dialog), "add_file_button", add_file_button,
|
||||
(GtkDestroyNotify) gtk_widget_unref);
|
||||
gtk_widget_show (add_file_button);
|
||||
gtk_box_pack_start (GTK_BOX (hbox6), add_file_button, TRUE, FALSE, 0);
|
||||
gtk_widget_set_usize (add_file_button, 125, -2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox9), add_file_button, TRUE, TRUE, 5);
|
||||
|
||||
label69 = gtk_label_new (_("Files"));
|
||||
gtk_widget_ref (label69);
|
||||
|
@ -91,6 +91,10 @@
|
||||
(if (gnc:debugging?)
|
||||
(debug-enable 'backtrace)))
|
||||
|
||||
;; These are needed for a guile 1.3.4 bug
|
||||
(debug-enable 'debug)
|
||||
(read-enable 'positions)
|
||||
|
||||
(gnc:setup-debugging)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user