X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4040a396cb22fdaa2db0f79bd782218cd814a540..3218cf580bf2249f20748aad4f78e339cf5fa02f:/include/wx/prop.h diff --git a/include/wx/prop.h b/include/wx/prop.h index bb9ebc64bb..c933e4e72d 100644 --- a/include/wx/prop.h +++ b/include/wx/prop.h @@ -42,14 +42,27 @@ class WXDLLEXPORT wxPropertySheet: public wxObject { DECLARE_DYNAMIC_CLASS(wxPropertySheet) public: - wxPropertySheet(void); + wxPropertySheet(const wxString& name = ""); ~wxPropertySheet(void); + // Set the name of the sheet + inline virtual void SetName(const wxString& name) { m_name=name; } + inline virtual wxString GetName() const { return m_name; } + // Does this sheet contain a property with this name + virtual bool HasProperty(const wxString& name) const; + + // Set property name to value + virtual bool SetProperty(const wxString& name, const wxPropertyValue& value); + + // Remove property from sheet by name, deleting it + virtual void RemoveProperty(const wxString& name); + + // Get the name of the sheet // Add a property virtual void AddProperty(wxProperty *property); // Get property by name - virtual wxProperty *GetProperty(wxString name); + virtual wxProperty *GetProperty(const wxString& name) const; // Clear all properties virtual void Clear(void); @@ -67,7 +80,7 @@ class WXDLLEXPORT wxPropertySheet: public wxObject wxObject* m_viewedObject; wxList m_properties; wxPropertyView* m_propertyView; - + wxString m_name; }; @@ -99,9 +112,11 @@ class WXDLLEXPORT wxPropertyView: public wxEvtHandler inline virtual void SetPropertySheet(wxPropertySheet *sheet) { m_propertySheet = sheet; } inline virtual wxPropertySheet *GetPropertySheet(void) const { return m_propertySheet; } +/* virtual void OnOk(void) {}; virtual void OnCancel(void) {}; virtual void OnHelp(void) {}; +*/ inline virtual bool OnClose(void) { return FALSE; } inline long GetFlags(void) { return m_buttonFlags; }