91 std::function<
bool()> condition, std::function<
void()> dialogFactory);
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Holds a msgid for the translation catalog; may also bind format arguments.
DialogIdentifier mOptionalPrefsIdentifier
virtual bool HasSeparator() const
void AddTitle(const TranslatableString &title)
void AddButton(DialogButtonIdentifier identifier, const TranslatableString &text, int type=None)
DialogButtonIdentifier ShowDialog(std::function< DialogButtonIdentifier()> poller={})
DialogButtonIdentifier mResultButtonIdentifier
virtual ~AudioComDialogBase()=default
wxBoxSizer * mDialogSizer
DialogButtonIdentifier mEscButtonIdentifier
AudioComDialogBase(const AudacityProject *project, const DialogIdentifier &optionalPrefsIdentifier={}, DialogMode dialogMode=DialogMode::Saving)
wxBoxSizer * mButtonSizer
const AudacityProject * mProject
void AddParagraph(const TranslatableString ¶graph)
void SetDialogTitle(const TranslatableString &dialog)
void EndDialog(DialogButtonIdentifier identifier)
static DialogButtonIdentifier CancelButtonIdentifier()
TaggedIdentifier< DialogButtonIdentifierTag > DialogButtonIdentifier
void ShowDialogOn(std::function< bool()> condition, std::function< void()> dialogFactory)