]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/dirdlgg.h
Getting rid of odd control characters at EOL in source.
[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
748fcded 35class wxGenericDirDialog: public wxDialog
dc6c62a9
RR
36{
37public:
748fcded
VS
38 wxGenericDirDialog(): wxDialog() {}
39 wxGenericDirDialog(wxWindow* parent, const wxString& title,
40 const wxString& defaultPath = wxEmptyString,
41 long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& sz = wxSize(450, 550),
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);
d7a15103 67
748fcded
VS
68 wxString m_message;
69 long m_dialogStyle;
70 wxString m_path;
71 wxGenericDirCtrl* m_dirCtrl;
72 wxTextCtrl* m_input;
73
dc6c62a9 74 DECLARE_EVENT_TABLE()
d7a15103
JS
75};
76
748fcded
VS
77#if !defined(__WXMSW__) && !defined(__WXMAC__) && !defined(__WXPM__)
78 #define wxDirDialog wxGenericDirDialog
ce4169a4
RR
79#endif
80
748fcded 81#endif // wxUSE_DIRDLG
d7a15103 82
748fcded 83#endif // _WX_DIRDLGG_H_