]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/dirdlgg.h
compilation fixes after the last commit
[wxWidgets.git] / include / wx / generic / dirdlgg.h
CommitLineData
d7a15103
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: dirdlgg.h
748fcded
VS
3// Purpose: wxGenericDirCtrl class
4// Builds on wxDirCtrl class written by Robert Roebling for the
5// wxFile application, modified by Harm van der Heijden.
6// Further modified for Windows.
7// Author: Robert Roebling, Harm van der Heijden, Julian Smart et al
d7a15103 8// Modified by:
748fcded 9// Created: 21/3/2000
8b17ba72 10// RCS-ID: $Id$
748fcded
VS
11// Copyright: (c) Robert Roebling, Harm van der Heijden, Julian Smart
12// Licence: wxWindows licence
d7a15103
JS
13/////////////////////////////////////////////////////////////////////////////
14
15#ifndef _WX_DIRDLGG_H_
16#define _WX_DIRDLGG_H_
17
18#ifdef __GNUG__
19#pragma interface "dirdlgg.h"
20#endif
21
ce4169a4
RR
22#include "wx/defs.h"
23
24#if wxUSE_DIRDLG
25
d7a15103 26#include "wx/dialog.h"
748fcded 27class WXDLLEXPORT wxGenericDirCtrl;
10eb1f1e 28class WXDLLEXPORT wxTextCtrl;
748fcded 29class WXDLLEXPORT wxTreeEvent;
10eb1f1e 30
d7a15103 31//-----------------------------------------------------------------------------
748fcded 32// wxGenericDirDialog
dc6c62a9
RR
33//-----------------------------------------------------------------------------
34
90c9fcc5 35class WXDLLEXPORT wxGenericDirDialog: public wxDialog
dc6c62a9
RR
36{
37public:
748fcded
VS
38 wxGenericDirDialog(): wxDialog() {}
39 wxGenericDirDialog(wxWindow* parent, const wxString& title,
957aea45 40 const wxString& defaultPath = wxEmptyString,
748fcded 41 long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER,
957aea45
DW
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& sz = wxSize(450, 550),
748fcded
VS
44 const wxString& name = _T("dialog"));
45
46 //// Accessors
d7a15103 47 inline void SetMessage(const wxString& message) { m_message = message; }
748fcded 48 void SetPath(const wxString& path);
d7a15103
JS
49 inline void SetStyle(long style) { m_dialogStyle = style; }
50
748fcded
VS
51 inline wxString GetMessage(void) const { return m_message; }
52 wxString GetPath(void) const;
53 inline long GetStyle(void) const { return m_dialogStyle; }
54
55 wxTextCtrl* GetInputCtrl() const { return m_input; }
d7a15103 56
748fcded 57 //// Overrides
d7a15103
JS
58 int ShowModal();
59
748fcded
VS
60protected:
61 //// Event handlers
62 void OnCloseWindow(wxCloseEvent& event);
d7a15103 63 void OnOK(wxCommandEvent& event);
748fcded
VS
64 void OnTreeSelected(wxTreeEvent &event);
65 void OnTreeKeyDown(wxTreeEvent &event);
d7a15103 66 void OnNew(wxCommandEvent& event);
42dcacf0 67 void OnShowHidden(wxCommandEvent& event);
d7a15103 68
748fcded
VS
69 wxString m_message;
70 long m_dialogStyle;
71 wxString m_path;
72 wxGenericDirCtrl* m_dirCtrl;
73 wxTextCtrl* m_input;
74
dc6c62a9 75 DECLARE_EVENT_TABLE()
d7a15103
JS
76};
77
957aea45 78#if !defined(__WXMSW__) && !defined(__WXMAC__)
748fcded 79 #define wxDirDialog wxGenericDirDialog
ce4169a4
RR
80#endif
81
748fcded 82#endif // wxUSE_DIRDLG
d7a15103 83
748fcded 84#endif // _WX_DIRDLGG_H_