mailcommon
searchpatternedit.cpp
Go to the documentation of this file.
106 void SearchRuleWidget::setPatternEditOptions( SearchPatternEdit::SearchPatternEditOptions options )
124 const bool notShowAbsoluteDates = ( options & MailCommon::SearchPatternEdit::NotShowAbsoluteDate );
366 const bool notShowAbsoluteDates = ( options & MailCommon::SearchPatternEdit::NotShowAbsoluteDate );
421 SearchRuleWidgetLister::SearchRuleWidgetLister( QWidget *parent, SearchPatternEdit::SearchPatternEditOptions options, SearchPatternEdit::SearchModeType modeType)
434 void SearchRuleWidgetLister::setPatternEditOptions( SearchPatternEdit::SearchPatternEditOptions options )
589 SearchPatternEdit::SearchPatternEdit( QWidget *parent, SearchPatternEditOptions options, SearchModeType modeType )
606 void SearchPatternEdit::setPatternEditOptions( SearchPatternEdit::SearchPatternEditOptions options )
QLayout * layout() const
void clear()
virtual QWidget * createWidget(QWidget *parent)
Definition: searchpatternedit.cpp:548
void slotRuleFieldChanged(const QString &)
Definition: searchpatternedit.cpp:409
void updateSearchPattern()
Updates the search pattern according to the current widget values.
Definition: searchpatternedit.cpp:601
virtual void clearWidget(QWidget *aWidget)
Definition: searchpatternedit.cpp:556
static RuleWidgetHandlerManager * instance()
Definition: rulewidgethandlermanager.h:59
void maybeNameChanged()
This signal is emitted whenever the name of the processed search pattern may have changed...
void createWidgets(QStackedWidget *functionStack, QStackedWidget *valueStack, const QObject *receiver) const
Definition: rulewidgethandlermanager.cpp:123
MailCommon::SearchRule::Function function(const QByteArray &field, const QStackedWidget *functionStack) const
Definition: rulewidgethandlermanager.cpp:157
void addButton(QAbstractButton *button)
void contentsChanged(const QString &)
This signal is emitted whenever the user alters the contents/value of the rule.
void slotFunctionChanged()
Definition: searchpatternedit.cpp:291
void removeWidget(QWidget *)
bool isEmpty() const
void slotReturnPressed()
Definition: searchpatternedit.cpp:311
void setIsBalooSearch(bool isBalooSearch)
Definition: rulewidgethandlermanager.cpp:82
void setRule(QStackedWidget *functionStack, QStackedWidget *valueStack, const MailCommon::SearchRule::Ptr rule) const
Definition: rulewidgethandlermanager.cpp:208
void addWidget(QWidget *)
void slotRemoveWidget()
Definition: searchpatternedit.cpp:239
Singleton to manage the list of RuleWidgetHandlers.
Definition: rulewidgethandlermanager.h:50
void slotAddWidget()
Definition: searchpatternedit.cpp:234
QString value(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const
Definition: rulewidgethandlermanager.cpp:170
void slotAddWidget(QWidget *)
Definition: searchpatternedit.cpp:493
void returnPressed()
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
void append(const T &value)
void setPatternEditOptions(SearchPatternEdit::SearchPatternEditOptions options)
Definition: searchpatternedit.cpp:606
SearchRuleWidget(QWidget *parent=0, MailCommon::SearchRule::Ptr aRule=MailCommon::SearchRule::Ptr(), SearchPatternEdit::SearchPatternEditOptions options=(SearchPatternEdit::SearchPatternEditOptions)(SearchPatternEdit::None), SearchPatternEdit::SearchModeType modeType=SearchPatternEdit::StandardMode)
Constructor.
Definition: searchpatternedit.cpp:88
Definition: tag.h:38
bool isEmpty() const
void setObjectName(const QString &name)
void setFocusProxy(QWidget *w)
void reset()
Called when the widget should let go of the currently referenced filter and disable itself...
Definition: searchpatternedit.cpp:703
void reset()
Resets the rule currently worked on and updates the widget accordingly.
Definition: searchpatternedit.cpp:281
A widget to edit a single MailCommon::SearchRule.
Definition: searchpatternedit.h:174
T & first()
static QByteArray ruleFieldToEnglish(const QString &i18nVal)
Used internally to translate i18n-ized pseudo-headers back to English.
Definition: searchpatternedit.cpp:316
This class is an abstraction of a search over messages.
Definition: searchpattern.h:79
void setMargin(int margin)
void setSizePolicy(QSizePolicy)
void reset(QStackedWidget *functionStack, QStackedWidget *valueStack) const
Definition: rulewidgethandlermanager.cpp:198
bool blockSignals(bool block)
QString prettyValue(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const
Definition: rulewidgethandlermanager.cpp:184
void updateAddRemoveButton(bool addButtonEnabled, bool removeButtonEnabled)
Definition: searchpatternedit.cpp:228
void update(const QByteArray &field, QStackedWidget *functionStack, QStackedWidget *valueStack) const
Definition: rulewidgethandlermanager.cpp:222
static QString displayNameFromInternalName(const QString &internal)
Definition: searchpatternedit.cpp:336
void setPatternEditOptions(MailCommon::SearchPatternEdit::SearchPatternEditOptions options)
Definition: searchpatternedit.cpp:106
void setChecked(bool)
void setPatternEditOptions(SearchPatternEdit::SearchPatternEditOptions options)
Definition: searchpatternedit.cpp:434
void setRuleList(QList< MailCommon::SearchRule::Ptr > *aList)
Definition: searchpatternedit.cpp:442
~SearchPatternEdit()
Definition: searchpatternedit.cpp:597
void setSearchPattern(MailCommon::SearchPattern *aPattern)
Sets the search pattern.
Definition: searchpatternedit.cpp:680
QByteArray toLatin1() const
SearchPatternEdit(QWidget *parent=0, SearchPatternEditOptions options=(SearchPatternEditOptions)(None), SearchModeType modeType=StandardMode)
Constructor.
Definition: searchpatternedit.cpp:589
static int ruleFieldToId(const QString &i18nVal)
Definition: searchpatternedit.cpp:326
MailCommon::SearchRule::Ptr rule() const
Returns a reference to the currently-worked-on MailCommon::SearchRule.
Definition: searchpatternedit.cpp:268
void patternChanged()
This signal is emitted wherenever the search pattern changes in some way.
QString fromLatin1(const char *str, int size)
void fieldChanged(const QString &)
This signal is emitted whenever the user alters the field.
void slotValueChanged()
Definition: searchpatternedit.cpp:301
static SearchRule::Ptr createInstance(const QByteArray &field=0, Function function=FuncContains, const QString &contents=QString())
Creates a new search rule of a certain type by instantiating the appropriate subclass depending on th...
Definition: searchrule.cpp:91
int indexOfRuleField(const QByteArray &aName) const
Used internally to find the corresponding index into the field ComboBox.
Definition: searchpatternedit.cpp:346
const_iterator constEnd() const
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void slotRemoveWidget(QWidget *)
Definition: searchpatternedit.cpp:499
bool setStretchFactor(QWidget *widget, int stretch)
void setSpacing(int spacing)
void returnPressed()
SearchRuleWidgetLister(QWidget *parent=0, SearchPatternEdit::SearchPatternEditOptions opt=(SearchPatternEdit::SearchPatternEditOptions)(SearchPatternEdit::None), SearchPatternEdit::SearchModeType modeType=SearchPatternEdit::StandardMode)
Definition: searchpatternedit.cpp:421
static const struct @1 SpecialRuleFields[]
virtual ~SearchRuleWidgetLister()
Definition: searchpatternedit.cpp:430
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.