28#include <wx/statusbr.h>
29#include <wx/textctrl.h>
39GUIProgressTarget::~GUIProgressTarget() =
default;
49 int flags = wxDEFAULT_DIALOG_STYLE,
50 int additionalButtons = 0);
54 virtual void OnOk(wxCommandEvent & evt);
55 virtual void OnCancel(wxCommandEvent & evt);
57 static void AcceptText(
const wxString & Text );
81 int additionalButtons)
82:
wxDialogWrapper(parent, wxID_ANY,
title, wxDefaultPosition, wxDefaultSize, flags | wxRESIZE_BORDER)
85 mAdditionalButtons = additionalButtons;
102 S.StartVerticalLay(
true);
104 mTextCtrl =
S.AddTextWindow(
"" );
106 S.AddStandardButtons(buttons|mAdditionalButtons);
112 SetMinSize(wxSize(600,350));
131 wxTheApp->GetTopWindow(),
XO(
"Long Message" ) );
141 if( !pDlg->
mText.EndsWith(
"\n\n" ))
143 pDlg->
mText +=
"\n\n";
158 void Update(
const wxString &message)
override
174 return std::make_shared<MessageDialogTarget>();
188static CommandContext::TargetFactory::SubstituteInUnique<
197 mStatus.SetStatusText(message, 0);
Toolkit-neutral facade for basic user interface services.
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
Interface for objects that can receive (string) messages from a command.
CommandOutputTargets a mix of three output classes to output progress indication, status messages and...
Extended Target Factory with more options.
static std::shared_ptr< CommandMessageTarget > LongMessages()
InteractiveOutputTargets is an output target that pops up a dialog, if necessary.
LongMessageDialog is a dialog with a Text Window in it to capture the more lengthy output from some c...
static LongMessageDialog * pDlg
static void AcceptText(const wxString &Text)
virtual void OnOk(wxCommandEvent &evt)
virtual void OnCancel(wxCommandEvent &evt)
MessageDialogTarget is a CommandOutputTarget that sends its status to the LongMessageDialog.
void Update(const wxString &message) override
virtual ~MessageDialogTarget()
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
~StatusBarTarget() override
void Update(const wxString &message) override
TargetFactory makes Command output targets. By default, we ignore progress updates but display all ot...
Holds a msgid for the translation catalog; may also bind format arguments.
static CommandContext::TargetFactory::SubstituteInUnique< InteractiveOutputTargets > scope
InteractiveOutputTargets()