(detected compiling mahogany)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15982
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual wxClientData* DoGetItemClientObject( int n ) const;
// free all memory we have (used by Clear() and dtor)
virtual wxClientData* DoGetItemClientObject( int n ) const;
// free all memory we have (used by Clear() and dtor)
+ // prevent collision with some BSD definitions of macro Free()
+ void FreeData();
wxArrayString m_strings;
wxChoiceDataArray m_datas ;
wxArrayString m_strings;
wxChoiceDataArray m_datas ;
bool HasMultipleSelection() const;
// free memory (common part of Clear() and dtor)
bool HasMultipleSelection() const;
// free memory (common part of Clear() and dtor)
+ // prevent collision with some BSD definitions of macro Free()
+ void FreeData();
int m_noItems;
int m_selected;
int m_noItems;
int m_selected;
bool Play(bool async = TRUE, bool looped = FALSE) const;
protected:
bool Play(bool async = TRUE, bool looped = FALSE) const;
protected:
+ // prevent collision with some BSD definitions of macro Free()
+ bool FreeData();
private:
void* m_sndChan;
private:
void* m_sndChan;
for ( int i = 0 ; i < GetCount() ; i++ )
{
::DeleteMenuItem( MAC_WXHMENU(m_macPopUpMenuHandle) , 1 ) ;
for ( int i = 0 ; i < GetCount() ; i++ )
{
::DeleteMenuItem( MAC_WXHMENU(m_macPopUpMenuHandle) , 1 ) ;
m_strings.Empty() ;
m_datas.Empty() ;
m_strings.Empty() ;
m_datas.Empty() ;
- SetControlMaximum( (ControlHandle) m_macControl , 0 ) ;
+ SetControlMaximum( (ControlHandle) m_macControl , 0 ) ;
+void wxChoice::FreeData()
{
if ( HasClientObjectData() )
{
{
if ( HasClientObjectData() )
{
void wxChoice::SetString(int n, const wxString& s)
{
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);
#if 0 // should do this, but no Insert() so far
Delete(n);
wxListBox::~wxListBox()
{
wxListBox::~wxListBox()
{
if ( m_macList )
{
#if !TARGET_CARBON
if ( m_macList )
{
#if !TARGET_CARBON
+void wxListBox::FreeData()
{
#if wxUSE_OWNER_DRAWN
if ( m_windowStyle & wxLB_OWNERDRAW )
{
#if wxUSE_OWNER_DRAWN
if ( m_windowStyle & wxLB_OWNERDRAW )
void wxListBox::Clear()
{
void wxListBox::Clear()
{
m_noItems = 0;
m_stringArray.Empty() ;
m_dataArray.Empty() ;
m_noItems = 0;
m_stringArray.Empty() ;
m_dataArray.Empty() ;
}
wxWave::wxWave(int size, const wxByte* data)
}
wxWave::wxWave(int size, const wxByte* data)
for ( int i = 0 ; i < GetCount() ; i++ )
{
::DeleteMenuItem( MAC_WXHMENU(m_macPopUpMenuHandle) , 1 ) ;
for ( int i = 0 ; i < GetCount() ; i++ )
{
::DeleteMenuItem( MAC_WXHMENU(m_macPopUpMenuHandle) , 1 ) ;
m_strings.Empty() ;
m_datas.Empty() ;
m_strings.Empty() ;
m_datas.Empty() ;
- SetControlMaximum( (ControlHandle) m_macControl , 0 ) ;
+ SetControlMaximum( (ControlHandle) m_macControl , 0 ) ;
+void wxChoice::FreeData()
{
if ( HasClientObjectData() )
{
{
if ( HasClientObjectData() )
{
void wxChoice::SetString(int n, const wxString& s)
{
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);
#if 0 // should do this, but no Insert() so far
Delete(n);
wxListBox::~wxListBox()
{
wxListBox::~wxListBox()
{
if ( m_macList )
{
#if !TARGET_CARBON
if ( m_macList )
{
#if !TARGET_CARBON
+void wxListBox::FreeData()
{
#if wxUSE_OWNER_DRAWN
if ( m_windowStyle & wxLB_OWNERDRAW )
{
#if wxUSE_OWNER_DRAWN
if ( m_windowStyle & wxLB_OWNERDRAW )
void wxListBox::Clear()
{
void wxListBox::Clear()
{
m_noItems = 0;
m_stringArray.Empty() ;
m_dataArray.Empty() ;
m_noItems = 0;
m_stringArray.Empty() ;
m_dataArray.Empty() ;
}
wxWave::wxWave(int size, const wxByte* data)
}
wxWave::wxWave(int size, const wxByte* data)