internal refactoring: ripping identity editor and identitory settingspage apart
[quassel.git] / src / qtui / settingspages / identitiessettingspage.ui
index ce1eb46..ed9c5b3 100644 (file)
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>602</width>
-    <height>386</height>
+    <width>256</width>
+    <height>183</height>
    </rect>
   </property>
   <property name="windowTitle" >
    <string/>
   </property>
-  <layout class="QVBoxLayout" >
+  <layout class="QVBoxLayout" name="verticalLayout_13" >
    <item>
-    <layout class="QVBoxLayout" >
+    <layout class="QHBoxLayout" >
      <item>
-      <layout class="QHBoxLayout" >
-       <item>
-        <widget class="QComboBox" name="identityList" >
-         <property name="insertPolicy" >
-          <enum>QComboBox::InsertAtBottom</enum>
-         </property>
-         <property name="duplicatesEnabled" >
-          <bool>true</bool>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QToolButton" name="renameIdentity" >
-         <property name="toolTip" >
-          <string>Rename Identity</string>
-         </property>
-         <property name="text" >
-          <string>...</string>
-         </property>
-         <property name="icon" >
-          <iconset>
-           <normaloff>:/22x22/actions/oxygen/22x22/actions/edit-rename.png</normaloff>:/22x22/actions/oxygen/22x22/actions/edit-rename.png</iconset>
-         </property>
-         <property name="iconSize" >
-          <size>
-           <width>22</width>
-           <height>22</height>
-          </size>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QToolButton" name="addIdentity" >
-         <property name="toolTip" >
-          <string>Add Identity</string>
-         </property>
-         <property name="text" >
-          <string>Add...</string>
-         </property>
-         <property name="icon" >
-          <iconset>
-           <normaloff>:/22x22/actions/oxygen/22x22/actions/list-add-user.png</normaloff>:/22x22/actions/oxygen/22x22/actions/list-add-user.png</iconset>
-         </property>
-         <property name="iconSize" >
-          <size>
-           <width>22</width>
-           <height>22</height>
-          </size>
-         </property>
-         <property name="toolButtonStyle" >
-          <enum>Qt::ToolButtonIconOnly</enum>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <widget class="QToolButton" name="deleteIdentity" >
-         <property name="toolTip" >
-          <string>Remove Identity</string>
-         </property>
-         <property name="text" >
-          <string>...</string>
-         </property>
-         <property name="icon" >
-          <iconset>
-           <normaloff>:/22x22/actions/oxygen/22x22/actions/list-remove-user.png</normaloff>:/22x22/actions/oxygen/22x22/actions/list-remove-user.png</iconset>
-         </property>
-         <property name="iconSize" >
-          <size>
-           <width>22</width>
-           <height>22</height>
-          </size>
-         </property>
-        </widget>
-       </item>
-      </layout>
+      <widget class="QComboBox" name="identityList" >
+       <property name="insertPolicy" >
+        <enum>QComboBox::InsertAtBottom</enum>
+       </property>
+       <property name="duplicatesEnabled" >
+        <bool>true</bool>
+       </property>
+      </widget>
      </item>
      <item>
-      <widget class="QTabWidget" name="tabWidget" >
-       <property name="currentIndex" >
-        <number>0</number>
+      <widget class="QToolButton" name="renameIdentity" >
+       <property name="toolTip" >
+        <string>Rename Identity</string>
+       </property>
+       <property name="text" >
+        <string>...</string>
+       </property>
+       <property name="icon" >
+        <iconset>
+         <normaloff>:/22x22/actions/oxygen/22x22/actions/edit-rename.png</normaloff>:/22x22/actions/oxygen/22x22/actions/edit-rename.png</iconset>
+       </property>
+       <property name="iconSize" >
+        <size>
+         <width>22</width>
+         <height>22</height>
+        </size>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QToolButton" name="addIdentity" >
+       <property name="toolTip" >
+        <string>Add Identity</string>
+       </property>
+       <property name="text" >
+        <string>Add...</string>
+       </property>
+       <property name="icon" >
+        <iconset>
+         <normaloff>:/22x22/actions/oxygen/22x22/actions/list-add-user.png</normaloff>:/22x22/actions/oxygen/22x22/actions/list-add-user.png</iconset>
+       </property>
+       <property name="iconSize" >
+        <size>
+         <width>22</width>
+         <height>22</height>
+        </size>
+       </property>
+       <property name="toolButtonStyle" >
+        <enum>Qt::ToolButtonIconOnly</enum>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QToolButton" name="deleteIdentity" >
+       <property name="toolTip" >
+        <string>Remove Identity</string>
+       </property>
+       <property name="text" >
+        <string>...</string>
+       </property>
+       <property name="icon" >
+        <iconset>
+         <normaloff>:/22x22/actions/oxygen/22x22/actions/list-remove-user.png</normaloff>:/22x22/actions/oxygen/22x22/actions/list-remove-user.png</iconset>
+       </property>
+       <property name="iconSize" >
+        <size>
+         <width>22</width>
+         <height>22</height>
+        </size>
        </property>
-       <widget class="QWidget" name="generalTab" >
-        <attribute name="title" >
-         <string>General</string>
-        </attribute>
-        <layout class="QVBoxLayout" >
-         <item>
-          <layout class="QHBoxLayout" >
-           <item>
-            <widget class="QLabel" name="label" >
-             <property name="text" >
-              <string>Real Name:</string>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QLineEdit" name="realName" >
-             <property name="whatsThis" >
-              <string>The "Real Name" is shown in /whois.</string>
-             </property>
-            </widget>
-           </item>
-          </layout>
-         </item>
-         <item>
-          <widget class="QGroupBox" name="groupBox" >
-           <property name="title" >
-            <string>Nicknames</string>
-           </property>
-           <layout class="QHBoxLayout" >
-            <item>
-             <widget class="QListWidget" name="nicknameList" >
-              <property name="sizePolicy" >
-               <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
-                <horstretch>1</horstretch>
-                <verstretch>0</verstretch>
-               </sizepolicy>
-              </property>
-              <property name="showDropIndicator" stdset="0" >
-               <bool>true</bool>
-              </property>
-              <property name="dragEnabled" >
-               <bool>false</bool>
-              </property>
-              <property name="dragDropMode" >
-               <enum>QAbstractItemView::NoDragDrop</enum>
-              </property>
-              <property name="selectionBehavior" >
-               <enum>QAbstractItemView::SelectRows</enum>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <layout class="QVBoxLayout" >
-              <item>
-               <widget class="QPushButton" name="addNick" >
-                <property name="sizePolicy" >
-                 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
-                  <horstretch>0</horstretch>
-                  <verstretch>0</verstretch>
-                 </sizepolicy>
-                </property>
-                <property name="toolTip" >
-                 <string>Add Nickname</string>
-                </property>
-                <property name="text" >
-                 <string>&amp;Add...</string>
-                </property>
-                <property name="icon" >
-                 <iconset>
-                  <normaloff>:/16x16/actions/oxygen/16x16/actions/list-add.png</normaloff>:/16x16/actions/oxygen/16x16/actions/list-add.png</iconset>
-                </property>
-                <property name="iconSize" >
-                 <size>
-                  <width>16</width>
-                  <height>16</height>
-                 </size>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="QPushButton" name="deleteNick" >
-                <property name="sizePolicy" >
-                 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
-                  <horstretch>0</horstretch>
-                  <verstretch>0</verstretch>
-                 </sizepolicy>
-                </property>
-                <property name="toolTip" >
-                 <string>Remove Nickname</string>
-                </property>
-                <property name="text" >
-                 <string>Remove</string>
-                </property>
-                <property name="icon" >
-                 <iconset>
-                  <normaloff>:/16x16/actions/oxygen/16x16/actions/edit-delete.png</normaloff>:/16x16/actions/oxygen/16x16/actions/edit-delete.png</iconset>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="QPushButton" name="renameNick" >
-                <property name="sizePolicy" >
-                 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
-                  <horstretch>0</horstretch>
-                  <verstretch>0</verstretch>
-                 </sizepolicy>
-                </property>
-                <property name="toolTip" >
-                 <string>Rename Identity</string>
-                </property>
-                <property name="text" >
-                 <string>Re&amp;name...</string>
-                </property>
-                <property name="icon" >
-                 <iconset>
-                  <normaloff>:/16x16/actions/oxygen/16x16/actions/edit-rename.png</normaloff>:/16x16/actions/oxygen/16x16/actions/edit-rename.png</iconset>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <layout class="QHBoxLayout" >
-                <property name="spacing" >
-                 <number>6</number>
-                </property>
-                <property name="margin" >
-                 <number>0</number>
-                </property>
-                <item>
-                 <spacer>
-                  <property name="orientation" >
-                   <enum>Qt::Horizontal</enum>
-                  </property>
-                  <property name="sizeHint" stdset="0" >
-                   <size>
-                    <width>0</width>
-                    <height>20</height>
-                   </size>
-                  </property>
-                 </spacer>
-                </item>
-                <item>
-                 <widget class="QToolButton" name="nickUp" >
-                  <property name="toolTip" >
-                   <string>Move upwards in list</string>
-                  </property>
-                  <property name="text" >
-                   <string>...</string>
-                  </property>
-                  <property name="icon" >
-                   <iconset>
-                    <normaloff>:/16x16/actions/oxygen/16x16/actions/go-up.png</normaloff>:/16x16/actions/oxygen/16x16/actions/go-up.png</iconset>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <widget class="QToolButton" name="nickDown" >
-                  <property name="toolTip" >
-                   <string>Move downwards in list</string>
-                  </property>
-                  <property name="text" >
-                   <string>...</string>
-                  </property>
-                  <property name="icon" >
-                   <iconset>
-                    <normaloff>:/16x16/actions/oxygen/16x16/actions/go-down.png</normaloff>:/16x16/actions/oxygen/16x16/actions/go-down.png</iconset>
-                  </property>
-                 </widget>
-                </item>
-                <item>
-                 <spacer>
-                  <property name="orientation" >
-                   <enum>Qt::Horizontal</enum>
-                  </property>
-                  <property name="sizeHint" stdset="0" >
-                   <size>
-                    <width>0</width>
-                    <height>20</height>
-                   </size>
-                  </property>
-                 </spacer>
-                </item>
-               </layout>
-              </item>
-              <item>
-               <spacer>
-                <property name="orientation" >
-                 <enum>Qt::Vertical</enum>
-                </property>
-                <property name="sizeHint" stdset="0" >
-                 <size>
-                  <width>124</width>
-                  <height>76</height>
-                 </size>
-                </property>
-               </spacer>
-              </item>
-             </layout>
-            </item>
-           </layout>
-          </widget>
-         </item>
-        </layout>
-       </widget>
-       <widget class="QWidget" name="awayTab" >
-        <attribute name="title" >
-         <string>A&amp;way</string>
-        </attribute>
-        <layout class="QVBoxLayout" name="verticalLayout_4" >
-         <item>
-          <widget class="QGroupBox" name="groupBox_2" >
-           <property name="title" >
-            <string>Default Away Settings</string>
-           </property>
-           <layout class="QVBoxLayout" name="verticalLayout_3" >
-            <item>
-             <layout class="QGridLayout" >
-              <property name="margin" >
-               <number>0</number>
-              </property>
-              <property name="spacing" >
-               <number>6</number>
-              </property>
-              <item row="0" column="1" >
-               <widget class="QLineEdit" name="awayNick" >
-                <property name="enabled" >
-                 <bool>false</bool>
-                </property>
-                <property name="toolTip" >
-                 <string>Nick to be used when being away</string>
-                </property>
-               </widget>
-              </item>
-              <item row="1" column="0" >
-               <widget class="QCheckBox" name="awayReasonEnabled" >
-                <property name="toolTip" >
-                 <string>Default away reason</string>
-                </property>
-                <property name="text" >
-                 <string>Away Reason</string>
-                </property>
-               </widget>
-              </item>
-              <item row="1" column="1" >
-               <widget class="QLineEdit" name="awayReason" >
-                <property name="enabled" >
-                 <bool>false</bool>
-                </property>
-                <property name="toolTip" >
-                 <string>Default away reason</string>
-                </property>
-               </widget>
-              </item>
-              <item row="0" column="0" >
-               <widget class="QCheckBox" name="awayNickEnabled" >
-                <property name="toolTip" >
-                 <string>Nick to be used when being away</string>
-                </property>
-                <property name="text" >
-                 <string>Away Nick</string>
-                </property>
-               </widget>
-              </item>
-             </layout>
-            </item>
-           </layout>
-          </widget>
-         </item>
-         <item>
-          <widget class="QGroupBox" name="detachAwayEnabled" >
-           <property name="toolTip" >
-            <string>Set away when all clients have detached from the core</string>
-           </property>
-           <property name="title" >
-            <string>Away On Detach</string>
-           </property>
-           <property name="checkable" >
-            <bool>true</bool>
-           </property>
-           <property name="checked" >
-            <bool>false</bool>
-           </property>
-           <layout class="QVBoxLayout" name="verticalLayout" >
-            <item>
-             <layout class="QHBoxLayout" name="horizontalLayout" >
-              <item>
-               <widget class="QCheckBox" name="detachAwayReasonEnabled" >
-                <property name="toolTip" >
-                 <string>Override default away reason for auto-away on detach</string>
-                </property>
-                <property name="text" >
-                 <string>Away Reason</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="QLineEdit" name="detachAwayReason" >
-                <property name="enabled" >
-                 <bool>false</bool>
-                </property>
-                <property name="toolTip" >
-                 <string>Override default away reason for auto-away on detach</string>
-                </property>
-               </widget>
-              </item>
-             </layout>
-            </item>
-           </layout>
-          </widget>
-         </item>
-         <item>
-          <widget class="QGroupBox" name="autoAwayEnabled" >
-           <property name="enabled" >
-            <bool>false</bool>
-           </property>
-           <property name="toolTip" >
-            <string>Not implemented yet</string>
-           </property>
-           <property name="title" >
-            <string>Away On Idle</string>
-           </property>
-           <property name="checkable" >
-            <bool>true</bool>
-           </property>
-           <property name="checked" >
-            <bool>false</bool>
-           </property>
-           <layout class="QVBoxLayout" name="verticalLayout_2" >
-            <item>
-             <layout class="QHBoxLayout" >
-              <property name="spacing" >
-               <number>6</number>
-              </property>
-              <property name="margin" >
-               <number>0</number>
-              </property>
-              <item>
-               <widget class="QLabel" name="autoAwayLabel_1" >
-                <property name="text" >
-                 <string>Set away after</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <widget class="QSpinBox" name="autoAwayTime" />
-              </item>
-              <item>
-               <widget class="QLabel" name="autoAwayLabel_2" >
-                <property name="text" >
-                 <string>minutes of being idle</string>
-                </property>
-               </widget>
-              </item>
-              <item>
-               <spacer>
-                <property name="orientation" >
-                 <enum>Qt::Horizontal</enum>
-                </property>
-                <property name="sizeHint" stdset="0" >
-                 <size>
-                  <width>40</width>
-                  <height>20</height>
-                 </size>
-                </property>
-               </spacer>
-              </item>
-             </layout>
-            </item>
-            <item>
-             <layout class="QGridLayout" >
-              <property name="margin" >
-               <number>0</number>
-              </property>
-              <property name="spacing" >
-               <number>6</number>
-              </property>
-              <item row="0" column="0" >
-               <widget class="QCheckBox" name="autoAwayReasonEnabled" >
-                <property name="text" >
-                 <string>Away Reason</string>
-                </property>
-               </widget>
-              </item>
-              <item row="0" column="1" >
-               <widget class="QLineEdit" name="autoAwayReason" >
-                <property name="enabled" >
-                 <bool>false</bool>
-                </property>
-               </widget>
-              </item>
-             </layout>
-            </item>
-           </layout>
-          </widget>
-         </item>
-         <item>
-          <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>
-       <widget class="QWidget" name="advancedTab" >
-        <attribute name="title" >
-         <string>Advanced</string>
-        </attribute>
-        <layout class="QVBoxLayout" >
-         <item>
-          <layout class="QHBoxLayout" >
-           <item>
-            <widget class="QLabel" name="label_2" >
-             <property name="text" >
-              <string>Ident:</string>
-             </property>
-            </widget>
-           </item>
-           <item>
-            <widget class="QLineEdit" name="ident" >
-             <property name="whatsThis" >
-              <string>The "ident" is part of your hostmask and, together with your host, uniquely identifies you within the IRC network.</string>
-             </property>
-            </widget>
-           </item>
-          </layout>
-         </item>
-         <item>
-          <widget class="QGroupBox" name="groupBox_3" >
-           <property name="title" >
-            <string>Messages</string>
-           </property>
-           <layout class="QVBoxLayout" >
-            <item>
-             <layout class="QGridLayout" >
-              <property name="margin" >
-               <number>0</number>
-              </property>
-              <property name="spacing" >
-               <number>6</number>
-              </property>
-              <item row="1" column="0" >
-               <widget class="QLabel" name="label_3" >
-                <property name="text" >
-                 <string>Part Reason:</string>
-                </property>
-               </widget>
-              </item>
-              <item row="1" column="1" >
-               <widget class="QLineEdit" name="partReason" />
-              </item>
-              <item row="0" column="1" >
-               <widget class="QLineEdit" name="kickReason" />
-              </item>
-              <item row="2" column="0" >
-               <widget class="QLabel" name="label_5" >
-                <property name="text" >
-                 <string>Quit Reason:</string>
-                </property>
-               </widget>
-              </item>
-              <item row="2" column="1" >
-               <widget class="QLineEdit" name="quitReason" />
-              </item>
-              <item row="0" column="0" >
-               <widget class="QLabel" name="label_4" >
-                <property name="text" >
-                 <string>Kick Reason:</string>
-                </property>
-               </widget>
-              </item>
-             </layout>
-            </item>
-           </layout>
-          </widget>
-         </item>
-         <item>
-          <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>
       </widget>
      </item>
     </layout>
    </item>
+   <item>
+    <widget class="IdentityEditWidget" native="1" name="identityEditor" />
+   </item>
   </layout>
  </widget>
+ <customwidgets>
+  <customwidget>
+   <class>IdentityEditWidget</class>
+   <extends>QWidget</extends>
+   <header location="global" >identityeditwidget.h</header>
+   <container>1</container>
+  </customwidget>
+ </customwidgets>
  <tabstops>
   <tabstop>identityList</tabstop>
   <tabstop>renameIdentity</tabstop>
   <tabstop>addIdentity</tabstop>
   <tabstop>deleteIdentity</tabstop>
-  <tabstop>tabWidget</tabstop>
-  <tabstop>realName</tabstop>
-  <tabstop>nicknameList</tabstop>
-  <tabstop>addNick</tabstop>
-  <tabstop>deleteNick</tabstop>
-  <tabstop>renameNick</tabstop>
-  <tabstop>nickUp</tabstop>
-  <tabstop>nickDown</tabstop>
-  <tabstop>awayNick</tabstop>
-  <tabstop>awayReasonEnabled</tabstop>
-  <tabstop>awayReason</tabstop>
-  <tabstop>awayNickEnabled</tabstop>
-  <tabstop>autoAwayEnabled</tabstop>
-  <tabstop>autoAwayTime</tabstop>
-  <tabstop>autoAwayReasonEnabled</tabstop>
-  <tabstop>autoAwayReason</tabstop>
-  <tabstop>ident</tabstop>
-  <tabstop>kickReason</tabstop>
-  <tabstop>partReason</tabstop>
-  <tabstop>quitReason</tabstop>
  </tabstops>
  <resources/>
- <connections>
-  <connection>
-   <sender>awayNickEnabled</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>awayNick</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>71</x>
-     <y>128</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>314</x>
-     <y>129</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>awayReasonEnabled</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>awayReason</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>81</x>
-     <y>156</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>306</x>
-     <y>157</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>autoAwayReasonEnabled</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>autoAwayReason</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>126</x>
-     <y>327</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>315</x>
-     <y>328</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>detachAwayReasonEnabled</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>detachAwayReason</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>33</x>
-     <y>214</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>204</x>
-     <y>218</y>
-    </hint>
-   </hints>
-  </connection>
- </connections>
+ <connections/>
 </ui>