diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:23:19 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:23:19 +0200 |
commit | 0887aee8c54d0ed51bb2031431e2bcdafebb4c6e (patch) | |
tree | 69537ceb9787bb25ac363cc4e6cdaf0804d78363 /RealtimeSync/main_dlg.cpp | |
parent | 5.12 (diff) | |
download | FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.gz FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.bz2 FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.zip |
5.13
Diffstat (limited to 'RealtimeSync/main_dlg.cpp')
-rw-r--r-- | RealtimeSync/main_dlg.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/RealtimeSync/main_dlg.cpp b/RealtimeSync/main_dlg.cpp index ca6fa4fa..758babd5 100644 --- a/RealtimeSync/main_dlg.cpp +++ b/RealtimeSync/main_dlg.cpp @@ -14,6 +14,7 @@ #include <wx+/button.h> #include <wx+/string_conv.h> #include <wx+/mouse_move_dlg.h> +#include <wx+/font_size.h> #include <zen/assert_static.h> #include <zen/file_handling.h> #include <zen/build_info.h> @@ -46,8 +47,16 @@ private: MainDialog::MainDialog(wxDialog* dlg, const wxString& cfgFileName) : MainDlgGenerated(dlg) { +#ifdef FFS_WIN + new MouseMoveWindow(*this); //ownership passed to "this" +#endif wxWindowUpdateLocker dummy(this); //avoid display distortion + SetIcon(GlobalResources::instance().programIcon); //set application icon + + setRelativeFontSize(*m_buttonStart, 1.5); + m_buttonStart->setInnerBorderSize(8); + m_bpButtonRemoveTopFolder->Hide(); m_panelMainFolder->Layout(); @@ -61,15 +70,10 @@ MainDialog::MainDialog(wxDialog* dlg, const wxString& cfgFileName) //prepare drag & drop dirNameFirst.reset(new DirectoryName<wxTextCtrl>(*m_panelMainFolder, *m_buttonSelectDirMain, *m_txtCtrlDirectoryMain, m_staticTextFinalPath)); -#ifdef FFS_WIN - new MouseMoveWindow(*this); //ownership passed to "this" -#endif - //--------------------------- load config values ------------------------------------ xmlAccess::XmlRealConfig newConfig; const wxString currentConfigFile = cfgFileName.empty() ? lastConfigFileName() : cfgFileName; - bool loadCfgSuccess = false; if (!cfgFileName.empty() || wxFileExists(lastConfigFileName())) try @@ -139,7 +143,7 @@ const wxString& MainDialog::lastConfigFileName() void MainDialog::OnShowHelp(wxCommandEvent& event) { - zen::displayHelpEntry(L"html/RealtimeSync.html"); + zen::displayHelpEntry(L"html/RealtimeSync.html", this); } @@ -363,7 +367,7 @@ void MainDialog::OnRemoveTopFolder(wxCommandEvent& event) #ifdef FFS_WIN static const size_t MAX_ADD_FOLDERS = 8; -#elif defined FFS_LINUX +#elif defined FFS_LINUX || defined FFS_MAC static const size_t MAX_ADD_FOLDERS = 6; #endif |