client: Highest sender prefix mode, migrate, fix
[quassel.git] / src / qtui / settingspages / chatviewsettingspage.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <class>ChatViewSettingsPage</class>
4  <widget class="QWidget" name="ChatViewSettingsPage">
5   <property name="geometry">
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>514</width>
10     <height>294</height>
11    </rect>
12   </property>
13   <property name="windowTitle">
14    <string>Form</string>
15   </property>
16   <layout class="QVBoxLayout" name="verticalLayout_2">
17    <item>
18     <layout class="QHBoxLayout" name="horizontalLayout">
19      <item>
20       <widget class="QCheckBox" name="customTimestampFormat">
21        <property name="toolTip">
22         <string>Use a custom format for the timestamp</string>
23        </property>
24        <property name="text">
25         <string>Custom timestamp format:</string>
26        </property>
27        <property name="defaultValue" stdset="0">
28         <bool>false</bool>
29        </property>
30        <property name="settingsKey" stdset="0">
31         <string notr="true">UseCustomTimestampFormat</string>
32        </property>
33       </widget>
34      </item>
35      <item>
36       <widget class="QLineEdit" name="timestampFormat">
37        <property name="enabled">
38         <bool>false</bool>
39        </property>
40        <property name="toolTip">
41         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Usage examples:&lt;/p&gt;
42 &lt;table cellpadding=&quot;2&quot;&gt;
43 &lt;tr&gt;&lt;td&gt;dd.MM.yyyy&lt;/td&gt;&lt;td&gt;21.05.2001&lt;/td&gt;&lt;/tr&gt;
44 &lt;tr&gt;&lt;td&gt;ddd MMMM d yy&lt;/td&gt;&lt;td&gt;Tue May 21 01&lt;/td&gt;&lt;/tr&gt;
45 &lt;tr&gt;&lt;td&gt;hh:mm:ss.zzz&lt;/td&gt;&lt;td&gt;14:13:09.042&lt;/td&gt;&lt;/tr&gt;
46 &lt;tr&gt;&lt;td&gt;h:m:s ap&lt;/td&gt;&lt;td&gt;2:13:9 pm&lt;/td&gt;&lt;/tr&gt;
47 &lt;/table&gt;
48 &lt;/body&gt;&lt;/html&gt;</string>
49        </property>
50        <property name="text">
51         <string/>
52        </property>
53        <property name="defaultValue" stdset="0">
54         <string> hh:mm:ss</string>
55        </property>
56        <property name="settingsKey" stdset="0">
57         <string notr="true">TimestampFormat</string>
58        </property>
59       </widget>
60      </item>
61      <item>
62       <spacer name="horizontalSpacer">
63        <property name="orientation">
64         <enum>Qt::Horizontal</enum>
65        </property>
66        <property name="sizeHint" stdset="0">
67         <size>
68          <width>40</width>
69          <height>20</height>
70         </size>
71        </property>
72       </spacer>
73      </item>
74     </layout>
75    </item>
76    <item>
77     <widget class="QCheckBox" name="showSenderBrackets">
78      <property name="toolTip">
79       <string>Shows &lt;brackets&gt; around the names of senders</string>
80      </property>
81      <property name="text">
82       <string>Show brackets around sender names</string>
83      </property>
84      <property name="checked">
85       <bool>false</bool>
86      </property>
87      <property name="defaultValue" stdset="0">
88       <bool>false</bool>
89      </property>
90      <property name="settingsKey" stdset="0">
91       <string notr="true">ShowSenderBrackets</string>
92      </property>
93     </widget>
94    </item>
95    <item>
96     <layout class="QHBoxLayout" name="horizontalLayout_2">
97      <item>
98       <widget class="QLabel" name="label">
99        <property name="text">
100         <string>Show sender modes before nicknames:</string>
101        </property>
102       </widget>
103      </item>
104      <item>
105       <widget class="QComboBox" name="senderPrefixComboBox">
106        <property name="toolTip">
107         <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
108 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
109 p, li { white-space: pre-wrap; }
110 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot;font-weight:400; font-style:normal;&quot;&gt;
111 &lt;p&gt;&lt;span style=&quot;font-weight:600;&quot;&gt;Sender modes:&lt;/span&gt;&lt;/p&gt;
112 &lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;No modes:&lt;/span&gt; Don't show any modes&lt;br/&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Example:&lt;/span&gt; &amp;lt;nickname&amp;gt;&lt;/p&gt;
113 &lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Highest mode:&lt;/span&gt; Show only the highest active mode&lt;br/&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Example:&lt;/span&gt; &amp;lt;@nickname&amp;gt;&lt;/p&gt;
114 &lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;All modes:&lt;/span&gt; Show all active modes&lt;br/&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Example:&lt;/span&gt; &amp;lt;@+nickname&amp;gt;&lt;/p&gt;
115 &lt;/body&gt;&lt;/html&gt;</string>
116        </property>
117        <property name="defaultValue" stdset="0">
118         <bool>1</bool>
119        </property>
120        <property name="settingsKey" stdset="0">
121         <string notr="true">SenderPrefixMode</string>
122        </property>
123       </widget>
124      </item>
125      <item>
126       <spacer name="horizontalSpacer_2">
127        <property name="orientation">
128         <enum>Qt::Horizontal</enum>
129        </property>
130        <property name="sizeHint" stdset="0">
131         <size>
132          <width>40</width>
133          <height>20</height>
134         </size>
135        </property>
136       </spacer>
137      </item>
138     </layout>
139    </item>
140    <item>
141     <layout class="QHBoxLayout" name="horizontalLayout_3">
142      <item>
143       <widget class="QCheckBox" name="customChatViewFont">
144        <property name="text">
145         <string>Custom chat window font:</string>
146        </property>
147        <property name="checked">
148         <bool>false</bool>
149        </property>
150        <property name="settingsKey" stdset="0">
151         <string notr="true">/QtUiStyle/Fonts/UseCustomChatViewFont</string>
152        </property>
153        <property name="defaultValue" stdset="0">
154         <bool>false</bool>
155        </property>
156       </widget>
157      </item>
158      <item>
159       <widget class="FontSelector" name="chatViewFont" native="true">
160        <property name="enabled">
161         <bool>false</bool>
162        </property>
163        <property name="settingsKey" stdset="0">
164         <string notr="true">/QtUiStyle/Fonts/ChatView</string>
165        </property>
166        <property name="defaultValue" stdset="0">
167         <font>
168          <family>Monospace</family>
169         </font>
170        </property>
171       </widget>
172      </item>
173     </layout>
174    </item>
175    <item>
176     <widget class="QCheckBox" name="showWebPreview">
177      <property name="toolTip">
178       <string>Show a website preview window when hovering the mouse over a web address</string>
179      </property>
180      <property name="text">
181       <string>Show previews of webpages on URL hover</string>
182      </property>
183      <property name="checked">
184       <bool>true</bool>
185      </property>
186      <property name="defaultValue" stdset="0">
187       <bool>true</bool>
188      </property>
189      <property name="settingsKey" stdset="0">
190       <string notr="true">ShowWebPreview</string>
191      </property>
192     </widget>
193    </item>
194    <item>
195     <widget class="QCheckBox" name="autoMarkerLine">
196      <property name="toolTip">
197       <string>Set the marker line to the bottom of the current chat window when selecting another channel</string>
198      </property>
199      <property name="text">
200       <string>Set marker line automatically when switching chats</string>
201      </property>
202      <property name="checked">
203       <bool>true</bool>
204      </property>
205      <property name="settingsKey" stdset="0">
206       <string notr="true">AutoMarkerLine</string>
207      </property>
208      <property name="defaultValue" stdset="0">
209       <bool>true</bool>
210      </property>
211     </widget>
212    </item>
213    <item>
214     <widget class="QCheckBox" name="autoMarkerLineOnLostFocus">
215      <property name="toolTip">
216       <string>Set the marker line to the bottom of the current chat window when Quassel loses focus.</string>
217      </property>
218      <property name="text">
219       <string>Set marker line automatically when Quassel loses focus</string>
220      </property>
221      <property name="checked">
222       <bool>true</bool>
223      </property>
224      <property name="settingsKey" stdset="0">
225       <string notr="true">AutoMarkerLineOnLostFocus</string>
226      </property>
227      <property name="defaultValue" stdset="0">
228       <bool>true</bool>
229      </property>
230     </widget>
231    </item>
232    <item>
233     <layout class="QHBoxLayout" name="horizontalLayout_4">
234      <item>
235       <widget class="QLabel" name="label_2">
236        <property name="text">
237         <string>Web Search URL:</string>
238        </property>
239       </widget>
240      </item>
241      <item>
242       <widget class="QLineEdit" name="webSearchUrlFormat">
243        <property name="toolTip">
244         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The URL to open with the selected text as the parameter. Place &lt;span style=&quot; font-weight:600;&quot;&gt;%s&lt;/span&gt; where selected text should go.&lt;/p&gt;&lt;p&gt;Eg:&lt;/p&gt;&lt;p&gt;https://www.google.com/search?q=&lt;span style=&quot; font-weight:600;&quot;&gt;%s&lt;br/&gt;&lt;/span&gt;https://duckduckgo.com/?q=&lt;span style=&quot; font-weight:600;&quot;&gt;%s&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
245        </property>
246        <property name="settingsKey" stdset="0">
247         <string notr="true">WebSearchUrlFormat</string>
248        </property>
249        <property name="defaultValue" stdset="0">
250         <string>https://www.google.com/search?q=%s</string>
251        </property>
252       </widget>
253      </item>
254     </layout>
255    </item>
256    <item>
257     <spacer name="verticalSpacer">
258      <property name="orientation">
259       <enum>Qt::Vertical</enum>
260      </property>
261      <property name="sizeHint" stdset="0">
262       <size>
263        <width>20</width>
264        <height>19</height>
265       </size>
266      </property>
267     </spacer>
268    </item>
269   </layout>
270  </widget>
271  <customwidgets>
272   <customwidget>
273    <class>FontSelector</class>
274    <extends>QWidget</extends>
275    <header>fontselector.h</header>
276    <container>1</container>
277   </customwidget>
278  </customwidgets>
279  <tabstops>
280   <tabstop>customTimestampFormat</tabstop>
281   <tabstop>timestampFormat</tabstop>
282   <tabstop>showSenderBrackets</tabstop>
283   <tabstop>senderPrefixComboBox</tabstop>
284   <tabstop>customChatViewFont</tabstop>
285   <tabstop>showWebPreview</tabstop>
286   <tabstop>autoMarkerLine</tabstop>
287   <tabstop>autoMarkerLineOnLostFocus</tabstop>
288   <tabstop>webSearchUrlFormat</tabstop>
289  </tabstops>
290  <resources/>
291  <connections>
292   <connection>
293    <sender>customChatViewFont</sender>
294    <signal>toggled(bool)</signal>
295    <receiver>chatViewFont</receiver>
296    <slot>setEnabled(bool)</slot>
297    <hints>
298     <hint type="sourcelabel">
299      <x>205</x>
300      <y>48</y>
301     </hint>
302     <hint type="destinationlabel">
303      <x>304</x>
304      <y>50</y>
305     </hint>
306    </hints>
307   </connection>
308   <connection>
309    <sender>customTimestampFormat</sender>
310    <signal>toggled(bool)</signal>
311    <receiver>timestampFormat</receiver>
312    <slot>setEnabled(bool)</slot>
313    <hints>
314     <hint type="sourcelabel">
315      <x>116</x>
316      <y>22</y>
317     </hint>
318     <hint type="destinationlabel">
319      <x>301</x>
320      <y>23</y>
321     </hint>
322    </hints>
323   </connection>
324  </connections>
325 </ui>