From 75c07011b7c4d06acd7b45dabdcd60ab9d80f385 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:29:28 +0200 Subject: 5.23 --- RealtimeSync/main_dlg.h | 80 ------------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 RealtimeSync/main_dlg.h (limited to 'RealtimeSync/main_dlg.h') diff --git a/RealtimeSync/main_dlg.h b/RealtimeSync/main_dlg.h deleted file mode 100644 index 9e5537f0..00000000 --- a/RealtimeSync/main_dlg.h +++ /dev/null @@ -1,80 +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 REALTIMESYNCMAIN_H -#define REALTIMESYNCMAIN_H - -#include "gui_generated.h" -#include -#include -#include -#include -#include -#include -#include "../ui/dir_name.h" - -namespace xmlAccess -{ -struct XmlRealConfig; -} -class DirectoryPanel; - - -class MainDialog: public MainDlgGenerated -{ -public: - static void create(const Zstring& cfgFile); - -private: - MainDialog(wxDialog* dlg, const Zstring& cfgFileName); - ~MainDialog(); - - void loadConfig(const Zstring& filename); - - virtual void OnClose (wxCloseEvent& event) { Destroy(); } - virtual void OnShowHelp (wxCommandEvent& event); - virtual void OnMenuAbout (wxCommandEvent& event); - virtual void OnAddFolder (wxCommandEvent& event); - virtual void OnRemoveFolder (wxCommandEvent& event); - virtual void OnRemoveTopFolder(wxCommandEvent& event); - virtual void OnKeyPressed (wxKeyEvent& event); - virtual void OnStart (wxCommandEvent& event); - virtual void OnConfigSave (wxCommandEvent& event); - virtual void OnConfigLoad (wxCommandEvent& event); - virtual void OnMenuQuit (wxCommandEvent& event) { Close(); } - void onFilesDropped(zen::FileDropEvent& event); - - void setConfiguration(const xmlAccess::XmlRealConfig& cfg); - xmlAccess::XmlRealConfig getConfiguration(); - void setLastUsedConfig(const Zstring& filename); - - void layoutAsync(); //call Layout() asynchronously - - //void addFolder(const Zstring& dirname, bool addFront = false); - void addFolder(const std::vector& newFolders, bool addFront = false); - void removeAddFolder(size_t pos); - void clearAddFolders(); - - static const Zstring& lastConfigFileName(); - - std::unique_ptr> dirNameFirst; - std::vector dirNamesExtra; //additional pairs to the standard pair - - Zstring currentConfigFileName; - - void onProcessAsyncTasks(wxEvent& event); - - template - void processAsync(Fun doAsync, Fun2 evalOnGui) { asyncTasks.add(doAsync, evalOnGui); timerForAsyncTasks.Start(50); /*timer interval in [ms] */ } - template - void processAsync2(Fun doAsync, Fun2 evalOnGui) { asyncTasks.add2(doAsync, evalOnGui); timerForAsyncTasks.Start(50); /*timer interval in [ms] */ } - - //schedule and run long-running tasks asynchronously, but process results on GUI queue - zen::AsyncTasks asyncTasks; - wxTimer timerForAsyncTasks; //don't use wxWidgets idle handling => repeated idle requests/consumption hogs 100% cpu! -}; - -#endif // REALTIMESYNCMAIN_H -- cgit