Main view of KShowmail. More...
#include <kshowmailview.h>
Signals | |
void | sigMailDoubleClicked () |
Public Member Functions | |
KShowmailView (AccountViewModel *accountModel, MailViewModel *mailModel, QItemSelectionModel *mailSelectModel, QItemSelectionModel *accountSelectModel, QWidget *parent=0) | |
~KShowmailView () | |
void | refreshViews (QItemSelectionModel *mailSelectModel) |
void | saveSetup () |
void | loadSetup () |
void | addActionToAccountList (KAction *action) |
void | addActionToMailList (KAction *action) |
Protected Slots | |
void | slotMailDoubleClicked (const QModelIndex &) |
Private Attributes | |
QTreeView * | viewAccounts |
QTreeView * | viewMails |
MailViewModel * | mailModel |
AccountViewModel * | accountModel |
QSplitter * | splitter |
Main view of KShowmail.
It contains the account view and the mail view.
Definition at line 45 of file kshowmailview.h.
KShowmailView::KShowmailView | ( | AccountViewModel * | accountModel, | |
MailViewModel * | mailModel, | |||
QItemSelectionModel * | mailSelectModel, | |||
QItemSelectionModel * | accountSelectModel, | |||
QWidget * | parent = 0 | |||
) |
Constructor
accountModel | model for the account view
|
Definition at line 21 of file kshowmailview.cpp.
KShowmailView::~KShowmailView | ( | ) |
Destructor
Definition at line 59 of file kshowmailview.cpp.
void KShowmailView::addActionToAccountList | ( | KAction * | action | ) |
Adds an action to the account view context menu
action | action to add |
Definition at line 242 of file kshowmailview.cpp.
void KShowmailView::addActionToMailList | ( | KAction * | action | ) |
Adds an action to the mail view context menu
action | action to add |
Definition at line 248 of file kshowmailview.cpp.
void KShowmailView::loadSetup | ( | ) |
Loads and sets the column widths
Definition at line 153 of file kshowmailview.cpp.
void KShowmailView::refreshViews | ( | QItemSelectionModel * | mailSelectModel | ) |
Refreshes the account and mail view. Marks filtered mails.
mailSelectModel | mail selection model |
Definition at line 61 of file kshowmailview.cpp.
void KShowmailView::saveSetup | ( | ) |
Saves the column widths
Definition at line 79 of file kshowmailview.cpp.
void KShowmailView::sigMailDoubleClicked | ( | ) | [signal] |
Emitted if a mail list entry was double clicked.
void KShowmailView::slotMailDoubleClicked | ( | const QModelIndex & | ) | [protected, slot] |
Connected with signal doubleClicked of viewAccounts Emits the signal sigMailDoubleClicked
Definition at line 253 of file kshowmailview.cpp.
AccountViewModel* KShowmailView::accountModel [private] |
Account view model
Definition at line 114 of file kshowmailview.h.
MailViewModel* KShowmailView::mailModel [private] |
Mail view model
Definition at line 109 of file kshowmailview.h.
QSplitter* KShowmailView::splitter [private] |
The view splitter
Definition at line 119 of file kshowmailview.h.
QTreeView* KShowmailView::viewAccounts [private] |
account list
Definition at line 99 of file kshowmailview.h.
QTreeView* KShowmailView::viewMails [private] |
mail list
Definition at line 104 of file kshowmailview.h.