Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22386/src/gui

Modified Files:
        wxMFrame.cpp wxMApp.cpp 
Log Message:
added --import cmd line option

Index: wxMFrame.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMFrame.cpp,v
retrieving revision 1.169
retrieving revision 1.170
diff -b -u -2 -r1.169 -r1.170
--- wxMFrame.cpp        12 Jan 2004 17:48:29 -0000      1.169
+++ wxMFrame.cpp        20 Apr 2004 13:09:54 -0000      1.170
@@ -684,5 +684,5 @@
             }
 
-            bool ok = ConfigSource::Copy(*configDst.Get(), *configSrc.Get());
+            bool ok = ConfigSource::Copy(*configDst, *configSrc);
 
             if ( doExport )

Index: wxMApp.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMApp.cpp,v
retrieving revision 1.287
retrieving revision 1.288
diff -b -u -2 -r1.287 -r1.288
--- wxMApp.cpp  10 Feb 2004 18:48:32 -0000      1.287
+++ wxMApp.cpp  20 Apr 2004 13:09:54 -0000      1.288
@@ -2177,4 +2177,5 @@
 #define OPTION_USERDIR     _T("userdir")
 #define OPTION_CONFIG      _T("config")
+#define OPTION_IMPORT      _T("import")
 #define OPTION_DEBUGMAIL   _T("debug")
 #define OPTION_FOLDER      _T("folder")
@@ -2247,4 +2248,12 @@
       },
 
+      // --import=spec to get the settings from file or remove server
+      {
+         wxCMD_LINE_OPTION,
+         NULL,
+         OPTION_IMPORT,
+         gettext_noop("file or remote server containing Mahogany options"),
+      },
+
       // --lang option to specify the language to use
       {
@@ -2371,4 +2380,6 @@
    (void)parser.Found(OPTION_LANG, &m_cmdLineOptions->lang);
 
+   (void)parser.Found(OPTION_IMPORT, &m_cmdLineOptions->configImport);
+
    return true;
 }



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to