- // client data
- // untyped (isn't deleted by the control)
- void SetClientData( int n, void* clientData );
- void* GetClientData( int n ) const;
- // typed (is owned and deleted by the control)
- void SetClientObject( int n, wxClientData* clientData );
- wxClientData* GetClientObject( int n ) const;
-
- // emulate selecting the item event.GetInt() from the control
- virtual void Command(wxCommandEvent &event);
-
- // deprecated functions, heer for backwards compatibility only
- int Number() const { return GetCount(); }
-
-private:
- // pure virtuals to implement in the derived classes
- virtual int DoAppend(const wxString& item) = 0;
-
- virtual void DoSetClientData( int n, void* clientData ) = 0;
- virtual void* DoGetClientData( int n ) const = 0;
- virtual void DoSetClientObject( int n, wxClientData* clientData ) = 0;
- virtual wxClientData* DoGetClientObject( int n ) const = 0;
-
- // the type of the client data for the items
- wxClientDataType m_clientDataItemsType;
- // the above pure virtuals hide these virtuals in wxWindowBase
- virtual void DoSetClientData(void* clientData ) { wxWindowBase::DoSetClientData(clientData); };
- virtual void* DoGetClientData() const { return(wxWindowBase::DoGetClientData()); };
- virtual void DoSetClientObject( wxClientData* clientData ) { wxWindowBase::DoSetClientObject(clientData); };
- virtual wxClientData* DoGetClientObject() const { return(wxWindowBase::DoGetClientObject()); };