#include <registeritem.h>
Public Member Functions | |
RegisterItem () | |
RegisterItem (Register *parent) | |
virtual | ~RegisterItem () |
virtual const char * | className (void)=0 |
virtual bool | isSelectable (void) const =0 |
virtual bool | isSelected (void) const |
virtual void | setSelected (bool) |
virtual bool | canHaveFocus (void) const =0 |
virtual bool | hasFocus (void) const |
virtual bool | hasEditorOpen (void) const |
virtual void | setFocus (bool, bool updateLens=true) |
virtual bool | isErronous (void) const =0 |
virtual const QDate & | sortPostDate (void) const |
virtual int | sortSamePostDate (void) const =0 |
virtual const QDate & | sortEntryDate (void) const |
virtual const QString & | sortPayee (void) const |
virtual const MyMoneyMoney & | sortValue (void) const |
virtual const QString & | sortNumber (void) const |
virtual const QString & | sortEntryOrder (void) const |
virtual CashFlowDirection | sortType (void) const |
virtual const QString & | sortCategory (void) const |
virtual MyMoneySplit::reconcileFlagE | sortReconcileState (void) const |
virtual const QString & | sortSecurity (void) const |
virtual void | setStartRow (int row) |
int | startRow (void) const |
virtual int | rowHeightHint (void) const |
virtual void | setNumRowsRegister (int rows) |
virtual void | setNumRowsForm (int rows) |
virtual int | numRowsRegister (void) const |
virtual int | numRowsForm (void) const |
virtual int | numColsForm (void) const |
virtual void | setAlternate (bool alternate) |
virtual void | paintRegisterCell (QPainter *painter, int row, int col, const QRect &r, bool selected, const QColorGroup &cg)=0 |
virtual void | paintFormCell (QPainter *painter, int row, int col, const QRect &r, bool selected, const QColorGroup &cg)=0 |
virtual const QString & | id (void) const |
void | setParent (Register *parent) |
Register * | parent (void) const |
void | setNeedResize (void) |
bool | isVisible (void) const |
virtual void | setVisible (bool visible) |
virtual bool | markVisible (bool visible) |
void | setNextItem (RegisterItem *p) |
void | setPrevItem (RegisterItem *p) |
RegisterItem * | nextItem (void) const |
RegisterItem * | prevItem (void) const |
virtual bool | matches (const QString &) const =0 |
virtual bool | maybeTip (const QPoint &, int, int, QRect &, QString &) |
Protected Member Functions | |
void | init (void) |
This method serves as helper for all constructors. | |
Protected Attributes | |
Register * | m_parent |
RegisterItem * | m_prev |
RegisterItem * | m_next |
int | m_startRow |
int | m_rowsRegister |
int | m_rowsForm |
bool | m_alternate |
bool | m_needResize |
bool | m_visible |
Static Private Attributes | |
static QDate | nullDate |
static MyMoneyMoney | nullValue |
KMyMoneyRegister::RegisterItem::RegisterItem | ( | ) |
KMyMoneyRegister::RegisterItem::RegisterItem | ( | Register * | parent | ) |
virtual KMyMoneyRegister::RegisterItem::~RegisterItem | ( | ) | [virtual] |
virtual const char* KMyMoneyRegister::RegisterItem::className | ( | void | ) | [pure virtual] |
Implemented in KMyMoneyRegister::GroupMarker, KMyMoneyRegister::FancyDateGroupMarker, KMyMoneyRegister::SimpleDateGroupMarker, KMyMoneyRegister::FiscalYearGroupMarker, KMyMoneyRegister::CategoryGroupMarker, KMyMoneyRegister::StdTransactionScheduled, KMyMoneyRegister::StdTransactionDownloaded, KMyMoneyRegister::InvestTransactionDownloaded, KMyMoneyRegister::StdTransactionMatched, KMyMoneyRegister::Transaction, KMyMoneyRegister::StdTransaction, and KMyMoneyRegister::InvestTransaction.
virtual bool KMyMoneyRegister::RegisterItem::isSelectable | ( | void | ) | const [pure virtual] |
virtual bool KMyMoneyRegister::RegisterItem::isSelected | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
virtual void KMyMoneyRegister::RegisterItem::setSelected | ( | bool | ) | [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
virtual bool KMyMoneyRegister::RegisterItem::canHaveFocus | ( | void | ) | const [pure virtual] |
virtual bool KMyMoneyRegister::RegisterItem::hasFocus | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
virtual bool KMyMoneyRegister::RegisterItem::hasEditorOpen | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
virtual void KMyMoneyRegister::RegisterItem::setFocus | ( | bool | , | |
bool | updateLens = true | |||
) | [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
virtual bool KMyMoneyRegister::RegisterItem::isErronous | ( | void | ) | const [pure virtual] |
Implemented in KMyMoneyRegister::GroupMarker, and KMyMoneyRegister::Transaction.
virtual const QDate& KMyMoneyRegister::RegisterItem::sortPostDate | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::FancyDateGroupMarker, and KMyMoneyRegister::Transaction.
virtual int KMyMoneyRegister::RegisterItem::sortSamePostDate | ( | void | ) | const [pure virtual] |
virtual const QDate& KMyMoneyRegister::RegisterItem::sortEntryDate | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::FancyDateGroupMarker, and KMyMoneyRegister::Transaction.
virtual const QString& KMyMoneyRegister::RegisterItem::sortPayee | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::PayeeGroupMarker, and KMyMoneyRegister::Transaction.
virtual const MyMoneyMoney& KMyMoneyRegister::RegisterItem::sortValue | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
virtual const QString& KMyMoneyRegister::RegisterItem::sortNumber | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
virtual const QString& KMyMoneyRegister::RegisterItem::sortEntryOrder | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
virtual CashFlowDirection KMyMoneyRegister::RegisterItem::sortType | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::StatementGroupMarker, KMyMoneyRegister::TypeGroupMarker, and KMyMoneyRegister::Transaction.
virtual const QString& KMyMoneyRegister::RegisterItem::sortCategory | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::CategoryGroupMarker, and KMyMoneyRegister::Transaction.
virtual MyMoneySplit::reconcileFlagE KMyMoneyRegister::RegisterItem::sortReconcileState | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::ReconcileGroupMarker, and KMyMoneyRegister::Transaction.
virtual const QString& KMyMoneyRegister::RegisterItem::sortSecurity | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::CategoryGroupMarker, and KMyMoneyRegister::InvestTransaction.
virtual void KMyMoneyRegister::RegisterItem::setStartRow | ( | int | row | ) | [inline, virtual] |
This method sets the row offset of the item in the register to row.
row | row offset |
int KMyMoneyRegister::RegisterItem::startRow | ( | void | ) | const [inline] |
virtual int KMyMoneyRegister::RegisterItem::rowHeightHint | ( | void | ) | const [virtual] |
Reimplemented in KMyMoneyRegister::GroupMarker, KMyMoneyRegister::SimpleDateGroupMarker, and KMyMoneyRegister::Transaction.
virtual void KMyMoneyRegister::RegisterItem::setNumRowsRegister | ( | int | rows | ) | [virtual] |
This method modifies the number of rows required to display this item in a Register. It calls Register::forceUpdateLists() when the number differs.
virtual void KMyMoneyRegister::RegisterItem::setNumRowsForm | ( | int | rows | ) | [inline, virtual] |
This method modifies the number of rows required to display this item in a Form.
virtual int KMyMoneyRegister::RegisterItem::numRowsRegister | ( | void | ) | const [inline, virtual] |
This method returns the number of rows required to display this item in a Register
Reimplemented in KMyMoneyRegister::StdTransactionDownloaded, KMyMoneyRegister::InvestTransactionDownloaded, KMyMoneyRegister::Transaction, KMyMoneyRegister::StdTransaction, and KMyMoneyRegister::InvestTransaction.
virtual int KMyMoneyRegister::RegisterItem::numRowsForm | ( | void | ) | const [inline, virtual] |
This method returns the number of rows required to display this item in a Form
virtual int KMyMoneyRegister::RegisterItem::numColsForm | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::StdTransaction, and KMyMoneyRegister::InvestTransaction.
virtual void KMyMoneyRegister::RegisterItem::setAlternate | ( | bool | alternate | ) | [inline, virtual] |
This method sets up the register item to be shown in normal (alternate
= false
) or alternate (alternate
= true
) background.
alternate | selects normal or alternate background |
virtual void KMyMoneyRegister::RegisterItem::paintRegisterCell | ( | QPainter * | painter, | |
int | row, | |||
int | col, | |||
const QRect & | r, | |||
bool | selected, | |||
const QColorGroup & | cg | |||
) | [pure virtual] |
virtual void KMyMoneyRegister::RegisterItem::paintFormCell | ( | QPainter * | painter, | |
int | row, | |||
int | col, | |||
const QRect & | r, | |||
bool | selected, | |||
const QColorGroup & | cg | |||
) | [pure virtual] |
Implemented in KMyMoneyRegister::GroupMarker, and KMyMoneyRegister::Transaction.
virtual const QString& KMyMoneyRegister::RegisterItem::id | ( | void | ) | const [inline, virtual] |
Reimplemented in KMyMoneyRegister::Transaction.
void KMyMoneyRegister::RegisterItem::setParent | ( | Register * | parent | ) |
Sets the parent of this item to be the register parent
parent | pointer to register |
Register* KMyMoneyRegister::RegisterItem::parent | ( | void | ) | const [inline] |
void KMyMoneyRegister::RegisterItem::setNeedResize | ( | void | ) | [inline] |
bool KMyMoneyRegister::RegisterItem::isVisible | ( | void | ) | const [inline] |
virtual void KMyMoneyRegister::RegisterItem::setVisible | ( | bool | visible | ) | [virtual] |
Marks the item visible depending on visible and updates the underlying register object
Reimplemented in KMyMoneyRegister::Transaction.
virtual bool KMyMoneyRegister::RegisterItem::markVisible | ( | bool | visible | ) | [virtual] |
Marks the item visible depending on visible but does not update the underlying register object. Returns true, if visibility has changed.
void KMyMoneyRegister::RegisterItem::setNextItem | ( | RegisterItem * | p | ) | [inline] |
void KMyMoneyRegister::RegisterItem::setPrevItem | ( | RegisterItem * | p | ) | [inline] |
RegisterItem* KMyMoneyRegister::RegisterItem::nextItem | ( | void | ) | const [inline] |
RegisterItem* KMyMoneyRegister::RegisterItem::prevItem | ( | void | ) | const [inline] |
virtual bool KMyMoneyRegister::RegisterItem::matches | ( | const QString & | ) | const [pure virtual] |
Implemented in KMyMoneyRegister::GroupMarker, and KMyMoneyRegister::Transaction.
virtual bool KMyMoneyRegister::RegisterItem::maybeTip | ( | const QPoint & | , | |
int | , | |||
int | , | |||
QRect & | , | |||
QString & | ||||
) | [inline, virtual] |
Checks if the mouse hovered over an area that has a tooltip associated with it. The mouse position is given in relative coordinates to the startRow and the row and col of the item are also passed as relative values.
If a tooltip shall be shown, this method presets the rectangle r with the area in register coordinates and msg with the string that will be passed to QToolTip::tip. true is returned in this case.
If no tooltip is available, false will be returned.
Reimplemented in KMyMoneyRegister::Transaction.
void KMyMoneyRegister::RegisterItem::init | ( | void | ) | [protected] |
Register* KMyMoneyRegister::RegisterItem::m_parent [protected] |
RegisterItem* KMyMoneyRegister::RegisterItem::m_prev [protected] |
RegisterItem* KMyMoneyRegister::RegisterItem::m_next [protected] |
int KMyMoneyRegister::RegisterItem::m_startRow [protected] |
int KMyMoneyRegister::RegisterItem::m_rowsRegister [protected] |
int KMyMoneyRegister::RegisterItem::m_rowsForm [protected] |
bool KMyMoneyRegister::RegisterItem::m_alternate [protected] |
bool KMyMoneyRegister::RegisterItem::m_needResize [protected] |
bool KMyMoneyRegister::RegisterItem::m_visible [protected] |
QDate KMyMoneyRegister::RegisterItem::nullDate [static, private] |
MyMoneyMoney KMyMoneyRegister::RegisterItem::nullValue [static, private] |