wxPGChoices Class Reference

Helper class for managing constant (key=value) sequences. More...

#include <propgrid.h>

List of all members.

Public Member Functions

void Add (const wxChar *label, int value=INT_MAX)
void Add (const wxArrayString &arr, const wxArrayInt &arrint)
void Add (const wxArrayString &arr, const long *values=NULL)
void Add (const wxChar **labels, const long *values=NULL)
void AddAsSorted (const wxString &label, int value=INT_MAX)
void AddInt (int val)
void AddString (const wxString &str)
void Assign (const wxPGChoices &a)
void AssignData (wxPGChoicesData *data)
void EnsureData ()
wxPGChoicesData * ExtractData ()
size_t GetCount () const
wxPGChoicesData * GetData ()
wxPGChoicesData * GetDataPtr () const
wxPGChoicesId GetId () const
const wxString & GetLabel (size_t ind) const
const wxArrayString & GetLabels () const
wxArrayString & GetLabels ()
int GetValue (size_t ind) const
const wxArrayInt & GetValues () const
wxArrayInt & GetValues ()
int Index (const wxString &str) const
void Insert (const wxChar *label, int index, int value=INT_MAX)
bool IsOk () const
void RemoveAt (size_t nIndex, size_t count=1)
void Set (const wxArrayString &labels, const wxArrayInt &values=(*((wxArrayInt *) NULL)))
void Set (wxArrayString &arr, const long *values=(const long *) NULL)
void Set (const wxChar **labels, const long *values=NULL)
void SetExclusive ()
void SetLabels (const wxArrayString &arr)
void SetLabels (wxArrayString &arr)
void SetValues (const wxArrayInt &arr)
void SetValues (wxArrayInt &arr)
 wxPGChoices (wxPGChoicesData *data)
 wxPGChoices (const wxArrayString &labels, const wxArrayInt &values=(*((wxArrayInt *) NULL)))
 wxPGChoices (const wxChar **labels, const long *values=NULL)
 wxPGChoices (wxPGChoices &a)
 wxPGChoices ()
 ~wxPGChoices ()

Protected Member Functions

void Free ()
void Init ()

Protected Attributes

wxPGChoicesData * m_data


Detailed Description

Helper class for managing constant (key=value) sequences.


Constructor & Destructor Documentation

wxPGChoices::wxPGChoices  )  [inline]
 

Basic constructor.

wxPGChoices::wxPGChoices wxPGChoices a  )  [inline]
 

Copy constructor.

wxPGChoices::wxPGChoices const wxChar **  labels,
const long *  values = NULL
[inline]
 

Constructor.

wxPGChoices::wxPGChoices const wxArrayString &  labels,
const wxArrayInt &  values = (*((wxArrayInt*)NULL))
[inline]
 

Constructor.

wxPGChoices::wxPGChoices wxPGChoicesData *  data  )  [inline]
 

Simple interface constructor.

wxPGChoices::~wxPGChoices  )  [inline]
 

Destructor.


Member Function Documentation

void wxPGChoices::Add const wxChar *  label,
int  value = INT_MAX
 

Adds single item.

void wxPGChoices::Add const wxArrayString &  arr,
const wxArrayInt &  arrint
 

Version that works with wxArrayString and wxArrayInt.

void wxPGChoices::Add const wxArrayString &  arr,
const long *  values = NULL
 

Version that works with wxArrayString.

void wxPGChoices::Add const wxChar **  labels,
const long *  values = NULL
 

Adds to current.

If did not have own copies, creates them now. If was empty, identical to set except that creates copies.

void wxPGChoices::AddAsSorted const wxString &  label,
int  value = INT_MAX
 

Adds single item.

wxPGChoicesId wxPGChoices::GetId  )  const [inline]
 

Gets a unsigned number identifying this list.

wxArrayString& wxPGChoices::GetLabels  )  [inline]
 

Returns reference to wxArrayString of labels for you to modify.

wxArrayInt& wxPGChoices::GetValues  )  [inline]
 

Returns reference to wxArrayInt of values for you to modify.

void wxPGChoices::Insert const wxChar *  label,
int  index,
int  value = INT_MAX
 

Inserts single item.

bool wxPGChoices::IsOk  )  const [inline]
 

Returns false if this is a constant empty set of choices, which should not be modified.

void wxPGChoices::RemoveAt size_t  nIndex,
size_t  count = 1
[inline]
 

Removes count items starting at position nIndex.

void wxPGChoices::Set const wxArrayString &  labels,
const wxArrayInt &  values = (*((wxArrayInt*)NULL))
[inline]
 

Version that works with wxArrayString and wxArrayInt.

void wxPGChoices::Set wxArrayString &  arr,
const long *  values = (const long*) NULL
[inline]
 

Version that works with wxArrayString.

TODO: Deprecate this.

void wxPGChoices::Set const wxChar **  labels,
const long *  values = NULL
[inline]
 

Does not create copies for itself.


The documentation for this class was generated from the following file:
Generated on Mon Oct 29 16:56:23 2007 for wxPropertyGrid by doxygen 1.3.6