1 <?xml version="1.0" encoding="UTF-8"?>
3 <author>Sebastian Goth <seezer@roath.org></author>
4 <class>IgnoreListEditDlg</class>
5 <widget class="QDialog" name="IgnoreListEditDlg">
6 <property name="geometry">
14 <property name="windowTitle">
15 <string>Configure Ignore Rule</string>
17 <property name="windowIcon">
19 <normaloff>:/icons/oxygen/16x16/actions/configure.png</normaloff>:/icons/oxygen/16x16/actions/configure.png</iconset>
21 <layout class="QVBoxLayout" name="verticalLayout_5">
23 <layout class="QHBoxLayout" name="horizontalLayout_4">
25 <widget class="QGroupBox" name="strictnessGroupBox">
26 <property name="toolTip">
27 <string><p><b>Strictness:</b></p>
28 <p><u>Dynamic:</u></p>
29 <p>Messages are filtered "on the fly".
30 Whenever you disable/delete the ignore rule, the messages are shown again.</p>
31 <p><u>Permanent:</u></p>
32 <p>Messages are filtered before they get stored in the database.</p></string>
34 <property name="title">
35 <string>Strictness</string>
37 <layout class="QVBoxLayout" name="verticalLayout_2">
39 <widget class="QRadioButton" name="dynamicStrictnessButton">
40 <property name="text">
41 <string>Dynamic</string>
46 <widget class="QRadioButton" name="permanentStrictnessButton">
47 <property name="text">
48 <string>Permanent</string>
56 <widget class="QGroupBox" name="typeGroupBox">
57 <property name="toolTip">
58 <string><p><b>Rule Type:</b></p>
59 <p><u>Sender:</u></p>
60 <p>The rule is matched against the sender string
61 <i>nick!ident@host.name<i></p>
62 <p><u>Message:</u></p>
63 <p>The rule is matched against the actual message content</p></string>
65 <property name="title">
66 <string>Rule Type</string>
68 <layout class="QVBoxLayout" name="verticalLayout_4">
70 <widget class="QRadioButton" name="senderTypeButton">
71 <property name="text">
72 <string>Sender</string>
77 <widget class="QRadioButton" name="messageTypeButton">
78 <property name="text">
79 <string>Message</string>
84 <widget class="QRadioButton" name="ctcpTypeButton">
85 <property name="text">
96 <widget class="QGroupBox" name="ignoreRuleGroupBox">
97 <property name="toolTip">
98 <string><p><b>Ignore rule:</b></p>
99 <p>Depending on the type of the rule, the text is matched against either:</p>
100 <p><u>- the message content:</u></p>
101 <p><i>Example:</i>
103 <i>*foobar*</i> matches any text containing the word <i>foobar</i></p>
104 <p><u>- the sender string</u> <i>(nick!ident@host.name)</i></p>
105 <p><i>Examples:</i>
107 - <i>*@foobar.com</i> matches any sender from host <i>foobar.com</i>
109 - <i>stupid!.+</i> (RegEx) matches any sender with nickname <i>stupid</i> from any host</p></string>
111 <property name="title">
112 <string>Ignore Rule</string>
114 <layout class="QVBoxLayout" name="verticalLayout">
116 <widget class="QLineEdit" name="ignoreRuleLineEdit"/>
119 <layout class="QHBoxLayout" name="horizontalLayout_5">
121 <widget class="QCheckBox" name="isRegExCheckBox">
122 <property name="toolTip">
123 <string><p><b>Use regular expressions:</b></p>
124 <p>If enabled, rules follow regular expression syntax.</p>
125 <p>Otherwise rules allow wildcard matching with the following special characters:</p>
126 <p> *: representing "any amount of any character"
128 ?: representing "exactly one character"</p></string>
130 <property name="text">
131 <string>Regular expression</string>
141 <widget class="QGroupBox" name="scopeGroupBox">
142 <property name="toolTip">
143 <string><p><b>Scope:</b></p>
144 <p><u>Global:</u></p>
145 <p>The rule is active for any channel on any network</p>
146 <p><u>Network:</u></p>
147 <p>The list below is interpreted as a list of networks for which the rule should match</p>
148 <p><u>Channel:</u></p>
149 <p>The list below is interpreted as a list of channels for which the rule should match</p></string>
151 <property name="title">
152 <string>Scope</string>
154 <layout class="QHBoxLayout" name="horizontalLayout">
156 <layout class="QVBoxLayout" name="verticalLayout_3">
158 <widget class="QRadioButton" name="globalScopeButton">
159 <property name="text">
160 <string>Global</string>
165 <widget class="QRadioButton" name="networkScopeButton">
166 <property name="text">
167 <string>Network</string>
172 <widget class="QRadioButton" name="channelScopeButton">
173 <property name="text">
174 <string>Channel</string>
181 <widget class="QPlainTextEdit" name="scopeRuleTextEdit">
182 <property name="toolTip">
183 <string><p><b>Scope rule:</b></p>
184 <p>A scope rule is a semicolon separated list of either <i>network</i> or <i>channel</i> names.</p>
185 <p><i>Example:</i>
187 <i>#quassel*; #foobar; !#quasseldroid</i>
189 would match on <i>#foobar</i> and any channel starting with <i>#quassel</i> except for <i>#quasseldroid</i>
191 <p>If only inverted names are specified, it will match anything except for what's specified (implicit wildcard).</p>
192 <p><i>Example:</i>
194 <i>!#quassel*; !#foobar</i>
196 would match anything except for <i>#foobar</i> or any channel starting with <i>#quassel</i></p></string>
204 <layout class="QHBoxLayout" name="horizontalLayout_6">
206 <spacer name="horizontalSpacer">
207 <property name="orientation">
208 <enum>Qt::Horizontal</enum>
210 <property name="sizeHint" stdset="0">
219 <widget class="QCheckBox" name="isActiveCheckBox">
220 <property name="toolTip">
221 <string><p><b>Enable / Disable:</b></p>
222 <p>Only enabled rules are filtered.
224 For dynamic rules, disabling actually shows the filtered messages again.</p></string>
226 <property name="text">
227 <string>Rule is enabled</string>
232 <widget class="QDialogButtonBox" name="buttonBox">
233 <property name="orientation">
234 <enum>Qt::Horizontal</enum>
236 <property name="standardButtons">
237 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
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>
260 <include location="../../../icons/oxygen_icons.qrc"/>
264 <sender>buttonBox</sender>
265 <signal>accepted()</signal>
266 <receiver>IgnoreListEditDlg</receiver>
267 <slot>accept()</slot>
269 <hint type="sourcelabel">
273 <hint type="destinationlabel">
280 <sender>buttonBox</sender>
281 <signal>rejected()</signal>
282 <receiver>IgnoreListEditDlg</receiver>
283 <slot>reject()</slot>
285 <hint type="sourcelabel">
289 <hint type="destinationlabel">