Kill old non-stylesheet code from UiStyle
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 8 Jun 2009 07:46:15 +0000 (09:46 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:23:28 +0000 (20:23 +0200)
Remove stuff that has been commented out for a while now and/or is no longer used
within the new styleengine.
This also disables most of the colorsettingspage for now. Consider this dialog
dysfunctional, as it will be rewritten completely or probably even obsoleted soon.

src/qtui/qtuistyle.cpp
src/qtui/qtuistyle.h
src/qtui/settingspages/appearancesettingspage.cpp
src/qtui/settingspages/appearancesettingspage.ui
src/qtui/settingspages/colorsettingspage.cpp
src/qtui/settingspages/colorsettingspage.ui
src/uisupport/qssparser.h
src/uisupport/uistyle.cpp
src/uisupport/uistyle.h

index a3f5ea3..5ea72c1 100644 (file)
 #include "qtuistyle.h"
 #include "qtuisettings.h"
 
-QtUiStyle::QtUiStyle() : UiStyle("QtUiStyle") {
-  // We need to just set our internal formats; everything else is done by the base class...
+QtUiStyle::QtUiStyle() : UiStyle() {
 
-  // Internal message formats
-  QTextCharFormat plainMsg;
-  plainMsg.setForeground(QBrush("black"));
-  setFormat(PlainMsg, plainMsg, Settings::Default);
-
-  QTextCharFormat notice;
-  notice.setForeground(QBrush("navy"));
-  setFormat(NoticeMsg, notice, Settings::Default);
-
-  QTextCharFormat server;
-  server.setForeground(QBrush("navy"));
-  setFormat(ServerMsg, server, Settings::Default);
-
-  QTextCharFormat error;
-  error.setForeground(QBrush("red"));
-  setFormat(ErrorMsg, error, Settings::Default);
-
-  QTextCharFormat join;
-  join.setForeground(QBrush("green"));
-  setFormat(JoinMsg, join, Settings::Default);
-
-  QTextCharFormat part;
-  part.setForeground(QBrush("indianred"));
-  setFormat(PartMsg, part, Settings::Default);
-
-  QTextCharFormat quit;
-  quit.setForeground(QBrush("indianred"));
-  setFormat(QuitMsg, quit, Settings::Default);
-
-  QTextCharFormat kick;
-  kick.setForeground(QBrush("indianred"));
-  setFormat(KickMsg, kick, Settings::Default);
-
-  QTextCharFormat nren;
-  nren.setForeground(QBrush("magenta"));
-  setFormat(RenameMsg, nren, Settings::Default);
-
-  QTextCharFormat mode;
-  mode.setForeground(QBrush("steelblue"));
-  setFormat(ModeMsg, mode, Settings::Default);
-
-  QTextCharFormat action;
-  action.setFontItalic(true);
-  action.setForeground(QBrush("darkmagenta"));
-  setFormat(ActionMsg, action, Settings::Default);
-
-  // Internal message element formats
-  QTextCharFormat ts;
-  ts.setForeground(QBrush("grey"));
-  setFormat(Timestamp, ts, Settings::Default);
-
-  // Set the default sender color
-  QTextCharFormat sender;
-  sender.setAnchor(true);
-  sender.setForeground(QBrush("navy"));
-  setFormat(Sender, sender, Settings::Default);
-
-  /*
-   * Fillup the list of colors used for sender auto coloring In this case
-   * These are Oxygen palette colors
-   */
-  addSenderAutoColor(SenderCol01, "#989a95");
-  addSenderAutoColor(SenderCol02, "#ef8440");
-  addSenderAutoColor(SenderCol03, "#ffbf00");
-  addSenderAutoColor(SenderCol04, "#49b13b");
-  addSenderAutoColor(SenderCol05, "#00a778");
-  addSenderAutoColor(SenderCol06, "#008b90");
-  addSenderAutoColor(SenderCol07, "#0069ba");
-  addSenderAutoColor(SenderCol08, "#563696");
-  addSenderAutoColor(SenderCol09, "#ad3597");
-  addSenderAutoColor(SenderCol10, "#e70083");
-  addSenderAutoColor(SenderCol11, "#e70f00");
-  addSenderAutoColor(SenderCol12, "#866127");
-
-  QTextCharFormat nick;
-  nick.setAnchor(true);
-  nick.setFontWeight(QFont::Bold);
-  setFormat(Nick, nick, Settings::Default);
-
-  QTextCharFormat hostmask;
-  hostmask.setFontItalic(true);
-  setFormat(Hostmask, hostmask, Settings::Default);
-
-  QTextCharFormat channel;
-  channel.setAnchor(true);
-  channel.setFontWeight(QFont::Bold);
-  setFormat(ChannelName, channel, Settings::Default);
-
-  QTextCharFormat flags;
-  flags.setFontWeight(QFont::Bold);
-  setFormat(ModeFlags, flags, Settings::Default);
-
-  QTextCharFormat url;
-  url.setFontUnderline(true);
-  url.setAnchor(true);
-  setFormat(Url, url, Settings::Default);
-
-  QtUiStyleSettings s;
-  _highlightColor = s.highlightColor();
-  if(!_highlightColor.isValid()) _highlightColor = QColor("lightcoral");
 }
 
 QtUiStyle::~QtUiStyle() {}
@@ -133,10 +32,3 @@ void QtUiStyle::setHighlightColor(const QColor &col) {
   QtUiStyleSettings s;
   s.setHighlightColor(col);
 }
-
-void QtUiStyle::addSenderAutoColor(FormatType type, const QString name) {
-  QTextCharFormat autoColor;
-  autoColor.setAnchor(true);
-  autoColor.setForeground(QBrush(QColor(name)));
-  setFormat(type, autoColor, Settings::Default);
-}
index 805ce4f..270e248 100644 (file)
@@ -34,9 +34,6 @@ public:
   virtual inline QColor highlightColor() const { return _highlightColor; }
   virtual void setHighlightColor(const QColor &);
 
-protected:
-  void inline addSenderAutoColor( FormatType type, const QString name );
-
 private:
   QColor _highlightColor;
 };
index 29b9335..3346eeb 100644 (file)
@@ -144,8 +144,8 @@ void AppearanceSettingsPage::loadFonts(Settings::Mode mode) {
     bufferViewFont = s.value("BufferView", QFont()).value<QFont>();
   setFont(ui.demoBufferView, bufferViewFont);
 
-  QTextCharFormat chatFormat = QtUi::style()->format(UiStyle::None, mode);
-  setFont(ui.demoChatView, chatFormat.font());
+  //QTextCharFormat chatFormat = QtUi::style()->cachedFormat(UiStyle::None, 0); // FIXME
+  //setFont(ui.demoChatView, chatFormat.font());
 
   _fontsChanged = false;
 }
@@ -183,9 +183,9 @@ void AppearanceSettingsPage::save() {
   else
     fontSettings.setValue("BufferView", "");
 
-  QTextCharFormat chatFormat = QtUi::style()->format(UiStyle::None);
-  chatFormat.setFont(ui.demoChatView->font());
-  QtUi::style()->setFormat(UiStyle::None, chatFormat, Settings::Custom);
+  //QTextCharFormat chatFormat = QtUi::style()->format(UiStyle::None);
+  //chatFormat.setFont(ui.demoChatView->font());
+  //QtUi::style()->setFormat(UiStyle::None, chatFormat, Settings::Custom);
 
   _fontsChanged = false;
 
index a988b83..87f871d 100644 (file)
    </item>
    <item>
     <widget class="QGroupBox" name="groupBox_4">
+     <property name="enabled">
+      <bool>true</bool>
+     </property>
      <property name="title">
       <string>Fonts</string>
      </property>
      <layout class="QGridLayout" name="gridLayout">
       <item row="0" column="0">
        <widget class="QLabel" name="label_2">
+        <property name="enabled">
+         <bool>false</bool>
+        </property>
         <property name="toolTip">
          <string>Set font for the main chat window and the chat monitor</string>
         </property>
@@ -74,6 +80,9 @@
       </item>
       <item row="0" column="1">
        <widget class="QLabel" name="demoChatView">
+        <property name="enabled">
+         <bool>false</bool>
+        </property>
         <property name="sizePolicy">
          <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
           <horstretch>0</horstretch>
       </item>
       <item row="0" column="2">
        <widget class="QPushButton" name="chooseChatView">
+        <property name="enabled">
+         <bool>false</bool>
+        </property>
         <property name="sizePolicy">
          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
           <horstretch>0</horstretch>
index bf44ce7..2eb20c0 100644 (file)
@@ -93,7 +93,7 @@ void ColorSettingsPage::defaultBufferview() {
   ui.otherActivityUseBG->setChecked(false);
 }
 
-void ColorSettingsPage::defaultServerActivity() {
+void ColorSettingsPage::defaultServerActivity() { /*
   ui.errorMessageFG->setColor(QtUi::style()->format(UiStyle::ErrorMsg, Settings::Default).foreground().color());
   ui.errorMessageBG->setColor(QColor("white"));
   ui.errorMessageBG->setEnabled(false);
@@ -110,10 +110,10 @@ void ColorSettingsPage::defaultServerActivity() {
   ui.serverMessageBG->setColor(QColor("white"));
   ui.serverMessageBG->setEnabled(false);
   ui.serverMessageUseBG->setChecked(false);
-  ui.highlightColor->setColor(QColor("lightcoral"));
+  ui.highlightColor->setColor(QColor("lightcoral")); */
 }
 
-void ColorSettingsPage::defaultUserActivity() {
+void ColorSettingsPage::defaultUserActivity() { /*
   ui.actionMessageFG->setColor(QtUi::style()->format(UiStyle::ActionMsg, Settings::Default).foreground().color());
   ui.actionMessageBG->setColor(QColor("white"));
   ui.actionMessageBG->setEnabled(false);
@@ -141,10 +141,10 @@ void ColorSettingsPage::defaultUserActivity() {
   ui.renameMessageFG->setColor(QtUi::style()->format(UiStyle::RenameMsg, Settings::Default).foreground().color());
   ui.renameMessageBG->setColor(QColor("white"));
   ui.renameMessageBG->setEnabled(false);
-  ui.renameMessageUseBG->setChecked(false);
+  ui.renameMessageUseBG->setChecked(false); */
 }
 
-void ColorSettingsPage::defaultMessage() {
+void ColorSettingsPage::defaultMessage() { /*
   ui.timestampFG->setColor(QtUi::style()->format(UiStyle::Timestamp, Settings::Default).foreground().color());
   ui.timestampBG->setColor(QColor("white"));
   ui.timestampBG->setEnabled(false);
@@ -154,7 +154,7 @@ void ColorSettingsPage::defaultMessage() {
   ui.senderBG->setEnabled(false);
   ui.senderUseBG->setChecked(false);
   ui.senderAutoColor->setChecked(false);
-  ui.newMsgMarkerFG->setColor(Qt::red);
+  ui.newMsgMarkerFG->setColor(Qt::red); */
 
   /*
   ui.nickFG->setColor(QColor("black"));
@@ -180,7 +180,7 @@ void ColorSettingsPage::defaultMessage() {
   */
 }
 
-void ColorSettingsPage::defaultMircColorCodes() {
+void ColorSettingsPage::defaultMircColorCodes() { /*
   ui.color0->setColor(QtUi::style()->format(UiStyle::FgCol00, Settings::Default).foreground().color());
   ui.color1->setColor(QtUi::style()->format(UiStyle::FgCol01, Settings::Default).foreground().color());
   ui.color2->setColor(QtUi::style()->format(UiStyle::FgCol02, Settings::Default).foreground().color());
@@ -196,7 +196,7 @@ void ColorSettingsPage::defaultMircColorCodes() {
   ui.color12->setColor(QtUi::style()->format(UiStyle::FgCol12, Settings::Default).foreground().color());
   ui.color13->setColor(QtUi::style()->format(UiStyle::FgCol13, Settings::Default).foreground().color());
   ui.color14->setColor(QtUi::style()->format(UiStyle::FgCol14, Settings::Default).foreground().color());
-  ui.color15->setColor(QtUi::style()->format(UiStyle::FgCol15, Settings::Default).foreground().color());
+  ui.color15->setColor(QtUi::style()->format(UiStyle::FgCol15, Settings::Default).foreground().color()); */
 }
 
 void ColorSettingsPage::defaultNickview() {
@@ -246,7 +246,7 @@ void ColorSettingsPage::load() {
   ui.otherActivityBG->setColor(settings["OtherActivityBG"].value<QColor>());
   settings["OtherActivityUseBG"] = s.value("otherActivityUseBG");
   ui.otherActivityUseBG->setChecked(settings["OtherActivityUseBG"].toBool());
-
+/*
   ui.actionMessageFG->setColor(QtUi::style()->format(UiStyle::ActionMsg).foreground().color());
   ui.errorMessageFG->setColor(QtUi::style()->format(UiStyle::ErrorMsg).foreground().color());
   ui.joinMessageFG->setColor(QtUi::style()->format(UiStyle::JoinMsg).foreground().color());
@@ -270,7 +270,7 @@ void ColorSettingsPage::load() {
   ui.quitMessageBG->setColor(QtUi::style()->format(UiStyle::QuitMsg).background().color());
   ui.renameMessageBG->setColor(QtUi::style()->format(UiStyle::RenameMsg).background().color());
   ui.serverMessageBG->setColor(QtUi::style()->format(UiStyle::ServerMsg).background().color());
-
+*/
   // FIXME set to false if appropriate
   settings["ActionMessageUseBG"] = s.value("actionMessageUseBG", QVariant(false));
   if(settings["ActionMessageUseBG"].toBool()) {
@@ -327,7 +327,7 @@ void ColorSettingsPage::load() {
     ui.serverMessageUseBG->setChecked(true);
     ui.serverMessageBG->setEnabled(true);
   }
-
+/*
   ui.timestampFG->setColor(QtUi::style()->format(UiStyle::Timestamp).foreground().color());
   ui.timestampBG->setColor(QtUi::style()->format(UiStyle::Timestamp).background().color());
   ui.senderFG->setColor(QtUi::style()->format(UiStyle::Sender).foreground().color());
@@ -337,6 +337,7 @@ void ColorSettingsPage::load() {
   ui.senderFG->setEnabled(!settings["SenderAutoColor"].toBool());
 
   ui.senderAutoColor->setChecked(settings["SenderAutoColor"].toBool());
+*/
   settings["NewMsgMarkerFG"] = s.value("newMsgMarkerFG", QColor(Qt::red));
   ui.newMsgMarkerFG->setColor(settings["NewMsgMarkerFG"].value<QColor>());
 
@@ -350,7 +351,7 @@ void ColorSettingsPage::load() {
     ui.senderUseBG->setChecked(true);
     ui.senderBG ->setEnabled(true);
   }
-
+/*
   ui.nickFG->setColor(QtUi::style()->format(UiStyle::Nick).foreground().color());
   ui.nickBG->setColor(QtUi::style()->format(UiStyle::Nick).background().color());
   ui.hostmaskFG->setColor(QtUi::style()->format(UiStyle::Hostmask).foreground().color());
@@ -361,9 +362,9 @@ void ColorSettingsPage::load() {
   ui.modeFlagsBG->setColor(QtUi::style()->format(UiStyle::ModeFlags).background().color());
   ui.urlFG->setColor(QtUi::style()->format(UiStyle::Url).foreground().color());
   ui.urlBG->setColor(QtUi::style()->format(UiStyle::Url).background().color());
-
+*/
   ui.highlightColor->setColor(QtUi::style()->highlightColor());
-
+/*
   ui.color0->setColor(QtUi::style()->format(UiStyle::FgCol00).foreground().color());
   ui.color1->setColor(QtUi::style()->format(UiStyle::FgCol01).foreground().color());
   ui.color2->setColor(QtUi::style()->format(UiStyle::FgCol02).foreground().color());
@@ -380,7 +381,7 @@ void ColorSettingsPage::load() {
   ui.color13->setColor(QtUi::style()->format(UiStyle::FgCol13).foreground().color());
   ui.color14->setColor(QtUi::style()->format(UiStyle::FgCol14).foreground().color());
   ui.color15->setColor(QtUi::style()->format(UiStyle::FgCol15).foreground().color());
-
+*/
   settings["OnlineStatusFG"] = s.value("onlineStatusFG", QVariant(QColor(Qt::black)));
   ui.onlineStatusFG->setColor(settings["OnlineStatusFG"].value<QColor>());
   settings["OnlineStatusBG"] = s.value("onlineStatusBG", QVariant(QColor(Qt::white)));
@@ -450,7 +451,7 @@ void ColorSettingsPage::save() {
   saveColor(UiStyle::Sender, ui.senderFG->color(), ui.senderBG->color(), ui.senderUseBG->isChecked());
   s.setValue("senderUseBG", ui.senderUseBG->isChecked());
   s.setValue("SenderAutoColor", ui.senderAutoColor->isChecked());
-  QtUi::style()->setSenderAutoColor(ui.senderAutoColor->isChecked());
+  //QtUi::style()->setSenderAutoColor(ui.senderAutoColor->isChecked());
   s.setValue("newMsgMarkerFG", ui.newMsgMarkerFG->color());
 
   /*
@@ -494,20 +495,20 @@ void ColorSettingsPage::save() {
   setChangedState(false);
 }
 
-void ColorSettingsPage::saveColor(UiStyle::FormatType formatType, const QColor &foreground, const QColor &background, bool enableBG) {
+void ColorSettingsPage::saveColor(UiStyle::FormatType /*formatType*/, const QColor &/*foreground*/, const QColor &/*background*/, bool /*enableBG*/) { /*
   QTextCharFormat format = QtUi::style()->format(formatType);
   format.setForeground(QBrush(foreground));
   if(enableBG)
     format.setBackground(QBrush(background));
   else
     format.clearBackground();
-  QtUi::style()->setFormat(formatType, format, Settings::Custom);
+  QtUi::style()->setFormat(formatType, format, Settings::Custom); */
 }
 
-void ColorSettingsPage::saveMircColor(int num, const QColor &col) {
+void ColorSettingsPage::saveMircColor(int /*num*/, const QColor &/*col*/) { /*
   QTextCharFormat fgf, bgf;
   fgf.setForeground(QBrush(col)); QtUi::style()->setFormat((UiStyle::FormatType)(UiStyle::FgCol00 | num<<24), fgf, Settings::Custom);
-  bgf.setBackground(QBrush(col)); QtUi::style()->setFormat((UiStyle::FormatType)(UiStyle::BgCol00 | num<<28), bgf, Settings::Custom);
+  bgf.setBackground(QBrush(col)); QtUi::style()->setFormat((UiStyle::FormatType)(UiStyle::BgCol00 | num<<28), bgf, Settings::Custom); */
 }
 
 void ColorSettingsPage::widgetHasChanged() {
@@ -535,7 +536,7 @@ bool ColorSettingsPage::testHasChanged() {
   if(settings["OtherActivityFG"].value<QColor>() != ui.otherActivityFG->color()) return true;
   if(settings["OtherActivityBG"].value<QColor>() != ui.otherActivityBG->color()) return true;
   if(settings["OtherActivityUseBG"].toBool() != ui.otherActivityUseBG->isChecked()) return true;
-
+/*
   if(QtUi::style()->format(UiStyle::ErrorMsg).foreground().color() != ui.errorMessageFG->color()) return true;
   if(QtUi::style()->format(UiStyle::ErrorMsg).background().color() != ui.errorMessageBG->color()) return true;
   if(settings["ErrorMessageUseBG"].toBool() != ui.errorMessageUseBG->isChecked()) return true;
@@ -572,9 +573,9 @@ bool ColorSettingsPage::testHasChanged() {
   if(QtUi::style()->format(UiStyle::RenameMsg).foreground().color() != ui.renameMessageFG->color()) return true;
   if(QtUi::style()->format(UiStyle::RenameMsg).background().color() != ui.renameMessageBG->color()) return true;
   if(settings["RenameMessageUseBG"].toBool() != ui.renameMessageUseBG->isChecked()) return true;
-
+*/
   if(QtUi::style()->highlightColor() != ui.highlightColor->color()) return true;
-
+/*
   if(QtUi::style()->format(UiStyle::Timestamp).foreground().color() != ui.timestampFG->color()) return true;
   if(QtUi::style()->format(UiStyle::Timestamp).background().color() != ui.timestampBG->color()) return true;
   if(settings["TimestampUseBG"].toBool() != ui.timestampUseBG->isChecked()) return true;
@@ -582,6 +583,7 @@ bool ColorSettingsPage::testHasChanged() {
   if(QtUi::style()->format(UiStyle::Sender).background().color() != ui.senderBG->color()) return true;
   if(settings["SenderUseBG"].toBool() != ui.senderUseBG->isChecked()) return true;
   if(settings["SenderAutoColor"].toBool() != ui.senderAutoColor->isChecked()) return true;
+*/
   if(settings["NewMsgMarkerFG"].value<QColor>() != ui.newMsgMarkerFG->color()) return true;
 
   /*
@@ -601,7 +603,7 @@ bool ColorSettingsPage::testHasChanged() {
   if(QtUi::style()->format(UiStyle::Url).background().color() != ui.urlBG->color()) return true;
   if(settings["urlUseBG"].toBool() != ui.urlUseBG->isChecked()) return true;
   */
-
+/*
   if(QtUi::style()->format(UiStyle::FgCol00).foreground().color() != ui.color0->color()) return true;
   if(QtUi::style()->format(UiStyle::FgCol01).foreground().color() != ui.color1->color()) return true;
   if(QtUi::style()->format(UiStyle::FgCol02).foreground().color() != ui.color2->color()) return true;
@@ -618,7 +620,7 @@ bool ColorSettingsPage::testHasChanged() {
   if(QtUi::style()->format(UiStyle::FgCol13).foreground().color() != ui.color13->color()) return true;
   if(QtUi::style()->format(UiStyle::FgCol14).foreground().color() != ui.color14->color()) return true;
   if(QtUi::style()->format(UiStyle::FgCol15).foreground().color() != ui.color15->color()) return true;
-
+*/
   if(settings["OnlineStatusFG"].value<QColor>() != ui.onlineStatusFG->color()) return true;
   if(settings["OnlineStatusBG"].value<QColor>() != ui.onlineStatusBG->color()) return true;
   if(settings["OnlineStatusUseBG"].toBool() != ui.onlineStatusUseBG->isChecked()) return true;
index 6d0fee9..bf7fe08 100644 (file)
@@ -1,7 +1,8 @@
-<ui version="4.0" >
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
  <class>ColorSettingsPage</class>
- <widget class="QWidget" name="ColorSettingsPage" >
-  <property name="geometry" >
+ <widget class="QWidget" name="ColorSettingsPage">
+  <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <height>442</height>
    </rect>
   </property>
-  <property name="sizePolicy" >
-   <sizepolicy vsizetype="Maximum" hsizetype="Maximum" >
+  <property name="sizePolicy">
+   <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
     <horstretch>0</horstretch>
     <verstretch>0</verstretch>
    </sizepolicy>
   </property>
-  <property name="windowTitle" >
+  <property name="windowTitle">
    <string>Form</string>
   </property>
-  <layout class="QHBoxLayout" >
+  <layout class="QHBoxLayout">
    <item>
-    <widget class="QTabWidget" name="tabWidget" >
-     <property name="currentIndex" >
+    <widget class="QTabWidget" name="tabWidget">
+     <property name="enabled">
+      <bool>true</bool>
+     </property>
+     <property name="currentIndex">
       <number>0</number>
      </property>
-     <widget class="QWidget" name="bufferview" >
-      <attribute name="title" >
+     <widget class="QWidget" name="bufferview">
+      <attribute name="title">
        <string>Bufferview</string>
       </attribute>
-      <layout class="QGridLayout" >
-       <item row="0" column="0" >
-        <widget class="QGroupBox" name="groupBox_6" >
-         <property name="title" >
+      <layout class="QGridLayout">
+       <item row="0" column="0">
+        <widget class="QGroupBox" name="groupBox_6">
+         <property name="title">
           <string>Activities:</string>
          </property>
-         <layout class="QGridLayout" >
-          <item row="0" column="1" >
-           <widget class="QLabel" name="label" >
-            <property name="text" >
+         <layout class="QGridLayout">
+          <item row="0" column="1">
+           <widget class="QLabel" name="label">
+            <property name="text">
              <string>Foreground</string>
             </property>
-            <property name="alignment" >
+            <property name="alignment">
              <set>Qt::AlignCenter</set>
             </property>
            </widget>
           </item>
-          <item row="0" column="2" >
-           <widget class="QLabel" name="label_2" >
-            <property name="text" >
+          <item row="0" column="2">
+           <widget class="QLabel" name="label_2">
+            <property name="text">
              <string>BG</string>
             </property>
-            <property name="alignment" >
+            <property name="alignment">
              <set>Qt::AlignCenter</set>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="0" column="3" >
-           <widget class="QLabel" name="label_3" >
-            <property name="text" >
+          <item row="0" column="3">
+           <widget class="QLabel" name="label_3">
+            <property name="text">
              <string>Use BG</string>
             </property>
-            <property name="alignment" >
+            <property name="alignment">
              <set>Qt::AlignCenter</set>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="1" column="0" >
-           <widget class="QLabel" name="label_43" >
-            <property name="text" >
+          <item row="1" column="0">
+           <widget class="QLabel" name="label_43">
+            <property name="text">
              <string>Default:</string>
             </property>
            </widget>
           </item>
-          <item row="1" column="1" >
-           <widget class="ColorButton" name="noActivityFG" >
-            <property name="text" >
+          <item row="1" column="1">
+           <widget class="ColorButton" name="noActivityFG">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="1" column="2" >
-           <widget class="ColorButton" name="noActivityBG" >
-            <property name="enabled" >
+          <item row="1" column="2">
+           <widget class="ColorButton" name="noActivityBG">
+            <property name="enabled">
              <bool>false</bool>
             </property>
-            <property name="sizePolicy" >
-             <sizepolicy vsizetype="Maximum" hsizetype="Maximum" >
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="1" column="3" >
-           <widget class="QCheckBox" name="noActivityUseBG" >
-            <property name="sizePolicy" >
-             <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+          <item row="1" column="3">
+           <widget class="QCheckBox" name="noActivityUseBG">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="2" column="0" >
-           <widget class="QLabel" name="label_42" >
-            <property name="text" >
+          <item row="2" column="0">
+           <widget class="QLabel" name="label_42">
+            <property name="text">
              <string>Inactive:</string>
             </property>
            </widget>
           </item>
-          <item row="2" column="1" >
-           <widget class="ColorButton" name="inactiveActivityFG" >
-            <property name="text" >
+          <item row="2" column="1">
+           <widget class="ColorButton" name="inactiveActivityFG">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="2" column="2" >
-           <widget class="ColorButton" name="inactiveActivityBG" >
-            <property name="enabled" >
+          <item row="2" column="2">
+           <widget class="ColorButton" name="inactiveActivityBG">
+            <property name="enabled">
              <bool>false</bool>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="2" column="3" >
-           <widget class="QCheckBox" name="inactiveActivityUseBG" >
-            <property name="sizePolicy" >
-             <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+          <item row="2" column="3">
+           <widget class="QCheckBox" name="inactiveActivityUseBG">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
-            <property name="layoutDirection" >
+            <property name="layoutDirection">
              <enum>Qt::LeftToRight</enum>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="3" column="0" >
-           <widget class="QLabel" name="label_39" >
-            <property name="text" >
+          <item row="3" column="0">
+           <widget class="QLabel" name="label_39">
+            <property name="text">
              <string>Highlight:</string>
             </property>
            </widget>
           </item>
-          <item row="3" column="1" >
-           <widget class="ColorButton" name="highlightActivityFG" >
-            <property name="text" >
+          <item row="3" column="1">
+           <widget class="ColorButton" name="highlightActivityFG">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="3" column="2" >
-           <widget class="ColorButton" name="highlightActivityBG" >
-            <property name="enabled" >
+          <item row="3" column="2">
+           <widget class="ColorButton" name="highlightActivityBG">
+            <property name="enabled">
              <bool>false</bool>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="3" column="3" >
-           <widget class="QCheckBox" name="highlightActivityUseBG" >
-            <property name="sizePolicy" >
-             <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+          <item row="3" column="3">
+           <widget class="QCheckBox" name="highlightActivityUseBG">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="4" column="0" >
-           <widget class="QLabel" name="label_40" >
-            <property name="text" >
+          <item row="4" column="0">
+           <widget class="QLabel" name="label_40">
+            <property name="text">
              <string>New Message:</string>
             </property>
            </widget>
           </item>
-          <item row="4" column="1" >
-           <widget class="ColorButton" name="newMessageActivityFG" >
-            <property name="text" >
+          <item row="4" column="1">
+           <widget class="ColorButton" name="newMessageActivityFG">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="4" column="2" >
-           <widget class="ColorButton" name="newMessageActivityBG" >
-            <property name="enabled" >
+          <item row="4" column="2">
+           <widget class="ColorButton" name="newMessageActivityBG">
+            <property name="enabled">
              <bool>false</bool>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="4" column="3" >
-           <widget class="QCheckBox" name="newMessageActivityUseBG" >
-            <property name="sizePolicy" >
-             <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+          <item row="4" column="3">
+           <widget class="QCheckBox" name="newMessageActivityUseBG">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="5" column="0" >
-           <widget class="QLabel" name="label_41" >
-            <property name="text" >
+          <item row="5" column="0">
+           <widget class="QLabel" name="label_41">
+            <property name="text">
              <string>Other Activity:</string>
             </property>
            </widget>
           </item>
-          <item row="5" column="1" >
-           <widget class="ColorButton" name="otherActivityFG" >
-            <property name="text" >
+          <item row="5" column="1">
+           <widget class="ColorButton" name="otherActivityFG">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="5" column="2" >
-           <widget class="ColorButton" name="otherActivityBG" >
-            <property name="enabled" >
+          <item row="5" column="2">
+           <widget class="ColorButton" name="otherActivityBG">
+            <property name="enabled">
              <bool>false</bool>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="5" column="3" >
-           <widget class="QCheckBox" name="otherActivityUseBG" >
-            <property name="sizePolicy" >
-             <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+          <item row="5" column="3">
+           <widget class="QCheckBox" name="otherActivityUseBG">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
-            <property name="text" >
+            <property name="text">
              <string/>
             </property>
-            <property name="NotInUse" stdset="0" >
+            <property name="NotInUse" stdset="0">
              <bool>true</bool>
             </property>
            </widget>
           </item>
-          <item row="6" column="0" >
+          <item row="6" column="0">
            <spacer>
-            <property name="orientation" >
+            <property name="orientation">
              <enum>Qt::Vertical</enum>
             </property>
-            <property name="sizeHint" stdset="0" >
+            <property name="sizeHint" stdset="0">
              <size>
               <width>20</width>
               <height>40</height>
          </layout>
         </widget>
        </item>
-       <item row="0" column="1" >
-        <widget class="QGroupBox" name="groupBox_7" >
-         <property name="title" >
+       <item row="0" column="1">
+        <widget class="QGroupBox" name="groupBox_7">
+         <property name="title">
           <string>Preview:</string>
          </property>
-         <layout class="QVBoxLayout" >
+         <layout class="QVBoxLayout">
           <item>
-           <widget class="QTreeWidget" name="bufferviewPreview" >
+           <widget class="QTreeWidget" name="bufferviewPreview">
             <column>
-             <property name="text" >
+             <property name="text">
               <string>1</string>
              </property>
             </column>
          </layout>
         </widget>
        </item>
-       <item row="1" column="0" colspan="2" >
+       <item row="1" column="0" colspan="2">
         <spacer>
-         <property name="orientation" >
+         <property name="orientation">
           <enum>Qt::Vertical</enum>
          </property>
-         <property name="sizeHint" stdset="0" >
+         <property name="sizeHint" stdset="0">
           <size>
            <width>318</width>
            <height>171</height>
        </item>
       </layout>
      </widget>
-     <widget class="QWidget" name="chatview" >
-      <attribute name="title" >
+     <widget class="QWidget" name="nickview">
+      <attribute name="title">
+       <string>Nickview</string>
+      </attribute>
+      <layout class="QGridLayout">
+       <item row="0" column="0" colspan="2">
+        <widget class="QGroupBox" name="groupBox_8">
+         <property name="title">
+          <string>Nick status:</string>
+         </property>
+         <layout class="QGridLayout">
+          <item row="0" column="1">
+           <widget class="QLabel" name="label_4">
+            <property name="text">
+             <string>Foreground</string>
+            </property>
+            <property name="alignment">
+             <set>Qt::AlignCenter</set>
+            </property>
+           </widget>
+          </item>
+          <item row="0" column="2">
+           <widget class="QLabel" name="label_5">
+            <property name="text">
+             <string>BG</string>
+            </property>
+            <property name="alignment">
+             <set>Qt::AlignCenter</set>
+            </property>
+            <property name="NotInUse" stdset="0">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
+          <item row="0" column="3">
+           <widget class="QLabel" name="label_6">
+            <property name="text">
+             <string>Use BG</string>
+            </property>
+            <property name="alignment">
+             <set>Qt::AlignCenter</set>
+            </property>
+            <property name="NotInUse" stdset="0">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
+          <item row="1" column="0">
+           <widget class="QLabel" name="label_62">
+            <property name="text">
+             <string>Online:</string>
+            </property>
+           </widget>
+          </item>
+          <item row="1" column="1">
+           <widget class="ColorButton" name="onlineStatusFG">
+            <property name="text">
+             <string/>
+            </property>
+           </widget>
+          </item>
+          <item row="1" column="2">
+           <widget class="ColorButton" name="onlineStatusBG">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="NotInUse" stdset="0">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
+          <item row="1" column="3">
+           <widget class="QCheckBox" name="onlineStatusUseBG">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+              <horstretch>0</horstretch>
+              <verstretch>0</verstretch>
+             </sizepolicy>
+            </property>
+            <property name="layoutDirection">
+             <enum>Qt::LeftToRight</enum>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="NotInUse" stdset="0">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
+          <item row="2" column="0">
+           <widget class="QLabel" name="label_63">
+            <property name="text">
+             <string>Away:</string>
+            </property>
+           </widget>
+          </item>
+          <item row="2" column="1">
+           <widget class="ColorButton" name="awayStatusFG">
+            <property name="text">
+             <string/>
+            </property>
+           </widget>
+          </item>
+          <item row="2" column="2">
+           <widget class="ColorButton" name="awayStatusBG">
+            <property name="enabled">
+             <bool>false</bool>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="NotInUse" stdset="0">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
+          <item row="2" column="3">
+           <widget class="QCheckBox" name="awayStatusUseBG">
+            <property name="sizePolicy">
+             <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+              <horstretch>0</horstretch>
+              <verstretch>0</verstretch>
+             </sizepolicy>
+            </property>
+            <property name="text">
+             <string/>
+            </property>
+            <property name="NotInUse" stdset="0">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
+          <item row="3" column="0">
+           <spacer>
+            <property name="orientation">
+             <enum>Qt::Vertical</enum>
+            </property>
+            <property name="sizeHint" stdset="0">
+             <size>
+              <width>20</width>
+              <height>40</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
+         </layout>
+        </widget>
+       </item>
+       <item row="1" column="0" colspan="2">
+        <spacer>
+         <property name="orientation">
+          <enum>Qt::Vertical</enum>
+         </property>
+         <property name="sizeHint" stdset="0">
+          <size>
+           <width>261</width>
+           <height>151</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+      </layout>
+     </widget>
+     <widget class="QWidget" name="chatview">
+      <attribute name="title">
        <string>Chatview</string>
       </attribute>
-      <layout class="QVBoxLayout" >
+      <layout class="QVBoxLayout">
        <item>
-        <widget class="QTabWidget" name="tabWidget_2" >
-         <property name="sizePolicy" >
-          <sizepolicy vsizetype="Maximum" hsizetype="Expanding" >
+        <widget class="QTabWidget" name="tabWidget_2">
+         <property name="enabled">
+          <bool>false</bool>
+         </property>
+         <property name="sizePolicy">
+          <sizepolicy hsizetype="Expanding" vsizetype="Maximum">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
-         <property name="currentIndex" >
+         <property name="currentIndex">
           <number>0</number>
          </property>
-         <widget class="QWidget" name="tab" >
-          <attribute name="title" >
+         <widget class="QWidget" name="tab">
+          <attribute name="title">
            <string>Server Activity</string>
           </attribute>
-          <layout class="QGridLayout" >
-           <item row="6" column="1" >
+          <layout class="QGridLayout">
+           <item row="6" column="1">
             <spacer>
-             <property name="orientation" >
+             <property name="orientation">
               <enum>Qt::Vertical</enum>
              </property>
-             <property name="sizeHint" stdset="0" >
+             <property name="sizeHint" stdset="0">
               <size>
                <width>20</width>
                <height>40</height>
              </property>
             </spacer>
            </item>
-           <item row="0" column="1" >
-            <widget class="QLabel" name="label_44" >
-             <property name="text" >
+           <item row="0" column="1">
+            <widget class="QLabel" name="label_44">
+             <property name="text">
               <string>Foreground</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
             </widget>
            </item>
-           <item row="0" column="2" >
-            <widget class="QLabel" name="label_45" >
-             <property name="text" >
+           <item row="0" column="2">
+            <widget class="QLabel" name="label_45">
+             <property name="text">
               <string>Background</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
             </widget>
            </item>
-           <item row="0" column="3" >
-            <widget class="QLabel" name="label_7" >
-             <property name="text" >
+           <item row="0" column="3">
+            <widget class="QLabel" name="label_7">
+             <property name="text">
               <string>Use BG</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="1" column="0" >
-            <widget class="QLabel" name="label_20" >
-             <property name="text" >
+           <item row="1" column="0">
+            <widget class="QLabel" name="label_20">
+             <property name="text">
               <string>Error Message:</string>
              </property>
             </widget>
            </item>
-           <item row="1" column="1" >
-            <widget class="ColorButton" name="errorMessageFG" >
-             <property name="text" >
+           <item row="1" column="1">
+            <widget class="ColorButton" name="errorMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="1" column="2" >
-            <widget class="ColorButton" name="errorMessageBG" >
-             <property name="enabled" >
+           <item row="1" column="2">
+            <widget class="ColorButton" name="errorMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="1" column="3" >
-            <widget class="QCheckBox" name="errorMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="1" column="3">
+            <widget class="QCheckBox" name="errorMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="2" column="0" >
-            <widget class="QLabel" name="label_18" >
-             <property name="text" >
+           <item row="2" column="0">
+            <widget class="QLabel" name="label_18">
+             <property name="text">
               <string>Notice Message:</string>
              </property>
             </widget>
            </item>
-           <item row="2" column="1" >
-            <widget class="ColorButton" name="noticeMessageFG" >
-             <property name="text" >
+           <item row="2" column="1">
+            <widget class="ColorButton" name="noticeMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="2" column="2" >
-            <widget class="ColorButton" name="noticeMessageBG" >
-             <property name="enabled" >
+           <item row="2" column="2">
+            <widget class="ColorButton" name="noticeMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="2" column="3" >
-            <widget class="QCheckBox" name="noticeMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="2" column="3">
+            <widget class="QCheckBox" name="noticeMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="3" column="0" >
-            <widget class="QLabel" name="label_17" >
-             <property name="text" >
+           <item row="3" column="0">
+            <widget class="QLabel" name="label_17">
+             <property name="text">
               <string>Plain Message:</string>
              </property>
             </widget>
            </item>
-           <item row="3" column="1" >
-            <widget class="ColorButton" name="plainMessageFG" >
-             <property name="text" >
+           <item row="3" column="1">
+            <widget class="ColorButton" name="plainMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="3" column="2" >
-            <widget class="ColorButton" name="plainMessageBG" >
-             <property name="enabled" >
+           <item row="3" column="2">
+            <widget class="ColorButton" name="plainMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="3" column="3" >
-            <widget class="QCheckBox" name="plainMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="3" column="3">
+            <widget class="QCheckBox" name="plainMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="4" column="0" >
-            <widget class="QLabel" name="label_19" >
-             <property name="text" >
+           <item row="4" column="0">
+            <widget class="QLabel" name="label_19">
+             <property name="text">
               <string>Server Message:</string>
              </property>
             </widget>
            </item>
-           <item row="4" column="1" >
-            <widget class="ColorButton" name="serverMessageFG" >
-             <property name="text" >
+           <item row="4" column="1">
+            <widget class="ColorButton" name="serverMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="4" column="2" >
-            <widget class="ColorButton" name="serverMessageBG" >
-             <property name="enabled" >
+           <item row="4" column="2">
+            <widget class="ColorButton" name="serverMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="4" column="3" >
-            <widget class="QCheckBox" name="serverMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="4" column="3">
+            <widget class="QCheckBox" name="serverMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="5" column="0" colspan="2" >
-            <widget class="QLabel" name="label_10" >
-             <property name="text" >
+           <item row="5" column="0" colspan="2">
+            <widget class="QLabel" name="label_10">
+             <property name="text">
               <string>Highlight Message:</string>
              </property>
             </widget>
            </item>
-           <item row="5" column="2" >
-            <widget class="ColorButton" name="highlightColor" >
-             <property name="enabled" >
-              <bool>true</bool>
+           <item row="5" column="2">
+            <widget class="ColorButton" name="highlightColor">
+             <property name="enabled">
+              <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
           </layout>
          </widget>
-         <widget class="QWidget" name="tab_2" >
-          <attribute name="title" >
+         <widget class="QWidget" name="tab_2">
+          <attribute name="title">
            <string>User Activity</string>
           </attribute>
-          <layout class="QGridLayout" >
-           <item row="0" column="1" >
-            <widget class="QLabel" name="label_35" >
-             <property name="text" >
+          <layout class="QGridLayout">
+           <item row="0" column="1">
+            <widget class="QLabel" name="label_35">
+             <property name="text">
               <string>Foreground</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
             </widget>
            </item>
-           <item row="0" column="2" >
-            <widget class="QLabel" name="label_36" >
-             <property name="text" >
+           <item row="0" column="2">
+            <widget class="QLabel" name="label_36">
+             <property name="text">
               <string>Background</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="0" column="3" >
-            <widget class="QLabel" name="label_8" >
-             <property name="text" >
+           <item row="0" column="3">
+            <widget class="QLabel" name="label_8">
+             <property name="text">
               <string>Use BG</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="1" column="0" >
-            <widget class="QLabel" name="label_27" >
-             <property name="text" >
+           <item row="1" column="0">
+            <widget class="QLabel" name="label_27">
+             <property name="text">
               <string>Action Message:</string>
              </property>
             </widget>
            </item>
-           <item row="1" column="1" >
-            <widget class="ColorButton" name="actionMessageFG" >
-             <property name="text" >
+           <item row="1" column="1">
+            <widget class="ColorButton" name="actionMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="1" column="2" >
-            <widget class="ColorButton" name="actionMessageBG" >
-             <property name="enabled" >
+           <item row="1" column="2">
+            <widget class="ColorButton" name="actionMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="1" column="3" >
-            <widget class="QCheckBox" name="actionMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="1" column="3">
+            <widget class="QCheckBox" name="actionMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="2" column="0" >
-            <widget class="QLabel" name="label_21" >
-             <property name="text" >
+           <item row="2" column="0">
+            <widget class="QLabel" name="label_21">
+             <property name="text">
               <string>Join Message:</string>
              </property>
             </widget>
            </item>
-           <item row="2" column="1" >
-            <widget class="ColorButton" name="joinMessageFG" >
-             <property name="text" >
+           <item row="2" column="1">
+            <widget class="ColorButton" name="joinMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="2" column="2" >
-            <widget class="ColorButton" name="joinMessageBG" >
-             <property name="enabled" >
+           <item row="2" column="2">
+            <widget class="ColorButton" name="joinMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="2" column="3" >
-            <widget class="QCheckBox" name="joinMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="2" column="3">
+            <widget class="QCheckBox" name="joinMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="3" column="0" >
-            <widget class="QLabel" name="label_25" >
-             <property name="text" >
+           <item row="3" column="0">
+            <widget class="QLabel" name="label_25">
+             <property name="text">
               <string>Kick Message:</string>
              </property>
             </widget>
            </item>
-           <item row="3" column="1" >
-            <widget class="ColorButton" name="kickMessageFG" >
-             <property name="text" >
+           <item row="3" column="1">
+            <widget class="ColorButton" name="kickMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="3" column="2" >
-            <widget class="ColorButton" name="kickMessageBG" >
-             <property name="enabled" >
+           <item row="3" column="2">
+            <widget class="ColorButton" name="kickMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="3" column="3" >
-            <widget class="QCheckBox" name="kickMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="3" column="3">
+            <widget class="QCheckBox" name="kickMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="4" column="0" >
-            <widget class="QLabel" name="label_26" >
-             <property name="text" >
+           <item row="4" column="0">
+            <widget class="QLabel" name="label_26">
+             <property name="text">
               <string>Mode Message:</string>
              </property>
             </widget>
            </item>
-           <item row="4" column="1" >
-            <widget class="ColorButton" name="modeMessageFG" >
-             <property name="text" >
+           <item row="4" column="1">
+            <widget class="ColorButton" name="modeMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="4" column="2" >
-            <widget class="ColorButton" name="modeMessageBG" >
-             <property name="enabled" >
+           <item row="4" column="2">
+            <widget class="ColorButton" name="modeMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="4" column="3" >
-            <widget class="QCheckBox" name="modeMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="4" column="3">
+            <widget class="QCheckBox" name="modeMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="5" column="0" >
-            <widget class="QLabel" name="label_22" >
-             <property name="text" >
+           <item row="5" column="0">
+            <widget class="QLabel" name="label_22">
+             <property name="text">
               <string>Part Message:</string>
              </property>
             </widget>
            </item>
-           <item row="5" column="1" >
-            <widget class="ColorButton" name="partMessageFG" >
-             <property name="text" >
+           <item row="5" column="1">
+            <widget class="ColorButton" name="partMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="5" column="2" >
-            <widget class="ColorButton" name="partMessageBG" >
-             <property name="enabled" >
+           <item row="5" column="2">
+            <widget class="ColorButton" name="partMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="5" column="3" >
-            <widget class="QCheckBox" name="partMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="5" column="3">
+            <widget class="QCheckBox" name="partMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="6" column="0" >
-            <widget class="QLabel" name="label_23" >
-             <property name="text" >
+           <item row="6" column="0">
+            <widget class="QLabel" name="label_23">
+             <property name="text">
               <string>Quit Message:</string>
              </property>
             </widget>
            </item>
-           <item row="6" column="1" >
-            <widget class="ColorButton" name="quitMessageFG" >
-             <property name="text" >
+           <item row="6" column="1">
+            <widget class="ColorButton" name="quitMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="6" column="2" >
-            <widget class="ColorButton" name="quitMessageBG" >
-             <property name="enabled" >
+           <item row="6" column="2">
+            <widget class="ColorButton" name="quitMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="6" column="3" >
-            <widget class="QCheckBox" name="quitMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="6" column="3">
+            <widget class="QCheckBox" name="quitMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="7" column="0" >
-            <widget class="QLabel" name="label_24" >
-             <property name="text" >
+           <item row="7" column="0">
+            <widget class="QLabel" name="label_24">
+             <property name="text">
               <string>Rename Message:</string>
              </property>
             </widget>
            </item>
-           <item row="7" column="1" >
-            <widget class="ColorButton" name="renameMessageFG" >
-             <property name="text" >
+           <item row="7" column="1">
+            <widget class="ColorButton" name="renameMessageFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="7" column="2" >
-            <widget class="ColorButton" name="renameMessageBG" >
-             <property name="enabled" >
+           <item row="7" column="2">
+            <widget class="ColorButton" name="renameMessageBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="7" column="3" >
-            <widget class="QCheckBox" name="renameMessageUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="7" column="3">
+            <widget class="QCheckBox" name="renameMessageUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="8" column="1" >
-            <spacer name="verticalSpacer_3" >
-             <property name="orientation" >
+           <item row="8" column="1">
+            <spacer name="verticalSpacer_3">
+             <property name="orientation">
               <enum>Qt::Vertical</enum>
              </property>
-             <property name="sizeHint" stdset="0" >
+             <property name="sizeHint" stdset="0">
               <size>
                <width>20</width>
                <height>40</height>
            </item>
           </layout>
          </widget>
-         <widget class="QWidget" name="Seite_2" >
-          <attribute name="title" >
+         <widget class="QWidget" name="Seite_2">
+          <attribute name="title">
            <string>Message</string>
           </attribute>
-          <layout class="QGridLayout" >
-           <item row="0" column="1" >
-            <widget class="QLabel" name="label_37" >
-             <property name="text" >
+          <layout class="QGridLayout">
+           <item row="0" column="1">
+            <widget class="QLabel" name="label_37">
+             <property name="text">
               <string>Foreground</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
             </widget>
            </item>
-           <item row="0" column="2" >
-            <widget class="QLabel" name="label_38" >
-             <property name="text" >
+           <item row="0" column="2">
+            <widget class="QLabel" name="label_38">
+             <property name="text">
               <string>Background</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="0" column="3" >
-            <widget class="QLabel" name="label_9" >
-             <property name="text" >
+           <item row="0" column="3">
+            <widget class="QLabel" name="label_9">
+             <property name="text">
               <string>Use BG</string>
              </property>
-             <property name="alignment" >
+             <property name="alignment">
               <set>Qt::AlignCenter</set>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="1" column="0" >
-            <widget class="QLabel" name="label_29" >
-             <property name="text" >
+           <item row="1" column="0">
+            <widget class="QLabel" name="label_29">
+             <property name="text">
               <string>Timestamp:</string>
              </property>
             </widget>
            </item>
-           <item row="1" column="1" >
-            <widget class="ColorButton" name="timestampFG" >
-             <property name="text" >
+           <item row="1" column="1">
+            <widget class="ColorButton" name="timestampFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="1" column="2" >
-            <widget class="ColorButton" name="timestampBG" >
-             <property name="enabled" >
+           <item row="1" column="2">
+            <widget class="ColorButton" name="timestampBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="1" column="3" >
-            <widget class="QCheckBox" name="timestampUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="1" column="3">
+            <widget class="QCheckBox" name="timestampUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="5" column="0" >
-            <widget class="QLabel" name="label_28" >
-             <property name="text" >
+           <item row="5" column="0">
+            <widget class="QLabel" name="label_28">
+             <property name="text">
               <string>Sender:</string>
              </property>
             </widget>
            </item>
-           <item row="8" column="0" >
-            <widget class="QLabel" name="label_30" >
-             <property name="text" >
+           <item row="8" column="0">
+            <widget class="QLabel" name="label_30">
+             <property name="text">
               <string>Nick:</string>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="8" column="1" >
-            <widget class="ColorButton" name="nickFG" >
-             <property name="text" >
+           <item row="8" column="1">
+            <widget class="ColorButton" name="nickFG">
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="8" column="2" >
-            <widget class="ColorButton" name="nickBG" >
-             <property name="enabled" >
+           <item row="8" column="2">
+            <widget class="ColorButton" name="nickBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="8" column="3" >
-            <widget class="QCheckBox" name="nickUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="8" column="3">
+            <widget class="QCheckBox" name="nickUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="9" column="0" >
-            <widget class="QLabel" name="label_31" >
-             <property name="text" >
+           <item row="9" column="0">
+            <widget class="QLabel" name="label_31">
+             <property name="text">
               <string>Hostmask:</string>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="9" column="1" >
-            <widget class="ColorButton" name="hostmaskFG" >
-             <property name="text" >
+           <item row="9" column="1">
+            <widget class="ColorButton" name="hostmaskFG">
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="9" column="2" >
-            <widget class="ColorButton" name="hostmaskBG" >
-             <property name="enabled" >
+           <item row="9" column="2">
+            <widget class="ColorButton" name="hostmaskBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="9" column="3" >
-            <widget class="QCheckBox" name="hostmaskUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="9" column="3">
+            <widget class="QCheckBox" name="hostmaskUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="10" column="0" >
-            <widget class="QLabel" name="label_32" >
-             <property name="text" >
+           <item row="10" column="0">
+            <widget class="QLabel" name="label_32">
+             <property name="text">
               <string>Channelname:</string>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="10" column="1" >
-            <widget class="ColorButton" name="channelnameFG" >
-             <property name="text" >
+           <item row="10" column="1">
+            <widget class="ColorButton" name="channelnameFG">
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="10" column="2" >
-            <widget class="ColorButton" name="channelnameBG" >
-             <property name="enabled" >
+           <item row="10" column="2">
+            <widget class="ColorButton" name="channelnameBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="10" column="3" >
-            <widget class="QCheckBox" name="channelnameUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="10" column="3">
+            <widget class="QCheckBox" name="channelnameUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="11" column="0" >
-            <widget class="QLabel" name="label_33" >
-             <property name="text" >
+           <item row="11" column="0">
+            <widget class="QLabel" name="label_33">
+             <property name="text">
               <string>Mode flags:</string>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="11" column="1" >
-            <widget class="ColorButton" name="modeFlagsFG" >
-             <property name="text" >
+           <item row="11" column="1">
+            <widget class="ColorButton" name="modeFlagsFG">
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="11" column="2" >
-            <widget class="ColorButton" name="modeFlagsBG" >
-             <property name="enabled" >
+           <item row="11" column="2">
+            <widget class="ColorButton" name="modeFlagsBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="11" column="3" >
-            <widget class="QCheckBox" name="modeFlagsUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="11" column="3">
+            <widget class="QCheckBox" name="modeFlagsUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="12" column="0" >
-            <widget class="QLabel" name="label_34" >
-             <property name="text" >
+           <item row="12" column="0">
+            <widget class="QLabel" name="label_34">
+             <property name="text">
               <string>Url:</string>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="12" column="1" >
-            <widget class="ColorButton" name="urlFG" >
-             <property name="text" >
+           <item row="12" column="1">
+            <widget class="ColorButton" name="urlFG">
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="12" column="2" >
-            <widget class="ColorButton" name="urlBG" >
-             <property name="enabled" >
+           <item row="12" column="2">
+            <widget class="ColorButton" name="urlBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="12" column="3" >
-            <widget class="QCheckBox" name="urlUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="12" column="3">
+            <widget class="QCheckBox" name="urlUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="13" column="0" >
-            <widget class="QLabel" name="label_11" >
-             <property name="text" >
+           <item row="13" column="0">
+            <widget class="QLabel" name="label_11">
+             <property name="text">
               <string>New Message Marker:</string>
              </property>
             </widget>
            </item>
-           <item row="13" column="1" >
-            <widget class="ColorButton" name="newMsgMarkerFG" >
-             <property name="text" >
+           <item row="13" column="1">
+            <widget class="ColorButton" name="newMsgMarkerFG">
+             <property name="text">
               <string/>
              </property>
             </widget>
            </item>
-           <item row="6" column="1" >
-            <widget class="QCheckBox" name="senderAutoColor" >
-             <property name="text" >
+           <item row="6" column="1">
+            <widget class="QCheckBox" name="senderAutoColor">
+             <property name="text">
               <string>Enable</string>
              </property>
             </widget>
            </item>
-           <item row="6" column="0" >
-            <widget class="QLabel" name="label_12" >
-             <property name="text" >
+           <item row="6" column="0">
+            <widget class="QLabel" name="label_12">
+             <property name="text">
               <string>Sender auto coloring:</string>
              </property>
             </widget>
            </item>
-           <item row="5" column="2" >
-            <widget class="ColorButton" name="senderBG" >
-             <property name="enabled" >
+           <item row="5" column="2">
+            <widget class="ColorButton" name="senderBG">
+             <property name="enabled">
               <bool>false</bool>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="5" column="1" >
-            <widget class="ColorButton" name="senderFG" >
-             <property name="text" >
+           <item row="5" column="1">
+            <widget class="ColorButton" name="senderFG">
+             <property name="text">
               <string/>
              </property>
-             <property name="flat" >
+             <property name="flat">
               <bool>false</bool>
              </property>
             </widget>
            </item>
-           <item row="5" column="3" >
-            <widget class="QCheckBox" name="senderUseBG" >
-             <property name="sizePolicy" >
-              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
+           <item row="5" column="3">
+            <widget class="QCheckBox" name="senderUseBG">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
                <horstretch>0</horstretch>
                <verstretch>0</verstretch>
               </sizepolicy>
              </property>
-             <property name="layoutDirection" >
+             <property name="layoutDirection">
               <enum>Qt::LeftToRight</enum>
              </property>
-             <property name="text" >
+             <property name="text">
               <string/>
              </property>
-             <property name="NotInUse" stdset="0" >
+             <property name="NotInUse" stdset="0">
               <bool>true</bool>
              </property>
             </widget>
            </item>
-           <item row="14" column="1" >
-            <spacer name="verticalSpacer_2" >
-             <property name="orientation" >
+           <item row="14" column="1">
+            <spacer name="verticalSpacer_2">
+             <property name="orientation">
               <enum>Qt::Vertical</enum>
              </property>
-             <property name="sizeHint" stdset="0" >
+             <property name="sizeHint" stdset="0">
               <size>
                <width>20</width>
                <height>40</height>
         </widget>
        </item>
        <item>
-        <spacer name="verticalSpacer" >
-         <property name="orientation" >
+        <spacer name="verticalSpacer">
+         <property name="orientation">
           <enum>Qt::Vertical</enum>
          </property>
-         <property name="sizeHint" stdset="0" >
+         <property name="sizeHint" stdset="0">
           <size>
            <width>20</width>
            <height>40</height>
        </item>
       </layout>
      </widget>
-     <widget class="QWidget" name="Mirc" >
-      <attribute name="title" >
+     <widget class="QWidget" name="Mirc">
+      <attribute name="title">
        <string>Mirc Color Codes</string>
       </attribute>
-      <layout class="QVBoxLayout" >
+      <layout class="QVBoxLayout">
        <item>
-        <widget class="QGroupBox" name="groupBox_3" >
-         <property name="sizePolicy" >
-          <sizepolicy vsizetype="Maximum" hsizetype="Expanding" >
+        <widget class="QGroupBox" name="groupBox_3">
+         <property name="enabled">
+          <bool>false</bool>
+         </property>
+         <property name="sizePolicy">
+          <sizepolicy hsizetype="Expanding" vsizetype="Maximum">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
-         <property name="title" >
+         <property name="title">
           <string>Color Codes</string>
          </property>
-         <layout class="QGridLayout" >
-          <item row="0" column="0" >
-           <widget class="QLabel" name="label_46" >
-            <property name="text" >
+         <layout class="QGridLayout">
+          <item row="0" column="0">
+           <widget class="QLabel" name="label_46">
+            <property name="text">
              <string>Color 0:</string>
             </property>
            </widget>
           </item>
-          <item row="0" column="1" >
-           <widget class="ColorButton" name="color0" >
-            <property name="text" >
+          <item row="0" column="1">
+           <widget class="ColorButton" name="color0">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="0" column="4" >
-           <widget class="ColorButton" name="color8" >
-            <property name="text" >
+          <item row="0" column="4">
+           <widget class="ColorButton" name="color8">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="1" column="0" >
-           <widget class="QLabel" name="label_47" >
-            <property name="text" >
+          <item row="1" column="0">
+           <widget class="QLabel" name="label_47">
+            <property name="text">
              <string>Color 1:</string>
             </property>
            </widget>
           </item>
-          <item row="1" column="1" >
-           <widget class="ColorButton" name="color1" >
-            <property name="text" >
+          <item row="1" column="1">
+           <widget class="ColorButton" name="color1">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="1" column="4" >
-           <widget class="ColorButton" name="color9" >
-            <property name="text" >
+          <item row="1" column="4">
+           <widget class="ColorButton" name="color9">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="2" column="0" >
-           <widget class="QLabel" name="label_49" >
-            <property name="text" >
+          <item row="2" column="0">
+           <widget class="QLabel" name="label_49">
+            <property name="text">
              <string>Color 2:</string>
             </property>
            </widget>
           </item>
-          <item row="2" column="1" >
-           <widget class="ColorButton" name="color2" >
-            <property name="text" >
+          <item row="2" column="1">
+           <widget class="ColorButton" name="color2">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="2" column="4" >
-           <widget class="ColorButton" name="color10" >
-            <property name="text" >
+          <item row="2" column="4">
+           <widget class="ColorButton" name="color10">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="3" column="0" >
-           <widget class="QLabel" name="label_48" >
-            <property name="text" >
+          <item row="3" column="0">
+           <widget class="QLabel" name="label_48">
+            <property name="text">
              <string>Color 3:</string>
             </property>
            </widget>
           </item>
-          <item row="3" column="1" >
-           <widget class="ColorButton" name="color3" >
-            <property name="text" >
+          <item row="3" column="1">
+           <widget class="ColorButton" name="color3">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="3" column="4" >
-           <widget class="ColorButton" name="color11" >
-            <property name="text" >
+          <item row="3" column="4">
+           <widget class="ColorButton" name="color11">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="4" column="0" >
-           <widget class="QLabel" name="label_50" >
-            <property name="text" >
+          <item row="4" column="0">
+           <widget class="QLabel" name="label_50">
+            <property name="text">
              <string>Color 4:</string>
             </property>
            </widget>
           </item>
-          <item row="4" column="1" >
-           <widget class="ColorButton" name="color4" >
-            <property name="text" >
+          <item row="4" column="1">
+           <widget class="ColorButton" name="color4">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="4" column="4" >
-           <widget class="ColorButton" name="color12" >
-            <property name="text" >
+          <item row="4" column="4">
+           <widget class="ColorButton" name="color12">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="5" column="0" >
-           <widget class="QLabel" name="label_53" >
-            <property name="text" >
+          <item row="5" column="0">
+           <widget class="QLabel" name="label_53">
+            <property name="text">
              <string>Color 5:</string>
             </property>
            </widget>
           </item>
-          <item row="5" column="1" >
-           <widget class="ColorButton" name="color5" >
-            <property name="text" >
+          <item row="5" column="1">
+           <widget class="ColorButton" name="color5">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="5" column="4" >
-           <widget class="ColorButton" name="color13" >
-            <property name="text" >
+          <item row="5" column="4">
+           <widget class="ColorButton" name="color13">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="6" column="0" >
-           <widget class="QLabel" name="label_51" >
-            <property name="text" >
+          <item row="6" column="0">
+           <widget class="QLabel" name="label_51">
+            <property name="text">
              <string>Color 6:</string>
             </property>
            </widget>
           </item>
-          <item row="6" column="1" >
-           <widget class="ColorButton" name="color6" >
-            <property name="text" >
+          <item row="6" column="1">
+           <widget class="ColorButton" name="color6">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="6" column="4" >
-           <widget class="ColorButton" name="color14" >
-            <property name="text" >
+          <item row="6" column="4">
+           <widget class="ColorButton" name="color14">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="7" column="0" >
-           <widget class="QLabel" name="label_52" >
-            <property name="text" >
+          <item row="7" column="0">
+           <widget class="QLabel" name="label_52">
+            <property name="text">
              <string>Color 7:</string>
             </property>
            </widget>
           </item>
-          <item row="7" column="1" >
-           <widget class="ColorButton" name="color7" >
-            <property name="text" >
+          <item row="7" column="1">
+           <widget class="ColorButton" name="color7">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="7" column="4" >
-           <widget class="ColorButton" name="color15" >
-            <property name="text" >
+          <item row="7" column="4">
+           <widget class="ColorButton" name="color15">
+            <property name="text">
              <string/>
             </property>
            </widget>
           </item>
-          <item row="0" column="3" >
-           <widget class="QLabel" name="label_54" >
-            <property name="text" >
+          <item row="0" column="3">
+           <widget class="QLabel" name="label_54">
+            <property name="text">
              <string>Color 8:</string>
             </property>
            </widget>
           </item>
-          <item row="6" column="3" >
-           <widget class="QLabel" name="label_55" >
-            <property name="text" >
+          <item row="6" column="3">
+           <widget class="QLabel" name="label_55">
+            <property name="text">
              <string>Color 14:</string>
             </property>
            </widget>
           </item>
-          <item row="7" column="3" >
-           <widget class="QLabel" name="label_56" >
-            <property name="text" >
+          <item row="7" column="3">
+           <widget class="QLabel" name="label_56">
+            <property name="text">
              <string>Color 15:</string>
             </property>
            </widget>
           </item>
-          <item row="5" column="3" >
-           <widget class="QLabel" name="label_57" >
-            <property name="text" >
+          <item row="5" column="3">
+           <widget class="QLabel" name="label_57">
+            <property name="text">
              <string>Color 13:</string>
             </property>
            </widget>
           </item>
-          <item row="4" column="3" >
-           <widget class="QLabel" name="label_58" >
-            <property name="text" >
+          <item row="4" column="3">
+           <widget class="QLabel" name="label_58">
+            <property name="text">
              <string>Color 12:</string>
             </property>
            </widget>
           </item>
-          <item row="3" column="3" >
-           <widget class="QLabel" name="label_59" >
-            <property name="text" >
+          <item row="3" column="3">
+           <widget class="QLabel" name="label_59">
+            <property name="text">
              <string>Color 11:</string>
             </property>
            </widget>
           </item>
-          <item row="2" column="3" >
-           <widget class="QLabel" name="label_60" >
-            <property name="text" >
+          <item row="2" column="3">
+           <widget class="QLabel" name="label_60">
+            <property name="text">
              <string>Color 10:</string>
             </property>
            </widget>
           </item>
-          <item row="1" column="3" >
-           <widget class="QLabel" name="label_61" >
-            <property name="text" >
+          <item row="1" column="3">
+           <widget class="QLabel" name="label_61">
+            <property name="text">
              <string>Color 9:</string>
             </property>
            </widget>
        </item>
        <item>
         <spacer>
-         <property name="orientation" >
+         <property name="orientation">
           <enum>Qt::Vertical</enum>
          </property>
-         <property name="sizeHint" stdset="0" >
+         <property name="sizeHint" stdset="0">
           <size>
            <width>140</width>
            <height>291</height>
        </item>
       </layout>
      </widget>
-     <widget class="QWidget" name="nickview" >
-      <attribute name="title" >
-       <string>Nickview</string>
-      </attribute>
-      <layout class="QGridLayout" >
-       <item row="0" column="0" colspan="2" >
-        <widget class="QGroupBox" name="groupBox_8" >
-         <property name="title" >
-          <string>Nick status:</string>
-         </property>
-         <layout class="QGridLayout" >
-          <item row="0" column="1" >
-           <widget class="QLabel" name="label_4" >
-            <property name="text" >
-             <string>Foreground</string>
-            </property>
-            <property name="alignment" >
-             <set>Qt::AlignCenter</set>
-            </property>
-           </widget>
-          </item>
-          <item row="0" column="2" >
-           <widget class="QLabel" name="label_5" >
-            <property name="text" >
-             <string>BG</string>
-            </property>
-            <property name="alignment" >
-             <set>Qt::AlignCenter</set>
-            </property>
-            <property name="NotInUse" stdset="0" >
-             <bool>true</bool>
-            </property>
-           </widget>
-          </item>
-          <item row="0" column="3" >
-           <widget class="QLabel" name="label_6" >
-            <property name="text" >
-             <string>Use BG</string>
-            </property>
-            <property name="alignment" >
-             <set>Qt::AlignCenter</set>
-            </property>
-            <property name="NotInUse" stdset="0" >
-             <bool>true</bool>
-            </property>
-           </widget>
-          </item>
-          <item row="1" column="0" >
-           <widget class="QLabel" name="label_62" >
-            <property name="text" >
-             <string>Online:</string>
-            </property>
-           </widget>
-          </item>
-          <item row="1" column="1" >
-           <widget class="ColorButton" name="onlineStatusFG" >
-            <property name="text" >
-             <string/>
-            </property>
-           </widget>
-          </item>
-          <item row="1" column="2" >
-           <widget class="ColorButton" name="onlineStatusBG" >
-            <property name="enabled" >
-             <bool>false</bool>
-            </property>
-            <property name="text" >
-             <string/>
-            </property>
-            <property name="NotInUse" stdset="0" >
-             <bool>true</bool>
-            </property>
-           </widget>
-          </item>
-          <item row="1" column="3" >
-           <widget class="QCheckBox" name="onlineStatusUseBG" >
-            <property name="sizePolicy" >
-             <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
-              <horstretch>0</horstretch>
-              <verstretch>0</verstretch>
-             </sizepolicy>
-            </property>
-            <property name="layoutDirection" >
-             <enum>Qt::LeftToRight</enum>
-            </property>
-            <property name="text" >
-             <string/>
-            </property>
-            <property name="NotInUse" stdset="0" >
-             <bool>true</bool>
-            </property>
-           </widget>
-          </item>
-          <item row="2" column="0" >
-           <widget class="QLabel" name="label_63" >
-            <property name="text" >
-             <string>Away:</string>
-            </property>
-           </widget>
-          </item>
-          <item row="2" column="1" >
-           <widget class="ColorButton" name="awayStatusFG" >
-            <property name="text" >
-             <string/>
-            </property>
-           </widget>
-          </item>
-          <item row="2" column="2" >
-           <widget class="ColorButton" name="awayStatusBG" >
-            <property name="enabled" >
-             <bool>false</bool>
-            </property>
-            <property name="text" >
-             <string/>
-            </property>
-            <property name="NotInUse" stdset="0" >
-             <bool>true</bool>
-            </property>
-           </widget>
-          </item>
-          <item row="2" column="3" >
-           <widget class="QCheckBox" name="awayStatusUseBG" >
-            <property name="sizePolicy" >
-             <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
-              <horstretch>0</horstretch>
-              <verstretch>0</verstretch>
-             </sizepolicy>
-            </property>
-            <property name="text" >
-             <string/>
-            </property>
-            <property name="NotInUse" stdset="0" >
-             <bool>true</bool>
-            </property>
-           </widget>
-          </item>
-          <item row="3" column="0" >
-           <spacer>
-            <property name="orientation" >
-             <enum>Qt::Vertical</enum>
-            </property>
-            <property name="sizeHint" stdset="0" >
-             <size>
-              <width>20</width>
-              <height>40</height>
-             </size>
-            </property>
-           </spacer>
-          </item>
-         </layout>
-        </widget>
-       </item>
-       <item row="1" column="0" colspan="2" >
-        <spacer>
-         <property name="orientation" >
-          <enum>Qt::Vertical</enum>
-         </property>
-         <property name="sizeHint" stdset="0" >
-          <size>
-           <width>261</width>
-           <height>151</height>
-          </size>
-         </property>
-        </spacer>
-       </item>
-      </layout>
-     </widget>
     </widget>
    </item>
   </layout>
    <receiver>inactiveActivityBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>249</x>
      <y>111</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>197</x>
      <y>111</y>
     </hint>
    <receiver>noActivityBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>249</x>
      <y>147</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>197</x>
      <y>147</y>
     </hint>
    <receiver>highlightActivityBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>249</x>
      <y>183</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>197</x>
      <y>183</y>
     </hint>
    <receiver>newMessageActivityBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>249</x>
      <y>219</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>197</x>
      <y>219</y>
     </hint>
    <receiver>otherActivityBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>249</x>
      <y>255</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>197</x>
      <y>255</y>
     </hint>
    <receiver>onlineStatusBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>202</x>
      <y>111</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>150</x>
      <y>111</y>
     </hint>
    <receiver>awayStatusBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>202</x>
      <y>147</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>150</x>
      <y>147</y>
     </hint>
    <receiver>errorMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>374</x>
      <y>119</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>280</x>
      <y>119</y>
     </hint>
    <receiver>noticeMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>374</x>
      <y>155</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>280</x>
      <y>155</y>
     </hint>
    <receiver>plainMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>374</x>
      <y>191</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>280</x>
      <y>191</y>
     </hint>
    <receiver>serverMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>374</x>
      <y>227</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>280</x>
      <y>227</y>
     </hint>
    <receiver>actionMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>376</x>
      <y>121</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>285</x>
      <y>121</y>
     </hint>
    <receiver>joinMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>376</x>
      <y>157</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>285</x>
      <y>157</y>
     </hint>
    <receiver>kickMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>376</x>
      <y>193</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>285</x>
      <y>193</y>
     </hint>
    <receiver>modeMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>376</x>
      <y>229</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>285</x>
      <y>229</y>
     </hint>
    <receiver>partMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>376</x>
      <y>265</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>285</x>
      <y>265</y>
     </hint>
    <receiver>quitMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>376</x>
      <y>301</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>285</x>
      <y>301</y>
     </hint>
    <receiver>renameMessageBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>376</x>
      <y>337</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>285</x>
      <y>337</y>
     </hint>
    <receiver>timestampBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>372</x>
      <y>121</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>273</x>
      <y>121</y>
     </hint>
    <receiver>nickBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>372</x>
      <y>193</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>273</x>
      <y>193</y>
     </hint>
    <receiver>hostmaskBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>372</x>
      <y>229</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>273</x>
      <y>229</y>
     </hint>
    <receiver>channelnameBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>372</x>
      <y>265</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>273</x>
      <y>265</y>
     </hint>
    <receiver>modeFlagsBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>372</x>
      <y>301</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>273</x>
      <y>301</y>
     </hint>
    <receiver>urlBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>372</x>
      <y>337</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>273</x>
      <y>337</y>
     </hint>
    <receiver>senderBG</receiver>
    <slot>setEnabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>463</x>
      <y>143</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>376</x>
      <y>143</y>
     </hint>
    <receiver>senderFG</receiver>
    <slot>setDisabled(bool)</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>232</x>
      <y>173</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>232</x>
      <y>143</y>
     </hint>
index c5f86ee..0db59b5 100644 (file)
@@ -27,27 +27,11 @@ class QssParser {
   Q_DECLARE_TR_FUNCTIONS(QssParser)
 
   public:
-    enum Column {
-      Any,
-      Timestamp,
-      Sender,
-      Contents
-    };
-
-    struct ChatLineFormat {
-      QVector<QTextCharFormat> senderColors;
-      QVector<QTextCharFormat> mircColors;
-      QHash<UiStyle::FormatType, QTextCharFormat> formats;
-
-    };
-
     QssParser();
 
     void loadStyleSheet(const QString &sheet);
 
     inline QPalette palette() const { return _palette; }
-    ChatLineFormat basicFormat() const;
-    QHash<UiStyle::FormatType, ChatLineFormat> specialFormats() const;
 
   protected:
     typedef QList<qreal> ColorTuple;
@@ -73,8 +57,6 @@ class QssParser {
 
   private:
     QPalette _palette;
-    ChatLineFormat _basicFormat;
-    QHash<UiStyle::FormatType, ChatLineFormat> _specialFormats;
     int _maxSenderHash;
 };
 
index e0dbce9..e1684f2 100644 (file)
@@ -25,7 +25,7 @@
 #include "uisettings.h"
 #include "util.h"
 
-UiStyle::UiStyle(const QString &settingsKey) : _settingsKey(settingsKey) {
+UiStyle::UiStyle() {
   // register FormatList if that hasn't happened yet
   // FIXME I don't think this actually avoids double registration... then again... does it hurt?
   if(QVariant::nameToType("UiStyle::FormatList") == QVariant::Invalid) {
@@ -34,24 +34,6 @@ UiStyle::UiStyle(const QString &settingsKey) : _settingsKey(settingsKey) {
     Q_ASSERT(QVariant::nameToType("UiStyle::FormatList") != QVariant::Invalid);
   }
 
-  _defaultFont = QFont("Monospace", QApplication::font().pointSize());
-
-  // Default format
-  _defaultPlainFormat.setForeground(QBrush("#000000"));
-  _defaultPlainFormat.setFont(_defaultFont);
-  _defaultPlainFormat.font().setFixedPitch(true);
-  _defaultPlainFormat.font().setStyleHint(QFont::TypeWriter);
-  setFormat(None, _defaultPlainFormat, Settings::Default);
-
-  // Load saved custom formats
-  UiStyleSettings s(_settingsKey);
-  foreach(FormatType type, s.availableFormats()) {
-    _customFormats[type] = s.customFormat(type);
-  }
-
-  // Check for the sender auto coloring option
-  _senderAutoColor = s.value("Colors/SenderAutoColor", false).toBool();
-
   // Now initialize the mapping between FormatCodes and FormatTypes...
   _formatCodes["%O"] = None;
   _formatCodes["%B"] = Bold;
@@ -79,33 +61,6 @@ UiStyle::UiStyle(const QString &settingsKey) : _settingsKey(settingsKey) {
   _formatCodes["%DM"] = ModeFlags;
   _formatCodes["%DU"] = Url;
 
-  // Initialize color codes according to mIRC "standard"
-  QStringList colors;
-  //colors << "white" << "black" << "navy" << "green" << "red" << "maroon" << "purple" << "orange";
-  //colors << "yellow" << "lime" << "teal" << "aqua" << "royalblue" << "fuchsia" << "grey" << "silver";
-  colors << "#ffffff" << "#000000" << "#000080" << "#008000" << "#ff0000" << "#800000" << "#800080" << "#ffa500";
-  colors << "#ffff00" << "#00ff00" << "#008080" << "#00ffff" << "#4169E1" << "#ff00ff" << "#808080" << "#c0c0c0";
-
-  // Set color formats
-  for(int i = 0; i < 16; i++) {
-    QString idx = QString("%1").arg(i, (int)2, (int)10, (QChar)'0');
-    _formatCodes[QString("%Dcf%1").arg(idx)] = (FormatType)(FgCol00 | i<<24);
-    _formatCodes[QString("%Dcb%1").arg(idx)] = (FormatType)(BgCol00 | i<<28);
-    QTextCharFormat fgf, bgf;
-    fgf.setForeground(QBrush(QColor(colors[i]))); setFormat((FormatType)(FgCol00 | i<<24), fgf, Settings::Default);
-    bgf.setBackground(QBrush(QColor(colors[i]))); setFormat((FormatType)(BgCol00 | i<<28), bgf, Settings::Default);
-  }
-
-  // Set a few more standard formats
-  QTextCharFormat bold; bold.setFontWeight(QFont::Bold);
-  setFormat(Bold, bold, Settings::Default);
-
-  QTextCharFormat italic; italic.setFontItalic(true);
-  setFormat(Italic, italic, Settings::Default);
-
-  QTextCharFormat underline; underline.setFontUnderline(true);
-  setFormat(Underline, underline, Settings::Default);
-*/
   loadStyleSheet();
 }
 
@@ -113,42 +68,6 @@ UiStyle::~ UiStyle() {
   qDeleteAll(_metricsCache);
 }
 
-void UiStyle::setFormat(FormatType ftype, QTextCharFormat fmt, Settings::Mode mode) {
-  if(mode == Settings::Default) {
-    _defaultFormats[ftype] = fmt;
-  } else {
-    UiStyleSettings s(_settingsKey);
-    if(fmt != _defaultFormats[ftype]) {
-      _customFormats[ftype] = fmt;
-      s.setCustomFormat(ftype, fmt);
-    } else {
-      _customFormats.remove(ftype);
-      s.removeCustomFormat(ftype);
-    }
-  }
-  // TODO: invalidate only affected cached formats... if that's possible with less overhead than just rebuilding them
-  qDeleteAll(_metricsCache);
-  _metricsCache.clear();
-  _formatCache.clear();
-}
-
-void UiStyle::setSenderAutoColor( bool state ) {
-  _senderAutoColor = state;
-  UiStyleSettings s(_settingsKey);
-  s.setValue("Colors/SenderAutoColor", QVariant(state));
-}
-
-QTextCharFormat UiStyle::format(FormatType ftype, Settings::Mode mode) const {
-  // Check for enabled sender auto coloring
-  if ( (ftype & 0x00000fff) == Sender && !_senderAutoColor ) {
-    // Just use the default sender style if auto coloring is disabled FIXME
-    ftype = Sender;
-  }
-
-  if(mode == Settings::Custom && _customFormats.contains(ftype)) return _customFormats.value(ftype);
-  else return _defaultFormats.value(ftype, QTextCharFormat());
-}
-
 QTextCharFormat UiStyle::cachedFormat(quint64 key) const {
   return _formatCache.value(key, QTextCharFormat());
 }
@@ -178,7 +97,7 @@ void UiStyle::mergeSubElementFormat(QTextCharFormat& fmt, quint32 ftype, quint32
 
 // NOTE: This function is intimately tied to the values in FormatType. Don't change this
 //       until you _really_ know what you do!
-QTextCharFormat UiStyle::mergedFormat(quint32 ftype, quint32 label) {
+QTextCharFormat UiStyle::format(quint32 ftype, quint32 label) {
   if(ftype == Invalid)
     return QTextCharFormat();
 
@@ -227,7 +146,7 @@ QFontMetricsF *UiStyle::fontMetrics(quint32 ftype, quint32 label) {
   if(_metricsCache.contains(key))
     return _metricsCache.value(key);
 
-  return (_metricsCache[key] = new QFontMetricsF(mergedFormat(ftype, label).font()));
+  return (_metricsCache[key] = new QFontMetricsF(format(ftype, label).font()));
 }
 
 UiStyle::FormatType UiStyle::formatType(const QString & code) const {
@@ -244,7 +163,7 @@ QList<QTextLayout::FormatRange> UiStyle::toTextLayoutList(const FormatList &form
   QTextLayout::FormatRange range;
   int i = 0;
   for(i = 0; i < formatList.count(); i++) {
-    range.format = mergedFormat(formatList.at(i).second);
+    range.format = format(formatList.at(i).second);
     range.start = formatList.at(i).first;
     if(i > 0) formatRanges.last().length = range.start - formatRanges.last().start;
     formatRanges.append(range);
index ae0ad29..60123e2 100644 (file)
@@ -36,7 +36,7 @@ class UiStyle {
   Q_DECLARE_TR_FUNCTIONS(UiStyle)
 
 public:
-  UiStyle(const QString &settingsKey);
+  UiStyle();
   virtual ~UiStyle();
 
   typedef QList<QPair<quint16, quint32> > FormatList;
@@ -80,72 +80,16 @@ public:
     ModeFlags       = 0x00002000,
 
     // URL is special, we want that to take precedence over the rest...
-    Url             = 0x00080000,
+    Url             = 0x00080000
 
     // mIRC Colors - we assume those to be present only in plain contents
-    FgCol00         = 0x00400000,
-    FgCol01         = 0x01400000,
-    FgCol02         = 0x02400000,
-    FgCol03         = 0x03400000,
-    FgCol04         = 0x04400000,
-    FgCol05         = 0x05400000,
-    FgCol06         = 0x06400000,
-    FgCol07         = 0x07400000,
-    FgCol08         = 0x08400000,
-    FgCol09         = 0x09400000,
-    FgCol10         = 0x0a400000,
-    FgCol11         = 0x0b400000,
-    FgCol12         = 0x0c400000,
-    FgCol13         = 0x0d400000,
-    FgCol14         = 0x0e400000,
-    FgCol15         = 0x0f400000,
-
-    BgCol00         = 0x00800000,
-    BgCol01         = 0x10800000,
-    BgCol02         = 0x20800000,
-    BgCol03         = 0x30800000,
-    BgCol04         = 0x40800000,
-    BgCol05         = 0x50800000,
-    BgCol06         = 0x60800000,
-    BgCol07         = 0x70800000,
-    BgCol08         = 0x80800000,
-    BgCol09         = 0x90800000,
-    BgCol10         = 0xa0800000,
-    BgCol11         = 0xb0800000,
-    BgCol12         = 0xc0800000,
-    BgCol13         = 0xd0800000,
-    BgCol14         = 0xe0800000,
-    BgCol15         = 0xf0800000,
-
-    // Colors used for sender auto coloring
-    // (starting at 01 because 00 is the default Sender format)
-    SenderCol01     = 0x01000200,
-    SenderCol02     = 0x02000200,
-    SenderCol03     = 0x03000200,
-    SenderCol04     = 0x04000200,
-    SenderCol05     = 0x05000200,
-    SenderCol06     = 0x06000200,
-    SenderCol07     = 0x07000200,
-    SenderCol08     = 0x08000200,
-    SenderCol09     = 0x09000200,
-    SenderCol10     = 0x0a000200,
-    SenderCol11     = 0x0b000200,
-    SenderCol12     = 0x0c000200,
-    SenderCol13     = 0x0d000200,
-    SenderCol14     = 0x0e000200,
-    SenderCol15     = 0x0f000200,
-    SenderCol16     = 0x10000200,
-    SenderCol17     = 0x11000200,
-    SenderCol18     = 0x12000200,
-    SenderCol19     = 0x13000200,
-    SenderCol20     = 0x14000200,
-    SenderCol21     = 0x15000200,
-
-    SenderColSelf   = 0xff000200
+    // foreground: 0x0.400000
+    // background: 0x.0800000
   };
 
   enum MessageLabel {
-    Highlight = 0x00000001
+    OwnMsg          = 0x00000001,
+    Highlight       = 0x00000002
   };
 
   struct StyledString {
@@ -154,25 +98,13 @@ public:
   };
 
   class StyledMessage;
-  class QssParser;
 
   StyledString styleString(const QString &);
   QString mircToInternal(const QString &) const;
 
-  void setFormat(FormatType, QTextCharFormat, Settings::Mode mode/* = Settings::Custom*/); // FIXME go away
-  void setSenderAutoColor(bool state); // FIXME go away
-  QTextCharFormat format(FormatType, Settings::Mode mode = Settings::Custom) const;  // FIXME go away
-
-  QTextCharFormat cachedFormat(quint64 key) const;
-  QTextCharFormat cachedFormat(quint32 formatType, quint32 messageLabel = 0) const;
-  void setCachedFormat(const QTextCharFormat &format, quint32 formatType, quint32 messageLabel = 0);
-
-  QTextCharFormat mergedFormat(quint32 formatType, quint32 messageLabel = 0);
+  QTextCharFormat format(quint32 formatType, quint32 messageLabel = 0);
   QFontMetricsF *fontMetrics(quint32 formatType, quint32 messageLabel = 0);
 
-  FormatType formatType(const QString &code) const;
-  QString formatCode(FormatType) const;
-
   inline QFont defaultFont() const { return _defaultFont; }
 
   QList<QTextLayout::FormatRange> toTextLayoutList(const FormatList &, int textLength);
@@ -184,20 +116,19 @@ protected:
   //int formatSetIndex(const QString &hostmask) const;
   //int formatSetIndexForSelf() const;
 
+  QTextCharFormat cachedFormat(quint64 key) const;
+  QTextCharFormat cachedFormat(quint32 formatType, quint32 messageLabel = 0) const;
+  void setCachedFormat(const QTextCharFormat &format, quint32 formatType, quint32 messageLabel = 0);
   void mergeSubElementFormat(QTextCharFormat &format, quint32 formatType, quint32 messageLabel = 0);
 
-  bool _senderAutoColor;
+  FormatType formatType(const QString &code) const;
+  QString formatCode(FormatType) const;
 
 private:
   QFont _defaultFont;
-  QTextCharFormat _defaultPlainFormat;
-  QHash<FormatType, QTextCharFormat> _defaultFormats;
-  QHash<FormatType, QTextCharFormat> _customFormats;
   QHash<quint64, QTextCharFormat> _formatCache;
   QHash<quint64, QFontMetricsF *> _metricsCache;
   QHash<QString, FormatType> _formatCodes;
-
-  QString _settingsKey;
 };
 
 class UiStyle::StyledMessage : public Message {