2838 if (text.substr(0, 6)==
"CHAT: ")
2843 out <<
"<font size='-1' color='navy'>[<B>";
2845 out <<
"</B>]</FONT> " << text.substr(6);
2846 fChatText->append(out.str().c_str());
2848 if (fTabWidget->tabText(fTabWidget->currentIndex())==
"Chat")
2855 for (
int i=0;
i<fTabWidget->count();
i++)
2856 if (fTabWidget->tabText(
i)==
"Chat")
2858 fTabWidget->setTabIcon(
i, QIcon(
":/Resources/icons/warning 3.png"));
2866 out <<
"<font style='font-family:monospace' color='";
2870 case kMessage: out <<
"black";
break;
2871 case kInfo: out <<
"green";
break;
2872 case kWarn: out <<
"#FF6600";
break;
2873 case kError: out <<
"maroon";
break;
2874 case kFatal: out <<
"maroon";
break;
2875 case kDebug: out <<
"navy";
break;
2876 default: out <<
"navy";
break;
2879 out << time.
GetAsStr(
"%H:%M:%S.%f").substr(0,12);
2880 out <<
" - " << text <<
"</font>";
2882 fLogText->append(out.str().c_str());
2885 fTextEdit->append(out.str().c_str());
A warning, things that somehow might result in unexpected or unwanted bahaviour.
An info telling something which can be interesting to know.
Just a message, usually obsolete.
A message used for debugging only.
Error, something unexpected happened, but can still be handled by the program.
A comment which is always printed.
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const
An error which cannot be handled at all happend, the only solution is program termination.