]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dirdlg.h
refactor wxStaticText::Ellipsize so it's a static public utility function; document...
[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 //-------------------------------------------------------------------------
14 // wxDirDialog
15 //-------------------------------------------------------------------------
16
17 class WXDLLIMPEXP_CORE wxDirDialog : public wxDirDialogBase
18 {
19 public:
20 wxDirDialog() { }
21
22 wxDirDialog(wxWindow *parent,
23 const wxString& message = wxDirSelectorPromptStr,
24 const wxString& defaultPath = wxEmptyString,
25 long style = wxDD_DEFAULT_STYLE,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 const wxString& name = wxDirDialogNameStr);
29
30 virtual ~wxDirDialog() { }
31
32
33 public: // overrides from wxGenericDirDialog
34
35 wxString GetPath() const;
36 void SetPath(const wxString& path);
37
38
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:
48 void OnFakeOk( wxCommandEvent &event );
49
50 DECLARE_DYNAMIC_CLASS(wxDirDialog)
51 DECLARE_EVENT_TABLE()
52 };
53
54 #endif // __GTKDIRDLGH__