LogWindow::LogWindow(QWidget *theParent) : QMainWindow(theParent), ui(new Ui::LogWindow), m_log(NULL), m_maxEntries(NULL), m_logEntryBlockFormat(new QTextBlockFormat()), m_timeStampFormat(new QTextCharFormat()), m_debugMessageFormat(new QTextCharFormat()), m_notificationFormat(new QTextCharFormat()), m_warningFormat(new QTextCharFormat()), m_errorFormat(new QTextCharFormat()), m_moleQueueIdFormat(new QTextCharFormat()), m_messageFormat(new QTextCharFormat()) { createUi(); // Restore geometry QSettings settings; settings.beginGroup("logWindow"); restoreGeometry(settings.value("geometry").toByteArray()); restoreState(settings.value("windowState").toByteArray()); settings.endGroup(); setupFormats(); connect(Logger::getInstance(), SIGNAL(newLogEntry(MoleQueue::LogEntry)), this, SLOT(addLogEntry(MoleQueue::LogEntry))); initializeLogText(); }
HLSLUtil::HLSLUtil() { setupFormats(); setupComments(); setupRules(); }