mailcommon
searchpatternedit.cpp
Go to the documentation of this file.
106 void SearchRuleWidget::setPatternEditOptions( SearchPatternEdit::SearchPatternEditOptions options )
202 RuleWidgetHandlerManager::instance()->setIsNepomukSearch(modeType==SearchPatternEdit::NepomukMode);
412 SearchRuleWidgetLister::SearchRuleWidgetLister( QWidget *parent, SearchPatternEdit::SearchPatternEditOptions options, SearchPatternEdit::SearchModeType modeType)
425 void SearchRuleWidgetLister::setPatternEditOptions( SearchPatternEdit::SearchPatternEditOptions options )
580 SearchPatternEdit::SearchPatternEdit( QWidget *parent, SearchPatternEditOptions options, SearchModeType modeType )
597 void SearchPatternEdit::setPatternEditOptions( SearchPatternEdit::SearchPatternEditOptions options )
virtual QWidget * createWidget(QWidget *parent)
Definition: searchpatternedit.cpp:539
void slotRuleFieldChanged(const QString &)
Definition: searchpatternedit.cpp:400
void updateSearchPattern()
Updates the search pattern according to the current widget values.
Definition: searchpatternedit.cpp:592
virtual void clearWidget(QWidget *aWidget)
Definition: searchpatternedit.cpp:547
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 contentsChanged(const QString &)
This signal is emitted whenever the user alters the contents/value of the rule.
void slotFunctionChanged()
Definition: searchpatternedit.cpp:285
void removeWidget(QWidget *)
void slotReturnPressed()
Definition: searchpatternedit.cpp:305
void setRule(QStackedWidget *functionStack, QStackedWidget *valueStack, const MailCommon::SearchRule::Ptr rule) const
Definition: rulewidgethandlermanager.cpp:208
void addWidget(QWidget *)
void slotRemoveWidget()
Definition: searchpatternedit.cpp:233
void setIsNepomukSearch(bool isNepomukSearch)
Definition: rulewidgethandlermanager.cpp:82
boost::shared_ptr< SearchRule > Ptr
Defines a pointer to a search rule.
Definition: searchpattern.h:69
Singleton to manage the list of RuleWidgetHandlers.
Definition: rulewidgethandlermanager.h:50
void slotAddWidget()
Definition: searchpatternedit.cpp:228
QString value(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const
Definition: rulewidgethandlermanager.cpp:170
void slotAddWidget(QWidget *)
Definition: searchpatternedit.cpp:484
void returnPressed()
void setPatternEditOptions(SearchPatternEdit::SearchPatternEditOptions options)
Definition: searchpatternedit.cpp:597
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:41
void reset()
Called when the widget should let go of the currently referenced filter and disable itself...
Definition: searchpatternedit.cpp:694
void reset()
Resets the rule currently worked on and updates the widget accordingly.
Definition: searchpatternedit.cpp:275
A widget to edit a single MailCommon::SearchRule.
Definition: searchpatternedit.h:173
static QByteArray ruleFieldToEnglish(const QString &i18nVal)
Used internally to translate i18n-ized pseudo-headers back to English.
Definition: searchpatternedit.cpp:310
This class is an abstraction of a search over messages.
Definition: searchpattern.h:595
void reset(QStackedWidget *functionStack, QStackedWidget *valueStack) const
Definition: rulewidgethandlermanager.cpp:198
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:222
void update(const QByteArray &field, QStackedWidget *functionStack, QStackedWidget *valueStack) const
Definition: rulewidgethandlermanager.cpp:222
static QString displayNameFromInternalName(const QString &internal)
Definition: searchpatternedit.cpp:330
static const struct @6 SpecialRuleFields[]
void setPatternEditOptions(MailCommon::SearchPatternEdit::SearchPatternEditOptions options)
Definition: searchpatternedit.cpp:106
void setPatternEditOptions(SearchPatternEdit::SearchPatternEditOptions options)
Definition: searchpatternedit.cpp:425
void setRuleList(QList< MailCommon::SearchRule::Ptr > *aList)
Definition: searchpatternedit.cpp:433
~SearchPatternEdit()
Definition: searchpatternedit.cpp:588
void setSearchPattern(MailCommon::SearchPattern *aPattern)
Sets the search pattern.
Definition: searchpatternedit.cpp:671
SearchPatternEdit(QWidget *parent=0, SearchPatternEditOptions options=(SearchPatternEditOptions)(None), SearchModeType modeType=StandardMode)
Constructor.
Definition: searchpatternedit.cpp:580
static int ruleFieldToId(const QString &i18nVal)
Definition: searchpatternedit.cpp:320
MailCommon::SearchRule::Ptr rule() const
Returns a reference to the currently-worked-on MailCommon::SearchRule.
Definition: searchpatternedit.cpp:262
void patternChanged()
This signal is emitted wherenever the search pattern changes in some way.
void fieldChanged(const QString &)
This signal is emitted whenever the user alters the field.
void slotValueChanged()
Definition: searchpatternedit.cpp:295
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: searchpattern.cpp:140
int indexOfRuleField(const QByteArray &aName) const
Used internally to find the corresponding index into the field ComboBox.
Definition: searchpatternedit.cpp:340
void slotRemoveWidget(QWidget *)
Definition: searchpatternedit.cpp:490
void returnPressed()
SearchRuleWidgetLister(QWidget *parent=0, SearchPatternEdit::SearchPatternEditOptions opt=(SearchPatternEdit::SearchPatternEditOptions)(SearchPatternEdit::None), SearchPatternEdit::SearchModeType modeType=SearchPatternEdit::StandardMode)
Definition: searchpatternedit.cpp:412
virtual ~SearchRuleWidgetLister()
Definition: searchpatternedit.cpp:421
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.