X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/479cd5de40ca8029c79e780170fa7c0af7ec0297..af01f1ba0d697c07173f436ab661b4c833258a91:/include/wx/generic/dirdlgg.h diff --git a/include/wx/generic/dirdlgg.h b/include/wx/generic/dirdlgg.h index 2f06ecc14c..3922c472b6 100644 --- a/include/wx/generic/dirdlgg.h +++ b/include/wx/generic/dirdlgg.h @@ -6,7 +6,7 @@ // Created: 12/12/98 // Copyright: (c) Harm van der Heijden and Robert Roebling // RCS-ID: $Id$ -// Licence: wxWindows licence +// Licence: wxWindows licence // // Notes: wxDirDialog class written by Harm van der Heijden, // uses wxDirCtrl class written by Robert Roebling for the @@ -60,9 +60,12 @@ #if wxUSE_DIRDLG #include "wx/dialog.h" -#include "wx/checkbox.h" #include "wx/treectrl.h" +class WXDLLEXPORT wxButton; +class WXDLLEXPORT wxCheckBox; +class WXDLLEXPORT wxTextCtrl; + //----------------------------------------------------------------------------- // data //----------------------------------------------------------------------------- @@ -106,11 +109,11 @@ public: wxDirCtrl(); wxDirCtrl(wxWindow *parent, const wxWindowID id = -1, - const wxString &dir = wxDirDialogDefaultFolderStr, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - const long style = wxTR_HAS_BUTTONS, - const wxString& name = wxTreeCtrlNameStr ); + const wxString &dir = wxDirDialogDefaultFolderStr, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + const long style = wxTR_HAS_BUTTONS, + const wxString& name = wxTreeCtrlNameStr ); void ShowHidden( const bool yesno ); void OnExpandItem(wxTreeEvent &event ); void OnCollapseItem(wxTreeEvent &event ); @@ -118,6 +121,8 @@ public: void OnEndEditItem(wxTreeEvent &event ); protected: + friend class wxDirDialog; + void CreateItems(const wxTreeItemId &parent); void SetupSections(); wxArrayString m_paths, m_names; @@ -136,9 +141,9 @@ class WXDLLEXPORT wxDirDialog: public wxDialog public: wxDirDialog() {} wxDirDialog(wxWindow *parent, - const wxString& message = wxFileSelectorPromptStr, - const wxString& defaultPath = wxEmptyString, - long style = 0, const wxPoint& pos = wxDefaultPosition); + const wxString& message = wxFileSelectorPromptStr, + const wxString& defaultPath = wxEmptyString, + long style = 0, const wxPoint& pos = wxDefaultPosition); inline void SetMessage(const wxString& message) { m_message = message; } inline void SetPath(const wxString& path) { m_path = path; } inline void SetStyle(long style) { m_dialogStyle = style; }