Skip to content
Snippets Groups Projects
Commit 18076635 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: add SendWarning to MsgReporter for use from MVD

parent 3f3dc0fb
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,19 @@ MsgReporter
{
this->textArea->insert(msg.c_str());
this->textArea->show_insert_position();
this->Show();
Fl::check();
}
//Send Error
void
MsgReporter
::SendWarning(const std::string & msg)
{
this->textArea->insert("WARNING: ");
this->textArea->insert(msg.c_str());
this->textArea->show_insert_position();
this->Show();
Fl::check();
}
......
......@@ -61,6 +61,8 @@ public:
virtual void SetTitle(const std::string & title);
/** Send a new message in the edit area */
virtual void SendMsg(const std::string & msg);
/** Send an warning message in the edit area */
virtual void SendWarning(const std::string& msg);
/** Send an error message in the edit area */
virtual void SendError(const std::string & msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment