1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_DIRDLG_H_BASE_
|
|
|
|
#define _WX_DIRDLG_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#if wxUSE_DIRDLG
|
|
|
|
|
2002-05-04 09:17:36 -04:00
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
1999-09-05 11:14:50 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// constants
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogNameStr;
|
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogDefaultFolderStr;
|
2002-05-04 08:38:51 -04:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxDirSelectorPromptStr;
|
1999-09-05 11:14:50 -04:00
|
|
|
|
2002-05-04 08:38:51 -04:00
|
|
|
#define wxDD_DEFAULT_STYLE \
|
|
|
|
(wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON)
|
|
|
|
|
|
|
|
/*
|
|
|
|
The interface (TODO: make the other classes really derive from it!) is
|
|
|
|
something like this:
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxDirDialogBase : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxDirDialogBase(wxWindow *parent,
|
|
|
|
const wxString& title = wxFileSelectorPromptStr,
|
|
|
|
const wxString& defaultPath = wxEmptyString,
|
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& sz = wxDefaultSize,
|
|
|
|
const wxString& name = _T("dirdialog"));
|
|
|
|
|
|
|
|
void SetMessage(const wxString& message);
|
|
|
|
void SetPath(const wxString& path);
|
|
|
|
void SetStyle(long style);
|
|
|
|
|
|
|
|
wxString GetMessage() const;
|
|
|
|
wxString GetPath() const;
|
|
|
|
long GetStyle() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
1998-07-10 10:15:17 -04:00
|
|
|
#if defined(__WXMSW__)
|
2003-07-15 09:15:48 -04:00
|
|
|
#if defined(__WXWINCE__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE
|
2001-10-30 11:58:42 -05:00
|
|
|
#include "wx/generic/dirdlgg.h"
|
2002-02-17 11:07:39 -05:00
|
|
|
#define wxDirDialog wxGenericDirDialog
|
2001-10-30 11:58:42 -05:00
|
|
|
#else
|
|
|
|
#include "wx/msw/dirdlg.h"
|
|
|
|
#endif
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-10-30 11:58:42 -05:00
|
|
|
#include "wx/generic/dirdlgg.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXGTK__)
|
2001-10-30 11:58:42 -05:00
|
|
|
#include "wx/generic/dirdlgg.h"
|
2002-02-05 11:34:33 -05:00
|
|
|
#elif defined(__WXX11__)
|
|
|
|
#include "wx/generic/dirdlgg.h"
|
2001-11-19 18:53:21 -05:00
|
|
|
#elif defined(__WXMGL__)
|
|
|
|
#include "wx/generic/dirdlgg.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXMAC__)
|
2001-10-30 11:58:42 -05:00
|
|
|
#include "wx/mac/dirdlg.h"
|
2003-03-22 01:13:03 -05:00
|
|
|
#elif defined(__WXCOCOA__)
|
|
|
|
#include "wx/generic/dirdlgg.h"
|
1999-07-27 23:38:12 -04:00
|
|
|
#elif defined(__WXPM__)
|
2002-01-25 17:47:37 -05:00
|
|
|
#include "wx/generic/dirdlgg.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
2002-05-04 08:38:51 -04:00
|
|
|
#if !defined(__WXMSW__) && !defined(__WXMAC__)
|
|
|
|
#define wxDirDialog wxGenericDirDialog
|
|
|
|
#endif
|
|
|
|
|
2001-10-30 11:58:42 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// common ::wxDirSelector() function
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
WXDLLEXPORT wxString
|
|
|
|
wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
|
|
|
|
const wxString& defaultPath = wxEmptyString,
|
2002-05-04 08:38:51 -04:00
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
2001-10-30 11:58:42 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
wxWindow *parent = NULL);
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#endif // wxUSE_DIRDLG
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
1998-08-14 20:23:28 -04:00
|
|
|
// _WX_DIRDLG_H_BASE_
|