summaryrefslogtreecommitdiff
path: root/ui/switchToGui.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:15 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:15 +0200
commit8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395 (patch)
tree975c6e590c31e56007006a23e7b15d0245d75b08 /ui/switchToGui.cpp
parent3.6 (diff)
downloadFreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.gz
FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.bz2
FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.zip
3.7
Diffstat (limited to 'ui/switchToGui.cpp')
-rw-r--r--ui/switchToGui.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/ui/switchToGui.cpp b/ui/switchToGui.cpp
new file mode 100644
index 00000000..ed678dd1
--- /dev/null
+++ b/ui/switchToGui.cpp
@@ -0,0 +1,27 @@
+// **************************************************************************
+// * This file is part of the FreeFileSync project. It is distributed under *
+// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
+// * Copyright (C) 2008-2010 ZenJu (zhnmju123 AT gmx.de) *
+// **************************************************************************
+//
+#include "switchToGui.h"
+#include "mainDialog.h"
+
+using FreeFileSync::SwitchToGui;
+
+
+SwitchToGui::SwitchToGui(const xmlAccess::XmlBatchConfig& batchCfg,
+ xmlAccess::XmlGlobalSettings& globalSettings) : //prepare
+ globalSettings_(globalSettings),
+ guiCfg(xmlAccess::convertBatchToGui(batchCfg)) {}
+
+
+void SwitchToGui::execute() const //throw()
+{
+ try
+ {
+ MainDialog* frame = new MainDialog(guiCfg, globalSettings_, true);
+ frame->Show();
+ }
+ catch(...) {}
+}
bgstack15