|
| View (Widget *parent) |
|
| ~View () |
|
void | aggregationMenuAboutToShow (KMenu *menu) |
|
MessageItemSetReference | createPersistentSet (const QList< MessageItem * > &items) |
|
QString | currentFilterSearchString () const |
|
Akonadi::MessageStatus | currentFilterStatus () const |
|
Item * | currentItem () const |
|
MessageItem * | currentMessageItem (bool selectIfNeeded=true) const |
|
QList< MessageItem * > | currentThreadAsMessageItemList () const |
|
Delegate * | delegate () const |
|
void | deletePersistentSet (MessageItemSetReference ref) |
|
void | ensureDisplayedWithParentsExpanded (Item *it) |
|
bool | focusNextMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem, bool loop) |
|
bool | focusPreviousMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem, bool loop) |
|
void | focusQuickSearch () |
|
bool | isDisplayedWithParentsExpanded (Item *it) const |
|
bool | isThreaded () const |
|
void | markMessageItemsAsAboutToBeRemoved (QList< MessageItem * > &items, bool bMark) |
|
Model * | model () const |
|
QList< MessageItem * > | persistentSetCurrentMessageItemList (MessageItemSetReference ref) |
|
void | reload () |
|
bool | selectFirstMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem) |
|
void | selectFocusedMessageItem (bool centerItem) |
|
QList< MessageItem * > | selectionAsMessageItemList (bool includeCollapsedChildren=true) const |
|
bool | selectionEmpty () const |
|
bool | selectLastMessageItem (MessageTypeFilter messageTypeFilter, bool centerItem) |
|
void | selectMessageItems (const QList< MessageItem * > &list) |
|
bool | selectNextMessageItem (MessageTypeFilter messageTypeFilter, ExistingSelectionBehaviour existingSelectionBehaviour, bool centerItem, bool loop) |
|
bool | selectPreviousMessageItem (MessageTypeFilter messageTypeFilter, ExistingSelectionBehaviour existingSelectionBehaviour, bool centerItem, bool loop) |
|
void | setAggregation (const Aggregation *aggregation) |
|
void | setAllGroupsExpanded (bool expand) |
|
void | setAllThreadsExpanded (bool expand) |
|
void | setCollapseItem (const QModelIndex &index) |
|
void | setCurrentMessageItem (MessageItem *it, bool center=false) |
|
void | setCurrentThreadExpanded (bool expand) |
|
void | setExpandItem (const QModelIndex &index) |
|
virtual void | setRowHidden (int row, const QModelIndex &parent, bool hide) |
|
void | setSortOrder (const SortOrder *sortOrder) |
|
void | setStorageModel (StorageModel *storageModel, PreSelectionMode preSelectionMode=PreSelectLastSelected) |
|
void | setTheme (Theme *theme) |
|
void | sortOrderMenuAboutToShow (KMenu *menu) |
|
StorageModel * | storageModel () const |
|
void | themeMenuAboutToShow (KMenu *menu) |
|
|
void | appendMessageItemChildren (MessageItem *par, QList< MessageItem * > &list) |
|
virtual void | changeEvent (QEvent *e) |
|
void | changeMessageStatus (MessageItem *it, const Akonadi::MessageStatus &set, const Akonadi::MessageStatus &unset) |
|
void | changeMessageStatusRead (MessageItem *it, bool read) |
|
virtual void | contextMenuEvent (QContextMenuEvent *e) |
|
Item * | deepestExpandedChild (Item *referenceItem) const |
|
virtual void | dragEnterEvent (QDragEnterEvent *e) |
|
virtual void | dragMoveEvent (QDragMoveEvent *e) |
|
virtual void | dropEvent (QDropEvent *e) |
|
virtual bool | event (QEvent *e) |
|
Item * | firstMessageItem (MessageTypeFilter messageTypeFilter) |
|
void | growOrShrinkExistingSelection (const QModelIndex &newSelectedIndex, bool movingUp) |
|
void | ignoreCurrentChanges (bool ignore) |
|
void | ignoreUpdateGeometries (bool ignore) |
|
bool | isScrollingLocked () const |
|
Item * | lastMessageItem (MessageTypeFilter messageTypeFilter) |
|
Item * | messageItemAfter (Item *referenceItem, MessageTypeFilter messageTypeFilter, bool loop) |
|
Item * | messageItemBefore (Item *referenceItem, MessageTypeFilter messageTypeFilter, bool loop) |
|
void | modelAboutToEmitLayoutChanged () |
|
void | modelEmittedLayoutChanged () |
|
void | modelFinishedLoading () |
|
void | modelHasBeenReset () |
|
void | modelJobBatchStarted () |
|
void | modelJobBatchTerminated () |
|
virtual void | mouseDoubleClickEvent (QMouseEvent *e) |
|
virtual void | mouseMoveEvent (QMouseEvent *e) |
|
virtual void | mousePressEvent (QMouseEvent *e) |
|
Item * | nextMessageItem (MessageTypeFilter messageTypeFilter, bool loop) |
|
Item * | previousMessageItem (MessageTypeFilter messageTypeFilter, bool loop) |
|
virtual void | resizeEvent (QResizeEvent *e) |
|
void | setChildrenExpanded (const Item *parent, bool expand) |
|
virtual void | showEvent (QShowEvent *e) |
|
virtual int | sizeHintForColumn (int logicalColumnIndex) const |
|
void | triggerDelayedApplyThemeColumns () |
|
void | triggerDelayedSaveThemeColumnState () |
|
virtual void | updateGeometries () |
|
The MessageList::View is the real display of the message list.
It is based on QTreeView, has a Model that manipulates the underlying message storage and a Delegate that is responsable of painting the items.
Definition at line 64 of file view.h.
bool View::focusNextMessageItem |
( |
MessageTypeFilter |
messageTypeFilter, |
|
|
bool |
centerItem, |
|
|
bool |
loop |
|
) |
| |
Focuses the next message item in the view without actually selecting it.
messageTypeFilter can be used to limit the selection to a certain category of messages.
If centerItem is true then the specified item will be positioned at the center of the view, if possible. If loop is true then the "next" algorithm will restart from the beginning of the list if the end is reached, otherwise it will just stop returning false.
Definition at line 1547 of file view.cpp.
bool View::focusPreviousMessageItem |
( |
MessageTypeFilter |
messageTypeFilter, |
|
|
bool |
centerItem, |
|
|
bool |
loop |
|
) |
| |
Focuses the previous message item in the view without actually selecting it.
If unread is true then focuses the previous unread message item. If centerItem is true then the specified item will be positioned at the center of the view, if possible. If loop is true then the "previous" algorithm will restart from the end of the list if the beginning is reached, otherwise it will just stop returning false.
Definition at line 1570 of file view.cpp.
void View::growOrShrinkExistingSelection |
( |
const QModelIndex & |
newSelectedIndex, |
|
|
bool |
movingUp |
|
) |
| |
|
protected |
This is used by the selection functions to grow/shrink the existing selection according to the newly selected item passed as parameter.
If movingUp is true then: if the newly selected item is above the current selection top then the selection is expanded, otherwise it's shrunk. If movingUp is false then: if the newly selected item is below the current selection bottom then the selection is expanded otherwise it's shrunk.
Definition at line 1375 of file view.cpp.
Finds message item that comes "after" the reference item.
If reference item is 0 then the search starts from the beginning. Returns 0 if no next message could be found.
messageTypeFilter can be used to limit the selection to a certain category of messages. If loop is true then restarts from the beginning if end is reached, otherwise it just returns 0 in this case.
Definition at line 1122 of file view.cpp.
Finds message item that comes "before" the reference item.
If reference item is 0 then the search starts from the end. Returns 0 if no next message could be found.
messageTypeFilter can be used to limit the selection to a certain category of messages. If loop is true then restarts from the beginning if end is reached, otherwise it just returns 0 in this case.
Definition at line 1252 of file view.cpp.
Finds the next message item with respect to the current item.
If there is no current item then the search starts from the beginning. Returns 0 if no next message could be found.
messageTypeFilter can be used to limit the selection to a certain category of messages. If loop is true then restarts from the beginning if end is reached, otherwise it just returns 0 in this case.
Definition at line 1236 of file view.cpp.
Finds the previous message item with respect to the current item.
If there is no current item then the search starts from the end. Returns 0 if no previous message could be found.
messageTypeFilter can be used to limit the selection to a certain category of messages. If loop is true then restarts from the end if beginning is reached, otherwise it just return 0 in this case.
Definition at line 1370 of file view.cpp.
QList< MessageItem * > View::selectionAsMessageItemList |
( |
bool |
includeCollapsedChildren = true | ) |
const |
Returns the currently selected MessageItems (bound to current StorageModel).
The list may be empty if there are no selected messages or no StorageModel.
If includeCollapsedChildren is true then the children of the selected but collapsed items are also added to the list.
The returned list is guaranteed to be valid only until you return control to the main even loop. Don't store it for any longer. If you need to reference this set of messages at a later stage then take a look at createPersistentSet().
Definition at line 906 of file view.cpp.
Selects the next message item in the view.
messageTypeFilter can be used to limit the selection to a certain category of messages.
existingSelectionBehaviour specifies how the existing selection is manipulated. It may be cleared, expanded or grown/shrinked.
If centerItem is true then the specified item will be positioned at the center of the view, if possible. If loop is true then the "next" algorithm will restart from the beginning of the list if the end is reached, otherwise it will just stop returning false.
- See also
- MessageList::Core::MessageTypeFilter
-
MessageList::Core::ExistingSelectionBehaviour
Definition at line 1463 of file view.cpp.
Selects the previous message item in the view.
messageTypeFilter can be used to limit the selection to a certain category of messages.
existingSelectionBehaviour specifies how the existing selection is manipulated. It may be cleared, expanded or grown/shrinked.
If centerItem is true then the specified item will be positioned at the center of the view, if possible. If loop is true then the "previous" algorithm will restart from the end of the list if the beginning is reached, otherwise it will just stop returning false.
- See also
- MessageList::Core::MessageTypeFilter
-
MessageList::Core::ExistingSelectionBehaviour
Definition at line 1505 of file view.cpp.