/**
@class wxItemContainerImmutable
- @wxheader{ctrlsub.h}
wxItemContainer defines an interface which is implemented by all controls
which have string subitems each of which may be selected.
@see IsEmpty()
*/
- virtual unsigned int GetCount() const;
+ virtual unsigned int GetCount() const = 0;
/**
Returns @true if the control is empty or @false if it has some items.
@return The label of the item or an empty string if the position was
invalid.
*/
- virtual wxString GetString(unsigned int n) const;
+ virtual wxString GetString(unsigned int n) const = 0;
/**
Returns the array of the labels of all items in the control.
@param string
The label to set.
*/
- virtual void SetString(unsigned int n, const wxString& s);
+ virtual void SetString(unsigned int n, const wxString& string) = 0;
/**
Finds an item whose label matches the given string.
@return The zero-based position of the item, or wxNOT_FOUND if the
string was not found.
*/
- virtual int FindString(const wxString& s, bool bCase = false) const;
+ virtual int FindString(const wxString& string, bool caseSensitive = false) const;
//@}
@see SetString(), SetStringSelection()
*/
- virtual void SetSelection(int n);
+ virtual void SetSelection(int n) = 0;
/**
Returns the index of the selected item or @c wxNOT_FOUND if no item is
@see SetSelection(), GetStringSelection()
*/
- virtual int GetSelection() const;
+ virtual int GetSelection() const = 0;
/**
Selects the item with the specified string in the control. This doesn't
/**
@class wxItemContainer
- @wxheader{ctrlsub.h}
This class is an abstract base class for some wxWidgets controls which
contain several items such as wxListBox, wxCheckListBox, wxComboBox or
@param items
Array of strings to insert.
*/
- void Append(const wxArrayString& items);
+ int Append(const wxArrayString& items);
/**
Appends several items at once into the control.
Array of client data pointers of the same size as @a items to
associate with the new items.
*/
- void Append(const wxArrayString& items, void **clientData);
+ int Append(const wxArrayString& items, void **clientData);
/**
Appends several items at once into the control.
Array of client data pointers of the same size as @a items to
associate with the new items.
*/
- void Append(const wxArrayString& items, wxClientData **clientData);
+ int Append(const wxArrayString& items, wxClientData **clientData);
/**
Appends several items at once into the control.
@param items
Array of strings of size @a n.
*/
- void Append(unsigned int n, const wxString* items);
+ int Append(unsigned int n, const wxString* items);
/**
Appends several items at once into the control.
Array of client data pointers of size @a n to associate with the
new items.
*/
- void Append(unsigned int n, const wxString* items,
- void** clientData);
+ int Append(unsigned int n, const wxString* items,
+ void** clientData);
/**
Appends several items at once into the control.
Array of client data pointers of size @a n to associate with the
new items.
*/
- void Append(unsigned int n, const wxString* items,
+ int Append(unsigned int n, const wxString* items,
wxClientData** clientData);
//@}
@param pos
Position to insert the items before, zero based.
*/
- void Insert(const wxArrayString& items, unsigned int pos);
+ int Insert(const wxArrayString& items, unsigned int pos);
/**
Inserts several items at once into the control.
Array of client data pointers of the same size as @a items to
associate with the new items.
*/
- void Insert(const wxArrayString& items, unsigned int pos,
+ int Insert(const wxArrayString& items, unsigned int pos,
void **clientData);
/**
Array of client data pointers of the same size as @a items to
associate with the new items.
*/
- void Insert(const wxArrayString& items, unsigned int pos,
+ int Insert(const wxArrayString& items, unsigned int pos,
wxClientData **clientData);
/**
@param pos
Position to insert the items before, zero based.
*/
- void Insert(unsigned int n, const wxString* items,
+ int Insert(unsigned int n, const wxString* items,
unsigned int pos);
/**
Array of client data pointers of size @a n to associate with the
new items.
*/
- void Insert(unsigned int n, const wxString* items,
+ int Insert(unsigned int n, const wxString* items,
unsigned int pos,
void** clientData);
Array of client data pointers of size @a n to associate with the
new items.
*/
- void Insert(unsigned int n, const wxString* items,
+ int Insert(unsigned int n, const wxString* items,
unsigned int pos,
wxClientData** clientData);
//@}
/**
@class wxControlWithItems
- @wxheader{ctrlsub.h}
This is convenience class that derives from both wxControl and
wxItemContainer. It is used as basis for some wxWidgets controls