diff options
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()); +} + |