9#ifndef __AUDACITY_COMMAND_FLAG__
10#define __AUDACITY_COMMAND_FLAG__
26 "NoFlagsSpecified may have incorrect value"
46 const wxString &helpPage_ = {},
52 {
quickTest =
true;
return std::move( *
this ); }
56 {
priority = priority_;
return std::move( *
this ); }
93 static const std::vector< CommandFlagOptions > &Options();
94 static const Predicates &RegisteredPredicates();
constexpr size_t NCommandFlags
constexpr CommandFlag AlwaysEnabledFlag
std::bitset< NCommandFlags > CommandFlag
std::vector< MenuItemEnabler > MenuItemEnablers
constexpr CommandFlag NoFlagsSpecified
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
std::function< bool(const AudacityProject &) > Predicate
std::vector< Predicate > Predicates
Holds a msgid for the translation catalog; may also bind format arguments.
CommandFlagOptions && DisableDefaultMessage() &&
CommandFlagOptions()=default
CommandFlagOptions && Priority(unsigned priority_) &&
std::function< TranslatableString(const TranslatableString &) > MessageFormatter
CommandFlagOptions && QuickTest() &&
CommandFlagOptions(const MessageFormatter &message_, const wxString &helpPage_={}, const TranslatableString &title_={})
bool enableDefaultMessage