FreeDebks  1.0.3
 All Classes Files Functions Variables Friends Pages
Public Slots | Signals | Public Member Functions | Protected Slots | Private Slots | Private Attributes | List of all members
FdViewAccountSummary Class Reference

A view for displaying all entries in an account. More...

#include <FdViewAccountSummary.hpp>

Collaboration diagram for FdViewAccountSummary:
Collaboration graph
[legend]

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 &current, const QModelIndex &previous)
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)

Private Slots

void contextMenu (const QPoint &position)
void searchTimeout ()

Private Attributes

FdSubWindowmSubwindow
FdItemCoa_p mAccount
FdModelAccountSummarymModel
FdDelegateAccountSummarymDelegate
QTimer * mSearchTimer
QString mSearchText
QModelIndexList mSearchResults
int mCurrentResult

Detailed Description

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.

Constructor & Destructor Documentation

FdViewAccountSummary::FdViewAccountSummary ( FdSubWindow parent,
FdItemCoa_p  account 
)
explicit

Definition at line 27 of file FdViewAccountSummary.cpp.

Member Function Documentation

void FdViewAccountSummary::contextMenu ( const QPoint &  position)
privateslot

Definition at line 298 of file FdViewAccountSummary.cpp.

void FdViewAccountSummary::currentChanged ( )
slot

Definition at line 271 of file FdViewAccountSummary.cpp.

void FdViewAccountSummary::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
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.

void FdViewAccountSummary::nextSearchResult ( )
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.

void FdViewAccountSummary::refresh ( )
signal
void FdViewAccountSummary::refreshView ( )
slot

Definition at line 347 of file FdViewAccountSummary.cpp.

void FdViewAccountSummary::searchTimeout ( )
privateslot

This slot is called when mSearchTimer times out. See FdModelAccountSummary::entryByPartialLabel().

Definition at line 314 of file FdViewAccountSummary.cpp.

void FdViewAccountSummary::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
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.

Member Data Documentation

FdItemCoa_p FdViewAccountSummary::mAccount
private

Definition at line 45 of file FdViewAccountSummary.hpp.

int FdViewAccountSummary::mCurrentResult
private

Definition at line 58 of file FdViewAccountSummary.hpp.

FdDelegateAccountSummary* FdViewAccountSummary::mDelegate
private

Definition at line 47 of file FdViewAccountSummary.hpp.

FdModelAccountSummary* FdViewAccountSummary::mModel
private

Definition at line 46 of file FdViewAccountSummary.hpp.

QModelIndexList FdViewAccountSummary::mSearchResults
private

Definition at line 57 of file FdViewAccountSummary.hpp.

QString FdViewAccountSummary::mSearchText
private

This string holds the search text. It it reseted after mSearchTimer times out.

Definition at line 56 of file FdViewAccountSummary.hpp.

QTimer* FdViewAccountSummary::mSearchTimer
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.

FdSubWindow* FdViewAccountSummary::mSubwindow
private

Definition at line 44 of file FdViewAccountSummary.hpp.


The documentation for this class was generated from the following files: