]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dirdlg.h
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / include / wx / gtk / dirdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dirdlg.h
3 // Purpose: wxDirDialog
4 // Author: Francesco Montorsi
5 // Copyright: (c) 2006 Francesco Montorsi
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef __GTKDIRDLGH__
10 #define __GTKDIRDLGH__
11
12 //-------------------------------------------------------------------------
13 // wxDirDialog
14 //-------------------------------------------------------------------------
15
16 class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
17 {
18 public:
19 wxDirDialog() { }
20
21 wxDirDialog(wxWindow *parent,
22 const wxString& message = wxDirSelectorPromptStr,
23 const wxString& defaultPath = wxEmptyString,
24 long style = wxDD_DEFAULT_STYLE,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize,
27 const wxString& name = wxDirDialogNameStr);
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);
35 virtual ~wxDirDialog() { }
36
37
38 public: // overrides from wxGenericDirDialog
39
40 wxString GetPath() const;
41 void SetPath(const wxString& path);
42
43
44 // Implementation only.
45
46 void GTKOnAccept();
47 void GTKOnCancel();
48
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:
58 wxString m_selectedDirectory;
59
60 DECLARE_DYNAMIC_CLASS(wxDirDialog)
61 };
62
63 #endif // __GTKDIRDLGH__