]>
Commit | Line | Data |
---|---|---|
b50747ea RR |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dirdlg.h | |
ff3e84ff | 3 | // Purpose: wxDirDialog |
b50747ea RR |
4 | // Author: Francesco Montorsi |
5 | // Id: $Id$ | |
6 | // Copyright: (c) 2006 Francesco Montorsi | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef __GTKDIRDLGH__ | |
11 | #define __GTKDIRDLGH__ | |
12 | ||
b50747ea | 13 | //------------------------------------------------------------------------- |
ff3e84ff | 14 | // wxDirDialog |
b50747ea RR |
15 | //------------------------------------------------------------------------- |
16 | ||
ff654490 | 17 | class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase |
b50747ea RR |
18 | { |
19 | public: | |
ff3e84ff | 20 | wxDirDialog() { } |
b50747ea | 21 | |
ff3e84ff | 22 | wxDirDialog(wxWindow *parent, |
b50747ea | 23 | const wxString& message = wxDirSelectorPromptStr, |
141d782d | 24 | const wxString& defaultPath = wxEmptyString, |
b50747ea RR |
25 | long style = wxDD_DEFAULT_STYLE, |
26 | const wxPoint& pos = wxDefaultPosition, | |
27 | const wxSize& size = wxDefaultSize, | |
28 | const wxString& name = wxDirDialogNameStr); | |
29 | ||
ff3e84ff | 30 | virtual ~wxDirDialog() { } |
b50747ea RR |
31 | |
32 | ||
33 | public: // overrides from wxGenericDirDialog | |
34 | ||
35 | wxString GetPath() const; | |
36 | void SetPath(const wxString& path); | |
37 | ||
b50747ea | 38 | |
b50747ea RR |
39 | protected: |
40 | // override this from wxTLW since the native | |
41 | // form doesn't have any m_wxwindow | |
42 | virtual void DoSetSize(int x, int y, | |
43 | int width, int height, | |
44 | int sizeFlags = wxSIZE_AUTO); | |
45 | ||
46 | ||
47 | private: | |
ff654490 VZ |
48 | void OnFakeOk( wxCommandEvent &event ); |
49 | ||
ff3e84ff | 50 | DECLARE_DYNAMIC_CLASS(wxDirDialog) |
b50747ea | 51 | DECLARE_EVENT_TABLE() |
b50747ea RR |
52 | }; |
53 | ||
54 | #endif // __GTKDIRDLGH__ |