]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dirdlg.h
wxMessageBox --> wx.MessageBox
[wxWidgets.git] / include / wx / gtk / dirdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dirdlg.h
3 // Purpose: wxDirDialogGTK
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
13 #include "wx/generic/dirdlgg.h"
14
15 //-------------------------------------------------------------------------
16 // wxDirDialogGTK
17 //-------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxDirDialogGTK : public wxGenericDirDialog
20 {
21 public:
22 wxDirDialogGTK() { }
23
24 wxDirDialogGTK(wxWindow *parent,
25 const wxString& message = wxDirSelectorPromptStr,
26 const wxString& defaultPath = wxEmptyString,
27 long style = wxDD_DEFAULT_STYLE,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 const wxString& name = wxDirDialogNameStr);
31
32 virtual ~wxDirDialogGTK();
33
34
35 public: // overrides from wxGenericDirDialog
36
37 wxString GetPath() const;
38 void SetPath(const wxString& path);
39
40 virtual int ShowModal();
41 virtual bool Show( bool show = true );
42
43
44 //private: must be accessible by GTK callback
45 bool m_destroyed_by_delete;
46
47 protected:
48 // override this from wxTLW since the native
49 // form doesn't have any m_wxwindow
50 virtual void DoSetSize(int x, int y,
51 int width, int height,
52 int sizeFlags = wxSIZE_AUTO);
53
54
55 private:
56 DECLARE_DYNAMIC_CLASS(wxDirDialogGTK)
57 DECLARE_EVENT_TABLE()
58 void OnFakeOk( wxCommandEvent &event );
59 };
60
61 #endif // __GTKDIRDLGH__