summaryrefslogtreecommitdiff
path: root/RealtimeSync/main_dlg.h
diff options
context:
space:
mode:
Diffstat (limited to 'RealtimeSync/main_dlg.h')
-rw-r--r--RealtimeSync/main_dlg.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/RealtimeSync/main_dlg.h b/RealtimeSync/main_dlg.h
index 3e1b807e..82d27944 100644
--- a/RealtimeSync/main_dlg.h
+++ b/RealtimeSync/main_dlg.h
@@ -10,28 +10,14 @@
#include "gui_generated.h"
#include <vector>
#include <memory>
+#include <wx+/file_drop.h>
#include "../ui/dir_name.h"
namespace xmlAccess
{
struct XmlRealConfig;
}
-
-
-class DirectoryPanel : public FolderGenerated
-{
-public:
- DirectoryPanel(wxWindow* parent) :
- FolderGenerated(parent),
- dirName(*this, *m_buttonSelectDir, *m_txtCtrlDirectory) {}
-
- void setName(const wxString& dirname) { dirName.setName(dirname); }
- wxString getName() const { return dirName.getName(); }
-
-private:
- zen::DirectoryName<wxTextCtrl> dirName;
-};
-
+class DirectoryPanel;
class MainDialog: public MainDlgGenerated
@@ -40,9 +26,9 @@ public:
MainDialog(wxDialog* dlg, const wxString& cfgFileName);
~MainDialog();
+private:
void loadConfig(const wxString& filename);
-private:
virtual void OnClose (wxCloseEvent& event) { Destroy(); }
virtual void OnQuit (wxCommandEvent& event) { Destroy(); }
virtual void OnShowHelp (wxCommandEvent& event);
@@ -54,6 +40,7 @@ private:
virtual void OnStart (wxCommandEvent& event);
virtual void OnConfigSave (wxCommandEvent& event);
virtual void OnConfigLoad (wxCommandEvent& event);
+ void onFilesDropped(zen::FileDropEvent& event);
void setConfiguration(const xmlAccess::XmlRealConfig& cfg);
xmlAccess::XmlRealConfig getConfiguration();
bgstack15