Added a wxDD_NEW_DIR_BUTTON style for wxDirDialog (currently,
works for the generic implementation only). Renamed wxDIRCTRL_EDITABLE to wxDIRCTRL_EDIT_LABELS. Removed reported memory leaks from dynload.cpp using wxModule -- this may cause problems if other modules want to use wxPluginLibrary. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1159,6 +1159,12 @@ enum wxBorder
|
||||
// be modal. No progress will then be made at all.
|
||||
#define wxPD_REMAINING_TIME 0x0040
|
||||
|
||||
/*
|
||||
* wxDirDialog styles
|
||||
*/
|
||||
|
||||
#define wxDD_NEW_DIR_BUTTON 0x0080
|
||||
|
||||
/*
|
||||
* extended dialog specifiers. these values are stored in a different
|
||||
* flag and thus do not overlap with other style flags. note that these
|
||||
|
@@ -41,7 +41,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxDirSelectorPromptStr;
|
||||
WXDLLEXPORT wxString
|
||||
wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
|
||||
const wxString& defaultPath = wxEmptyString,
|
||||
long style = 0,
|
||||
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
wxWindow *parent = NULL);
|
||||
|
||||
|
@@ -184,7 +184,7 @@ class WXDLLEXPORT wxPluginLibrary : public wxDynamicLibrary
|
||||
{
|
||||
public:
|
||||
|
||||
static wxDLImports ms_classes; // Static hash of all imported classes.
|
||||
static wxDLImports* ms_classes; // Static hash of all imported classes.
|
||||
|
||||
wxPluginLibrary( const wxString &libname, int flags = wxDL_DEFAULT );
|
||||
~wxPluginLibrary();
|
||||
@@ -269,10 +269,13 @@ public:
|
||||
return m_entry->GetSymbol( symbol, success );
|
||||
}
|
||||
|
||||
static void CreateManifest() { ms_manifest = new wxDLManifest(wxKEY_STRING); }
|
||||
static void ClearManifest() { delete ms_manifest; ms_manifest = NULL; }
|
||||
|
||||
private:
|
||||
|
||||
static wxDLManifest ms_manifest; // Static hash of loaded libs.
|
||||
wxPluginLibrary *m_entry; // Cache our entry in the manifest.
|
||||
static wxDLManifest* ms_manifest; // Static hash of loaded libs.
|
||||
wxPluginLibrary* m_entry; // Cache our entry in the manifest.
|
||||
|
||||
// We could allow this class to be copied if we really
|
||||
// wanted to, but not without modification.
|
||||
|
@@ -47,7 +47,7 @@ enum
|
||||
// Use 3D borders on internal controls
|
||||
wxDIRCTRL_3D_INTERNAL = 0x0080,
|
||||
// Editable labels
|
||||
wxDIRCTRL_EDITABLE = 0x0100
|
||||
wxDIRCTRL_EDIT_LABELS = 0x0100
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -38,7 +38,7 @@ public:
|
||||
wxGenericDirDialog(): wxDialog() {}
|
||||
wxGenericDirDialog(wxWindow* parent, const wxString& title,
|
||||
const wxString& defaultPath = wxEmptyString,
|
||||
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER,
|
||||
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& sz = wxSize(450, 550),
|
||||
const wxString& name = _T("dialog"));
|
||||
|
Reference in New Issue
Block a user