MacOSX: problems with cvpcb after multiline patch:
1) OSX compiler is really choosy (class_components_listbox.cpp) 2) Old OSX code maked an endless loop (listboxes.cpp)
This commit is contained in:
parent
2aa27122b0
commit
b5302db70e
|
@ -17,7 +17,7 @@
|
||||||
COMPONENTS_LISTBOX::COMPONENTS_LISTBOX( CVPCB_MAINFRAME* parent, wxWindowID id,
|
COMPONENTS_LISTBOX::COMPONENTS_LISTBOX( CVPCB_MAINFRAME* parent, wxWindowID id,
|
||||||
const wxPoint& loc, const wxSize& size,
|
const wxPoint& loc, const wxSize& size,
|
||||||
int nbitems, wxString choice[] ) :
|
int nbitems, wxString choice[] ) :
|
||||||
ITEMS_LISTBOX_BASE( parent, id, loc, size, ~wxLC_SINGLE_SEL)
|
ITEMS_LISTBOX_BASE( parent, id, loc, size, LISTB_STYLE&(~wxLC_SINGLE_SEL))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,12 +85,10 @@ void COMPONENTS_LISTBOX::SetSelection( unsigned index, bool State )
|
||||||
|
|
||||||
if( (index >= 0) && (GetCount() > 0) )
|
if( (index >= 0) && (GetCount() > 0) )
|
||||||
{
|
{
|
||||||
#ifndef __WXMAC__
|
|
||||||
Select( index, State );
|
Select( index, State );
|
||||||
#endif
|
|
||||||
EnsureVisible( index );
|
EnsureVisible( index );
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
Refresh();
|
Update();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
|
|
||||||
#define FILTERFOOTPRINTKEY "FilterFootprint"
|
#define FILTERFOOTPRINTKEY "FilterFootprint"
|
||||||
|
|
||||||
|
#define LISTB_STYLE wxSUNKEN_BORDER | wxLC_NO_HEADER | \
|
||||||
|
wxLC_REPORT | wxLC_VIRTUAL
|
||||||
|
|
||||||
#include <netlist_reader.h>
|
#include <netlist_reader.h>
|
||||||
|
|
||||||
typedef boost::ptr_vector< COMPONENT_INFO > COMPONENT_LIST;
|
typedef boost::ptr_vector< COMPONENT_INFO > COMPONENT_LIST;
|
||||||
|
|
|
@ -18,9 +18,6 @@
|
||||||
* Not directly used: the 2 list boxes actually used are derived from it
|
* Not directly used: the 2 list boxes actually used are derived from it
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#define LISTB_STYLE wxSUNKEN_BORDER | wxLC_NO_HEADER | \
|
|
||||||
wxLC_REPORT | wxLC_VIRTUAL
|
|
||||||
|
|
||||||
ITEMS_LISTBOX_BASE::ITEMS_LISTBOX_BASE( CVPCB_MAINFRAME* aParent, wxWindowID aId,
|
ITEMS_LISTBOX_BASE::ITEMS_LISTBOX_BASE( CVPCB_MAINFRAME* aParent, wxWindowID aId,
|
||||||
const wxPoint& aLocation, const wxSize& aSize,
|
const wxPoint& aLocation, const wxSize& aSize,
|
||||||
long aStyle) :
|
long aStyle) :
|
||||||
|
|
Loading…
Reference in New Issue