wxPropertyGrid
|
Property that manages a value resulting from wxMultiChoiceDialog. More...
#include <advprops.h>
Public Member Functions | |
virtual int | GetChoiceInfo (wxPGChoiceInfo *choiceinfo) |
Returns current value's index to the choice control. | |
wxArrayInt | GetValueAsArrayInt () const |
virtual wxString | GetValueAsString (int flags=0) const |
Returns text representation of property's value. | |
virtual void | OnSetValue () |
This virtual function is called after m_value has been set. | |
virtual bool | StringToValue (wxVariant &variant, const wxString &text, int argFlags=0) const |
Converts 'text' into proper value 'variant'. | |
wxMultiChoiceProperty (const wxString &label, const wxString &name, const wxPGChoices &choices, const wxArrayString &value=wxArrayString()) | |
wxMultiChoiceProperty (const wxString &label, const wxString &name, const wxArrayString &strings, const wxArrayString &value) | |
wxMultiChoiceProperty (const wxString &label=wxPG_LABEL, const wxString &name=wxPG_LABEL, const wxArrayString &value=wxArrayString()) | |
Protected Member Functions | |
void | GenerateValueAsString () |
wxArrayInt | GetValueAsIndices () const |
Protected Attributes | |
wxPGChoices | m_choices |
wxString | m_display |
wxArrayString | m_valueAsStrings |
Property that manages a value resulting from wxMultiChoiceDialog.
Value is array of strings. You can get value as array of choice values/indices by calling wxMultiChoiceProperty::GetValueAsArrayInt().
Supported special attributes:
virtual int wxMultiChoiceProperty::GetChoiceInfo | ( | wxPGChoiceInfo * | choiceinfo | ) | [virtual] |
Returns current value's index to the choice control.
May also return, through pointer arguments, strings that should be inserted to that control. Irrelevant to classes which do not employ wxPG_EDITOR(Choice) or similar.
Reimplemented from wxPGProperty.
virtual wxString wxMultiChoiceProperty::GetValueAsString | ( | int | argFlags = 0 | ) | const [virtual] |
Returns text representation of property's value.
Generally this function should not be called from the application code. Instead, call GetValueString().
argFlags | If wxPG_FULL_VALUE is set, returns complete, storable string value instead of displayable. If wxPG_EDITABLE_VALUE is set, returns string value that must be editable in textctrl. If wxPG_COMPOSITE_FRAGMENT is set, returns text that is appropriate to display as a part of composite property string value. |
Reimplemented from wxPGProperty.
virtual void wxMultiChoiceProperty::OnSetValue | ( | ) | [virtual] |
This virtual function is called after m_value has been set.
Reimplemented from wxPGProperty.
virtual bool wxMultiChoiceProperty::StringToValue | ( | wxVariant & | variant, |
const wxString & | text, | ||
int | argFlags = 0 |
||
) | const [virtual] |
Converts 'text' into proper value 'variant'.
Returns true if new (different than m_value) value could be interpreted from the text.
argFlags | If wxPG_FULL_VALUE is set, returns complete, storable value instead of displayable one (they may be different). If wxPG_COMPOSITE_FRAGMENT is set, text is interpreted as a part of composite property string value (as generated by GetValueAsString() called with this same flag). |
Reimplemented from wxPGProperty.