00001 /*************************************************************************** 00002 kmymoneyaccounttree.h - description 00003 ------------------- 00004 begin : Sat Jan 1 2005 00005 copyright : (C) 2005 by Thomas Baumgart 00006 email : Thomas Baumgart <ipwizard@users.sourceforge.net> 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef KMYMONEYACCOUNTTREE_H 00019 #define KMYMONEYACCOUNTTREE_H 00020 00021 00022 #include <kmymoney/kmymoneyaccounttreebase.h> 00023 00024 class KMyMoneyAccountTreeItem; 00025 00026 class KMyMoneyAccountTree : public KMyMoneyAccountTreeBase 00027 { 00028 Q_OBJECT 00029 public: 00030 KMyMoneyAccountTree(QWidget* parent = 0, const char *name = 0); 00031 int taxReportColumn(void) const { return m_taxReportColumn; } 00032 int vatCategoryColumn(void) const { return m_vatCategoryColumn; } 00033 private: 00034 int m_taxReportColumn; 00035 int m_vatCategoryColumn; 00036 }; 00037 00038 class KMyMoneyAccountTreeItem : public KMyMoneyAccountTreeBaseItem 00039 { 00040 public: 00050 KMyMoneyAccountTreeItem(KListView *parent, const MyMoneyInstitution& institution); 00051 00065 KMyMoneyAccountTreeItem(KListView *parent, const MyMoneyAccount& account, const MyMoneySecurity& security = MyMoneySecurity(), const QString& name = QString()); 00066 00080 KMyMoneyAccountTreeItem(KMyMoneyAccountTreeBaseItem *parent, const MyMoneyAccount& account, const QValueList<MyMoneyPrice>& price = QValueList<MyMoneyPrice>(), const MyMoneySecurity& security = MyMoneySecurity()); 00081 00082 void setReconciliation(bool); 00083 00084 00085 protected: 00097 MyMoneyMoney balance() const; 00098 00099 bool m_reconcileFlag; 00100 00105 void fillColumns(); 00106 }; 00107 00108 #endif 00109
1.5.6