Show right subpage in BacklockSettingsPage at start
[quassel.git] / src / qtui / settingspages / backlogsettingspage.ui
index e86d44a..ac06999 100644 (file)
@@ -5,8 +5,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>505</width>
-    <height>362</height>
+    <width>439</width>
+    <height>325</height>
    </rect>
   </property>
   <property name="windowTitle" >
   </property>
   <layout class="QVBoxLayout" name="verticalLayout" >
    <item>
-    <widget class="QComboBox" name="requesterType" >
+    <layout class="QHBoxLayout" name="horizontalLayout_5" >
      <item>
-      <property name="text" >
-       <string>Fixed Amount per Buffer</string>
-      </property>
+      <widget class="QLabel" name="label_3" >
+       <property name="text" >
+        <string>Backlog Request Method:</string>
+       </property>
+      </widget>
      </item>
      <item>
-      <property name="text" >
-       <string>Unread Messages per Buffer</string>
-      </property>
+      <widget class="QComboBox" name="requesterType" >
+       <item>
+        <property name="text" >
+         <string>Fixed Amount per Buffer</string>
+        </property>
+       </item>
+       <item>
+        <property name="text" >
+         <string>Unread Messages per Buffer</string>
+        </property>
+       </item>
+       <item>
+        <property name="text" >
+         <string>Global Unread Messages</string>
+        </property>
+       </item>
+      </widget>
      </item>
      <item>
-      <property name="text" >
-       <string>Global Unread Messages</string>
-      </property>
+      <spacer name="horizontalSpacer_4" >
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0" >
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
      </item>
-    </widget>
+    </layout>
    </item>
    <item>
     <widget class="QStackedWidget" name="stackedWidget" >
      <property name="currentIndex" >
-      <number>1</number>
+      <number>0</number>
      </property>
      <widget class="QWidget" name="page" >
-      <property name="geometry" >
-       <rect>
-        <x>0</x>
-        <y>0</y>
-        <width>481</width>
-        <height>259</height>
-       </rect>
-      </property>
       <layout class="QVBoxLayout" name="verticalLayout_2" >
        <item>
         <widget class="QLabel" name="label_9" >
            <property name="value" >
             <number>500</number>
            </property>
+           <property name="settingsKey" stdset="0" >
+            <string>FixedBacklogAmount</string>
+           </property>
+           <property name="defaultValue" stdset="0" >
+            <number>500</number>
+           </property>
           </widget>
          </item>
          <item>
       </layout>
      </widget>
      <widget class="QWidget" name="page_2" >
-      <property name="geometry" >
-       <rect>
-        <x>0</x>
-        <y>0</y>
-        <width>481</width>
-        <height>259</height>
-       </rect>
-      </property>
       <layout class="QVBoxLayout" name="verticalLayout_3" >
        <item>
         <widget class="QLabel" name="label_10" >
@@ -166,6 +180,12 @@ You can also chose to fetch additional older chatlines to provide a better conte
            <property name="value" >
             <number>200</number>
            </property>
+           <property name="settingsKey" stdset="0" >
+            <string>PerBufferUnreadBacklogLimit</string>
+           </property>
+           <property name="defaultValue" stdset="0" >
+            <number>200</number>
+           </property>
           </widget>
          </item>
          <item>
@@ -192,10 +212,16 @@ You can also chose to fetch additional older chatlines to provide a better conte
            <property name="value" >
             <number>50</number>
            </property>
+           <property name="settingsKey" stdset="0" >
+            <string>PerBufferUnreadBacklogAdditional</string>
+           </property>
+           <property name="defaultValue" stdset="0" >
+            <number>50</number>
+           </property>
           </widget>
          </item>
          <item>
-          <spacer name="horizontalSpacer_3" >
+          <spacer name="horizontalSpacer_5" >
            <property name="orientation" >
             <enum>Qt::Horizontal</enum>
            </property>
@@ -229,8 +255,7 @@ You can also chose to fetch additional older chatlines to provide a better conte
        <item>
         <widget class="QLabel" name="label_15" >
          <property name="text" >
-          <string>This requester fetches all messages newer than the oldest unread message for all buffers. 
-This requester determines which is the oldest read message of all buffers and then requests one large chunk of messages across all buffers.
+          <string>This requester fetches all messages newer than the oldest unread message for all buffers.
 
 Note: this requester is not recommended if you use hidden buffer or have inactive buffers (i.e.: no stale queries or channels).
 It is useful to limit the total amount of the backlog and is probably the fastest.
@@ -271,6 +296,12 @@ You can also chose to fetch additional older chatlines to provide a better conte
            <property name="value" >
             <number>200</number>
            </property>
+           <property name="settingsKey" stdset="0" >
+            <string>GlobalUnreadBacklogLimit</string>
+           </property>
+           <property name="defaultValue" stdset="0" >
+            <number>200</number>
+           </property>
           </widget>
          </item>
          <item>
@@ -297,6 +328,12 @@ You can also chose to fetch additional older chatlines to provide a better conte
            <property name="value" >
             <number>50</number>
            </property>
+           <property name="settingsKey" stdset="0" >
+            <string>GlobalUnreadBacklogAdditional</string>
+           </property>
+           <property name="defaultValue" stdset="0" >
+            <number>50</number>
+           </property>
           </widget>
          </item>
          <item>
@@ -354,6 +391,12 @@ You can also chose to fetch additional older chatlines to provide a better conte
        <property name="value" >
         <number>200</number>
        </property>
+       <property name="settingsKey" stdset="0" >
+        <string>DynamicBacklogAmount</string>
+       </property>
+       <property name="defaultValue" stdset="0" >
+        <number>200</number>
+       </property>
       </widget>
      </item>
      <item>
@@ -379,7 +422,7 @@ You can also chose to fetch additional older chatlines to provide a better conte
      <property name="sizeHint" stdset="0" >
       <size>
        <width>20</width>
-       <height>18</height>
+       <height>40</height>
       </size>
      </property>
     </spacer>
@@ -395,8 +438,8 @@ You can also chose to fetch additional older chatlines to provide a better conte
    <slot>setCurrentIndex(int)</slot>
    <hints>
     <hint type="sourcelabel" >
-     <x>146</x>
-     <y>27</y>
+     <x>316</x>
+     <y>31</y>
     </hint>
     <hint type="destinationlabel" >
      <x>147</x>