28#include <wx/stattext.h>
39 Bind( wxEVT_SYS_COLOUR_CHANGED,
54 Unbind( wxEVT_SYS_COLOUR_CHANGED,
71 if( action ==
nullptr )
90 wxFont titleFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
92 titleFont.SetPointSize( titleFont.GetPointSize() + 2 );
94 titleFont.SetWeight( wxFONTWEIGHT_BOLD );
96 wxFont helpFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
97 helpFont.SetStyle( wxFONTSTYLE_ITALIC );
99 auto addLauncher = [&](
const TOOL_ACTION& aAction,
BITMAPS aBitmaps,
const wxString& aHelpText,
100 bool enabled = true )
108 wxStaticText* label =
new wxStaticText(
m_scrolledWindow, wxID_ANY, wxEmptyString );
112 label->SetFont( titleFont );
115 help->SetFont( helpFont );
116 help->SetLabel( aHelpText );
119 btn->SetClientData( (
void*) &aAction );
127 wxBoxSizer* textSizer =
new wxBoxSizer( wxVERTICAL );
129 textSizer->Add( label );
130 textSizer->Add(
help );
132 m_toolsSizer->Add( textSizer, 1, wxEXPAND | wxALIGN_CENTER_VERTICAL );
145 _(
"Edit the project schematic" ) );
148 _(
"Edit global and/or project schematic symbol libraries" ) );
151 _(
"Edit the project PCB design" ) );
154 _(
"Edit global and/or project PCB footprint libraries" ) );
157 _(
"Preview Gerber files" ) );
160 _(
"Convert bitmap images to schematic symbols or PCB footprints" ) );
163 _(
"Show tools for calculating resistance, current capacity, etc." ) );
166 _(
"Edit drawing sheet borders and title blocks for use in schematics and PCB "
171 _(
"Manage downloadable packages from KiCad and 3rd party repositories" ),
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
BITMAP_STORE * GetBitmapStore()
wxBitmapBundle KiDisabledBitmapBundle(BITMAPS aBitmap)
BITMAPS
A list of all bitmap identifiers.
void ThemeChanged()
Notifies the store that the icon theme has been changed by the user, so caches must be invalidated.
static TOOL_ACTION editPCB
static TOOL_ACTION editSchematic
static TOOL_ACTION convertImage
static TOOL_ACTION editDrawingSheet
static TOOL_ACTION editFootprints
static TOOL_ACTION showPluginManager
static TOOL_ACTION showCalculator
static TOOL_ACTION viewGerbers
static TOOL_ACTION editSymbols
The main KiCad project manager frame.
void SetPcmButton(BITMAP_BUTTON *aButton)
Class PANEL_KICAD_LAUNCHER_BASE.
wxFlexGridSizer * m_toolsSizer
wxScrolledWindow * m_scrolledWindow
void onThemeChanged(wxSysColourChangedEvent &aEvent)
void onLauncherButtonClick(wxCommandEvent &aEvent)
PANEL_KICAD_LAUNCHER(wxWindow *aParent)
KICAD_MANAGER_FRAME * m_frame