29#include <wx/stattext.h>
76 if( action ==
nullptr )
95 wxFont titleFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
97 titleFont.SetPointSize( titleFont.GetPointSize() + 2 );
99 titleFont.SetWeight( wxFONTWEIGHT_BOLD );
101 wxFont helpFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
102 helpFont.SetStyle( wxFONTSTYLE_ITALIC );
105 [&](
const TOOL_ACTION& aAction,
BITMAPS aBitmaps,
const wxString& aHelpText,
bool enabled = true )
121 btn->SetClientData( (
void*) &aAction );
129 wxBoxSizer* textSizer =
new wxBoxSizer( wxVERTICAL );
131 textSizer->Add( label );
132 textSizer->Add(
help );
134 m_toolsSizer->Add( textSizer, 1, wxEXPAND | wxALIGN_CENTER_VERTICAL );
148 _(
"Edit the project schematic" ) );
151 _(
"Edit global and/or project schematic symbol libraries" ) );
154 _(
"Edit the project PCB design" ) );
157 _(
"Edit global and/or project PCB footprint libraries" ) );
160 _(
"Preview Gerber files" ) );
163 _(
"Convert bitmap images to schematic symbols or PCB footprints" ) );
166 _(
"Show tools for calculating resistance, current capacity, etc." ) );
169 _(
"Edit drawing sheet borders and title blocks for use in schematics and PCB designs" ) );
172 _(
"Manage downloadable packages from KiCad and 3rd party repositories" ),
BITMAP_STORE * GetBitmapStore()
wxBitmapBundle KiDisabledBitmapBundle(BITMAPS aBitmap)
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
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
Handle actions in the kicad manager frame.
bool InShowPlayer() const
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