client: Optionally ensure backlog on buffer show
[quassel.git] / src / qtui / settingspages / backlogsettingspage.ui
index 56e9cc2..dd15894 100644 (file)
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>446</width>
-    <height>325</height>
+    <height>329</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -38,7 +38,7 @@
         <number>200</number>
        </property>
        <property name="settingsKey" stdset="0">
-        <string>DynamicBacklogAmount</string>
+        <string notr="true">DynamicBacklogAmount</string>
        </property>
        <property name="defaultValue" stdset="0">
         <number>200</number>
      </item>
     </layout>
    </item>
+   <item>
+    <widget class="QCheckBox" name="ensureBacklogOnBufferShow">
+     <property name="toolTip">
+      <string>When switching to a chat, more backlog will be fetched if no messages are shown yet or the scrollbar isn't visible.  Useful when not fetching any initial backlog.</string>
+     </property>
+     <property name="text">
+      <string>Fetch backlog if needed when switching chats</string>
+     </property>
+     <property name="settingsKey" stdset="0">
+      <string notr="true">EnsureBacklogOnBufferShow</string>
+     </property>
+     <property name="defaultValue" stdset="0">
+      <bool>true</bool>
+     </property>
+    </widget>
+   </item>
    <item>
     <widget class="Line" name="line">
      <property name="orientation">
          <item>
           <widget class="QLabel" name="label">
            <property name="toolTip">
-            <string>amount of messages per buffer that are requested after the core connection has been established.</string>
+            <string>Amount of messages per buffer that are requested after the core connection has been established.</string>
            </property>
            <property name="text">
             <string>Initial backlog amount:</string>
          </item>
          <item>
           <widget class="QSpinBox" name="fixedBacklogAmount">
+           <property name="specialValueText">
+            <string/>
+           </property>
+           <property name="minimum">
+            <number>0</number>
+           </property>
            <property name="maximum">
-            <number>1000</number>
+            <number>99999</number>
            </property>
            <property name="singleStep">
             <number>10</number>
             <number>500</number>
            </property>
            <property name="settingsKey" stdset="0">
-            <string>FixedBacklogAmount</string>
+            <string notr="true">FixedBacklogAmount</string>
            </property>
            <property name="defaultValue" stdset="0">
             <number>500</number>
@@ -225,20 +247,26 @@ You can also choose to fetch additional older chatlines to provide a better cont
            <property name="toolTip">
             <string>Maximum amount of messages to be fetched per buffer.</string>
            </property>
+           <property name="specialValueText">
+            <string>Unlimited</string>
+           </property>
+           <property name="minimum">
+            <number>-1</number>
+           </property>
            <property name="maximum">
-            <number>1000</number>
+            <number>99999</number>
            </property>
            <property name="singleStep">
             <number>10</number>
            </property>
            <property name="value">
-            <number>200</number>
+            <number>1000</number>
            </property>
            <property name="settingsKey" stdset="0">
-            <string>PerBufferUnreadBacklogLimit</string>
+            <string notr="true">PerBufferUnreadBacklogLimit</string>
            </property>
            <property name="defaultValue" stdset="0">
-            <number>200</number>
+            <number>1000</number>
            </property>
           </widget>
          </item>
@@ -267,7 +295,7 @@ You can also choose to fetch additional older chatlines to provide a better cont
             <number>50</number>
            </property>
            <property name="settingsKey" stdset="0">
-            <string>PerBufferUnreadBacklogAdditional</string>
+            <string notr="true">PerBufferUnreadBacklogAdditional</string>
            </property>
            <property name="defaultValue" stdset="0">
             <number>50</number>
@@ -341,6 +369,12 @@ You can also chose to fetch additional older chatlines to provide a better conte
            <property name="toolTip">
             <string>Maximum amount of messages to be fetched per buffer.</string>
            </property>
+           <property name="specialValueText">
+            <string>Unlimited</string>
+           </property>
+           <property name="minimum">
+            <number>-1</number>
+           </property>
            <property name="maximum">
             <number>100000</number>
            </property>
@@ -351,7 +385,7 @@ You can also chose to fetch additional older chatlines to provide a better conte
             <number>200</number>
            </property>
            <property name="settingsKey" stdset="0">
-            <string>GlobalUnreadBacklogLimit</string>
+            <string notr="true">GlobalUnreadBacklogLimit</string>
            </property>
            <property name="defaultValue" stdset="0">
             <number>200</number>
@@ -383,7 +417,7 @@ You can also chose to fetch additional older chatlines to provide a better conte
             <number>50</number>
            </property>
            <property name="settingsKey" stdset="0">
-            <string>GlobalUnreadBacklogAdditional</string>
+            <string notr="true">GlobalUnreadBacklogAdditional</string>
            </property>
            <property name="defaultValue" stdset="0">
             <number>50</number>