summaryrefslogtreecommitdiff
path: root/ui/sync_cfg.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:42 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:42 +0200
commitc32707148292d104c66276b43796d6057c8c7a5d (patch)
treebb83513f4aff24153e21a4ec92e34e4c27651b1f /ui/sync_cfg.cpp
parent3.9 (diff)
downloadFreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.gz
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.bz2
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.zip
3.10
Diffstat (limited to 'ui/sync_cfg.cpp')
-rw-r--r--ui/sync_cfg.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/ui/sync_cfg.cpp b/ui/sync_cfg.cpp
index c7dd58a5..c0af4881 100644
--- a/ui/sync_cfg.cpp
+++ b/ui/sync_cfg.cpp
@@ -7,8 +7,10 @@
#include "sync_cfg.h"
#include "../library/resources.h"
-#include "../shared/drag_n_drop.h"
+#include "../shared/dir_name.h"
#include <wx/wupdlock.h>
+#include "mouse_move_dlg.h"
+#include "../shared/string_conv.h"
using namespace ffs3;
@@ -26,10 +28,15 @@ SyncCfgDialog::SyncCfgDialog(wxWindow* window,
refHandleDeletion(handleDeletion),
refCustomDeletionDirectory(customDeletionDirectory),
refIgnoreErrors(ignoreErrors),
- dragDropCustomDelFolder(new DragDropOnDlg(m_panelCustomDeletionDir, m_dirPickerCustomDelFolder, m_textCtrlCustomDelFolder))
+ customDelFolder(new DirectoryName(m_panelCustomDeletionDir, m_dirPickerCustomDelFolder, m_textCtrlCustomDelFolder))
{
+#ifdef FFS_WIN
+ new MouseMoveWindow(*this, //allow moving main dialog by clicking (nearly) anywhere...
+ this, m_staticText81, m_staticText8, m_staticText101, m_staticText9); //ownership passed to "this"
+#endif
+
setDeletionHandling(handleDeletion);
- m_textCtrlCustomDelFolder->SetValue(customDeletionDirectory);
+ customDelFolder->setName(wxToZ(customDeletionDirectory));
//error handling
if (ignoreErrors)
@@ -280,7 +287,7 @@ void SyncCfgDialog::OnApply(wxCommandEvent& event)
//write configuration to main dialog
refSyncConfiguration = currentSyncConfig;
refHandleDeletion = getDeletionHandling();
- refCustomDeletionDirectory = m_textCtrlCustomDelFolder->GetValue();
+ refCustomDeletionDirectory = zToWx(customDelFolder->getName());
if (refIgnoreErrors)
*refIgnoreErrors = getErrorHandling();
bgstack15