20#ifndef KPTRESOURCEVIEW_H
21#define KPTRESOURCEVIEW_H
23#include <tqsplitter.h>
24#include <tqdatetime.h>
25#include <tqvaluelist.h>
27#include "kptcontext.h"
43class ResourceAppointmentsView;
46class ResourceItemPrivate;
49 class ResourceView : public TQSplitter
55 ResourceView(View *view, TQWidget *parent);
59 void zoom( double zoom);
61 void draw(Project &project);
64 Resource *currentResource();
66 TQValueList<int> listOffsets( int pageHeight) const;
67 void print(KPrinter &printer);
69 Node *currentNode() const { return m_currentNode; }
71 virtual bool setContext(Context::Resourceview &context);
72 virtual void getContext(Context::Resourceview &context) const;
74 virtual TQSize sizeHint() const;
77 void setShowAppointments( bool on) { m_showAppointments = on; }
80 void itemDoubleClicked();
83 void resSelectionChanged();
84 void resSelectionChanged(TQListViewItem *item);
85 void slotItemDoubleClicked(TQListViewItem*);
86 void popupMenuRequested(TQListViewItem * item, const TQPoint & pos, int);
89 void drawResources( const Project &proj, TQListViewItem *parent, ResourceGroup *group);
93 int m_defaultFontSize;
95 ResourceItemPrivate *m_selectedItem;
97 ResourceAppointmentsView *m_appview;
102 bool m_showAppointments;
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.
|