20#ifndef KPTRESOURCEDIALOG_H
21#define KPTRESOURCEDIALOG_H
23#include "resourcedialogbase.h"
24#include "kptresource.h"
26#include <kdialogbase.h>
29#include <tqcombobox.h>
44class ResourceDialogImpl : public ResourceDialogBase {
48 ResourceDialogImpl (TQWidget *parent);
52 void slotCalculationNeeded( const TQString&);
53 void slotChooseResource();
60 void slotAvailableFromChanged( const TQDateTime& dt);
61 void slotAvailableUntilChanged( const TQDateTime& dt);
64class ResourceDialog : public KDialogBase {
68 ResourceDialog(Project &project, Resource *resource, TQWidget *parent=0, const char *name=0);
70 bool calculationNeeded() { return m_calculationNeeded; }
72 Calendar *calendar() { return m_calendars[dia->calendarList->currentItem()]; }
73 KCommand *buildCommand(Part *part = 0);
75 static KCommand *buildCommand(Resource *original, Resource &resource, Part *part);
78 void enableButtonOk();
79 void slotCalculationNeeded();
81 void slotCalendarChanged( int);
86 ResourceDialogImpl *dia;
87 bool m_calculationNeeded;
89 TQMap<int, Calendar*> m_calendars;
Calendar defines the working and nonworking days and hours.
Project is the main node in a project, it contains child nodes and possibly sub-projects.
Any resource that is used by a task.
|