]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/dirdlg.h
Added a wxDD_NEW_DIR_BUTTON style for wxDirDialog (currently,
[wxWidgets.git] / include / wx / msw / dirdlg.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
f3558acc 2// Name: wx/msw/dirdlg.h
2bda0e17
KB
3// Purpose: wxDirDialog class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc
JS
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_DIRDLG_H_
13#define _WX_DIRDLG_H_
2bda0e17
KB
14
15#ifdef __GNUG__
16#pragma interface "dirdlg.h"
17#endif
18
19#include "wx/dialog.h"
20
e97f6ab6 21WXDLLEXPORT_DATA(extern const wxChar*) wxFileSelectorPromptStr;
2432b92d 22
f3558acc 23class WXDLLEXPORT wxDirDialog : public wxDialog
2bda0e17 24{
2bda0e17 25public:
f3558acc
VZ
26 wxDirDialog(wxWindow *parent,
27 const wxString& message = wxFileSelectorPromptStr,
28 const wxString& defaultPath = wxEmptyString,
29 long style = 0,
30 const wxPoint& pos = wxDefaultPosition);
2bda0e17 31
f3558acc 32 void SetMessage(const wxString& message) { m_message = message; }
f94dd12d 33 void SetPath(const wxString& path);
f3558acc 34 void SetStyle(long style) { m_dialogStyle = style; }
2bda0e17 35
f3558acc
VZ
36 wxString GetMessage() const { return m_message; }
37 wxString GetPath() const { return m_path; }
38 long GetStyle() const { return m_dialogStyle; }
2bda0e17 39
f3558acc 40 virtual int ShowModal();
2bda0e17
KB
41
42protected:
43 wxString m_message;
44 long m_dialogStyle;
2bda0e17 45 wxString m_path;
f3558acc
VZ
46
47private:
48 DECLARE_DYNAMIC_CLASS(wxDirDialog)
2bda0e17
KB
49};
50
51#endif
bbcdf8bc 52 // _WX_DIRDLG_H_