diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:17 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:17 +0200 |
commit | fd0853d2623dd278b08288331ed42e3be59252fb (patch) | |
tree | a7645daeaef8bdbed064faf4eb88e72cee58726c /RealtimeSync/functions.cpp | |
parent | 2.1 (diff) | |
download | FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2 FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip |
2.2
Diffstat (limited to 'RealtimeSync/functions.cpp')
-rw-r--r-- | RealtimeSync/functions.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/RealtimeSync/functions.cpp b/RealtimeSync/functions.cpp new file mode 100644 index 00000000..f966187e --- /dev/null +++ b/RealtimeSync/functions.cpp @@ -0,0 +1,15 @@ +#include "functions.h" +#include <wx/textctrl.h> +#include <wx/filepicker.h> +//#include "../shared/globalFunctions.h" +#include "../shared/fileHandling.h" + + +void RealtimeSync::setDirectoryName(const wxString& dirname, wxTextCtrl* txtCtrl, wxDirPickerCtrl* dirPicker) +{ + txtCtrl->SetValue(dirname); + const Zstring leftDirFormatted = FreeFileSync::getFormattedDirectoryName(dirname.c_str()); + if (wxDirExists(leftDirFormatted.c_str())) + dirPicker->SetPath(leftDirFormatted.c_str()); +} + |