]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dirdlg.h
changed wxCmdLineEntryDesc::short/longName fields type to char* from wxChar* (non...
[wxWidgets.git] / include / wx / gtk / dirdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dirdlg.h
3 // Purpose: wxDirDialog
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 // wxDirDialog
17 //-------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxDirDialog : public wxGenericDirDialog
20 {
21 public:
22 wxDirDialog() { }
23
24 wxDirDialog(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 ~wxDirDialog() { }
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 protected:
45 // override this from wxTLW since the native
46 // form doesn't have any m_wxwindow
47 virtual void DoSetSize(int x, int y,
48 int width, int height,
49 int sizeFlags = wxSIZE_AUTO);
50
51
52 private:
53 DECLARE_DYNAMIC_CLASS(wxDirDialog)
54 DECLARE_EVENT_TABLE()
55 void OnFakeOk( wxCommandEvent &event );
56 };
57
58 #endif // __GTKDIRDLGH__