38 #include <wx/txtstrm.h>
39 #include <wx/filename.h>
45 objects::ILineErrorListener* errCont,
46 const string& exception,
const string& error_msg,
const wxString& objectName)
48 if ((!errCont || errCont->Count() == 0) && exception.empty() && error_msg.empty())
52 os <<
wxT(
"<h5>") << objectName <<
wxT(
" ") <<
object <<
wxT(
"</h5>");
54 if (errCont && errCont->Count() > 0) {
55 for (
size_t i = 0;
i < errCont->Count(); ++
i) {
57 os <<
wxT(
"Line ") << lerror.
Line() <<
wxT(
". ") << wxString::FromUTF8(lerror.
Message().c_str()) <<
wxT(
"<br />");
61 if (!exception.empty()) {
62 os <<
wxT(
"<font color=\"red\">") << wxString::FromUTF8(exception.c_str()) <<
wxT(
"</font><br />");
65 if (!error_msg.empty()) {
66 os <<
wxT(
"<font color=\"red\">") << wxString::FromUTF8(error_msg.c_str()) <<
wxT(
"</font><br />");
73 if (!html.IsEmpty()) {
84 const string& exception,
const string& error_msg,
const wxString& objectName)
86 if ((!errCont || errCont->Count() == 0) && exception.empty() && error_msg.empty())
90 os <<
wxT(
"<h5>") << objectName <<
wxT(
" ") <<
object <<
wxT(
"</h5>");
92 if (errCont && errCont->Count() > 0) {
93 for (
size_t i = 0;
i < errCont->Count(); ++
i) {
99 if (!exception.empty()) {
100 os <<
wxT(
"<font color=\"red\">") << wxString::FromUTF8(exception.c_str()) <<
wxT(
"</font><br />");
103 if (!error_msg.empty()) {
104 os <<
wxT(
"<font color=\"red\">") << wxString::FromUTF8(error_msg.c_str()) <<
wxT(
"</font><br />");
111 if (!html.IsEmpty()) {
void SetHTML(wxString value)
void SetWorkDir(const wxString &workDir)
bool Create(wxWindow *parent, wxWindowID id=10049, const wxString &caption=_("Job Results"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxStringOutputStream m_Strstrm
void x_UpdateHTMLResults(const wxString &object, objects::CObjtoolsListener *errCont, const string &exception="", const string &error_msg="", const wxString &objectName=wxT("File:"))
void x_ShowErrorsDlg(const wxString &title)
void x_ShowErrorsDlg(const wxString &title)
void x_UpdateHTMLResults(const wxString &object, objects::ILineErrorListener *errCont, const string &exception="", const string &error_msg="", const wxString &objectName=wxT("File:"))
wxStringOutputStream m_Strstrm
virtual string Message() const
virtual unsigned int Line(void) const =0
static const char * SeverityName(EDiagSev sev)
Get a common symbolic name for the severity levels.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)