00001 /*************************************************************************** 00002 kbudgetvalues - description 00003 ------------------- 00004 begin : Wed Nov 28 2007 00005 copyright : (C) 2007 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 KBUDGETVALUES_H 00019 #define KBUDGETVALUES_H 00020 00021 // ---------------------------------------------------------------------------- 00022 // QT Includes 00023 00024 #include <qdatetime.h> 00025 class QLabel; 00026 00027 // ---------------------------------------------------------------------------- 00028 // KDE Includes 00029 00030 // ---------------------------------------------------------------------------- 00031 // Project Includes 00032 00033 #include "../widgets/kbudgetvaluesdecl.h" 00034 #include <kmymoney/mymoneybudget.h> 00035 class kMyMoneyEdit; 00036 00040 class KBudgetValues : public KBudgetValuesDecl 00041 { 00042 Q_OBJECT 00043 public: 00044 KBudgetValues(QWidget* parent = 0, const char* name = 0); 00045 ~KBudgetValues(); 00046 00047 void setBudgetValues(const MyMoneyBudget& budget, const MyMoneyBudget::AccountGroup& budgetAccount); 00048 void budgetValues(const MyMoneyBudget& budget, MyMoneyBudget::AccountGroup& budgetAccount); 00049 void clear(void); 00050 00051 private: 00052 void enableMonths(bool enabled); 00053 void fillMonthLabels(void); 00054 00055 protected slots: 00056 void slotChangePeriod(int id); 00057 00062 void slotClearAllValues(void); 00063 00067 void slotNeedUpdate(void); 00068 00069 void slotUpdateClearButton(void); 00070 00071 protected: 00072 bool eventFilter(QObject* o, QEvent* e); 00073 00074 private: 00075 kMyMoneyEdit* m_field[12]; 00076 QLabel* m_label[12]; 00077 QWidget* m_currentTab; 00078 QDate m_budgetDate; 00079 00080 signals: 00081 void valuesChanged(void); 00082 }; 00083 00084 #endif
1.4.1