wxEnumProperty Class Reference

You can derive custom properties with choices from this class. More...

#include <props.h>

Inheritance diagram for wxEnumProperty:
wxBaseEnumProperty wxPGProperty wxCursorProperty wxEditEnumProperty wxSystemColourProperty

List of all members.

Public Member Functions

virtual int GetChoiceInfo (wxPGChoiceInfo *choiceinfo)
 Returns current value's index to the choice control.
const wxPGChoicesGetChoices () const
virtual const wxString * GetEntry (size_t index, int *pvalue) const
virtual int GetIndexForValue (int value) const
size_t GetItemCount () const
 wxEnumProperty (const wxString &label, const wxString &name, const wxArrayString &labels, const wxArrayInt &values=wxArrayInt(), int value=0)
 wxEnumProperty (const wxString &label, const wxString &name, const wxChar **labels, const long *values, wxPGChoices *choicesCache, int value=0)
 wxEnumProperty (const wxString &label, const wxString &name, wxPGChoices &choices, int value=0)
 wxEnumProperty (const wxString &label=wxPG_LABEL, const wxString &name=wxPG_LABEL, const wxChar **labels=NULL, const long *values=NULL, int value=0)

Protected Attributes

wxPGChoices m_choices

Detailed Description

You can derive custom properties with choices from this class.

See wxBaseEnumProperty for remarks.


Member Function Documentation

virtual int wxEnumProperty::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.

Remarks:
  • If returns NULL in choices, then this class must be derived from wxBaseEnumProperty.
  • Must not crash even if property's set of choices is uninitialized (i.e. it points to wxPGGlobalVars->m_emptyConstants).

Reimplemented from wxPGProperty.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator
Generated on Sun Aug 22 12:42:14 2010 for wxPropertyGrid by  doxygen 1.6.3