summaryrefslogtreecommitdiff
path: root/RealtimeSync/functions.cpp
blob: 93d075c02864d991afa2e34b9bfc9bf1fb0c0a57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "functions.h"
#include <wx/textctrl.h>
#include <wx/filepicker.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));
}

bgstack15