// 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
#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
//-----------------------------------------------------------------------------
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 );
void OnEndEditItem(wxTreeEvent &event );
protected:
+ friend class wxDirDialog;
+
void CreateItems(const wxTreeItemId &parent);
void SetupSections();
wxArrayString m_paths, m_names;
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; }