24#ifndef ACTION_TOOLBAR_H
25#define ACTION_TOOLBAR_H
31#include <wx/aui/auibar.h>
32#include <wx/aui/framemanager.h>
33#include <wx/popupwin.h>
52 ACTION_GROUP(
const std::string& aName,
const std::vector<const TOOL_ACTION*>& aActions );
151 void Popup( wxWindow* aFocus =
nullptr )
override;
187 const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
188 long style = wxAUI_TB_DEFAULT_STYLE );
210 void Add(
const TOOL_ACTION& aAction,
bool aIsToggleEntry =
false,
211 bool aIsCancellable =
false );
339 void OnCustomRender( wxDC& aDc,
const wxAuiToolBarItem& aItem,
const wxRect& aRect )
override;
A group of actions that will be displayed together on a toolbar palette.
void SetDefaultAction(const TOOL_ACTION &aDefault)
Set the default action to use when first creating the toolbar palette icon.
const std::vector< const TOOL_ACTION * > & GetActions() const
Get a vector of all the actions contained inside this group.
std::vector< const TOOL_ACTION * > m_actions
int GetUIId() const
Get the ID used in the UI to reference this group.
int m_id
< The action ID for this action group
const TOOL_ACTION * m_defaultAction
The actions that compose the group.
const TOOL_ACTION * GetDefaultAction() const
Get the default action to use when first creating this group's toolbar palette icon.
std::string m_name
The default action to display on the toolbar item.
std::string GetName() const
Get the name of the group.
The base frame for deriving all KiCad main window classes.