summaryrefslogtreecommitdiff
path: root/ui/switch_to_gui.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:29:28 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:29:28 +0200
commit75c07011b7c4d06acd7b45dabdcd60ab9d80f385 (patch)
tree8853c3978dd152ef377e652239448b1352320206 /ui/switch_to_gui.h
parent5.22 (diff)
downloadFreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.gz
FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.bz2
FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.zip
5.23
Diffstat (limited to 'ui/switch_to_gui.h')
-rw-r--r--ui/switch_to_gui.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/ui/switch_to_gui.h b/ui/switch_to_gui.h
deleted file mode 100644
index 20fe81de..00000000
--- a/ui/switch_to_gui.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// **************************************************************************
-// * 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) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
-// **************************************************************************
-
-#ifndef SWITCHTOGUI_H_INCLUDED
-#define SWITCHTOGUI_H_INCLUDED
-
-#include "../lib/process_xml.h"
-#include "main_dlg.h" //in "application.cpp" we have this dependency anyway!
-
-namespace zen
-{
-//switch from FreeFileSync Batch to GUI modus: opens a new FreeFileSync GUI session asynchronously
-class SwitchToGui
-{
-public:
- SwitchToGui(const Zstring& referenceFile,
- const xmlAccess::XmlBatchConfig& batchCfg,
- xmlAccess::XmlGlobalSettings& globalSettings) :
- guiCfg(xmlAccess::convertBatchToGui(batchCfg)),
- globalSettings_(globalSettings)
- {
- referenceFiles.push_back(referenceFile);
- }
-
- void execute() const
- {
- MainDialog::create(guiCfg, referenceFiles, &globalSettings_, true); //new toplevel window
- }
-
-private:
- std::vector<Zstring> referenceFiles;
- const xmlAccess::XmlGuiConfig guiCfg;
- xmlAccess::XmlGlobalSettings& globalSettings_;
-};
-}
-
-#endif // SWITCHTOGUI_H_INCLUDED
bgstack15