X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6126da35a8e6071d6a424595a49b1bcbaffcb1a3..7344108e8a129a3f9b4df5ab0f98a1713db03b89:/interface/wx/dirdlg.h diff --git a/interface/wx/dirdlg.h b/interface/wx/dirdlg.h index cf6364f31b..b32b4c27b8 100644 --- a/interface/wx/dirdlg.h +++ b/interface/wx/dirdlg.h @@ -3,9 +3,26 @@ // Purpose: interface of wxDirDialog // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#define wxDD_DEFAULT_STYLE (wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER) + +/** + Initial folder for generic directory dialog. +*/ +const char wxDirDialogDefaultFolderStr[] = "/"; + +/** + Default message for directory selector dialog. +*/ +const char wxDirSelectorPromptStr[] = "Select a directory"; + +/** + Default name for directory selector dialog. +*/ +const char wxDirDialogNameStr[] = "wxDirCtrl"; + /** @class wxDirDialog @@ -67,12 +84,12 @@ public: The dialog name, not used. */ wxDirDialog(wxWindow* parent, - const wxString& message = "Choose a directory", - const wxString& defaultPath = "", + const wxString& message = wxDirSelectorPromptStr, + const wxString& defaultPath = wxEmptyString, long style = wxDD_DEFAULT_STYLE, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - const wxString& name = "wxDirCtrl"); + const wxString& name = wxDirDialogNameStr); /** Destructor. @@ -112,7 +129,7 @@ public: // Global functions/macros // ============================================================================ -/** @ingroup group_funcmacro_dialog */ +/** @addtogroup group_funcmacro_dialog */ //@{ /** @@ -134,7 +151,7 @@ public: @header{wx/dirdlg.h} */ wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr, - const wxString& default_path = "", + const wxString& default_path = wxEmptyString, long style = 0, const wxPoint& pos = wxDefaultPosition, wxWindow* parent = NULL);