23#include <wx/stattext.h>
25#include <wx/bmpbuttn.h>
36 m_libraryItem( nullptr ),
39 wxBoxSizer* bottomSizer =
new wxBoxSizer( wxHORIZONTAL );
41 wxStaticText* schLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Board" ) );
42 wxStaticText* libLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Library" ) );
43 m_slider =
new wxSlider(
this, wxID_ANY, 50, 0, 100 );
45 bottomSizer->Add( schLabel, 0, wxLEFT | wxRIGHT | wxBOTTOM | wxALIGN_CENTRE_VERTICAL, 6 );
46 bottomSizer->Add(
m_slider, 1, wxLEFT | wxRIGHT | wxALIGN_BOTTOM, 30 );
47 bottomSizer->Add( libLabel, 0, wxLEFT | wxRIGHT | wxBOTTOM | wxALIGN_CENTRE_VERTICAL, 6 );
50 wxString toggleTooltip =
_(
"Toggle between A and B display" );
51 toggleTooltip =
AddHotkeyName( toggleTooltip,
'/', HOTKEY_ACTION_TYPE::IS_COMMENT );
54 bottomSizer->Add(
m_toggleButton, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL, 6 );
56 m_outerSizer->Add( bottomSizer, 0, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, 10 );
74 [&]( wxCommandEvent& aEvent )
82 std::shared_ptr<FOOTPRINT>& aLibFootprint )
114 const int val =
m_slider->GetValue();
128 double pct = (double)
m_slider->GetValue() / 100.0;
137 val = ( pct - 0.5 ) * 2;
155 val = 1.0 - ( pct * 2 );
173 if( aEvent.GetKeyCode() ==
'/' )
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
void SetForcedTransparency(double aForcedTransparency)
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
static constexpr EDA_ANGLE ANGLE_0
wxString AddHotkeyName(const wxString &aText, int aHotKey, HOTKEY_ACTION_TYPE aStyle)
std::vector< FAB_LAYER_COLOR > dummy