KMSearchRuleWidget Class Reference
A widget to edit a single KMSearchRule.A widget to edit a single KMSearchRule. More...
#include <kmsearchpatternedit.h>
Inherits QWidget.
Public Types
- enum {
Message, Body, AnyHeader, Recipients,
Size, AgeInDays, Status
}
Public Slots
Signals
- void fieldChanged (const QString &)
- void contentsChanged (const QString &)
Public Member Functions
- KMSearchRuleWidget (QWidget *parent=0, KMSearchRule *aRule=0, const char *name=0, bool headersOnly=false, bool absoluteDates=false)
- void setHeadersOnly (bool headersOnly)
- void setRule (KMSearchRule *aRule)
- KMSearchRule * rule () const
- void reset ()
Static Public Member Functions
Protected Slots
Protected Member Functions
- int indexOfRuleField (const QCString &aName) const
Static Protected Member Functions
- static QCString ruleFieldToEnglish (const QString &i18nVal)
Detailed Description
A widget to edit a single KMSearchRule.A widget to edit a single KMSearchRule.It consists of an editable
- See also:
- QComboBox for the field, a read-only
QComboBox for the function and a
QLineEdit for the content or the pattern (in case of regexps). It manages the i18n itself, so field name should be in it's english form.
- See also:
- KMSearchRule and it does the rest. It will never delete the rule itself, as it assumes that something outside of it manages this.
- Author:
- Marc Mutz <Marc@Mutz.com>
Constructor & Destructor Documentation
|
Constructor. You can give a
|
Member Function Documentation
|
Set whether only header fields can be searched.
If |
|
Set the rule. The rule is accepted regardless of the return value of
|
|
Return a reference to the currently-worked-on.
|
|
Resets the rule currently worked on and updates the widget accordingly.
|
|
This signal is emitted whenever the user alters the field. The pseudo-headers <...> are returned in their i18n form, but stored in their english form in the rule. |
|
This signal is emitted whenever the user alters the contents/value of the rule.
|
|
Used internally to translate i18n-ized pseudo-headers back to english.
|
|
Used internally to find the corresponding index into the field ComboBox. Returns the index if found or -1 if the search failed, |
The documentation for this class was generated from the following files:
- kmsearchpatternedit.h
- kmsearchpatternedit.cpp