virtual wxClientData* DoGetItemClientObject( int n ) const;
// free all memory we have (used by Clear() and dtor)
- void Free();
+ // prevent collision with some BSD definitions of macro Free()
+ void FreeData();
wxArrayString m_strings;
wxChoiceDataArray m_datas ;
bool HasMultipleSelection() const;
// free memory (common part of Clear() and dtor)
- void Free();
+ // prevent collision with some BSD definitions of macro Free()
+ void FreeData();
int m_noItems;
int m_selected;
bool Play(bool async = TRUE, bool looped = FALSE) const;
protected:
- bool Free();
+ // prevent collision with some BSD definitions of macro Free()
+ bool FreeData();
private:
void* m_sndChan;
void wxChoice::Clear()
{
- Free();
+ FreeData();
for ( int i = 0 ; i < GetCount() ; i++ )
{
::DeleteMenuItem( MAC_WXHMENU(m_macPopUpMenuHandle) , 1 ) ;
- }
+ }
m_strings.Empty() ;
m_datas.Empty() ;
- SetControlMaximum( (ControlHandle) m_macControl , 0 ) ;
+ SetControlMaximum( (ControlHandle) m_macControl , 0 ) ;
}
-void wxChoice::Free()
+void wxChoice::FreeData()
{
if ( HasClientObjectData() )
{
void wxChoice::SetString(int n, const wxString& s)
{
- wxFAIL_MSG(wxT("not implemented"));
+ wxFAIL_MSG(wxT("wxChoice::SetString() not yet implemented"));
#if 0 // should do this, but no Insert() so far
Delete(n);
wxListBox::~wxListBox()
{
- Free() ;
+ FreeData() ;
if ( m_macList )
{
#if !TARGET_CARBON
}
}
-void wxListBox::Free()
+void wxListBox::FreeData()
{
#if wxUSE_OWNER_DRAWN
if ( m_windowStyle & wxLB_OWNERDRAW )
void wxListBox::Clear()
{
- Free();
+ FreeData();
m_noItems = 0;
m_stringArray.Empty() ;
m_dataArray.Empty() ;
wxWave::~wxWave()
{
- Free();
+ FreeData();
}
wxWave::wxWave(int size, const wxByte* data)
}
-bool wxWave::Free()
+bool wxWave::FreeData()
{
bool ret = false;
void wxChoice::Clear()
{
- Free();
+ FreeData();
for ( int i = 0 ; i < GetCount() ; i++ )
{
::DeleteMenuItem( MAC_WXHMENU(m_macPopUpMenuHandle) , 1 ) ;
- }
+ }
m_strings.Empty() ;
m_datas.Empty() ;
- SetControlMaximum( (ControlHandle) m_macControl , 0 ) ;
+ SetControlMaximum( (ControlHandle) m_macControl , 0 ) ;
}
-void wxChoice::Free()
+void wxChoice::FreeData()
{
if ( HasClientObjectData() )
{
void wxChoice::SetString(int n, const wxString& s)
{
- wxFAIL_MSG(wxT("not implemented"));
+ wxFAIL_MSG(wxT("wxChoice::SetString() not yet implemented"));
#if 0 // should do this, but no Insert() so far
Delete(n);
wxListBox::~wxListBox()
{
- Free() ;
+ FreeData() ;
if ( m_macList )
{
#if !TARGET_CARBON
}
}
-void wxListBox::Free()
+void wxListBox::FreeData()
{
#if wxUSE_OWNER_DRAWN
if ( m_windowStyle & wxLB_OWNERDRAW )
void wxListBox::Clear()
{
- Free();
+ FreeData();
m_noItems = 0;
m_stringArray.Empty() ;
m_dataArray.Empty() ;
wxWave::~wxWave()
{
- Free();
+ FreeData();
}
wxWave::wxWave(int size, const wxByte* data)
}
-bool wxWave::Free()
+bool wxWave::FreeData()
{
bool ret = false;