blob: e5e3f5f54ebb6e3c7edcee841195dac056b3c8d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "functions.h"
#include <wx/textctrl.h>
#include <wx/filepicker.h>
//#include "../shared/globalFunctions.h"
#include "../shared/stringConv.h"
#include "../shared/fileHandling.h"
using namespace FreeFileSync;
void RealtimeSync::setDirectoryName(const wxString& dirname, wxTextCtrl* txtCtrl, wxDirPickerCtrl* dirPicker)
{
txtCtrl->SetValue(dirname);
const Zstring leftDirFormatted = FreeFileSync::getFormattedDirectoryName(wxToZ(dirname));
if (dirExists(leftDirFormatted))
dirPicker->SetPath(zToWx(leftDirFormatted));
}
|