Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

kcategoriesview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kcategoriesview.h  -  description
00003                              -------------------
00004     begin                : Sun Jan 20 2002
00005     copyright            : (C) 2000-2002 by Michael Edwardes
00006                            (C) 2005 by Thomas Baumgart
00007     email                : mte@users.sourceforge.net
00008                            Javier Campos Morales <javi_c@users.sourceforge.net>
00009                            Felix Rodriguez <frodriguez@users.sourceforge.net>
00010                            John C <thetacoturtle@users.sourceforge.net>
00011                            Thomas Baumgart <ipwizard@users.sourceforge.net>
00012                            Kevin Tambascio <ktambascio@users.sourceforge.net>
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #ifndef KCATEGORIESVIEW_H
00025 #define KCATEGORIESVIEW_H
00026 
00027 // ----------------------------------------------------------------------------
00028 // QT Includes
00029 
00030 // ----------------------------------------------------------------------------
00031 // KDE Includes
00032 
00033 // ----------------------------------------------------------------------------
00034 // Project Includes
00035 
00036 #include <kmymoney/mymoneyaccount.h>
00037 #include <kmymoney/kmymoneyaccounttree.h>
00038 #include <kmymoney/mymoneyutils.h>
00039 class KListViewSearchLineWidget;
00040 
00041 #include "kcategoriesviewdecl.h"
00042 
00063 class KCategoriesView : public KCategoriesViewDecl
00064 {
00065   Q_OBJECT
00066 public:
00067   KCategoriesView(QWidget *parent=0, const char *name=0);
00068   virtual ~KCategoriesView();
00069 
00070 
00071 public slots:
00072   void slotLoadAccounts(void);
00073 
00078   void show(void);
00079 
00085   void polish(void);
00086 
00087 protected:
00088   void loadAccounts(void);
00089   bool loadSubAccounts(KMyMoneyAccountTreeItem* parent, const QCStringList& accountList);
00090 
00091 protected slots:
00092   void slotUpdateProfit(void);
00093 
00094 private:
00101   const QPixmap accountImage(const MyMoneyAccount::accountTypeE type) const;
00102 
00103 signals:
00107   void selectObject(const MyMoneyObject&);
00108 
00113   void openContextMenu(const MyMoneyObject& obj);
00114 
00119   void openObject(const MyMoneyObject& obj);
00120 
00128   void reparent(const MyMoneyAccount& acc, const MyMoneyAccount& parent);
00129 
00130 private:
00131   QMap<QCString, MyMoneySecurity>     m_securityMap;
00132   QMap<QCString, unsigned long>       m_transactionCountMap;
00133 
00134   KMyMoneyAccountTreeItem*            m_incomeItem;
00135   KMyMoneyAccountTreeItem*            m_expenseItem;
00136 
00140   KListViewSearchLineWidget*  m_searchWidget;
00141 
00143   bool                                m_needReload;
00144 };
00145 
00146 #endif

Generated on Mon Oct 13 12:04:07 2008 for KMyMoney by  doxygen 1.4.1