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">
18 <iconset resource="../../../icons/oxygen.qrc">
19 <normaloff>:/icons/oxygen/16x16/actions/configure.png</normaloff>:/icons/oxygen/16x16/actions/configure.png</iconset>
21 <layout class="QVBoxLayout" name="verticalLayout_3">
23 <layout class="QHBoxLayout" name="horizontalLayout_4">
25 <widget class="QGroupBox" name="strictnessGroupBox">
26 <property name="toolTip">
27 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
28 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
29 p, li { white-space: pre-wrap; }
30 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
31 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Strictness:</span></p>
32 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p>
33 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Dynamic:</span></p>
34 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Messages are filtered "on the fly".</p>
35 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Whenever you disable/delete the ignore rule,</p>
36 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">the messages are shown again.</p>
37 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
38 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Permanent:</span></p>
39 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Messages are filtered before they get stored in the database.</p></body></html></string>
41 <property name="title">
42 <string>Strictness</string>
44 <layout class="QHBoxLayout" name="horizontalLayout_2">
46 <widget class="QRadioButton" name="dynamicStrictnessButton">
47 <property name="text">
48 <string>Dynamic</string>
53 <widget class="QRadioButton" name="permanentStrictnessButton">
54 <property name="text">
55 <string>Permanent</string>
63 <widget class="QGroupBox" name="typeGroupBox">
64 <property name="toolTip">
65 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
66 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
67 p, li { white-space: pre-wrap; }
68 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
69 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Rule Type:</span></p>
70 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p>
71 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">By Sender:</span></p>
72 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The rule is matched against the sender string </p>
73 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">"nick!ident@host.name"</p>
74 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
75 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">By Message:</span></p>
76 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The rule is matched against the actual message content</p>
77 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline;"></p></body></html></string>
79 <property name="title">
80 <string>Rule Type</string>
82 <layout class="QHBoxLayout" name="horizontalLayout_3">
84 <widget class="QRadioButton" name="senderTypeButton">
85 <property name="text">
86 <string>Sender</string>
91 <widget class="QRadioButton" name="messageTypeButton">
92 <property name="text">
93 <string>Message</string>
103 <widget class="QGroupBox" name="ignoreRuleGroupBox">
104 <property name="toolTip">
105 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
106 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
107 p, li { white-space: pre-wrap; }
108 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
109 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Ignore rule:</span></p>
110 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p>
111 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Depending on the type of the rule, the text is matched against either:</p>
112 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
113 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- <span style=" text-decoration: underline;">the message content:</span></p>
114 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline;"></p>
115 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Example:</span></p>
116 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> "*foobar*" matches any text containing the word "foobar"</p>
117 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
118 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- <span style=" text-decoration: underline;">the sender string </span><span style=" font-style:italic; text-decoration: underline;">nick!ident@host.name</span></p>
119 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-style:italic; text-decoration: underline;"></p>
120 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Examples:</span></p>
121 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> "*@foobar.com" matches any sender from host "foobar.com"</p>
122 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
123 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> "stupid!.+" (RegEx) matches any sender with nickname "stupid" from any host</p></body></html></string>
125 <property name="title">
126 <string>Ignore rule</string>
128 <layout class="QVBoxLayout" name="verticalLayout">
130 <widget class="QLineEdit" name="ignoreRuleLineEdit"/>
133 <layout class="QHBoxLayout" name="horizontalLayout_5">
135 <widget class="QCheckBox" name="isRegExCheckBox">
136 <property name="toolTip">
137 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
138 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
139 p, li { white-space: pre-wrap; }
140 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
141 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Use RegularExpressions:</span></p>
142 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p>
143 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If enabled, rules follow regular expression syntax.</p>
144 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
145 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Otherwise rules allow wildcard matching with </p>
146 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> *: represents "any amount of any character"</p>
147 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> ?: represents "one or none character"</p>
148 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html></string>
150 <property name="text">
151 <string>Use Regular Expressions</string>
156 <widget class="QCheckBox" name="isActiveCheckBox">
157 <property name="toolTip">
158 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
159 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
160 p, li { white-space: pre-wrap; }
161 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
162 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Enable / Disable:</span></p>
163 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:768;"></p>
164 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Only enabled rules are filtered.</p>
165 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:768;">For dynamic rules, disabling actually shows the filtered messages again.</p></body></html></string>
167 <property name="text">
168 <string>Enabled</string>
178 <widget class="QGroupBox" name="scopeGroupBox">
179 <property name="toolTip">
180 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
181 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
182 p, li { white-space: pre-wrap; }
183 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
184 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Scope:</span></p>
185 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p>
186 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Global:</span></p>
187 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The rule is active for any channel on any network</p>
188 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
189 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Network:</span></p>
190 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The list below is interpreted as a list of networks for which the rule should match</p>
191 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
192 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" text-decoration: underline;">Channel:</span></p>
193 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The list below is interpreted as a list of channels for which the rule should match</p></body></html></string>
195 <property name="title">
196 <string>Scope</string>
198 <layout class="QVBoxLayout" name="verticalLayout_2">
200 <layout class="QHBoxLayout" name="horizontalLayout">
202 <widget class="QRadioButton" name="globalScopeButton">
203 <property name="text">
204 <string>Global</string>
209 <widget class="QRadioButton" name="networkScopeButton">
210 <property name="text">
211 <string>Network</string>
216 <widget class="QRadioButton" name="channelScopeButton">
217 <property name="text">
218 <string>Channel</string>
225 <widget class="QPlainTextEdit" name="scopeRuleTextEdit">
226 <property name="toolTip">
227 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
228 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
229 p, li { white-space: pre-wrap; }
230 </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
231 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Scope rule:</span></p>
232 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p>
233 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A scope rule is a semicolon separated list of either</p>
234 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">network or channel names.</p>
235 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
236 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Example:</span></p>
237 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">"#quassel*; #foobar"</p>
238 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">would match on #foobar and on any channel starting with "#quassel"</p></body></html></string>
246 <widget class="QDialogButtonBox" name="buttonBox">
247 <property name="orientation">
248 <enum>Qt::Horizontal</enum>
250 <property name="standardButtons">
251 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
258 <include location="../../../icons/oxygen.qrc"/>
262 <sender>buttonBox</sender>
263 <signal>accepted()</signal>
264 <receiver>IgnoreListEditDlg</receiver>
265 <slot>accept()</slot>
267 <hint type="sourcelabel">
271 <hint type="destinationlabel">
278 <sender>buttonBox</sender>
279 <signal>rejected()</signal>
280 <receiver>IgnoreListEditDlg</receiver>
281 <slot>reject()</slot>
283 <hint type="sourcelabel">
287 <hint type="destinationlabel">