summaryrefslogtreecommitdiff
path: root/shared/dir_name.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
commit9cc790869ed3905c78c7eeeb0bb44f800b3f2af4 (patch)
tree1c085bbf2302be294866c4fc6e0d225f8abbc346 /shared/dir_name.h
parent3.14 (diff)
downloadFreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.gz
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.bz2
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.zip
3.15
Diffstat (limited to 'shared/dir_name.h')
-rw-r--r--shared/dir_name.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/shared/dir_name.h b/shared/dir_name.h
index ad0f2a52..387f5668 100644
--- a/shared/dir_name.h
+++ b/shared/dir_name.h
@@ -15,7 +15,7 @@
#include "zstring.h"
-class FFSFileDropEvent;
+struct FFSFileDropEvent;
class wxCommandEvent;
class wxFileDirPickerEvent;
@@ -26,11 +26,11 @@ namespace ffs3
class DirectoryNameMainDlg : private wxEvtHandler
{
public:
- DirectoryNameMainDlg(wxWindow* dropWindow1,
- wxWindow* dropWindow2,
- wxDirPickerCtrl* dirPicker,
- wxComboBox* dirName,
- wxStaticBoxSizer* staticBox);
+ DirectoryNameMainDlg(wxWindow& dropWindow1,
+ wxWindow& dropWindow2,
+ wxDirPickerCtrl& dirPicker,
+ wxComboBox& dirName,
+ wxStaticBoxSizer& staticBox);
virtual ~DirectoryNameMainDlg() {}
@@ -44,20 +44,21 @@ private:
void OnWriteDirManually(wxCommandEvent& event);
void OnDirSelected(wxFileDirPickerEvent& event);
- const wxWindow* dropWindow1_;
- const wxWindow* dropWindow2_;
- wxDirPickerCtrl* dirPicker_;
- wxComboBox* dirName_;
- wxStaticBoxSizer* staticBox_;
+ const wxWindow& dropWindow1_;
+ const wxWindow& dropWindow2_;
+ wxDirPickerCtrl& dirPicker_;
+ wxComboBox& dirName_;
+ wxStaticBoxSizer& staticBox_;
};
class DirectoryName: private wxEvtHandler
{
public:
- DirectoryName(wxWindow* dropWindow,
- wxDirPickerCtrl* dirPicker,
- wxTextCtrl* dirName);
+ DirectoryName(wxWindow& dropWindow,
+ wxDirPickerCtrl& dirPicker,
+ wxTextCtrl& dirName,
+ wxStaticBoxSizer* staticBox = NULL); //optional
Zstring getName() const;
void setName(const Zstring& dirname);
@@ -67,9 +68,10 @@ private:
void OnWriteDirManually(wxCommandEvent& event);
void OnDirSelected(wxFileDirPickerEvent& event);
- const wxWindow* dropWindow_;
- wxDirPickerCtrl* dirPicker_;
- wxTextCtrl* dirName_;
+ const wxWindow& dropWindow_;
+ wxDirPickerCtrl& dirPicker_;
+ wxTextCtrl& dirName_;
+ wxStaticBoxSizer* staticBox_; //optional
};
}
bgstack15