#include <kmymoneyaccounttreebase.h>
KMyMoneyAccountTreeBase::KMyMoneyAccountTreeBase | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
virtual KMyMoneyAccountTreeBase::~KMyMoneyAccountTreeBase | ( | ) | [virtual] |
void KMyMoneyAccountTreeBase::setSectionHeader | ( | const QString & | txt | ) |
Modify the text shown in the header of the name column.
txt | the text to be used in the header |
KMyMoneyAccountTreeBaseItem* KMyMoneyAccountTreeBase::selectedItem | ( | void | ) | const |
overridden from base class implementation to return a pointer to a KMyMoneyAccountTreeBaseItem.
void KMyMoneyAccountTreeBase::setBaseCurrency | ( | const MyMoneySecurity & | currency | ) | [inline] |
const MyMoneySecurity& KMyMoneyAccountTreeBase::baseCurrency | ( | void | ) | const [inline] |
void KMyMoneyAccountTreeBase::emitValueChanged | ( | void | ) | [inline] |
void KMyMoneyAccountTreeBase::restoreLayout | ( | const QString & | group | ) |
restores the layout from the config file
group | the group to be used from the config file. At destruction time, we will use this group name to save the layout. |
void KMyMoneyAccountTreeBase::slotStartAutoScroll | ( | void | ) | [slot] |
autoscroll support
void KMyMoneyAccountTreeBase::slotStopAutoScroll | ( | void | ) | [slot] |
void KMyMoneyAccountTreeBase::slotExpandAll | ( | void | ) | [slot] |
void KMyMoneyAccountTreeBase::slotCollapseAll | ( | void | ) | [slot] |
virtual bool KMyMoneyAccountTreeBase::acceptDrag | ( | QDropEvent * | event | ) | const [protected, virtual] |
virtual void KMyMoneyAccountTreeBase::startDrag | ( | void | ) | [protected, virtual] |
const KMyMoneyAccountTreeBaseItem* KMyMoneyAccountTreeBase::findItem | ( | const QString & | id | ) | const [protected] |
bool KMyMoneyAccountTreeBase::dropAccountOnAccount | ( | const MyMoneyAccount & | accFrom, | |
const MyMoneyAccount & | accTo | |||
) | const [protected] |
This method checks, if account accFrom
can be dropped onto account accTo
.
accFrom | source account | |
accTo | new parent account for accFrom |
true | drop is ok | |
false | drop is not ok (accTo cannot be parent of accFrom ) |
void KMyMoneyAccountTreeBase::connectNotify | ( | const char * | ) | [protected] |
This member counts the connects to the signals newAccountParent(const MyMoneyAccount&, const MyMoneyAccount&)) and newAccountParent(const MyMoneyAccount&, const MyMoneyInstitution&)) in m_accountConnections and m_institutionConnections.
void KMyMoneyAccountTreeBase::disconnectNotify | ( | const char * | ) | [protected] |
This member counts the disconnects from the signals newAccountParent(const MyMoneyAccount&, const MyMoneyAccount&)) and newAccountParent(const MyMoneyAccount&, const MyMoneyInstitution&)) in m_accountConnections and m_institutionConnections.
void KMyMoneyAccountTreeBase::contentsDragMoveEvent | ( | QDragMoveEvent * | e | ) | [protected] |
virtual void KMyMoneyAccountTreeBase::viewportPaintEvent | ( | QPaintEvent * | ) | [protected, virtual] |
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly.
The API is unaffected.
void KMyMoneyAccountTreeBase::expandCollapseAll | ( | bool | expand | ) | [protected] |
void KMyMoneyAccountTreeBase::queueSort | ( | void | ) | [protected] |
void KMyMoneyAccountTreeBase::slotObjectDropped | ( | QDropEvent * | event, | |
QListViewItem * | parent, | |||
QListViewItem * | after | |||
) | [protected, slot] |
void KMyMoneyAccountTreeBase::slotSelectObject | ( | QListViewItem * | i | ) | [protected, slot] |
Select the object pointed to by i
. This slot emits selectObject signals with an emtpy MyMoneyAccount and an empty MyMoneyInstitution object to deselect current selections. If i
points to a KMyMoneyAccountTreeItem object, it emits selectObject() for this item.
i | pointer to QListViewItem of object to be selected |
void KMyMoneyAccountTreeBase::slotOpenContextMenu | ( | KListView * | lv, | |
QListViewItem * | i, | |||
const QPoint & | p | |||
) | [protected, slot] |
This slot is connected to the accout list view's contextMenu signal and checks if the item pointed to by i
is either an account or institution and sends out the necessary signal openContextMenu.
lv | pointer to KListView | |
i | pointer to QListViewItem | |
p | position information |
void KMyMoneyAccountTreeBase::slotOpenObject | ( | QListViewItem * | i | ) | [protected, slot] |
This slot is connected to the accout list view's executed signal and checks if the item pointed to by i
is either an account or institution and sends out the necessary signal openObject.
i | pointer to QListViewItem |
void KMyMoneyAccountTreeBase::slotAutoScroll | ( | void | ) | [protected, slot] |
void KMyMoneyAccountTreeBase::slotOpenFolder | ( | void | ) | [protected, slot] |
Open the folder pointed to by m_dropItem
void KMyMoneyAccountTreeBase::cleanItemHighlighter | ( | void | ) | [protected, slot] |
override KListView implementation
void KMyMoneyAccountTreeBase::slotActivateSort | ( | void | ) | [protected, slot] |
int KMyMoneyAccountTreeBase::typeColumn | ( | void | ) | const [inline] |
int KMyMoneyAccountTreeBase::nameColumn | ( | void | ) | const [inline] |
int KMyMoneyAccountTreeBase::balanceColumn | ( | void | ) | const [inline] |
int KMyMoneyAccountTreeBase::valueColumn | ( | void | ) | const [inline] |
void KMyMoneyAccountTreeBase::showType | ( | void | ) |
void KMyMoneyAccountTreeBase::showValue | ( | void | ) |
void KMyMoneyAccountTreeBase::selectObject | ( | const MyMoneyObject & | obj | ) | [signal] |
This signal is emitted whenever an object in the view is selected
obj | reference to actual MyMoneyObject (is either MyMoneyAccount or MyMoneyInstitution depending on selected item) |
void KMyMoneyAccountTreeBase::openContextMenu | ( | const MyMoneyObject & | obj | ) | [signal] |
This signal is emitted whenever the user requests the context menu for an object
obj | reference to actual MyMoneyObject (is either MyMoneyAccount or MyMoneyInstitution depending on selected item) |
void KMyMoneyAccountTreeBase::openObject | ( | const MyMoneyObject & | obj | ) | [signal] |
This signal is emitted whenever the user requests to open an object
obj | reference to actual MyMoneyObject (is either MyMoneyAccount or MyMoneyInstitution depending on selected item) |
void KMyMoneyAccountTreeBase::valueChanged | ( | void | ) | [signal] |
This signal is emitted whenever the value of an object changed
void KMyMoneyAccountTreeBase::reparent | ( | const MyMoneyAccount & | acc, | |
const MyMoneyAccount & | parent | |||
) | [signal] |
This signal is emitted, when the user selected to reparent the account acc
to be a subordinate account of parent
.
acc | const reference to account to be reparented | |
parent | const reference to new parent account |
void KMyMoneyAccountTreeBase::reparent | ( | const MyMoneyAccount & | acc, | |
const MyMoneyInstitution & | institution | |||
) | [signal] |
This signal is emitted, when the user selected to reparent the account acc
to be a subordinate account of institution
.
acc | const reference to account to be reparented | |
institution | const reference to new institution |
friend class KMyMoneyAccountTreeBaseItem [friend] |
bool KMyMoneyAccountTreeBase::m_accountConnections [private] |
bool KMyMoneyAccountTreeBase::m_institutionConnections [private] |
QTimer KMyMoneyAccountTreeBase::m_autoopenTimer [private] |
QTimer KMyMoneyAccountTreeBase::m_autoscrollTimer [private] |
int KMyMoneyAccountTreeBase::m_autoscrollTime [private] |
int KMyMoneyAccountTreeBase::m_autoscrollAccel [private] |
QListViewItem* KMyMoneyAccountTreeBase::m_dropItem [private] |
QRect KMyMoneyAccountTreeBase::m_lastDropHighlighter [private] |
int KMyMoneyAccountTreeBase::m_queuedSort [private] |
int KMyMoneyAccountTreeBase::m_nameColumn [private] |
int KMyMoneyAccountTreeBase::m_typeColumn [private] |
int KMyMoneyAccountTreeBase::m_valueColumn [private] |
int KMyMoneyAccountTreeBase::m_balanceColumn [private] |
QString KMyMoneyAccountTreeBase::m_configGroup [private] |