22#include <wx/bmpbuttn.h>
25#include <wx/stattext.h>
42 wxBoxSizer* bottomSizer =
new wxBoxSizer( wxHORIZONTAL );
44 wxStaticText* schLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Schematic" ) );
45 wxStaticText* libLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Library" ) );
46 m_slider =
new wxSlider(
this, wxID_ANY, 50, 0, 100 );
48 bottomSizer->Add( schLabel, 0, wxLEFT | wxRIGHT | wxBOTTOM | wxALIGN_CENTRE_VERTICAL, 6 );
49 bottomSizer->Add(
m_slider, 1, wxLEFT | wxRIGHT | wxALIGN_BOTTOM, 30 );
50 bottomSizer->Add( libLabel, 0, wxLEFT | wxRIGHT | wxBOTTOM | wxALIGN_CENTRE_VERTICAL, 6 );
53 wxString toggleTooltip =
_(
"Toggle between A and B display" );
57 bottomSizer->Add(
m_toggleButton, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL, 6 );
59 m_outerSizer->Add( bottomSizer, 0, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, 10 );
76 [
this]( wxCommandEvent& aEvent )
115 settings->m_ShowBodyStyle = (
m_previewItem->IsMultiBodyStyle() && !aBodyStyle ) ? 1 : aBodyStyle;
125 wxASSERT( aLibSymbol );
141 const int val =
m_slider->GetValue();
156 double pct = (double)
m_slider->GetValue() / 100.0;
165 val = ( pct - 0.5 ) * 2;
172 child.SetForcedTransparency( val );
184 val = 1.0 - ( pct * 2 );
191 child.SetForcedTransparency( val );
204 if( aEvent.GetKeyCode() ==
'/' )
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Add a VIEW_ITEM to the view.
virtual void Remove(VIEW_ITEM *aItem)
Remove a VIEW_ITEM from the view.
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
Define a library symbol object.
Base class for any item which can be embedded within the SCHEMATIC container class,...
wxString AddHotkeyName(const wxString &aText, int aHotKey, HOTKEY_ACTION_TYPE aStyle)
std::vector< FAB_LAYER_COLOR > dummy