summaryrefslogtreecommitdiff
path: root/ui/folder_pair.h
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/folder_pair.h
parent3.9 (diff)
downloadFreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.gz
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.bz2
FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.zip
3.10
Diffstat (limited to 'ui/folder_pair.h')
-rw-r--r--ui/folder_pair.h25
1 files changed, 3 insertions, 22 deletions
diff --git a/ui/folder_pair.h b/ui/folder_pair.h
index 27f3ab29..5dc016ef 100644
--- a/ui/folder_pair.h
+++ b/ui/folder_pair.h
@@ -8,7 +8,7 @@
#define FOLDERPAIR_H_INCLUDED
#include "../structures.h"
-#include "../shared/drag_n_drop.h"
+#include "../shared/dir_name.h"
#include "../library/resources.h"
#include "small_dlgs.h"
#include "sync_cfg.h"
@@ -27,17 +27,6 @@ class FolderPairPanelBasic : private wxEvtHandler
public:
typedef boost::shared_ptr<const ffs3::AlternateSyncConfig> AltSyncCfgPtr;
-
- Zstring getLeftDir() const
- {
- return wxToZ(basicPanel_.m_directoryLeft->GetValue());
- }
-
- Zstring getRightDir() const
- {
- return wxToZ(basicPanel_.m_directoryRight->GetValue());
- }
-
AltSyncCfgPtr getAltSyncConfig() const
{
return altSyncConfig;
@@ -48,18 +37,10 @@ public:
return localFilter;
}
- void setValues(const Zstring& leftDir,
- const Zstring& rightDir,
- AltSyncCfgPtr syncCfg,
- const FilterConfig& filter)
+ void setConfig(AltSyncCfgPtr syncCfg, const FilterConfig& filter)
{
altSyncConfig = syncCfg;
localFilter = filter;
-
- //insert directory names
- ffs3::setDirectoryName(zToWx(leftDir), basicPanel_.m_directoryLeft, basicPanel_.m_dirPickerLeft);
- ffs3::setDirectoryName(zToWx(rightDir), basicPanel_.m_directoryRight, basicPanel_.m_dirPickerRight);
-
refreshButtons();
}
@@ -145,7 +126,7 @@ private:
basicPanel_.PopupMenu(contextMenu.get()); //show context menu
}
- virtual MainConfiguration getMainConfig() const = 0;
+ virtual MainConfiguration getMainConfig() const = 0;
virtual wxWindow* getParentWindow() = 0;
virtual void OnAltSyncCfgChange() {};
bgstack15