Cvpcb: fix a regression: in the stable version one could select many components and assign a footprint to the whole selection. Select more than on component is now re-enabled
This commit is contained in:
parent
c582cf5946
commit
fb059b99b6
|
@ -36,7 +36,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 ) :
|
||||||
ITEMS_LISTBOX_BASE( parent, id, loc, size, LISTB_STYLE & ~wxLC_SINGLE_SEL )
|
ITEMS_LISTBOX_BASE( parent, id, loc, size, 0 )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
FOOTPRINTS_LISTBOX::FOOTPRINTS_LISTBOX( CVPCB_MAINFRAME* parent,
|
FOOTPRINTS_LISTBOX::FOOTPRINTS_LISTBOX( CVPCB_MAINFRAME* parent,
|
||||||
wxWindowID id, const wxPoint& loc,
|
wxWindowID id, const wxPoint& loc,
|
||||||
const wxSize& size ) :
|
const wxSize& size ) :
|
||||||
ITEMS_LISTBOX_BASE( parent, id, loc, size )
|
ITEMS_LISTBOX_BASE( parent, id, loc, size, wxLC_SINGLE_SEL )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
LIBRARY_LISTBOX::LIBRARY_LISTBOX( CVPCB_MAINFRAME* parent, wxWindowID id,
|
LIBRARY_LISTBOX::LIBRARY_LISTBOX( CVPCB_MAINFRAME* parent, wxWindowID id,
|
||||||
const wxPoint& loc, const wxSize& size ) :
|
const wxPoint& loc, const wxSize& size ) :
|
||||||
ITEMS_LISTBOX_BASE( parent, id, loc, size )
|
ITEMS_LISTBOX_BASE( parent, id, loc, size, wxLC_SINGLE_SEL )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,6 @@
|
||||||
|
|
||||||
#define FILTERFOOTPRINTKEY "FilterFootprint"
|
#define FILTERFOOTPRINTKEY "FilterFootprint"
|
||||||
|
|
||||||
#define LISTB_STYLE ( wxSUNKEN_BORDER | wxLC_NO_HEADER | wxLC_REPORT | wxLC_VIRTUAL | \
|
|
||||||
wxLC_SINGLE_SEL | wxVSCROLL | wxHSCROLL )
|
|
||||||
|
|
||||||
extern const wxString EquFileExtension;
|
extern const wxString EquFileExtension;
|
||||||
extern const wxString EquFilesWildcard;
|
extern const wxString EquFilesWildcard;
|
||||||
|
|
|
@ -36,6 +36,8 @@ class CVPCB_MAINFRAME;
|
||||||
class COMPONENT;
|
class COMPONENT;
|
||||||
class FOOTPRINT_LIST;
|
class FOOTPRINT_LIST;
|
||||||
|
|
||||||
|
#define LISTBOX_STYLE ( wxSUNKEN_BORDER | wxLC_NO_HEADER | wxLC_REPORT | wxLC_VIRTUAL | \
|
||||||
|
wxVSCROLL | wxHSCROLL )
|
||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
/* ListBox (base class) to display lists of components or footprints */
|
/* ListBox (base class) to display lists of components or footprints */
|
||||||
|
@ -45,7 +47,7 @@ class ITEMS_LISTBOX_BASE : public wxListView
|
||||||
public:
|
public:
|
||||||
ITEMS_LISTBOX_BASE( CVPCB_MAINFRAME* aParent, wxWindowID aId,
|
ITEMS_LISTBOX_BASE( CVPCB_MAINFRAME* aParent, wxWindowID aId,
|
||||||
const wxPoint& aLocation, const wxSize& aSize,
|
const wxPoint& aLocation, const wxSize& aSize,
|
||||||
long aStyle = wxLC_SINGLE_SEL );
|
long aStyle = 0 );
|
||||||
|
|
||||||
~ITEMS_LISTBOX_BASE();
|
~ITEMS_LISTBOX_BASE();
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
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) :
|
||||||
wxListView( aParent, aId, aLocation, aSize, LISTB_STYLE | aStyle ), columnWidth(0)
|
wxListView( aParent, aId, aLocation, aSize, LISTBOX_STYLE | aStyle ), columnWidth(0)
|
||||||
{
|
{
|
||||||
InsertColumn( 0, wxEmptyString );
|
InsertColumn( 0, wxEmptyString );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue