20#ifndef KPTACCOUNTSVIEW_H
21#define KPTACCOUNTSVIEW_H
23#include <tqdatetime.h>
25#include <tdelistview.h>
27#include "kptaccount.h"
28#include "kptcontext.h"
29#include "kpteffortcostmap.h"
30#include "kptdoublelistviewbase.h"
56class ResourceItemPrivate;
58class AccountsView :
public TQWidget
64 AccountsView(Project &project, View *view, TQWidget *parent);
68 void zoom(
double zoom);
70 View *mainView() {
return m_mainview; }
72 void print(KPrinter &printer);
74 virtual bool setContext(Context::Accountsview &context);
75 virtual void getContext(Context::Accountsview &context)
const;
87 void getContextClosedItems(Context::Accountsview &context, TQListViewItem *item)
const;
88 void setContextClosedItems(Context::Accountsview &context);
91 class AccountItem :
public DoubleListViewBase::MasterListItem {
93 AccountItem(Account *a, TQListView *parent,
bool highlight=
false);
94 AccountItem(Account *a, TQListViewItem *parent,
bool highlight=
false);
95 AccountItem(TQString text, Account *a, TQListViewItem *parent,
bool _highlight=
false);
97 void add(
int col,
const TQDate &date,
const EffortCost &ec);
100 EffortCostMap costMap;
104 void initAccList(
const AccountList &list);
105 void initAccSubItems(Account *acc, AccountItem *parent);
106 void initAccList(
const AccountList &list, AccountItem *parent);
107 void createPeriods();
109 TQString periodText(
int offset);
114 Accounts &m_accounts;
116 int m_defaultFontSize;
122 DoubleListViewBase *m_dlv;
124 TQStringList m_periodTexts;
125 TQPushButton *m_changeBtn;
Account holds one account.
This class represents any node in the project, a node can be a project or a subproject or any task.
Project is the main node in a project, it contains child nodes and possibly sub-projects.
This class represents a group of similar resources to be assigned to a task e.g.
Any resource that is used by a task.