wxEnumProperty Class Reference

#include <props.h>

Inheritance diagram for wxEnumProperty:

wxBaseEnumProperty wxPGProperty wxCursorProperty wxEditEnumProperty wxSystemColourProperty

List of all members.


Detailed Description

You can derive custom properties with choices from this class.

See wxBaseEnumProperty for remarks.

Public Member Functions

virtual int GetChoiceInfo (wxPGChoiceInfo *choiceinfo)
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


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:

Generated on Sun Nov 2 12:30:01 2008 for wxPropertyGrid by  doxygen 1.5.5