18#include "../widgets/AButton.h"
22#include "../commands/CommandContext.h"
23#include "../commands/CommandManager.h"
24#include "../commands/CommandDispatch.h"
35 , mFirstButtonId(firstButtonId)
37 , mButtonList(
std::move(buttonList))
46 auto cleanup =
finally( [&] {
mButtons[
id]->InteractionOver(); });
54 mButtonList[
id].commandName, context, flags,
false );
63 wxTheApp->ProcessIdle();
72 bmpRecoloredUpSmall, bmpRecoloredDownSmall, bmpRecoloredUpHiliteSmall, bmpRecoloredHiliteSmall,
73 eEnabledUp, eEnabledDown, eDisabled,
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.
static CommandManager & Get(AudacityProject &project)
bool GetEnabled(const CommandID &name)
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
wxSize ImageSize(int iIndex)
Holds a msgid for the translation catalog; may also bind format arguments.
std::function< void()> Action
AUDACITY_DLL_API bool HandleTextualCommand(CommandManager &commandManager, const CommandID &Str, const CommandContext &context, CommandFlag flags, bool alwaysEnabled)