- protected:
- wxWindow *propertyWindow;
- wxItemResource *propertyResource;
- public:
- wxWindowPropertyInfo(wxWindow *win, wxItemResource *res = NULL);
- ~wxWindowPropertyInfo(void);
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
-
- inline void SetPropertyWindow(wxWindow *win) { propertyWindow = win; }
-
- inline void SetResource(wxItemResource *res) { propertyResource = res; }
-
- // Helper functions for font properties
-
- wxProperty *GetFontProperty(wxString& name, wxFont *font);
- wxFont *SetFontProperty(wxString& name, wxProperty *property, wxFont *oldFont);
-
- // Fill in the wxItemResource members to mirror the current window settings
- virtual bool InstantiateResource(wxItemResource *resource);
+public:
+ wxWindowPropertyInfo(wxWindow *win, wxItemResource *res = NULL);
+ ~wxWindowPropertyInfo(void);
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+
+ inline void SetPropertyWindow(wxWindow *win) { m_propertyWindow = win; }
+
+ inline void SetResource(wxItemResource *res) { m_propertyResource = res; }
+
+ // Helper functions for font properties
+
+ wxProperty *GetFontProperty(wxString& name, wxFont *font);
+ wxFont *SetFontProperty(wxString& name, wxProperty *property, wxFont *oldFont);
+
+ // Fill in the wxItemResource members to mirror the current window settings
+ virtual bool InstantiateResource(wxItemResource *resource);
+
+ // Set the window style
+ void SetWindowStyle(wxWindow* win, long style, bool set);
+
+ wxWindow* GetWindow() const { return m_propertyWindow; }
+ wxItemResource* GetResource() const { return m_propertyResource; }
+
+protected:
+ wxWindow* m_propertyWindow;
+ wxItemResource* m_propertyResource;