KMFilterListBox Class Reference
This is a complex widget that is used to manipulate KMail's filter list.A complex widget that allows managing a list of KMFilter's. More...
#include <kmfilterdlg.h>
Inherits QGroupBox.
Public Slots
- void slotUpdateFilterName ()
- void slotApplyFilterChanges ()
- void slotShowLaterToggled (bool aOn)
Signals
- void filterSelected (KMFilter *filter)
- void resetWidgets ()
- void applyWidgets ()
Public Member Functions
- KMFilterListBox (const QString &title, QWidget *parent=0, const char *name=0, bool popFilter=false)
- void createFilter (const QCString &field, const QString &value)
- void loadFilterList (bool createDummyFilter)
- bool showLaterMsgs ()
Protected Slots
- void slotSelected (int aIdx)
- void slotNew ()
- void slotCopy ()
- void slotDelete ()
- void slotUp ()
- void slotDown ()
- void slotRename ()
Protected Attributes
- QPtrList< KMFilter > mFilterList
- QListBox * mListBox
- QPushButton * mBtnNew
- QPushButton * mBtnCopy
- QPushButton * mBtnDelete
- QPushButton * mBtnUp
- QPushButton * mBtnDown
- QPushButton * mBtnRename
- int mIdxSelItem
- bool mShowLater
Detailed Description
This is a complex widget that is used to manipulate KMail's filter list.A complex widget that allows managing a list of KMFilter's.It consists of an internal list of filters, which is a deep copy of the list
- See also:
- KMFilterMgr manages, a
QListBox displaying that list, and a few buttons used to create new filters, delete them, rename them and change the order of filters.
- See also:
- KMSearchPatternEdit and
KMFilterActionEdit) to do that.
- See also:
- filterSelected,
resetWidgets and
applyWidgets with a slot that does the right thing and there you go...
- See also:
- slotApplyFilterChanges. It will then transfer the altered filter list back to
KMFilterMgr.
- Author:
- Marc Mutz <Marc@Mutz.com>, based upon work by Stefan Taferner <taferner@kde.org>.
- See also:
- KMFilter KMFilterDlg KMFilterActionEdit KMSearchPatternEdit
Constructor & Destructor Documentation
|
Constuctor.
|
Member Function Documentation
|
Called from.
|
|
Loads the filter list and selects the first filter. Should be called when all signals are connected properly. If createDummyFilter is true, an empty filter is created to improve the usability of the dialog in case no filter has been defined so far. |
|
Returns wheather the global option 'Show Later Msgs' is set or not.
|
|
Emitted when a new filter has been selected by the user or if the current filter has changed after a 'new' or 'delete' operation.
|
|
Emitted when this widget wants the edit widgets to let go of their filter reference. Everyone holding a reference to a filter should update it from the contents of the widgets used to edit it and set their internal reference to 0. |
|
Emitted when this widget wants the edit widgets to apply the changes to the current filter.
|
|
Called when the name of a filter might have changed (e.g. through changing the first rule in
|
|
Called when the user clicks either 'Apply' or 'OK' in.
|
|
Called when the user toggles the 'Show Download Later Msgs' Checkbox in the Global Options section.
|
|
Called when the user clicks on a filter in the filter list. Calculates the corresponding filter and emits the
|
|
Called when the user clicks the 'New' button. Creates a new empty filter just before the current one. |
|
Called when the user clicks the 'Copy' button. Creates a copy of the current filter and inserts it just before the current one. |
|
Called when the user clicks the 'Delete' button. Deletes the current filter. |
|
Called when the user clicks the 'Up' button. Moves the current filter up one line. |
|
Called when the user clicks the 'Down' button. Moves the current filter down one line. |
|
Called when the user clicks the 'Rename' button. Pops up a dialog prompting to enter the new name. |
Member Data Documentation
|
The deep copy of the filter list.
|
|
The listbox displaying the filter list.
|
|
The various action buttons.
|
|
The index of the currently selected item.
|
The documentation for this class was generated from the following files:
- kmfilterdlg.h
- kmfilterdlg.cpp