KiCad PCB EDA Suite
|
Define the structure of a toolbar with buttons that invoke ACTIONs. More...
#include <action_toolbar.h>
Public Member Functions | |
ACTION_TOOLBAR (EDA_BASE_FRAME *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxAUI_TB_DEFAULT_STYLE) | |
virtual | ~ACTION_TOOLBAR () |
void | SetAuiManager (wxAuiManager *aManager) |
Set the AUI manager that this toolbar belongs to. | |
void | SetToolManager (TOOL_MANAGER *aManager) |
void | Add (const TOOL_ACTION &aAction, bool aIsToggleEntry=false, bool aIsCancellable=false) |
Add a TOOL_ACTION-based button to the toolbar. | |
void | AddButton (const TOOL_ACTION &aAction) |
Add a large button such as used in the KiCad Manager Frame's launch bar. | |
void | AddScaledSeparator (wxWindow *aWindow) |
Add a separator that introduces space on either side to not squash the tools when scaled. | |
void | AddToolContextMenu (const TOOL_ACTION &aAction, std::unique_ptr< ACTION_MENU > aMenu) |
Add a context menu to a specific tool item on the toolbar. | |
void | AddGroup (ACTION_GROUP *aGroup, bool aIsToggleEntry=false) |
Add a set of actions to a toolbar as a group. | |
void | SelectAction (ACTION_GROUP *aGroup, const TOOL_ACTION &aAction) |
Select an action inside a group. | |
void | UpdateControlWidth (int aID) |
Update the toolbar item width of a control using its best size. | |
void | ClearToolbar () |
Clear the toolbar and remove all associated menus. | |
void | SetToolBitmap (const TOOL_ACTION &aAction, const wxBitmap &aBitmap) |
Updates the bitmap of a particular tool. | |
void | Toggle (const TOOL_ACTION &aAction, bool aState) |
Apply the default toggle action. | |
void | Toggle (const TOOL_ACTION &aAction, bool aEnabled, bool aChecked) |
bool | KiRealize () |
Use this over Realize() to avoid a rendering glitch with fixed orientation toolbars. | |
void | RefreshBitmaps () |
Reload all the bitmaps for the tools (e.g. | |
Static Public Attributes | |
static constexpr bool | TOGGLE = true |
static constexpr bool | CANCEL = true |
Protected Member Functions | |
void | doSelectAction (ACTION_GROUP *aGroup, const TOOL_ACTION &aAction) |
Update a group toolbar item to look like a specific action. | |
void | popupPalette (wxAuiToolBarItem *aItem) |
Popup the ACTION_TOOLBAR_PALETTE associated with the ACTION_GROUP of the given toolbar item. | |
void | onMouseClick (wxMouseEvent &aEvent) |
Handler for when a drag event occurs on an item. | |
void | onItemDrag (wxAuiToolBarEvent &aEvent) |
The default tool event handler. | |
void | onToolEvent (wxAuiToolBarEvent &aEvent) |
Handle a right-click on a menu item. | |
void | onToolRightClick (wxAuiToolBarEvent &aEvent) |
Handle the button select inside the palette. | |
void | onPaletteEvent (wxCommandEvent &aEvent) |
Handle the palette timer triggering. | |
void | onTimerDone (wxTimerEvent &aEvent) |
void | onThemeChanged (wxSysColourChangedEvent &aEvent) |
Render the triangle in the lower-right corner that represents that an action palette is available for an item. | |
void | OnCustomRender (wxDC &aDc, const wxAuiToolBarItem &aItem, const wxRect &aRect) override |
Protected Attributes | |
wxTimer * | m_paletteTimer |
wxAuiManager * | m_auiManager |
TOOL_MANAGER * | m_toolManager |
ACTION_TOOLBAR_PALETTE * | m_palette |
std::map< int, bool > | m_toolKinds |
std::map< int, bool > | m_toolCancellable |
std::map< int, const TOOL_ACTION * > | m_toolActions |
std::map< int, ACTION_GROUP * > | m_actionGroups |
std::map< int, std::unique_ptr< ACTION_MENU > > | m_toolMenus |
Define the structure of a toolbar with buttons that invoke ACTIONs.
Definition at line 183 of file action_toolbar.h.
ACTION_TOOLBAR::ACTION_TOOLBAR | ( | EDA_BASE_FRAME * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxAUI_TB_DEFAULT_STYLE |
||
) |
Definition at line 184 of file action_toolbar.cpp.
References m_paletteTimer, onItemDrag(), onMouseClick(), onThemeChanged(), onTimerDone(), onToolEvent(), and onToolRightClick().
|
virtual |
Definition at line 213 of file action_toolbar.cpp.
References m_actionGroups, m_paletteTimer, m_toolActions, m_toolCancellable, m_toolKinds, m_toolMenus, onItemDrag(), onMouseClick(), onThemeChanged(), onTimerDone(), onToolEvent(), and onToolRightClick().
void ACTION_TOOLBAR::Add | ( | const TOOL_ACTION & | aAction, |
bool | aIsToggleEntry = false , |
||
bool | aIsCancellable = false |
||
) |
Add a TOOL_ACTION-based button to the toolbar.
After selecting the entry, a TOOL_EVENT command containing name of the action is sent.
aAction | is the action to add. |
aIsToggleEntry | makes the toolbar item a toggle entry when true. |
aIsCancellable | when true, cancels the tool if clicked when tool is active. |
Definition at line 241 of file action_toolbar.cpp.
References TOOL_ACTION::GetButtonTooltip(), TOOL_ACTION::GetIcon(), TOOL_ACTION::GetUIId(), KiBitmapBundle(), KiDisabledBitmapBundle(), m_toolActions, m_toolCancellable, and m_toolKinds.
Referenced by PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), KICAD_MANAGER_FRAME::RecreateBaseLeftToolbar(), CVPCB_MAINFRAME::ReCreateHToolbar(), SIMULATOR_FRAME::ReCreateHToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_VIEWER_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), EDA_3D_VIEWER_FRAME::ReCreateMainToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateOptToolbar(), SYMBOL_EDIT_FRAME::ReCreateOptToolbar(), GERBVIEW_FRAME::ReCreateOptToolbar(), PL_EDITOR_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateOptToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateVToolbar(), SYMBOL_EDIT_FRAME::ReCreateVToolbar(), PL_EDITOR_FRAME::ReCreateVToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().
void ACTION_TOOLBAR::AddButton | ( | const TOOL_ACTION & | aAction | ) |
Add a large button such as used in the KiCad Manager Frame's launch bar.
aAction |
Definition at line 259 of file action_toolbar.cpp.
References TOOL_ACTION::GetButtonTooltip(), TOOL_ACTION::GetIcon(), TOOL_ACTION::GetUIId(), KiBitmapBundle(), KiDisabledBitmapBundle(), m_toolActions, and m_toolKinds.
void ACTION_TOOLBAR::AddGroup | ( | ACTION_GROUP * | aGroup, |
bool | aIsToggleEntry = false |
||
) |
Add a set of actions to a toolbar as a group.
One action from the group will be displayed at a time.
aGroup | is the group to add. The first action in the group will be the first shown on the toolbar. |
aIsToggleEntry | makes the toolbar item a toggle entry when true |
Definition at line 295 of file action_toolbar.cpp.
References doSelectAction(), ACTION_GROUP::GetDefaultAction(), TOOL_ACTION::GetIcon(), ACTION_GROUP::GetUIId(), KiBitmapBundle(), KiDisabledBitmapBundle(), m_actionGroups, m_toolActions, and m_toolKinds.
Referenced by FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().
void ACTION_TOOLBAR::AddScaledSeparator | ( | wxWindow * | aWindow | ) |
Add a separator that introduces space on either side to not squash the tools when scaled.
aWindow | is the window to get the scaling factor of |
Definition at line 272 of file action_toolbar.cpp.
References KiIconScale(), and scale.
Referenced by PCB_EDIT_FRAME::AddActionPluginTools(), GERBVIEW_FRAME::ReCreateAuxiliaryToolbar(), PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), KICAD_MANAGER_FRAME::RecreateBaseLeftToolbar(), CVPCB_MAINFRAME::ReCreateHToolbar(), SIMULATOR_FRAME::ReCreateHToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_VIEWER_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), EDA_3D_VIEWER_FRAME::ReCreateMainToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateOptToolbar(), SYMBOL_EDIT_FRAME::ReCreateOptToolbar(), GERBVIEW_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateOptToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateVToolbar(), SYMBOL_EDIT_FRAME::ReCreateVToolbar(), PL_EDITOR_FRAME::ReCreateVToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().
void ACTION_TOOLBAR::AddToolContextMenu | ( | const TOOL_ACTION & | aAction, |
std::unique_ptr< ACTION_MENU > | aMenu | ||
) |
Add a context menu to a specific tool item on the toolbar.
This toolbar gets ownership of the menu object, and will delete it when the ClearToolbar() function is called.
aAction | is the action to get the menu |
aMenu | is the context menu |
Definition at line 286 of file action_toolbar.cpp.
References TOOL_ACTION::GetUIId(), and m_toolMenus.
Referenced by SCH_EDIT_FRAME::ReCreateOptToolbar(), SYMBOL_EDIT_FRAME::ReCreateOptToolbar(), PL_EDITOR_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().
void ACTION_TOOLBAR::ClearToolbar | ( | ) |
Clear the toolbar and remove all associated menus.
Definition at line 402 of file action_toolbar.cpp.
References m_actionGroups, m_toolActions, m_toolCancellable, m_toolKinds, and m_toolMenus.
Referenced by GERBVIEW_FRAME::ReCreateAuxiliaryToolbar(), PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), KICAD_MANAGER_FRAME::RecreateBaseLeftToolbar(), CVPCB_MAINFRAME::ReCreateHToolbar(), SIMULATOR_FRAME::ReCreateHToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_VIEWER_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), EDA_3D_VIEWER_FRAME::ReCreateMainToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateOptToolbar(), SYMBOL_EDIT_FRAME::ReCreateOptToolbar(), GERBVIEW_FRAME::ReCreateOptToolbar(), PL_EDITOR_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateOptToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateVToolbar(), SYMBOL_EDIT_FRAME::ReCreateVToolbar(), PL_EDITOR_FRAME::ReCreateVToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().
|
protected |
Update a group toolbar item to look like a specific action.
Note: This function does not verify that the action is inside the group.
Definition at line 332 of file action_toolbar.cpp.
References TOOL_MANAGER::GetActionManager(), TOOL_ACTION::GetButtonTooltip(), ACTION_MANAGER::GetCondition(), TOOL_ACTION::GetIcon(), TOOL_ACTION::GetName(), TOOL_MANAGER::GetToolHolder(), ACTION_GROUP::GetUIId(), KiBitmapBundle(), KiDisabledBitmapBundle(), m_toolActions, m_toolManager, Refresh(), TOOLS_HOLDER::RegisterUIUpdateHandler(), and TOOLS_HOLDER::UnregisterUIUpdateHandler().
Referenced by AddGroup(), onPaletteEvent(), and SelectAction().
bool ACTION_TOOLBAR::KiRealize | ( | ) |
Use this over Realize() to avoid a rendering glitch with fixed orientation toolbars.
The standard Realize() draws both horizontal and vertical to determine sizing However with many icons, potato PCs, etc, you can actually see that double draw This custom function avoids the double draw if the HORIZONTAL or VERTICAL toolbar properties are set.
Definition at line 788 of file action_toolbar.cpp.
References Refresh().
Referenced by GERBVIEW_FRAME::ReCreateAuxiliaryToolbar(), PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), KICAD_MANAGER_FRAME::RecreateBaseLeftToolbar(), SIMULATOR_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_VIEWER_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), EDA_3D_VIEWER_FRAME::ReCreateMainToolbar(), SCH_EDIT_FRAME::ReCreateOptToolbar(), GERBVIEW_FRAME::ReCreateOptToolbar(), PL_EDITOR_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateOptToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateVToolbar(), PL_EDITOR_FRAME::ReCreateVToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().
|
overrideprotected |
Definition at line 751 of file action_toolbar.cpp.
References KiROUND(), and m_actionGroups.
|
protected |
The default tool event handler.
Definition at line 561 of file action_toolbar.cpp.
References m_actionGroups, and popupPalette().
Referenced by ACTION_TOOLBAR(), and ~ACTION_TOOLBAR().
|
protected |
Handler for when a drag event occurs on an item.
Definition at line 533 of file action_toolbar.cpp.
References m_actionGroups, m_palette, m_paletteTimer, and PALETTE_OPEN_DELAY.
Referenced by ACTION_TOOLBAR(), and ~ACTION_TOOLBAR().
|
protected |
Handle the palette timer triggering.
Definition at line 594 of file action_toolbar.cpp.
References doSelectAction(), ACTION_TOOLBAR_PALETTE::GetGroup(), TOOL_MANAGER::GetToolHolder(), group, m_palette, m_toolManager, TOOL_ACTION::MakeEvent(), TOOL_MANAGER::ProcessEvent(), TOOLS_HOLDER::RefreshCanvas(), and TOOL_EVENT::SetHasPosition().
Referenced by popupPalette().
|
protected |
Render the triangle in the lower-right corner that represents that an action palette is available for an item.
Definition at line 845 of file action_toolbar.cpp.
References GetBitmapStore(), RefreshBitmaps(), and BITMAP_STORE::ThemeChanged().
Referenced by ACTION_TOOLBAR(), and ~ACTION_TOOLBAR().
|
protected |
Definition at line 582 of file action_toolbar.cpp.
References KIPLATFORM::UI::GetMousePosition(), and popupPalette().
Referenced by ACTION_TOOLBAR(), and ~ACTION_TOOLBAR().
|
protected |
Handle a right-click on a menu item.
Definition at line 452 of file action_toolbar.cpp.
References TOOL_MANAGER::CancelTool(), TOOL_ACTION::GetBaseUIId(), TOOL_MANAGER::GetToolHolder(), m_toolActions, m_toolCancellable, m_toolManager, TOOL_MANAGER::ProcessEvent(), and TOOLS_HOLDER::RefreshCanvas().
Referenced by ACTION_TOOLBAR(), and ~ACTION_TOOLBAR().
|
protected |
Handle the button select inside the palette.
Definition at line 489 of file action_toolbar.cpp.
References m_toolActions, m_toolMenus, and ACTION_MENU::UpdateAll().
Referenced by ACTION_TOOLBAR(), and ~ACTION_TOOLBAR().
|
protected |
Popup the ACTION_TOOLBAR_PALETTE associated with the ACTION_GROUP of the given toolbar item.
Handler for a mouse up/down event
Definition at line 630 of file action_toolbar.cpp.
References ACTION_TOOLBAR_PALETTE::AddAction(), BUTTON_BORDER, ACTION_TOOLBAR_PALETTE::EnableAction(), TOOL_MANAGER::GetToolHolder(), TOOL_ACTION::GetUIId(), group, m_actionGroups, m_auiManager, m_palette, m_paletteTimer, m_toolManager, onPaletteEvent(), PALETTE_BORDER, ACTION_TOOLBAR_PALETTE::Popup(), ACTION_TOOLBAR_PALETTE::SetButtonSize(), and ACTION_TOOLBAR_PALETTE::SetGroup().
Referenced by onItemDrag(), and onTimerDone().
void ACTION_TOOLBAR::RefreshBitmaps | ( | ) |
Reload all the bitmaps for the tools (e.g.
when switching icon themes)
Definition at line 854 of file action_toolbar.cpp.
References KiBitmapBundle(), KiDisabledBitmapBundle(), m_toolActions, and Refresh().
Referenced by onThemeChanged().
void ACTION_TOOLBAR::SelectAction | ( | ACTION_GROUP * | aGroup, |
const TOOL_ACTION & | aAction | ||
) |
Select an action inside a group.
aGroup | is the group that contains the action |
aAction | is the action inside the group |
Definition at line 318 of file action_toolbar.cpp.
References doSelectAction(), and ACTION_GROUP::m_actions.
|
inline |
Set the AUI manager that this toolbar belongs to.
aManager | is the AUI manager |
Definition at line 197 of file action_toolbar.h.
References m_auiManager.
Referenced by GERBVIEW_FRAME::ReCreateAuxiliaryToolbar(), PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), KICAD_MANAGER_FRAME::RecreateBaseLeftToolbar(), CVPCB_MAINFRAME::ReCreateHToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_VIEWER_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), FOOTPRINT_WIZARD_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), EDA_3D_VIEWER_FRAME::ReCreateMainToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateOptToolbar(), SYMBOL_EDIT_FRAME::ReCreateOptToolbar(), GERBVIEW_FRAME::ReCreateOptToolbar(), PL_EDITOR_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateOptToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateVToolbar(), SYMBOL_EDIT_FRAME::ReCreateVToolbar(), PL_EDITOR_FRAME::ReCreateVToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().
void ACTION_TOOLBAR::SetToolBitmap | ( | const TOOL_ACTION & | aAction, |
const wxBitmap & | aBitmap | ||
) |
Updates the bitmap of a particular tool.
Not icon-based because we use it for the custom-drawn layer pair bitmap.
Definition at line 416 of file action_toolbar.cpp.
References TOOL_ACTION::GetUIId(), and KIPLATFORM::UI::IsDarkTheme().
Referenced by PCB_EDIT_FRAME::PrepareLayerIndicator().
|
inline |
Definition at line 199 of file action_toolbar.h.
References m_toolManager.
Referenced by SIMULATOR_FRAME::ReCreateHToolbar().
void ACTION_TOOLBAR::Toggle | ( | const TOOL_ACTION & | aAction, |
bool | aEnabled, | ||
bool | aChecked | ||
) |
Definition at line 443 of file action_toolbar.cpp.
References TOOL_ACTION::GetUIId().
void ACTION_TOOLBAR::Toggle | ( | const TOOL_ACTION & | aAction, |
bool | aState | ||
) |
Apply the default toggle action.
For checked items this is check/uncheck; for non-checked items it's enable/disable.
Definition at line 432 of file action_toolbar.cpp.
References TOOL_ACTION::GetUIId(), and m_toolKinds.
void ACTION_TOOLBAR::UpdateControlWidth | ( | int | aID | ) |
Update the toolbar item width of a control using its best size.
aID | is the ID of the toolbar item to update the width for |
Definition at line 367 of file action_toolbar.cpp.
Referenced by GERBVIEW_FRAME::ReCreateAuxiliaryToolbar(), PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), DISPLAY_FOOTPRINTS_FRAME::UpdateToolbarControlSizes(), GERBVIEW_FRAME::UpdateToolbarControlSizes(), PL_EDITOR_FRAME::UpdateToolbarControlSizes(), FOOTPRINT_EDIT_FRAME::UpdateToolbarControlSizes(), and PCB_EDIT_FRAME::UpdateToolbarControlSizes().
|
staticconstexpr |
Definition at line 301 of file action_toolbar.h.
Referenced by DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_EDIT_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), and PCB_EDIT_FRAME::ReCreateHToolbar().
|
protected |
Definition at line 352 of file action_toolbar.h.
Referenced by AddGroup(), ClearToolbar(), OnCustomRender(), onItemDrag(), onMouseClick(), popupPalette(), and ~ACTION_TOOLBAR().
|
protected |
Definition at line 345 of file action_toolbar.h.
Referenced by popupPalette(), and SetAuiManager().
|
protected |
Definition at line 347 of file action_toolbar.h.
Referenced by onMouseClick(), onPaletteEvent(), and popupPalette().
|
protected |
Definition at line 343 of file action_toolbar.h.
Referenced by ACTION_TOOLBAR(), onMouseClick(), popupPalette(), and ~ACTION_TOOLBAR().
|
protected |
Definition at line 351 of file action_toolbar.h.
Referenced by Add(), AddButton(), AddGroup(), ClearToolbar(), doSelectAction(), onToolEvent(), onToolRightClick(), RefreshBitmaps(), and ~ACTION_TOOLBAR().
|
protected |
Definition at line 350 of file action_toolbar.h.
Referenced by Add(), ClearToolbar(), onToolEvent(), and ~ACTION_TOOLBAR().
|
protected |
Definition at line 349 of file action_toolbar.h.
Referenced by Add(), AddButton(), AddGroup(), ClearToolbar(), Toggle(), and ~ACTION_TOOLBAR().
|
protected |
Definition at line 346 of file action_toolbar.h.
Referenced by doSelectAction(), onPaletteEvent(), onToolEvent(), popupPalette(), and SetToolManager().
|
protected |
Definition at line 354 of file action_toolbar.h.
Referenced by AddToolContextMenu(), ClearToolbar(), onToolRightClick(), and ~ACTION_TOOLBAR().
|
staticconstexpr |
Definition at line 300 of file action_toolbar.h.
Referenced by CVPCB_MAINFRAME::ReCreateHToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateHToolbar(), SCH_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_EDIT_FRAME::ReCreateHToolbar(), SYMBOL_VIEWER_FRAME::ReCreateHToolbar(), GERBVIEW_FRAME::ReCreateHToolbar(), PL_EDITOR_FRAME::ReCreateHToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateHToolbar(), PCB_EDIT_FRAME::ReCreateHToolbar(), EDA_3D_VIEWER_FRAME::ReCreateMainToolbar(), DISPLAY_FOOTPRINTS_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateOptToolbar(), SYMBOL_EDIT_FRAME::ReCreateOptToolbar(), GERBVIEW_FRAME::ReCreateOptToolbar(), PL_EDITOR_FRAME::ReCreateOptToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateOptToolbar(), PCB_EDIT_FRAME::ReCreateOptToolbar(), SCH_EDIT_FRAME::ReCreateVToolbar(), SYMBOL_EDIT_FRAME::ReCreateVToolbar(), PL_EDITOR_FRAME::ReCreateVToolbar(), FOOTPRINT_EDIT_FRAME::ReCreateVToolbar(), and PCB_EDIT_FRAME::ReCreateVToolbar().