b68c8726e358e2bea7346dbc1a8fae8dd9ddeb1a
[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="QLabel" name="label_13">
21        <property name="text">
22         <string>Timestamp format:</string>
23        </property>
24       </widget>
25      </item>
26      <item>
27       <widget class="QLineEdit" name="timestampFormat">
28        <property name="toolTip">
29         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Usage examples:&lt;/p&gt;
30 &lt;table cellpadding=&quot;2&quot;&gt;
31 &lt;tr&gt;&lt;td&gt;dd.MM.yyyy&lt;/td&gt;&lt;td&gt;21.05.2001&lt;/td&gt;&lt;/tr&gt;
32 &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;
33 &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;
34 &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;
35 &lt;/table&gt;
36 &lt;/body&gt;&lt;/html&gt;</string>
37        </property>
38        <property name="text">
39         <string/>
40        </property>
41        <property name="defaultValue" stdset="0">
42         <string> hh:mm:ss</string>
43        </property>
44        <property name="settingsKey" stdset="0">
45         <string notr="true">TimestampFormat</string>
46        </property>
47       </widget>
48      </item>
49      <item>
50       <spacer name="horizontalSpacer">
51        <property name="orientation">
52         <enum>Qt::Horizontal</enum>
53        </property>
54        <property name="sizeHint" stdset="0">
55         <size>
56          <width>40</width>
57          <height>20</height>
58         </size>
59        </property>
60       </spacer>
61      </item>
62     </layout>
63    </item>
64    <item>
65     <widget class="QCheckBox" name="showSenderBrackets">
66      <property name="toolTip">
67       <string>Shows &lt;brackets&gt; around the names of senders</string>
68      </property>
69      <property name="text">
70       <string>Show brackets around sender names</string>
71      </property>
72      <property name="checked">
73       <bool>false</bool>
74      </property>
75      <property name="defaultValue" stdset="0">
76       <bool>false</bool>
77      </property>
78      <property name="settingsKey" stdset="0">
79       <string notr="true">ShowSenderBrackets</string>
80      </property>
81     </widget>
82    </item>
83    <item>
84     <layout class="QHBoxLayout" name="horizontalLayout_3">
85      <item>
86       <widget class="QCheckBox" name="customChatViewFont">
87        <property name="text">
88         <string>Custom chat window font:</string>
89        </property>
90        <property name="checked">
91         <bool>false</bool>
92        </property>
93        <property name="settingsKey" stdset="0">
94         <string notr="true">/QtUiStyle/Fonts/UseCustomChatViewFont</string>
95        </property>
96        <property name="defaultValue" stdset="0">
97         <bool>false</bool>
98        </property>
99       </widget>
100      </item>
101      <item>
102       <widget class="FontSelector" name="chatViewFont" native="true">
103        <property name="enabled">
104         <bool>false</bool>
105        </property>
106        <property name="settingsKey" stdset="0">
107         <string notr="true">/QtUiStyle/Fonts/ChatView</string>
108        </property>
109        <property name="defaultValue" stdset="0">
110         <font>
111          <family>Monospace</family>
112         </font>
113        </property>
114       </widget>
115      </item>
116     </layout>
117    </item>
118    <item>
119     <widget class="QCheckBox" name="showWebPreview">
120      <property name="toolTip">
121       <string>Show a website preview window when hovering the mouse over a web address</string>
122      </property>
123      <property name="text">
124       <string>Show previews of webpages on URL hover</string>
125      </property>
126      <property name="checked">
127       <bool>true</bool>
128      </property>
129      <property name="defaultValue" stdset="0">
130       <bool>true</bool>
131      </property>
132      <property name="settingsKey" stdset="0">
133       <string notr="true">ShowWebPreview</string>
134      </property>
135     </widget>
136    </item>
137    <item>
138     <widget class="QCheckBox" name="autoMarkerLine">
139      <property name="toolTip">
140       <string>Set the marker line to the bottom of the current chat window when selecting another channel</string>
141      </property>
142      <property name="text">
143       <string>Set marker line automatically when switching chats</string>
144      </property>
145      <property name="checked">
146       <bool>true</bool>
147      </property>
148      <property name="settingsKey" stdset="0">
149       <string notr="true">AutoMarkerLine</string>
150      </property>
151      <property name="defaultValue" stdset="0">
152       <bool>true</bool>
153      </property>
154     </widget>
155    </item>
156    <item>
157     <widget class="QCheckBox" name="autoMarkerLineOnLostFocus">
158      <property name="toolTip">
159       <string>Set the marker line to the bottom of the current chat window when Quassel loses focus.</string>
160      </property>
161      <property name="text">
162       <string>Set marker line automatically when Quassel loses focus</string>
163      </property>
164      <property name="checked">
165       <bool>true</bool>
166      </property>
167      <property name="settingsKey" stdset="0">
168       <string notr="true">AutoMarkerLineOnLostFocus</string>
169      </property>
170      <property name="defaultValue" stdset="0">
171       <bool>true</bool>
172      </property>
173     </widget>
174    </item>
175    <item>
176     <layout class="QHBoxLayout" name="horizontalLayout_4">
177      <item>
178       <widget class="QLabel" name="label_2">
179        <property name="text">
180         <string>Web Search URL:</string>
181        </property>
182       </widget>
183      </item>
184      <item>
185       <widget class="QLineEdit" name="webSearchUrlFormat">
186        <property name="toolTip">
187         <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>
188        </property>
189        <property name="settingsKey" stdset="0">
190         <string notr="true">WebSearchUrlFormat</string>
191        </property>
192        <property name="defaultValue" stdset="0">
193         <string>https://www.google.com/search?q=%s</string>
194        </property>
195       </widget>
196      </item>
197     </layout>
198    </item>
199    <item>
200     <spacer name="verticalSpacer">
201      <property name="orientation">
202       <enum>Qt::Vertical</enum>
203      </property>
204      <property name="sizeHint" stdset="0">
205       <size>
206        <width>20</width>
207        <height>19</height>
208       </size>
209      </property>
210     </spacer>
211    </item>
212   </layout>
213  </widget>
214  <customwidgets>
215   <customwidget>
216    <class>FontSelector</class>
217    <extends>QWidget</extends>
218    <header>fontselector.h</header>
219    <container>1</container>
220   </customwidget>
221  </customwidgets>
222  <tabstops>
223   <tabstop>timestampFormat</tabstop>
224   <tabstop>showSenderBrackets</tabstop>
225   <tabstop>customChatViewFont</tabstop>
226   <tabstop>showWebPreview</tabstop>
227   <tabstop>autoMarkerLine</tabstop>
228   <tabstop>autoMarkerLineOnLostFocus</tabstop>
229   <tabstop>webSearchUrlFormat</tabstop>
230  </tabstops>
231  <resources/>
232  <connections>
233   <connection>
234    <sender>customChatViewFont</sender>
235    <signal>toggled(bool)</signal>
236    <receiver>chatViewFont</receiver>
237    <slot>setEnabled(bool)</slot>
238    <hints>
239     <hint type="sourcelabel">
240      <x>205</x>
241      <y>48</y>
242     </hint>
243     <hint type="destinationlabel">
244      <x>304</x>
245      <y>50</y>
246     </hint>
247    </hints>
248   </connection>
249  </connections>
250 </ui>