8938b8e1044f7767997b641479945a1e9cb3422c
[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&lt;/i&gt;
188 &lt;br /&gt;
189 would match on #foobar and on any channel starting with &lt;i&gt;#quassel&lt;/i&gt;&lt;/p&gt;</string>
190         </property>
191        </widget>
192       </item>
193      </layout>
194     </widget>
195    </item>
196    <item>
197     <layout class="QHBoxLayout" name="horizontalLayout_6">
198      <item>
199       <spacer name="horizontalSpacer">
200        <property name="orientation">
201         <enum>Qt::Horizontal</enum>
202        </property>
203        <property name="sizeHint" stdset="0">
204         <size>
205          <width>40</width>
206          <height>20</height>
207         </size>
208        </property>
209       </spacer>
210      </item>
211      <item>
212       <widget class="QCheckBox" name="isActiveCheckBox">
213        <property name="toolTip">
214         <string>&lt;p&gt;&lt;b&gt;Enable / Disable:&lt;/b&gt;&lt;/p&gt;
215 &lt;p&gt;Only enabled rules are filtered.
216 &lt;br /&gt;
217 For dynamic rules, disabling actually shows the filtered messages again.&lt;/p&gt;</string>
218        </property>
219        <property name="text">
220         <string>Rule is enabled</string>
221        </property>
222       </widget>
223      </item>
224      <item>
225       <widget class="QDialogButtonBox" name="buttonBox">
226        <property name="orientation">
227         <enum>Qt::Horizontal</enum>
228        </property>
229        <property name="standardButtons">
230         <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
231        </property>
232       </widget>
233      </item>
234     </layout>
235    </item>
236   </layout>
237  </widget>
238  <tabstops>
239   <tabstop>dynamicStrictnessButton</tabstop>
240   <tabstop>permanentStrictnessButton</tabstop>
241   <tabstop>senderTypeButton</tabstop>
242   <tabstop>messageTypeButton</tabstop>
243   <tabstop>ignoreRuleLineEdit</tabstop>
244   <tabstop>isRegExCheckBox</tabstop>
245   <tabstop>scopeRuleTextEdit</tabstop>
246   <tabstop>globalScopeButton</tabstop>
247   <tabstop>networkScopeButton</tabstop>
248   <tabstop>channelScopeButton</tabstop>
249   <tabstop>isActiveCheckBox</tabstop>
250   <tabstop>buttonBox</tabstop>
251  </tabstops>
252  <resources>
253   <include location="../../../icons/oxygen.qrc"/>
254  </resources>
255  <connections>
256   <connection>
257    <sender>buttonBox</sender>
258    <signal>accepted()</signal>
259    <receiver>IgnoreListEditDlg</receiver>
260    <slot>accept()</slot>
261    <hints>
262     <hint type="sourcelabel">
263      <x>248</x>
264      <y>254</y>
265     </hint>
266     <hint type="destinationlabel">
267      <x>157</x>
268      <y>274</y>
269     </hint>
270    </hints>
271   </connection>
272   <connection>
273    <sender>buttonBox</sender>
274    <signal>rejected()</signal>
275    <receiver>IgnoreListEditDlg</receiver>
276    <slot>reject()</slot>
277    <hints>
278     <hint type="sourcelabel">
279      <x>316</x>
280      <y>260</y>
281     </hint>
282     <hint type="destinationlabel">
283      <x>286</x>
284      <y>274</y>
285     </hint>
286    </hints>
287   </connection>
288  </connections>
289 </ui>