wxEnumProperty Class Reference

You can derive custom properties with choices from this class. See wxBaseEnumProperty for remarks. More...

#include <props.h>

Inheritance diagram for wxEnumProperty:
Inheritance graph
[legend]

List of all members.

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)
virtual ~wxEnumProperty ()

Protected Attributes

wxPGChoices m_choices

Detailed Description

You can derive custom properties with choices from this class. See wxBaseEnumProperty for remarks.

Definition at line 594 of file props.h.


Constructor & Destructor Documentation

wxEnumProperty::wxEnumProperty ( const wxString &  label = wxPG_LABEL,
const wxString &  name = wxPG_LABEL,
const wxChar **  labels = NULL,
const long *  values = NULL,
int  value = 0 
)
wxEnumProperty::wxEnumProperty ( const wxString &  label,
const wxString &  name,
wxPGChoices choices,
int  value = 0 
)
wxEnumProperty::wxEnumProperty ( const wxString &  label,
const wxString &  name,
const wxChar **  labels,
const long *  values,
wxPGChoices choicesCache,
int  value = 0 
)
wxEnumProperty::wxEnumProperty ( const wxString &  label,
const wxString &  name,
const wxArrayString &  labels,
const wxArrayInt &  values = wxArrayInt(),
int  value = 0 
)
virtual wxEnumProperty::~wxEnumProperty (  )  [virtual]

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.

const wxPGChoices& wxEnumProperty::GetChoices (  )  const [inline]

Reimplemented from wxPGProperty.

Definition at line 625 of file props.h.

virtual const wxString* wxEnumProperty::GetEntry ( size_t  index,
int *  pvalue 
) const [virtual]

Implements wxBaseEnumProperty.

virtual int wxEnumProperty::GetIndexForValue ( int  value  )  const [virtual]

Reimplemented from wxBaseEnumProperty.

size_t wxEnumProperty::GetItemCount (  )  const [inline]

Definition at line 624 of file props.h.


Member Data Documentation

Definition at line 628 of file props.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


wxpropgrid
Author(s): Jaakko Salli
autogenerated on Fri Jan 11 09:34:06 2013