1e893a6e7707abd8a1d399685c19e81966f3ee83
[quassel.git] / src / qtui / settingspages / ignorelisteditdlg.ui
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3  <author>Sebastian Goth &lt;seezer@roath.org&gt;</author>
4  <class>IgnoreListEditDlg</class>
5  <widget class="QDialog" name="IgnoreListEditDlg">
6   <property name="geometry">
7    <rect>
8     <x>0</x>
9     <y>0</y>
10     <width>389</width>
11     <height>368</height>
12    </rect>
13   </property>
14   <property name="windowTitle">
15    <string>Configure Ignore Rule</string>
16   </property>
17   <property name="windowIcon">
18    <iconset>
19     <normaloff>:/icons/oxygen/16x16/actions/configure.png</normaloff>:/icons/oxygen/16x16/actions/configure.png</iconset>
20   </property>
21   <layout class="QVBoxLayout" name="verticalLayout_5">
22    <item>
23     <layout class="QHBoxLayout" name="horizontalLayout_4">
24      <item>
25       <widget class="QGroupBox" name="strictnessGroupBox">
26        <property name="toolTip">
27         <string>&lt;p&gt;&lt;b&gt;Strictness:&lt;/b&gt;&lt;/p&gt;
28 &lt;p&gt;&lt;u&gt;Dynamic:&lt;/u&gt;&lt;/p&gt;
29 &lt;p&gt;Messages are filtered &quot;on the fly&quot;.
30 Whenever you disable/delete the ignore rule, the messages are shown again.&lt;/p&gt;
31 &lt;p&gt;&lt;u&gt;Permanent:&lt;/u&gt;&lt;/p&gt;
32 &lt;p&gt;Messages are filtered before they get stored in the database.&lt;/p&gt;</string>
33        </property>
34        <property name="title">
35         <string>Strictness</string>
36        </property>
37        <layout class="QVBoxLayout" name="verticalLayout_2">
38         <item>
39          <widget class="QRadioButton" name="dynamicStrictnessButton">
40           <property name="text">
41            <string>Dynamic</string>
42           </property>
43          </widget>
44         </item>
45         <item>
46          <widget class="QRadioButton" name="permanentStrictnessButton">
47           <property name="text">
48            <string>Permanent</string>
49           </property>
50          </widget>
51         </item>
52        </layout>
53       </widget>
54      </item>
55      <item>
56       <widget class="QGroupBox" name="typeGroupBox">
57        <property name="toolTip">
58         <string>&lt;p&gt;&lt;b&gt;Rule Type:&lt;/b&gt;&lt;/p&gt;
59 &lt;p&gt;&lt;u&gt;Sender:&lt;/u&gt;&lt;/p&gt;
60 &lt;p&gt;The rule is matched against the sender string
61 &lt;i&gt;nick!ident@host.name&lt;i&gt;&lt;/p&gt;
62 &lt;p&gt;&lt;u&gt;Message:&lt;/u&gt;&lt;/p&gt;
63 &lt;p&gt;The rule is matched against the actual message content&lt;/p&gt;</string>
64        </property>
65        <property name="title">
66         <string>Rule Type</string>
67        </property>
68        <layout class="QVBoxLayout" name="verticalLayout_4">
69         <item>
70          <widget class="QRadioButton" name="senderTypeButton">
71           <property name="text">
72            <string>Sender</string>
73           </property>
74          </widget>
75         </item>
76         <item>
77          <widget class="QRadioButton" name="messageTypeButton">
78           <property name="text">
79            <string>Message</string>
80           </property>
81          </widget>
82         </item>
83         <item>
84          <widget class="QRadioButton" name="ctcpTypeButton">
85           <property name="text">
86            <string>CTCP</string>
87           </property>
88          </widget>
89         </item>
90        </layout>
91       </widget>
92      </item>
93     </layout>
94    </item>
95    <item>
96     <widget class="QGroupBox" name="ignoreRuleGroupBox">
97      <property name="toolTip">
98       <string>&lt;p&gt;&lt;b&gt;Ignore rule:&lt;/b&gt;&lt;/p&gt;
99 &lt;p&gt;Depending on the type of the rule, the text is matched against either:&lt;/p&gt;
100 &lt;p&gt;&lt;u&gt;- the message content:&lt;/u&gt;&lt;/p&gt;
101 &lt;p&gt;&lt;i&gt;Example:&lt;/i&gt;
102 &lt;br /&gt;
103 &lt;i&gt;*foobar*&lt;/i&gt; matches any text containing the word &lt;i&gt;foobar&lt;/i&gt;&lt;/p&gt;
104 &lt;p&gt;&lt;u&gt;- the sender string&lt;/u&gt;  &lt;i&gt;(nick!ident@host.name)&lt;/i&gt;&lt;/p&gt;
105 &lt;p&gt;&lt;i&gt;Examples:&lt;/i&gt;
106 &lt;br /&gt;
107 - &lt;i&gt;*@foobar.com&lt;/i&gt; matches any sender from host &lt;i&gt;foobar.com&lt;/i&gt;
108 &lt;br /&gt;
109 - &lt;i&gt;stupid!.+&lt;/i&gt; (RegEx) matches any sender with nickname &lt;i&gt;stupid&lt;/i&gt; from any host&lt;/p&gt;</string>
110      </property>
111      <property name="title">
112       <string>Ignore Rule</string>
113      </property>
114      <layout class="QVBoxLayout" name="verticalLayout">
115       <item>
116        <widget class="QLineEdit" name="ignoreRuleLineEdit"/>
117       </item>
118       <item>
119        <layout class="QHBoxLayout" name="horizontalLayout_5">
120         <item>
121          <widget class="QCheckBox" name="isRegExCheckBox">
122           <property name="toolTip">
123            <string>&lt;p&gt;&lt;b&gt;Use regular expressions:&lt;/b&gt;&lt;/p&gt;
124 &lt;p&gt;If enabled, rules follow regular expression syntax.&lt;/p&gt;
125 &lt;p&gt;Otherwise rules allow wildcard matching with the following special characters:&lt;/p&gt;
126 &lt;p&gt; *: representing &quot;any amount of any character&quot;
127 &lt;br /&gt;
128 ?: representing &quot;exactly one character&quot;&lt;/p&gt;</string>
129           </property>
130           <property name="text">
131            <string>Regular expression</string>
132           </property>
133          </widget>
134         </item>
135        </layout>
136       </item>
137      </layout>
138     </widget>
139    </item>
140    <item>
141     <widget class="QGroupBox" name="scopeGroupBox">
142      <property name="toolTip">
143       <string>&lt;p&gt;&lt;b&gt;Scope:&lt;/b&gt;&lt;/p&gt;
144 &lt;p&gt;&lt;u&gt;Global:&lt;/u&gt;&lt;/p&gt;
145 &lt;p&gt;The rule is active for any channel on any network&lt;/p&gt;
146 &lt;p&gt;&lt;u&gt;Network:&lt;/u&gt;&lt;/p&gt;
147 &lt;p&gt;The list below is interpreted as a list of networks for which the rule should match&lt;/p&gt;
148 &lt;p&gt;&lt;u&gt;Channel:&lt;/u&gt;&lt;/p&gt;
149 &lt;p&gt;The list below is interpreted as a list of channels for which the rule should match&lt;/p&gt;</string>
150      </property>
151      <property name="title">
152       <string>Scope</string>
153      </property>
154      <layout class="QHBoxLayout" name="horizontalLayout">
155       <item>
156        <layout class="QVBoxLayout" name="verticalLayout_3">
157         <item>
158          <widget class="QRadioButton" name="globalScopeButton">
159           <property name="text">
160            <string>Global</string>
161           </property>
162          </widget>
163         </item>
164         <item>
165          <widget class="QRadioButton" name="networkScopeButton">
166           <property name="text">
167            <string>Network</string>
168           </property>
169          </widget>
170         </item>
171         <item>
172          <widget class="QRadioButton" name="channelScopeButton">
173           <property name="text">
174            <string>Channel</string>
175           </property>
176          </widget>
177         </item>
178        </layout>
179       </item>
180       <item>
181        <widget class="QPlainTextEdit" name="scopeRuleTextEdit">
182         <property name="toolTip">
183          <string>&lt;p&gt;&lt;b&gt;Scope rule:&lt;/b&gt;&lt;/p&gt;
184 &lt;p&gt;A scope rule is a semicolon separated list of either &lt;i&gt;network&lt;/i&gt; or &lt;i&gt;channel&lt;/i&gt; names.&lt;/p&gt;
185 &lt;p&gt;&lt;i&gt;Example:&lt;/i&gt;
186 &lt;br /&gt;
187 &lt;i&gt;#quassel*; #foobar; !#quasseldroid&lt;/i&gt;
188 &lt;br /&gt;
189 would match on &lt;i&gt;#foobar&lt;/i&gt; and any channel starting with &lt;i&gt;#quassel&lt;/i&gt; except for &lt;i&gt;#quasseldroid&lt;/i&gt;
190 &lt;br /&gt;
191 &lt;p&gt;If only inverted names are specified, it will match anything except for what's specified (implicit wildcard).&lt;/p&gt;
192 &lt;p&gt;&lt;i&gt;Example:&lt;/i&gt;
193 &lt;br /&gt;
194 &lt;i&gt;!#quassel*; !#foobar&lt;/i&gt;
195 &lt;br /&gt;
196 would match anything except for &lt;i&gt;#foobar&lt;/i&gt; or any channel starting with &lt;i&gt;#quassel&lt;/i&gt;&lt;/p&gt;</string>
197         </property>
198        </widget>
199       </item>
200      </layout>
201     </widget>
202    </item>
203    <item>
204     <layout class="QHBoxLayout" name="horizontalLayout_6">
205      <item>
206       <spacer name="horizontalSpacer">
207        <property name="orientation">
208         <enum>Qt::Horizontal</enum>
209        </property>
210        <property name="sizeHint" stdset="0">
211         <size>
212          <width>40</width>
213          <height>20</height>
214         </size>
215        </property>
216       </spacer>
217      </item>
218      <item>
219       <widget class="QCheckBox" name="isActiveCheckBox">
220        <property name="toolTip">
221         <string>&lt;p&gt;&lt;b&gt;Enable / Disable:&lt;/b&gt;&lt;/p&gt;
222 &lt;p&gt;Only enabled rules are filtered.
223 &lt;br /&gt;
224 For dynamic rules, disabling actually shows the filtered messages again.&lt;/p&gt;</string>
225        </property>
226        <property name="text">
227         <string>Rule is enabled</string>
228        </property>
229       </widget>
230      </item>
231      <item>
232       <widget class="QDialogButtonBox" name="buttonBox">
233        <property name="orientation">
234         <enum>Qt::Horizontal</enum>
235        </property>
236        <property name="standardButtons">
237         <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
238        </property>
239       </widget>
240      </item>
241     </layout>
242    </item>
243   </layout>
244  </widget>
245  <tabstops>
246   <tabstop>dynamicStrictnessButton</tabstop>
247   <tabstop>permanentStrictnessButton</tabstop>
248   <tabstop>senderTypeButton</tabstop>
249   <tabstop>messageTypeButton</tabstop>
250   <tabstop>ignoreRuleLineEdit</tabstop>
251   <tabstop>isRegExCheckBox</tabstop>
252   <tabstop>scopeRuleTextEdit</tabstop>
253   <tabstop>globalScopeButton</tabstop>
254   <tabstop>networkScopeButton</tabstop>
255   <tabstop>channelScopeButton</tabstop>
256   <tabstop>isActiveCheckBox</tabstop>
257   <tabstop>buttonBox</tabstop>
258  </tabstops>
259  <resources>
260   <include location="../../../icons/oxygen.qrc"/>
261  </resources>
262  <connections>
263   <connection>
264    <sender>buttonBox</sender>
265    <signal>accepted()</signal>
266    <receiver>IgnoreListEditDlg</receiver>
267    <slot>accept()</slot>
268    <hints>
269     <hint type="sourcelabel">
270      <x>248</x>
271      <y>254</y>
272     </hint>
273     <hint type="destinationlabel">
274      <x>157</x>
275      <y>274</y>
276     </hint>
277    </hints>
278   </connection>
279   <connection>
280    <sender>buttonBox</sender>
281    <signal>rejected()</signal>
282    <receiver>IgnoreListEditDlg</receiver>
283    <slot>reject()</slot>
284    <hints>
285     <hint type="sourcelabel">
286      <x>316</x>
287      <y>260</y>
288     </hint>
289     <hint type="destinationlabel">
290      <x>286</x>
291      <y>274</y>
292     </hint>
293    </hints>
294   </connection>
295  </connections>
296 </ui>