]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/dirdlgg.h
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / include / wx / generic / dirdlgg.h
CommitLineData
d7a15103 1/////////////////////////////////////////////////////////////////////////////
74d8ead3 2// Name: wx/generic/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
748fcded 10// Copyright: (c) Robert Roebling, Harm van der Heijden, Julian Smart
65571936 11// Licence: wxWindows licence
d7a15103
JS
12/////////////////////////////////////////////////////////////////////////////
13
14#ifndef _WX_DIRDLGG_H_
15#define _WX_DIRDLGG_H_
16
b5dbe15d
VS
17class WXDLLIMPEXP_FWD_CORE wxGenericDirCtrl;
18class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
19class WXDLLIMPEXP_FWD_CORE wxTreeEvent;
10eb1f1e 20
74d8ead3 21// we may be included directly as well as from wx/dirdlg.h (FIXME)
53a2db12
FM
22extern WXDLLIMPEXP_DATA_CORE(const char) wxDirDialogNameStr[];
23extern WXDLLIMPEXP_DATA_CORE(const char) wxDirSelectorPromptStr[];
259a6e38 24
141d782d 25#ifndef wxDD_DEFAULT_STYLE
259a6e38 26#ifdef __WXWINCE__
ff3e84ff 27 #define wxDD_DEFAULT_STYLE wxDEFAULT_DIALOG_STYLE
259a6e38 28#else
ff3e84ff 29 #define wxDD_DEFAULT_STYLE (wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
74d8ead3 30#endif
259a6e38 31#endif
74d8ead3
VZ
32
33#include "wx/dialog.h"
34
d7a15103 35//-----------------------------------------------------------------------------
748fcded 36// wxGenericDirDialog
dc6c62a9
RR
37//-----------------------------------------------------------------------------
38
53a2db12 39class WXDLLIMPEXP_CORE wxGenericDirDialog : public wxDirDialogBase
dc6c62a9
RR
40{
41public:
b50747ea 42 wxGenericDirDialog() : wxDirDialogBase() { }
e78d4a23
VZ
43
44 wxGenericDirDialog(wxWindow* parent,
45 const wxString& title = wxDirSelectorPromptStr,
957aea45 46 const wxString& defaultPath = wxEmptyString,
e78d4a23 47 long style = wxDD_DEFAULT_STYLE,
957aea45 48 const wxPoint& pos = wxDefaultPosition,
b50747ea
RR
49 const wxSize& sz = wxDefaultSize,//Size(450, 550),
50 const wxString& name = wxDirDialogNameStr);
51
52 bool Create(wxWindow* parent,
53 const wxString& title = wxDirSelectorPromptStr,
54 const wxString& defaultPath = wxEmptyString,
55 long style = wxDD_DEFAULT_STYLE,
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& sz = wxDefaultSize,//Size(450, 550),
e78d4a23 58 const wxString& name = wxDirDialogNameStr);
748fcded
VS
59
60 //// Accessors
748fcded 61 void SetPath(const wxString& path);
74d8ead3 62 wxString GetPath() const;
d7a15103 63
748fcded 64 //// Overrides
74d8ead3 65 virtual int ShowModal();
141d782d 66 virtual void EndModal(int retCode);
74d8ead3
VZ
67
68 // this one is specific to wxGenericDirDialog
69 wxTextCtrl* GetInputCtrl() const { return m_input; }
d7a15103 70
748fcded
VS
71protected:
72 //// Event handlers
73 void OnCloseWindow(wxCloseEvent& event);
d7a15103 74 void OnOK(wxCommandEvent& event);
748fcded
VS
75 void OnTreeSelected(wxTreeEvent &event);
76 void OnTreeKeyDown(wxTreeEvent &event);
d7a15103 77 void OnNew(wxCommandEvent& event);
e13ea14e 78 void OnGoHome(wxCommandEvent& event);
42dcacf0 79 void OnShowHidden(wxCommandEvent& event);
d7a15103 80
748fcded
VS
81 wxGenericDirCtrl* m_dirCtrl;
82 wxTextCtrl* m_input;
83
dc6c62a9 84 DECLARE_EVENT_TABLE()
d6379fa3 85 DECLARE_DYNAMIC_CLASS(wxGenericDirDialog)
d7a15103
JS
86};
87
748fcded 88#endif // _WX_DIRDLGG_H_