misc fixes for wxDirDialog; new wxDD_CHANGE_DIR flag (patch 1478051)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-06 20:10:11 +00:00
parent 4523ebb3f1
commit 141d782d56
12 changed files with 85 additions and 111 deletions

View File

@@ -22,8 +22,8 @@ class WXDLLEXPORT wxTreeEvent;
// we may be included directly as well as from wx/dirdlg.h (FIXME)
extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxDirSelectorPromptStr[];
#ifndef wxDD_DEFAULT_STYLE
#ifndef wxDD_DEFAULT_STYLE
#ifdef __WXWINCE__
#define wxDD_DEFAULT_STYLE \
(wxDEFAULT_DIALOG_STYLE | wxDD_NEW_DIR_BUTTON)
@@ -62,13 +62,11 @@ public:
//// Accessors
void SetPath(const wxString& path);
void SetStyle(long style) { m_dialogStyle = style; }
wxString GetPath() const;
long GetStyle() const { return m_dialogStyle; }
//// Overrides
virtual int ShowModal();
virtual void EndModal(int retCode);
// this one is specific to wxGenericDirDialog
wxTextCtrl* GetInputCtrl() const { return m_input; }
@@ -83,7 +81,6 @@ protected:
void OnGoHome(wxCommandEvent& event);
void OnShowHidden(wxCommandEvent& event);
long m_dialogStyle;
wxGenericDirCtrl* m_dirCtrl;
wxTextCtrl* m_input;