r14841 - gnucash/trunk - Move the MT940 importer action from the mt940 into the hbci plugin because in

Christian Stimming cstim at cvs.gnucash.org
Wed Sep 13 10:22:55 EDT 2006


Author: cstim
Date: 2006-09-13 10:22:54 -0400 (Wed, 13 Sep 2006)
New Revision: 14841
Trac: http://svn.gnucash.org/trac/changeset/14841

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/bin/gnucash-bin.c
   gnucash/trunk/src/import-export/hbci/gnc-plugin-hbci-ui.xml
   gnucash/trunk/src/import-export/hbci/gnc-plugin-hbci.c
   gnucash/trunk/src/import-export/mt940/gnc-plugin-mt940-ui.xml
   gnucash/trunk/src/import-export/mt940/gnc-plugin-mt940.c
Log:
Move the MT940 importer action from the mt940 into the hbci plugin because in
the hbci plugin everything is already there. From now on, MT940
importing is available as soon as --enable-hbci is switched
on. The mt940 plugin can be removed from SVN now.



Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-09-13 13:30:09 UTC (rev 14840)
+++ gnucash/trunk/ChangeLog	2006-09-13 14:22:54 UTC (rev 14841)
@@ -1,3 +1,11 @@
+2006-09-13  Christian Stimming <stimming at tuhh.de>
+
+	* src/import-export/hbci/gnc-plugin-hbci.c: Move the MT940
+	importer action from the mt940 into the hbci plugin because in the
+	hbci plugin everything is already there. From now on, MT940
+	importing is available as soon as --enable-hbci is switched
+	on. The mt940 plugin can be removed from SVN now.
+
 2006-09-07  Christian Stimming  <stimming at tuhh.de>
 
 	* src/engine/gnc-path.h, gnc-path.c: Add new file with utility

Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2006-09-13 13:30:09 UTC (rev 14840)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2006-09-13 14:22:54 UTC (rev 14841)
@@ -358,7 +358,6 @@
         { "gnucash/register/register-gnome", 0, FALSE },
         { "gnucash/import-export/qif-import", 0, FALSE },
         { "gnucash/import-export/ofx", 0, TRUE },
-        { "gnucash/import-export/mt940", 0, TRUE },
         { "gnucash/import-export/log-replay", 0, TRUE },
         { "gnucash/import-export/hbci", 0, TRUE },
         { "gnucash/report/report-system", 0, FALSE },

Modified: gnucash/trunk/src/import-export/hbci/gnc-plugin-hbci-ui.xml
===================================================================
--- gnucash/trunk/src/import-export/hbci/gnc-plugin-hbci-ui.xml	2006-09-13 13:30:09 UTC (rev 14840)
+++ gnucash/trunk/src/import-export/hbci/gnc-plugin-hbci-ui.xml	2006-09-13 14:22:54 UTC (rev 14841)
@@ -3,6 +3,7 @@
     <menu name="File" action="FileAction">
       <menu name="FileImport" action="FileImportAction">
       	<placeholder name="FileImportPlaceholder">
+      	   <menuitem name="FileMt940Import" action="Mt940ImportAction"/>
       	   <menuitem name="FileDtausImport" action="DtausImportAction"/>
       	</placeholder>
       </menu>

Modified: gnucash/trunk/src/import-export/hbci/gnc-plugin-hbci.c
===================================================================
--- gnucash/trunk/src/import-export/hbci/gnc-plugin-hbci.c	2006-09-13 13:30:09 UTC (rev 14840)
+++ gnucash/trunk/src/import-export/hbci/gnc-plugin-hbci.c	2006-09-13 14:22:54 UTC (rev 14841)
@@ -76,6 +76,7 @@
 static void gnc_plugin_hbci_cmd_issue_inttransaction (GtkAction *action, GncMainWindowActionData *data);
 #endif
 static void gnc_plugin_hbci_cmd_issue_direct_debit (GtkAction *action, GncMainWindowActionData *data);
+static void gnc_plugin_hbci_cmd_mt940_import (GtkAction *action, GncMainWindowActionData *data);
 static void gnc_plugin_hbci_cmd_dtaus_import (GtkAction *action, GncMainWindowActionData *data);
 
 
@@ -114,6 +115,9 @@
     G_CALLBACK (gnc_plugin_hbci_cmd_issue_direct_debit) },
 
   /* File -> Import menu item */
+  { "Mt940ImportAction", GTK_STOCK_CONVERT, N_("Import MT940"), NULL,
+    N_("Import a MT940 file into GnuCash"),
+    G_CALLBACK (gnc_plugin_hbci_cmd_mt940_import) },
   { "DtausImportAction", GTK_STOCK_CONVERT, N_("Import DTAUS and _send..."), NULL,
     N_("Import a DTAUS file into GnuCash and send the transfers online through HBCI/AqBanking"),
     G_CALLBACK (gnc_plugin_hbci_cmd_dtaus_import) },
@@ -525,6 +529,13 @@
 {
   gnc_file_aqbanking_import ("dtaus", "default", TRUE);
 }
+
+static void
+gnc_plugin_hbci_cmd_mt940_import (GtkAction *action,
+				  GncMainWindowActionData *data)
+{
+  gnc_file_aqbanking_import ("swift", "swift-mt940", FALSE);
+}
 /************************************************************
  *                    Plugin Bootstrapping                   *
  ************************************************************/

Modified: gnucash/trunk/src/import-export/mt940/gnc-plugin-mt940-ui.xml
===================================================================
--- gnucash/trunk/src/import-export/mt940/gnc-plugin-mt940-ui.xml	2006-09-13 13:30:09 UTC (rev 14840)
+++ gnucash/trunk/src/import-export/mt940/gnc-plugin-mt940-ui.xml	2006-09-13 14:22:54 UTC (rev 14841)
@@ -3,7 +3,6 @@
     <menu name="File" action="FileAction">
       <menu name="FileImport" action="FileImportAction">
       	<placeholder name="FileImportPlaceholder">
-      	   <menuitem name="FileMt940Import" action="Mt940ImportAction"/>
       	</placeholder>
       </menu>
     </menu>

Modified: gnucash/trunk/src/import-export/mt940/gnc-plugin-mt940.c
===================================================================
--- gnucash/trunk/src/import-export/mt940/gnc-plugin-mt940.c	2006-09-13 13:30:09 UTC (rev 14840)
+++ gnucash/trunk/src/import-export/mt940/gnc-plugin-mt940.c	2006-09-13 14:22:54 UTC (rev 14841)
@@ -37,16 +37,16 @@
 static void gnc_plugin_mt940_finalize (GObject *object);
 
 /* Command callbacks */
-static void gnc_plugin_mt940_cmd_import (GtkAction *action, GncMainWindowActionData *data);
+/* static void gnc_plugin_mt940_cmd_import (GtkAction *action, GncMainWindowActionData *data); */
 
 
 #define PLUGIN_ACTIONS_NAME "gnc-plugin-mt940-actions"
 #define PLUGIN_UI_FILENAME  "gnc-plugin-mt940-ui.xml"
 
 static GtkActionEntry gnc_plugin_actions [] = {
-  { "Mt940ImportAction", GTK_STOCK_CONVERT, N_("Import MT940"), NULL,
+  /*  { "Mt940ImportAction", GTK_STOCK_CONVERT, N_("Import MT940"), NULL,
     N_("Process an MT940 response file"),
-    G_CALLBACK (gnc_plugin_mt940_cmd_import) },
+    G_CALLBACK (gnc_plugin_mt940_cmd_import) }, */
 };
 static guint gnc_plugin_n_actions = G_N_ELEMENTS (gnc_plugin_actions);
 
@@ -140,15 +140,15 @@
 /************************************************************
  *                    Command Callbacks                     *
  ************************************************************/
-
+/*
 static void
 gnc_plugin_mt940_cmd_import (GtkAction *action,
 			   GncMainWindowActionData *data)
 {
   gnc_file_mt940_import ("swift", "swift-mt940");
 }
+*/
 
-
 /************************************************************
  *                    Plugin Bootstrapping                   *
  ************************************************************/



More information about the gnucash-changes mailing list