21#include "kpttaskdialog.h"
22#include "kpttaskcostpanel.h"
23#include "kpttaskgeneralpanel.h"
24#include "kptrequestresourcespanel.h"
36 : KDialogBase(Tabbed, i18n( "Task Settings"), Ok|Cancel, Ok, p, "Task Settings Dialog", true, true)
41 page = addVBoxPage(i18n( "&General"));
42 m_generalTab = new TaskGeneralPanel(task, workTime, baseline, page);
44 page = addVBoxPage(i18n( "&Resources"));
45 m_resourcesTab = new RequestResourcesPanel(page, task, baseline);
47 page = addVBoxPage(i18n( "&Cost"));
48 m_costTab = new TaskCostPanel(task, accounts, page);
51 enableButtonOK( false);
53 connect(m_generalTab, TQ_SIGNAL( obligatedFieldsFilled( bool) ), this, TQ_SLOT( enableButtonOK( bool) ));
54 connect(m_resourcesTab, TQ_SIGNAL( changed() ), m_generalTab, TQ_SLOT( checkAllFieldsFilled() ));
55 connect(m_costTab, TQ_SIGNAL( changed() ), m_generalTab, TQ_SLOT( checkAllFieldsFilled() ));
59KCommand *TaskDialog::buildCommand(Part *part) {
60 KMacroCommand *m = new KMacroCommand(i18n( "Modify Task"));
61 bool modified = false;
62 KCommand *cmd = m_generalTab->buildCommand(part);
67 cmd = m_resourcesTab->buildCommand(part);
72 cmd = m_costTab->buildCommand(part);
84void TaskDialog::slotOk() {
85 if (!m_generalTab->ok())
87 if (!m_resourcesTab->ok())
96#include "kpttaskdialog.moc"
Accounts administrates all accounts.
TaskDialog(Task &task, Accounts &accounts, StandardWorktime *workTime=0, bool baseline=false, TQWidget *parent=0) The constructor for the task settings dialog.
A task in the scheduling software is represented by this class.
|