1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_DIRDLG_H_BASE_
|
|
|
|
#define _WX_DIRDLG_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#if wxUSE_DIRDLG
|
|
|
|
|
2002-05-04 13:17:36 +00:00
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
1999-09-05 15:14:50 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// constants
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogNameStr;
|
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogDefaultFolderStr;
|
2002-05-04 12:38:51 +00:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxDirSelectorPromptStr;
|
1999-09-05 15:14:50 +00:00
|
|
|
|
2002-05-04 12:38:51 +00: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 14:15:17 +00:00
|
|
|
#if defined(__WXMSW__)
|
2003-07-15 13:15:48 +00:00
|
|
|
#if defined(__WXWINCE__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE
|
2001-10-30 16:58:42 +00:00
|
|
|
#include "wx/generic/dirdlgg.h"
|
2002-02-17 16:07:39 +00:00
|
|
|
#define wxDirDialog wxGenericDirDialog
|
2001-10-30 16:58:42 +00:00
|
|
|
#else
|
|
|
|
#include "wx/msw/dirdlg.h"
|
|
|
|
#endif
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-10-30 16:58:42 +00:00
|
|
|
#include "wx/generic/dirdlgg.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXGTK__)
|
2001-10-30 16:58:42 +00:00
|
|
|
#include "wx/generic/dirdlgg.h"
|
2002-02-05 16:34:33 +00:00
|
|
|
#elif defined(__WXX11__)
|
|
|
|
#include "wx/generic/dirdlgg.h"
|
2001-11-19 23:53:21 +00:00
|
|
|
#elif defined(__WXMGL__)
|
|
|
|
#include "wx/generic/dirdlgg.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2001-10-30 16:58:42 +00:00
|
|
|
#include "wx/mac/dirdlg.h"
|
2003-03-22 06:13:03 +00:00
|
|
|
#elif defined(__WXCOCOA__)
|
|
|
|
#include "wx/generic/dirdlgg.h"
|
1999-07-28 03:38:12 +00:00
|
|
|
#elif defined(__WXPM__)
|
2002-01-25 22:47:37 +00:00
|
|
|
#include "wx/generic/dirdlgg.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
2002-05-04 12:38:51 +00:00
|
|
|
#if !defined(__WXMSW__) && !defined(__WXMAC__)
|
|
|
|
#define wxDirDialog wxGenericDirDialog
|
|
|
|
#endif
|
|
|
|
|
2001-10-30 16:58:42 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// common ::wxDirSelector() function
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
WXDLLEXPORT wxString
|
|
|
|
wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
|
|
|
|
const wxString& defaultPath = wxEmptyString,
|
2002-05-04 12:38:51 +00:00
|
|
|
long style = wxDD_DEFAULT_STYLE,
|
2001-10-30 16:58:42 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
wxWindow *parent = NULL);
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#endif // wxUSE_DIRDLG
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
1998-08-15 00:23:28 +00:00
|
|
|
// _WX_DIRDLG_H_BASE_
|