Optionally use system locale for chat timestamp
[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>486</width>
10     <height>230</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_3">
97      <item>
98       <widget class="QCheckBox" name="customChatViewFont">
99        <property name="text">
100         <string>Custom chat window font:</string>
101        </property>
102        <property name="checked">
103         <bool>false</bool>
104        </property>
105        <property name="settingsKey" stdset="0">
106         <string notr="true">/QtUiStyle/Fonts/UseCustomChatViewFont</string>
107        </property>
108        <property name="defaultValue" stdset="0">
109         <bool>false</bool>
110        </property>
111       </widget>
112      </item>
113      <item>
114       <widget class="FontSelector" name="chatViewFont" native="true">
115        <property name="enabled">
116         <bool>false</bool>
117        </property>
118        <property name="settingsKey" stdset="0">
119         <string notr="true">/QtUiStyle/Fonts/ChatView</string>
120        </property>
121        <property name="defaultValue" stdset="0">
122         <font>
123          <family>Monospace</family>
124         </font>
125        </property>
126       </widget>
127      </item>
128     </layout>
129    </item>
130    <item>
131     <widget class="QCheckBox" name="showWebPreview">
132      <property name="toolTip">
133       <string>Show a website preview window when hovering the mouse over a web address</string>
134      </property>
135      <property name="text">
136       <string>Show previews of webpages on URL hover</string>
137      </property>
138      <property name="checked">
139       <bool>true</bool>
140      </property>
141      <property name="defaultValue" stdset="0">
142       <bool>true</bool>
143      </property>
144      <property name="settingsKey" stdset="0">
145       <string notr="true">ShowWebPreview</string>
146      </property>
147     </widget>
148    </item>
149    <item>
150     <widget class="QCheckBox" name="autoMarkerLine">
151      <property name="toolTip">
152       <string>Set the marker line to the bottom of the current chat window when selecting another channel</string>
153      </property>
154      <property name="text">
155       <string>Set marker line automatically when switching chats</string>
156      </property>
157      <property name="checked">
158       <bool>true</bool>
159      </property>
160      <property name="settingsKey" stdset="0">
161       <string notr="true">AutoMarkerLine</string>
162      </property>
163      <property name="defaultValue" stdset="0">
164       <bool>true</bool>
165      </property>
166     </widget>
167    </item>
168    <item>
169     <widget class="QCheckBox" name="autoMarkerLineOnLostFocus">
170      <property name="toolTip">
171       <string>Set the marker line to the bottom of the current chat window when Quassel loses focus.</string>
172      </property>
173      <property name="text">
174       <string>Set marker line automatically when Quassel loses focus</string>
175      </property>
176      <property name="checked">
177       <bool>true</bool>
178      </property>
179      <property name="settingsKey" stdset="0">
180       <string notr="true">AutoMarkerLineOnLostFocus</string>
181      </property>
182      <property name="defaultValue" stdset="0">
183       <bool>true</bool>
184      </property>
185     </widget>
186    </item>
187    <item>
188     <layout class="QHBoxLayout" name="horizontalLayout_4">
189      <item>
190       <widget class="QLabel" name="label_2">
191        <property name="text">
192         <string>Web Search URL:</string>
193        </property>
194       </widget>
195      </item>
196      <item>
197       <widget class="QLineEdit" name="webSearchUrlFormat">
198        <property name="toolTip">
199         <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>
200        </property>
201        <property name="settingsKey" stdset="0">
202         <string notr="true">WebSearchUrlFormat</string>
203        </property>
204        <property name="defaultValue" stdset="0">
205         <string>https://www.google.com/search?q=%s</string>
206        </property>
207       </widget>
208      </item>
209     </layout>
210    </item>
211    <item>
212     <spacer name="verticalSpacer">
213      <property name="orientation">
214       <enum>Qt::Vertical</enum>
215      </property>
216      <property name="sizeHint" stdset="0">
217       <size>
218        <width>20</width>
219        <height>19</height>
220       </size>
221      </property>
222     </spacer>
223    </item>
224   </layout>
225  </widget>
226  <customwidgets>
227   <customwidget>
228    <class>FontSelector</class>
229    <extends>QWidget</extends>
230    <header>fontselector.h</header>
231    <container>1</container>
232   </customwidget>
233  </customwidgets>
234  <tabstops>
235   <tabstop>customTimestampFormat</tabstop>
236   <tabstop>timestampFormat</tabstop>
237   <tabstop>showSenderBrackets</tabstop>
238   <tabstop>customChatViewFont</tabstop>
239   <tabstop>showWebPreview</tabstop>
240   <tabstop>autoMarkerLine</tabstop>
241   <tabstop>autoMarkerLineOnLostFocus</tabstop>
242   <tabstop>webSearchUrlFormat</tabstop>
243  </tabstops>
244  <resources/>
245  <connections>
246   <connection>
247    <sender>customChatViewFont</sender>
248    <signal>toggled(bool)</signal>
249    <receiver>chatViewFont</receiver>
250    <slot>setEnabled(bool)</slot>
251    <hints>
252     <hint type="sourcelabel">
253      <x>205</x>
254      <y>48</y>
255     </hint>
256     <hint type="destinationlabel">
257      <x>304</x>
258      <y>50</y>
259     </hint>
260    </hints>
261   </connection>
262   <connection>
263    <sender>customTimestampFormat</sender>
264    <signal>toggled(bool)</signal>
265    <receiver>timestampFormat</receiver>
266    <slot>setEnabled(bool)</slot>
267    <hints>
268     <hint type="sourcelabel">
269      <x>116</x>
270      <y>22</y>
271     </hint>
272     <hint type="destinationlabel">
273      <x>301</x>
274      <y>23</y>
275     </hint>
276    </hints>
277   </connection>
278  </connections>
279 </ui>