wxSystemColourProperty Class Reference
Has dropdown list of wxWidgets system colours. Value used is of wxColourPropertyValue type.
More...
#include <advprops.h>
List of all members.
Public Member Functions |
virtual wxString | ColourToString (const wxColour &col, int index) const |
virtual wxColour | GetColour (int index) const |
virtual int | GetCustomColourIndex () const |
wxColourPropertyValue | GetVal (const wxVariant *pVariant=NULL) const |
virtual bool | IntToValue (wxVariant &variant, int number, int argFlags=0) const |
virtual void | OnSetValue () |
bool | QueryColourFromUser (wxVariant &variant) const |
| wxSystemColourProperty (const wxString &label=wxPG_LABEL, const wxString &name=wxPG_LABEL, const wxColourPropertyValue &value=wxColourPropertyValue()) |
| ~wxSystemColourProperty () |
Protected Member Functions |
int | ColToInd (const wxColour &colour) const |
virtual wxVariant | DoTranslateVal (wxColourPropertyValue &v) const |
void | Init (int type, const wxColour &colour) |
wxVariant | TranslateVal (int type, const wxColour &colour) const |
wxVariant | TranslateVal (wxColourPropertyValue &v) const |
| wxSystemColourProperty (const wxString &label, const wxString &name, const wxChar **labels, const long *values, wxPGChoices *choicesCache, const wxColour &value) |
| wxSystemColourProperty (const wxString &label, const wxString &name, const wxChar **labels, const long *values, wxPGChoices *choicesCache, const wxColourPropertyValue &value) |
Detailed Description
Has dropdown list of wxWidgets system colours. Value used is of wxColourPropertyValue type.
Definition at line 207 of file advprops.h.
Constructor & Destructor Documentation
wxSystemColourProperty::~wxSystemColourProperty |
( |
|
) |
|
wxSystemColourProperty::wxSystemColourProperty |
( |
const wxString & |
label, |
|
|
const wxString & |
name, |
|
|
const wxChar ** |
labels, |
|
|
const long * |
values, |
|
|
wxPGChoices * |
choicesCache, |
|
|
const wxColourPropertyValue & |
value | |
|
) |
| | [protected] |
wxSystemColourProperty::wxSystemColourProperty |
( |
const wxString & |
label, |
|
|
const wxString & |
name, |
|
|
const wxChar ** |
labels, |
|
|
const long * |
values, |
|
|
wxPGChoices * |
choicesCache, |
|
|
const wxColour & |
value | |
|
) |
| | [protected] |
Member Function Documentation
virtual wxString wxSystemColourProperty::ColourToString |
( |
const wxColour & |
col, |
|
|
int |
index | |
|
) |
| | const [virtual] |
Override in derived class to customize how colours are printed as strings.
int wxSystemColourProperty::ColToInd |
( |
const wxColour & |
colour |
) |
const [protected] |
virtual wxVariant wxSystemColourProperty::DoTranslateVal |
( |
wxColourPropertyValue & |
v |
) |
const [protected, virtual] |
virtual wxColour wxSystemColourProperty::GetColour |
( |
int |
index |
) |
const [virtual] |
Default is to use wxSystemSettings::GetColour(index). Override to use custom colour tables etc.
virtual int wxSystemColourProperty::GetCustomColourIndex |
( |
|
) |
const [virtual] |
Returns index of entry that triggers colour picker dialog (default is last).
void wxSystemColourProperty::Init |
( |
int |
type, |
|
|
const wxColour & |
colour | |
|
) |
| | [protected] |
virtual bool wxSystemColourProperty::IntToValue |
( |
wxVariant & |
value, |
|
|
int |
number, |
|
|
int |
argFlags = 0 | |
|
) |
| | const [virtual] |
Converts 'number' (including choice selection) into proper value 'variant'. Returns true if new (different than m_value) value could be interpreted from the integer.
- Parameters:
-
| argFlags | If wxPG_FULL_VALUE is set, returns complete, storable value instead of displayable |
Reimplemented from wxBaseEnumProperty.
virtual void wxSystemColourProperty::OnSetValue |
( |
|
) |
[virtual] |
This virtual function is called after m_value has been set.
Reimplemented from wxBaseEnumProperty.
bool wxSystemColourProperty::QueryColourFromUser |
( |
wxVariant & |
variant |
) |
const |
wxVariant wxSystemColourProperty::TranslateVal |
( |
int |
type, |
|
|
const wxColour & |
colour | |
|
) |
| | const [inline, protected] |
The documentation for this class was generated from the following file: