26 #include <wx/stattext.h> 34 m_frame = static_cast<KICAD_MANAGER_FRAME*>( aParent );
38 Bind( wxEVT_SYS_COLOUR_CHANGED,
51 wxFont titleFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
53 titleFont.SetPointSize( titleFont.GetPointSize() + 2 );
55 titleFont.SetWeight( wxFONTWEIGHT_BOLD );
57 wxFont helpFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
58 helpFont.SetStyle( wxFONTSTYLE_ITALIC );
61 [&](
const TOOL_ACTION& aAction,
const wxBitmap& aBitmap,
const wxString& aHelpText )
69 [&]( wxEvent& aEvent )
83 wxStaticText* label =
new wxStaticText(
this, wxID_ANY, aAction.
GetLabel() );
87 label->SetFont( titleFont );
89 help =
new wxStaticText(
this, wxID_ANY, aHelpText );
90 help->SetFont( helpFont );
92 btn->Bind( wxEVT_BUTTON, handler );
100 m_toolsSizer->Add( btn, wxGBPosition( row, 0 ), wxGBSpan( 2, 1 ), wxBOTTOM, 12 );
107 m_toolsSizer->Add( label, wxGBPosition( row, 1 ), wxGBSpan( 1, 1 ),
108 wxTOP | wxEXPAND, 10 );
111 wxALIGN_TOP | wxTOP, 1 );
116 _(
"Edit the project schematic" ) );
120 _(
"Edit global and/or project schematic symbol libraries" ) );
124 _(
"Edit the project PCB design" ) );
128 _(
"Edit global and/or project PCB footprint libraries" ) );
132 _(
"Preview Gerber files" ) );
136 _(
"Convert bitmap images to schematic symbols or PCB footprints" ) );
140 _(
"Show tools for calculating resistance, current capacity, etc." ) );
144 _(
"Edit drawing sheet borders and title blocks for use in schematics and PCB " 148 addLauncher( KICAD_MANAGER_ACTIONS::showPluginManager,
150 _(
"Manage downloadable packages from KiCad and 3rd party repositories" ) );
Class PANEL_KICAD_LAUNCHER_BASE.
TOOL_MANAGER * m_toolManager
static TOOL_ACTION showCalculator
static TOOL_ACTION viewGerbers
static TOOL_ACTION convertImage
PANEL_KICAD_LAUNCHER(wxWindow *aParent)
static TOOL_ACTION editSchematic
wxGridBagSizer * m_toolsSizer
static TOOL_ACTION editFootprints
void ThemeChanged()
Notifies the store that the icon theme has been changed by the user, so caches must be invalidated.
wxBitmap KiScaledBitmap(BITMAPS aBitmap, wxWindow *aWindow, int aHeight, bool aQuantized)
Construct a wxBitmap from a memory record, scaling it if device DPI demands it.
void onThemeChanged(wxSysColourChangedEvent &aEvent)
static TOOL_ACTION editPCB
KICAD_MANAGER_FRAME * m_frame
static TOOL_ACTION editSymbols
static TOOL_ACTION editDrawingSheet
BITMAP_STORE * GetBitmapStore()