28#include <wx/stattext.h>
40 Bind( wxEVT_SYS_COLOUR_CHANGED,
55 wxFont titleFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
57 titleFont.SetPointSize( titleFont.GetPointSize() + 2 );
59 titleFont.SetWeight( wxFONTWEIGHT_BOLD );
61 wxFont helpFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
62 helpFont.SetStyle( wxFONTSTYLE_ITALIC );
65 [&](
const TOOL_ACTION& aAction,
const wxBitmap& aBitmap,
const wxString& aHelpText,
bool enabled = true )
69 btn->
SetDisabledBitmap( wxBitmap( aBitmap.ConvertToImage().ConvertToGreyscale() ) );
74 [&]( wxEvent& aEvent )
88 wxStaticText* label =
new wxStaticText(
this, wxID_ANY, aAction.
GetLabel() );
92 label->SetFont( titleFont );
94 help =
new wxStaticText(
this, wxID_ANY, aHelpText );
95 help->SetFont( helpFont );
97 btn->Bind( wxEVT_BUTTON, handler );
105 m_toolsSizer->Add( btn, wxGBPosition( row, 0 ), wxGBSpan( 2, 1 ), wxBOTTOM, 12 );
112 m_toolsSizer->Add( label, wxGBPosition( row, 1 ), wxGBSpan( 1, 1 ),
113 wxTOP | wxEXPAND, 10 );
116 wxALIGN_TOP | wxTOP, 1 );
130 _(
"Edit the project schematic" ) );
134 _(
"Edit global and/or project schematic symbol libraries" ) );
138 _(
"Edit the project PCB design" ) );
142 _(
"Edit global and/or project PCB footprint libraries" ) );
146 _(
"Preview Gerber files" ) );
150 _(
"Convert bitmap images to schematic symbols or PCB footprints" ) );
154 _(
"Show tools for calculating resistance, current capacity, etc." ) );
157 KiScaledBitmap( BITMAPS::icon_pagelayout_editor,
this, 48,
true ),
158 _(
"Edit drawing sheet borders and title blocks for use in schematics and PCB "
164 _(
"Manage downloadable packages from KiCad and 3rd party repositories" ),
BITMAP_STORE * GetBitmapStore()
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 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.
wxGridBagSizer * m_toolsSizer
TOOL_MANAGER * m_toolManager
void onThemeChanged(wxSysColourChangedEvent &aEvent)
PANEL_KICAD_LAUNCHER(wxWindow *aParent)
KICAD_MANAGER_FRAME * m_frame