A view for displaying all entries in an account. More...
#include <FdViewAccountSummary.hpp>
Public Slots | |
void | currentChanged () |
void | refreshView () |
void | nextSearchResult () |
Signals | |
void | refresh () |
Public Member Functions | |
FdViewAccountSummary (FdSubWindow *parent, FdItemCoa_p account) | |
void | mouseReleaseEvent (QMouseEvent *event) |
void | keyboardSearch (const QString &search) |
int | print (QPrinter &printer, QPainter &painter, QRect &area, QRect &remainingArea, FdSubWindow *subwindow, int pageNumber) |
FdItemCoa_p | currentCounterpart () |
FdItemJournal_p | currentEntry () |
void | setDockText () |
void | writeSettings () |
Protected Slots | |
void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
Private Slots | |
void | contextMenu (const QPoint &position) |
void | searchTimeout () |
Private Attributes | |
FdSubWindow * | mSubwindow |
FdItemCoa_p | mAccount |
FdModelAccountSummary * | mModel |
FdDelegateAccountSummary * | mDelegate |
QTimer * | mSearchTimer |
QString | mSearchText |
QModelIndexList | mSearchResults |
int | mCurrentResult |
A view for displaying all entries in an account.
This class provides a view to display all entry in a given account. Unlike FdViewJournal, it is read only, hence the absence of a real seperate model.
This object is used within a FdSubWindow and is the QWidget given to one tab. It is possible to identify its type in all situations, since there is a dynamic property "TabRole" set for this QObject to #AccountRole (call QObject::property("TabRole")).
Definition at line 39 of file FdViewAccountSummary.hpp.
|
explicit |
Definition at line 27 of file FdViewAccountSummary.cpp.
|
privateslot |
Definition at line 298 of file FdViewAccountSummary.cpp.
|
slot |
Definition at line 271 of file FdViewAccountSummary.cpp.
|
protectedslot |
Definition at line 276 of file FdViewAccountSummary.cpp.
FdItemCoa_p FdViewAccountSummary::currentCounterpart | ( | ) |
Returns the counterpart account of the selected row.
Definition at line 221 of file FdViewAccountSummary.cpp.
FdItemJournal_p FdViewAccountSummary::currentEntry | ( | ) |
Returns the selected entry.
Definition at line 229 of file FdViewAccountSummary.cpp.
void FdViewAccountSummary::keyboardSearch | ( | const QString & | search | ) |
This function is reimplemented.
It will store search text in mSearchText till the allocated search time is out. Then, FdViewAccountSummary::searchTimeout() is called.
Definition at line 79 of file FdViewAccountSummary.cpp.
void FdViewAccountSummary::mouseReleaseEvent | ( | QMouseEvent * | event | ) |
Reimplemented. When the users click on a blanck area of the view, selection is cleared.
Definition at line 67 of file FdViewAccountSummary.cpp.
|
slot |
Definition at line 328 of file FdViewAccountSummary.cpp.
int FdViewAccountSummary::print | ( | QPrinter & | printer, |
QPainter & | painter, | ||
QRect & | area, | ||
QRect & | remainingArea, | ||
FdSubWindow * | subwindow, | ||
int | pageNumber | ||
) |
Definition at line 86 of file FdViewAccountSummary.cpp.
|
signal |
|
slot |
Definition at line 347 of file FdViewAccountSummary.cpp.
|
privateslot |
This slot is called when mSearchTimer times out. See FdModelAccountSummary::entryByPartialLabel().
Definition at line 314 of file FdViewAccountSummary.cpp.
|
protectedslot |
Definition at line 292 of file FdViewAccountSummary.cpp.
void FdViewAccountSummary::setDockText | ( | ) |
Definition at line 234 of file FdViewAccountSummary.cpp.
void FdViewAccountSummary::writeSettings | ( | ) |
Definition at line 259 of file FdViewAccountSummary.cpp.
|
private |
Definition at line 45 of file FdViewAccountSummary.hpp.
|
private |
Definition at line 58 of file FdViewAccountSummary.hpp.
|
private |
Definition at line 47 of file FdViewAccountSummary.hpp.
|
private |
Definition at line 46 of file FdViewAccountSummary.hpp.
|
private |
Definition at line 57 of file FdViewAccountSummary.hpp.
|
private |
This string holds the search text. It it reseted after mSearchTimer times out.
Definition at line 56 of file FdViewAccountSummary.hpp.
|
private |
This timer is used in keyboardsearch. No search will happen until search time (see QApplication::keyboardInputInterval()) is out. This timer QTimer::timeout() signal is connected to FdViewJournal::searchTimeout().
Definition at line 52 of file FdViewAccountSummary.hpp.
|
private |
Definition at line 44 of file FdViewAccountSummary.hpp.