]> git.saurik.com Git - wxWidgets.git/blame - include/wx/qt/dirdlg.h
merged in the commit from the 2.2 branch
[wxWidgets.git] / include / wx / qt / dirdlg.h
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: dirdlg.h
01b2eeec
KB
3// Purpose: wxDirDialog class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
01b2eeec
KB
12#ifndef _WX_DIRDLG_H_
13#define _WX_DIRDLG_H_
7c78e7c7
RR
14
15#ifdef __GNUG__
01b2eeec 16#pragma interface "dirdlg.h"
7c78e7c7
RR
17#endif
18
7c78e7c7
RR
19#include "wx/dialog.h"
20
01b2eeec
KB
21class WXDLLEXPORT wxDirDialog: public wxDialog
22{
23DECLARE_DYNAMIC_CLASS(wxDirDialog)
24public:
25 wxDirDialog(wxWindow *parent, const wxString& message = wxFileSelectorPromptStr,
26 const wxString& defaultPath = "",
27 long style = 0, const wxPoint& pos = wxDefaultPosition);
28
29 inline void SetMessage(const wxString& message) { m_message = message; }
30 inline void SetPath(const wxString& path) { m_path = path; }
31 inline void SetStyle(long style) { m_dialogStyle = style; }
7c78e7c7 32
01b2eeec
KB
33 inline wxString GetMessage() const { return m_message; }
34 inline wxString GetPath() const { return m_path; }
35 inline long GetStyle() const { return m_dialogStyle; }
7c78e7c7 36
01b2eeec 37 int ShowModal();
7c78e7c7 38
01b2eeec
KB
39protected:
40 wxString m_message;
41 long m_dialogStyle;
42 wxWindow * m_parent;
43 wxString m_path;
44};
45
46#endif
47 // _WX_DIRDLG_H_