68 Update( wxString::Format(
"%s\"%s\"", (
mCounts.back()>0)?
", ":
"", value?
"true":
"false"));
70 Update( wxString::Format(
"%s\"%s\":\"%s\"", (
mCounts.back()>0)?
", ":
"",
name,value?
"true":
"false"));
75 std::stringstream
str;
76 std::locale nolocale(
"C");
80 str << ((
mCounts.back()>0)?
", " :
"") << value;
82 str << ((
mCounts.back()>0)?
", " :
"") <<
"\"" <<
name <<
"\"" <<
":" << value;
90 Update( wxString::Format(
"%s", (
mCounts.back()>0)?
", " :
""));
108 Temp.Replace(
"\"",
"\\\"");
154 Update( wxString::Format(
"%s%s", (
mCounts.back()>0)?
" ":
"",value?
"True":
"False"));
156 Update( wxString::Format(
"%s(%s %s)", (
mCounts.back()>0)?
" ":
"",
name,value?
"True":
"False"));
161 Update( wxString::Format(
"%s%g", (
mCounts.back()>0)?
" ":
"", value));
221 Update( wxString::Format(
"%s%s", (
mCounts.back()>0)?
" ":
"",value?
"True":
"False"));
226 Update( wxString::Format(
"%s%g", (
mCounts.back()>0)?
" ":
"", value));
261 pToRestore( &target )
278 pToRestore( &target )
Toolkit-neutral facade for basic user interface services.
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
virtual void StartStruct() override
virtual void EndArray() override
virtual void EndStruct() override
virtual void AddBool(const bool value, const wxString &name={}) override
virtual void StartField(const wxString &name={}) override
virtual void EndField() override
virtual void AddItem(const wxString &value, const wxString &name={}) override
~BriefCommandMessageTarget() override
virtual void StartArray() override
CommandOutputTargets * pToRestore
~BriefCommandOutputTargets()
BriefCommandOutputTargets(CommandOutputTargets &target)
~CombinedMessageTarget() override
~CommandMessageTargetDecorator() override
void Update(const wxString &message) override
virtual void AddBool(const bool value, const wxString &name={})
std::vector< int > mCounts
virtual void AddItem(const wxString &value, const wxString &name={})
virtual void Update(const wxString &message)=0
virtual void StartField(const wxString &name={})
virtual ~CommandMessageTarget()
virtual void StartStruct()
wxString Escaped(const wxString &str)
virtual void StartArray()
CommandOutputTargets a mix of three output classes to output progress indication, status messages and...
std::shared_ptr< CommandMessageTarget > mStatusTarget
std::unique_ptr< CommandProgressTarget > mProgressTarget
std::shared_ptr< CommandMessageTarget > mErrorTarget
virtual ~CommandProgressTarget()
~LispifiedCommandOutputTargets()
CommandOutputTargets * pToRestore
LispifiedCommandOutputTargets(CommandOutputTargets &target)
virtual void StartStruct() override
virtual void StartField(const wxString &name={}) override
virtual void EndArray() override
~LispyCommandMessageTarget() override
virtual void AddBool(const bool value, const wxString &name={}) override
virtual void EndField() override
virtual void EndStruct() override
virtual void StartArray() override
virtual void AddItem(const wxString &value, const wxString &name={}) override
void Update(const wxString &message) override
~MessageBoxTarget() override
~NullMessageTarget() override
~NullProgressTarget() override
~ProgressToMessageTarget() override
~ResponseTarget() override
MessageBoxResult ShowMessageBox(const TranslatableString &message, MessageBoxOptions options={})
Show a modal message box with either Ok or Yes and No, and optionally Cancel.