18#include "../widgets/AButton.h"
23#include "../commands/CommandDispatch.h"
34 , mFirstButtonId(firstButtonId)
36 , mButtonList(
std::move(buttonList))
45 auto cleanup =
finally( [&] {
mButtons[
id]->InteractionOver(); });
51 mButtonList[
id].commandName, context, flags,
false );
60 wxTheApp->ProcessIdle();
66 auto& button =
mButtons[thisButtonId];
69 button->SetButtonToggles(toggle);
77 button->SetFrameMid(3);
78 button->SetLabel(
label);
79 button->SetMinSize(wxSize { 25, 25 });
80 button->SetMaxSize(wxSize { 25, 25 });
static ProjectFileIORegistry::AttributeWriterEntry entry
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
CommandManager implements a system for organizing all user-callable commands.
bool GetEnabled(const CommandID &name) const
static CommandManager & Get(AudacityProject &project)
CommandFlag GetUpdateFlags(bool quick=false) const
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
wxImage & Image(int iIndex)
Holds a msgid for the translation catalog; may also bind format arguments.
std::function< void()> Action
AUDACITY_DLL_API bool HandleTextualCommand(const CommandID &Str, const CommandContext &context, CommandFlag flags, bool alwaysEnabled)