1 #ifndef _WX_DIRDLG_H_BASE_ 
   2 #define _WX_DIRDLG_H_BASE_ 
   8 // ---------------------------------------------------------------------------- 
  10 // ---------------------------------------------------------------------------- 
  12 WXDLLEXPORT_DATA(extern const wxChar
*) wxDirDialogNameStr
; 
  13 WXDLLEXPORT_DATA(extern const wxChar
*) wxDirDialogDefaultFolderStr
; 
  14 WXDLLEXPORT_DATA(extern const wxChar
*) wxDirSelectorPromptStr
; 
  16 #define wxDD_DEFAULT_STYLE \ 
  17     (wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON) 
  20     The interface (TODO: make the other classes really derive from it!) is 
  23 class WXDLLEXPORT wxDirDialogBase : public wxDialog 
  26     wxDirDialogBase(wxWindow *parent, 
  27                     const wxString& title = wxFileSelectorPromptStr, 
  28                     const wxString& defaultPath = wxEmptyString, 
  29                     long style = wxDD_DEFAULT_STYLE, 
  30                     const wxPoint& pos = wxDefaultPosition, 
  31                     const wxSize& sz = wxDefaultSize, 
  32                     const wxString& name = _T("dirdialog")); 
  34     void SetMessage(const wxString& message); 
  35     void SetPath(const wxString& path); 
  36     void SetStyle(long style); 
  38     wxString GetMessage() const; 
  39     wxString GetPath() const; 
  40     long GetStyle() const; 
  45 #if defined(__WXMSW__) 
  46     #if defined(__WXWINCE__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE 
  47         #include "wx/generic/dirdlgg.h" 
  48         #define wxDirDialog wxGenericDirDialog 
  50         #include "wx/msw/dirdlg.h" 
  52 #elif defined(__WXMOTIF__) 
  53     #include "wx/generic/dirdlgg.h" 
  54 #elif defined(__WXGTK__) 
  55     #include "wx/generic/dirdlgg.h" 
  56 #elif defined(__WXX11__) 
  57     #include "wx/generic/dirdlgg.h" 
  58 #elif defined(__WXMGL__) 
  59     #include "wx/generic/dirdlgg.h" 
  60 #elif defined(__WXMAC__) 
  61     #include "wx/mac/dirdlg.h" 
  62 #elif defined(__WXCOCOA__) 
  63     #include "wx/generic/dirdlgg.h" 
  64 #elif defined(__WXPM__) 
  65     #include "wx/generic/dirdlgg.h" 
  68 #if !defined(__WXMSW__) && !defined(__WXMAC__) 
  69     #define wxDirDialog wxGenericDirDialog 
  72 // ---------------------------------------------------------------------------- 
  73 // common ::wxDirSelector() function 
  74 // ---------------------------------------------------------------------------- 
  77 wxDirSelector(const wxString
& message 
= wxDirSelectorPromptStr
, 
  78               const wxString
& defaultPath 
= wxEmptyString
, 
  79               long style 
= wxDD_DEFAULT_STYLE
, 
  80               const wxPoint
& pos 
= wxDefaultPosition
, 
  81               wxWindow 
*parent 
= NULL
); 
  83 #endif // wxUSE_DIRDLG