]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dirdlg.h
adding measuring contexts, streamlining printing code
[wxWidgets.git] / include / wx / gtk / dirdlg.h
CommitLineData
b50747ea
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: dirdlg.h
ff3e84ff 3// Purpose: wxDirDialog
b50747ea
RR
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//-------------------------------------------------------------------------
ff3e84ff 16// wxDirDialog
b50747ea
RR
17//-------------------------------------------------------------------------
18
ff3e84ff 19class WXDLLIMPEXP_CORE wxDirDialog : public wxGenericDirDialog
b50747ea
RR
20{
21public:
ff3e84ff 22 wxDirDialog() { }
b50747ea 23
ff3e84ff 24 wxDirDialog(wxWindow *parent,
b50747ea 25 const wxString& message = wxDirSelectorPromptStr,
141d782d 26 const wxString& defaultPath = wxEmptyString,
b50747ea
RR
27 long style = wxDD_DEFAULT_STYLE,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 const wxString& name = wxDirDialogNameStr);
31
ff3e84ff 32 virtual ~wxDirDialog() { }
b50747ea
RR
33
34
35public: // 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
b50747ea
RR
44protected:
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
52private:
ff3e84ff 53 DECLARE_DYNAMIC_CLASS(wxDirDialog)
b50747ea
RR
54 DECLARE_EVENT_TABLE()
55 void OnFakeOk( wxCommandEvent &event );
56};
57
58#endif // __GTKDIRDLGH__