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