]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/dirdlg.h
Fixed MinGW/configure/Unicode compilation: MinGW/MSVCRT vswprintf does not
[wxWidgets.git] / include / wx / motif / dirdlg.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: dirdlg.h
3// Purpose: wxDirDialog class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DIRDLG_H_
13#define _WX_DIRDLG_H_
14
15#ifdef __GNUG__
16#pragma interface "dirdlg.h"
17#endif
18
19#include "wx/dialog.h"
20
21WXDLLEXPORT_DATA(extern const char*) wxFileSelectorPromptStr;
22
23class WXDLLEXPORT wxDirDialog: public wxDialog
24{
83df96d6 25 DECLARE_DYNAMIC_CLASS(wxDirDialog)
9b6dbb09
JS
26public:
27 wxDirDialog(wxWindow *parent, const wxString& message = wxFileSelectorPromptStr,
28 const wxString& defaultPath = "",
29 long style = 0, const wxPoint& pos = wxDefaultPosition);
83df96d6 30
9b6dbb09
JS
31 inline void SetMessage(const wxString& message) { m_message = message; }
32 inline void SetPath(const wxString& path) { m_path = path; }
33 inline void SetStyle(long style) { m_dialogStyle = style; }
83df96d6 34
9b6dbb09
JS
35 inline wxString GetMessage() const { return m_message; }
36 inline wxString GetPath() const { return m_path; }
37 inline long GetStyle() const { return m_dialogStyle; }
83df96d6 38
9b6dbb09 39 int ShowModal();
83df96d6 40
9b6dbb09
JS
41protected:
42 wxString m_message;
43 long m_dialogStyle;
44 wxWindow * m_parent;
45 wxString m_path;
46};
47
48#endif
83df96d6 49// _WX_DIRDLG_H_