const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame");
~wxDialogEditorPropertyListFrame();
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame");
~wxDialogEditorPropertyListFrame();
- public:
- wxResourcePropertyListView(wxPropertyInfo *info, wxPanel *propPanel = NULL, long flags = wxPROP_BUTTON_DEFAULT):
- wxPropertyListView(propPanel, flags)
- {
- m_propertyInfo = info;
- }
- void OnPropertyChanged(wxProperty *property);
- bool OnClose(void);
-
- wxPropertyInfo* m_propertyInfo;
-
+public:
+ wxResourcePropertyListView(wxPropertyInfo *info, wxPanel *propPanel = NULL, long flags = wxPROP_BUTTON_DEFAULT):
+ wxPropertyListView(propPanel, flags)
+ {
+ m_propertyInfo = info;
+ }
+ void OnPropertyChanged(wxProperty *property);
+ bool OnClose(void);
+
+ wxPropertyInfo* m_propertyInfo;
+
- protected:
- static wxWindow *sm_propertyWindow;
- wxPropertyInfo(void)
- {
- }
- ~wxPropertyInfo(void)
- {
- }
- public:
- virtual wxProperty *GetProperty(wxString& propName) = 0;
- virtual bool SetProperty(wxString& propName, wxProperty *property) = 0;
- virtual void GetPropertyNames(wxStringList& names) = 0;
- virtual bool Edit(wxWindow *parent, const wxString& title);
- static void CloseWindow(); // Close the current window if open.
+protected:
+ static wxWindow *sm_propertyWindow;
+ wxPropertyInfo(void)
+ {
+ }
+ ~wxPropertyInfo(void)
+ {
+ }
+public:
+ virtual wxProperty *GetProperty(wxString& propName) = 0;
+ virtual bool SetProperty(wxString& propName, wxProperty *property) = 0;
+ virtual void GetPropertyNames(wxStringList& names) = 0;
+ virtual bool Edit(wxWindow *parent, const wxString& title);
+ static void CloseWindow(); // Close the current window if open.
- 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;
+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;
- protected:
- public:
- wxItemPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxWindowPropertyInfo(win, res) {}
- ~wxItemPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxItemPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxWindowPropertyInfo(win, res) {}
+ ~wxItemPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxButtonPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) { }
- ~wxButtonPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxButtonPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) { }
+ ~wxButtonPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxBitmapButtonPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxButtonPropertyInfo(win, res) { }
- ~wxBitmapButtonPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxBitmapButtonPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxButtonPropertyInfo(win, res) { }
+ ~wxBitmapButtonPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxStaticTextPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) { }
- ~wxStaticTextPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxStaticTextPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) { }
+ ~wxStaticTextPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxStaticBitmapPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) { }
- ~wxStaticBitmapPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxStaticBitmapPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) { }
+ ~wxStaticBitmapPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxTextPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxTextPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxTextPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxTextPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxListBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxListBoxPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxListBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxListBoxPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxChoicePropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxChoicePropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxChoicePropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxChoicePropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxComboBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxChoicePropertyInfo(win, res) {}
- ~wxComboBoxPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxComboBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxChoicePropertyInfo(win, res) {}
+ ~wxComboBoxPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxRadioBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxRadioBoxPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxRadioBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxRadioBoxPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxGroupBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxGroupBoxPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxGroupBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxGroupBoxPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxCheckBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxCheckBoxPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxCheckBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxCheckBoxPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxRadioButtonPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxRadioButtonPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxRadioButtonPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxRadioButtonPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxGaugePropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxGaugePropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxGaugePropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxGaugePropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxScrollBarPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxScrollBarPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxScrollBarPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxScrollBarPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxSliderPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxItemPropertyInfo(win, res) {}
- ~wxSliderPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
+protected:
+public:
+ wxSliderPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxItemPropertyInfo(win, res) {}
+ ~wxSliderPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
- protected:
- public:
- wxPanelPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
- wxWindowPropertyInfo(win, res) {}
- ~wxPanelPropertyInfo(void) {}
- wxProperty *GetProperty(wxString& name);
- bool SetProperty(wxString& name, wxProperty *property);
- void GetPropertyNames(wxStringList& names);
- bool InstantiateResource(wxItemResource *resource);
-
- // Convert this dialog, and its children, to or from dialog units
- void ConvertDialogUnits(bool toDialogUnits);
+protected:
+public:
+ wxPanelPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
+ wxWindowPropertyInfo(win, res) {}
+ ~wxPanelPropertyInfo(void) {}
+ wxProperty *GetProperty(wxString& name);
+ bool SetProperty(wxString& name, wxProperty *property);
+ void GetPropertyNames(wxStringList& names);
+ bool InstantiateResource(wxItemResource *resource);
+
+ // Convert this dialog, and its children, to or from dialog units
+ void ConvertDialogUnits(bool toDialogUnits);
- DECLARE_DYNAMIC_CLASS(wxResourceSymbolValidator)
- protected:
- public:
- wxResourceSymbolValidator(long flags = 0);
-
- ~wxResourceSymbolValidator(void);
-
- // Called when TICK is pressed or focus is lost.
- // Return FALSE if value didn't check out; signal to restore old value.
- bool OnCheckValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
-
- // Called when TICK is pressed or focus is lost or view wants to update
- // the property list.
- // Does the transferance from the property editing area to the property itself
- bool OnRetrieveValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
- bool OnDisplayValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
-
- bool OnDoubleClick(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
-
- bool OnPrepareControls(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
-
- // Called when the edit (...) button is pressed.
- void OnEdit(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
+ DECLARE_DYNAMIC_CLASS(wxResourceSymbolValidator)
+protected:
+public:
+ wxResourceSymbolValidator(long flags = 0);
+
+ ~wxResourceSymbolValidator(void);
+
+ // Called when TICK is pressed or focus is lost.
+ // Return FALSE if value didn't check out; signal to restore old value.
+ bool OnCheckValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
+
+ // Called when TICK is pressed or focus is lost or view wants to update
+ // the property list.
+ // Does the transferance from the property editing area to the property itself
+ bool OnRetrieveValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
+ bool OnDisplayValue(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
+
+ bool OnDoubleClick(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
+
+ bool OnPrepareControls(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
+
+ // Called when the edit (...) button is pressed.
+ void OnEdit(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);
wxResourceSymbolDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxDIALOG_MODAL);
wxResourceSymbolDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxDIALOG_MODAL);
bool CheckValues();
void OnOK(wxCommandEvent& event);
void OnComboBoxSelect(wxCommandEvent& event);
void OnSymbolNameUpdate(wxCommandEvent& event);
bool CheckValues();
void OnOK(wxCommandEvent& event);
void OnComboBoxSelect(wxCommandEvent& event);
void OnSymbolNameUpdate(wxCommandEvent& event);