Base class for custom wxPropertyGrid editors.
- Pointer to built-in editor is available as wxPGEditor_EditorName (eg. wxPGEditor_TextCtrl).
|
| wxPGEditor () |
| Constructor.
|
|
virtual | ~wxPGEditor () |
| Destructor.
|
|
virtual wxString | GetName () const |
| Returns pointer to the name of the editor.
|
|
virtual wxPGWindowList | CreateControls (wxPropertyGrid *propgrid, wxPGProperty *property, const wxPoint &pos, const wxSize &size) const =0 |
| Instantiates editor controls.
|
|
virtual void | UpdateControl (wxPGProperty *property, wxWindow *ctrl) const =0 |
| Loads value from property to the control.
|
|
virtual void | DrawValue (wxDC &dc, const wxRect &rect, wxPGProperty *property, const wxString &text) const |
| Draws value for given property.
|
|
virtual bool | OnEvent (wxPropertyGrid *propgrid, wxPGProperty *property, wxWindow *wnd_primary, wxEvent &event) const =0 |
| Handles events.
|
|
virtual bool | GetValueFromControl (wxVariant &variant, wxPGProperty *property, wxWindow *ctrl) const |
| Returns value from control, via parameter 'variant'.
|
|
virtual void | SetValueToUnspecified (wxPGProperty *property, wxWindow *ctrl) const =0 |
| Sets value in control to unspecified.
|
|
virtual void | SetControlAppearance (wxPropertyGrid *pg, wxPGProperty *property, wxWindow *ctrl, const wxPGCell &appearance, const wxPGCell &oldAppearance, bool unspecified) const |
| Called by property grid to set new appearance for the control.
|
|
virtual void | SetControlStringValue (wxPGProperty *property, wxWindow *ctrl, const wxString &txt) const |
| Sets control's value specifically from string.
|
|
virtual void | SetControlIntValue (wxPGProperty *property, wxWindow *ctrl, int value) const |
| Sets control's value specifically from int (applies to choice etc.).
|
|
virtual int | InsertItem (wxWindow *ctrl, const wxString &label, int index) const |
| Inserts item to existing control.
|
|
virtual void | DeleteItem (wxWindow *ctrl, int index) const |
| Deletes item from existing control.
|
|
virtual void | OnFocus (wxPGProperty *property, wxWindow *wnd) const |
| Extra processing when control gains focus.
|
|
virtual bool | CanContainCustomImage () const |
| Returns true if control itself can contain the custom image.
|
|
| wxObject () |
| Default ctor; initializes to NULL the internal reference data.
|
|
| wxObject (const wxObject &other) |
| Copy ctor.
|
|
virtual | ~wxObject () |
| Destructor.
|
|
virtual wxClassInfo * | GetClassInfo () const |
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar).
|
|
wxObjectRefData * | GetRefData () const |
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object.
|
|
bool | IsKindOf (const wxClassInfo *info) const |
| Determines whether this class is a subclass of (or the same class as) the given class.
|
|
bool | IsSameAs (const wxObject &obj) const |
| Returns true if this object has the same data pointer as obj.
|
|
void | Ref (const wxObject &clone) |
| Makes this object refer to the data in clone.
|
|
void | SetRefData (wxObjectRefData *data) |
| Sets the wxObject::m_refData pointer.
|
|
void | UnRef () |
| Decrements the reference count in the associated data, and if it is zero, deletes the data.
|
|
void | UnShare () |
| This is the same of AllocExclusive() but this method is public.
|
|
void | operator delete (void *buf) |
| The delete operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined.
|
|
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0) |
| The new operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined.
|
|
Called by property grid to set new appearance for the control.
Default implementation sets foreground colour, background colour, font, plus text for wxTextCtrl and wxComboCtrl.
The parameter appearance represents the new appearance to be applied.
The parameter oldAppearance is the previously applied appearance. Used to detect which control attributes need to be changed (e.g. so we only change background colour if really needed).
Finally, the parameter unspecified if true tells this function that the new appearance represents an unspecified property value.