KPlato::TaskCostPanel Class Reference

#include <kpttaskcostpanel.h>

Inherits KPlato::TaskCostPanelImpl.

Inheritance diagram for KPlato::TaskCostPanel:

[legend]
List of all members.

Public Member Functions

 TaskCostPanel (Task &task, Accounts &accounts, QWidget *parent=0, const char *name=0)
KCommand * buildCommand (Part *part)
bool ok ()
void setStartValues (Task &task)

Protected Member Functions

void setCurrentItem (QComboBox *box, QString name)

Private Attributes

Taskm_task
Accountsm_accounts
QStringList m_accountList
Accountm_oldrunning
Accountm_oldstartup
Accountm_oldshutdown

Detailed Description

Definition at line 48 of file kpttaskcostpanel.h.


Constructor & Destructor Documentation

KPlato::TaskCostPanel::TaskCostPanel ( Task task,
Accounts accounts,
QWidget *  parent = 0,
const char *  name = 0 
)

Definition at line 37 of file kpttaskcostpanel.cc.

References KPlato::Accounts::costElements(), m_accountList, and setStartValues().


Member Function Documentation

KCommand * KPlato::TaskCostPanel::buildCommand ( Part part  ) 

Definition at line 79 of file kpttaskcostpanel.cc.

References KPlato::Accounts::findAccount(), m_accounts, m_oldrunning, m_oldshutdown, m_oldstartup, m_task, KPlato::Account::name(), KPlato::Node::shutdownCost(), and KPlato::Node::startupCost().

Referenced by KPlato::TaskDialog::buildCommand().

bool KPlato::TaskCostPanel::ok (  ) 

Definition at line 115 of file kpttaskcostpanel.cc.

References KPlato::Accounts::findAccount(), and m_accounts.

void KPlato::TaskCostPanel::setStartValues ( Task task  ) 

Definition at line 47 of file kpttaskcostpanel.cc.

References KPlato::Accounts::findRunningAccount(), KPlato::Accounts::findShutdownAccount(), KPlato::Accounts::findStartupAccount(), m_accountList, m_accounts, m_oldrunning, m_oldshutdown, m_oldstartup, KPlato::Account::name(), setCurrentItem(), KPlato::Node::shutdownCost(), and KPlato::Node::startupCost().

Referenced by TaskCostPanel().

void KPlato::TaskCostPanel::setCurrentItem ( QComboBox *  box,
QString  name 
) [protected]

Definition at line 69 of file kpttaskcostpanel.cc.

Referenced by setStartValues().


Member Data Documentation

Task& KPlato::TaskCostPanel::m_task [private]

Definition at line 63 of file kpttaskcostpanel.h.

Referenced by buildCommand().

Accounts& KPlato::TaskCostPanel::m_accounts [private]

Definition at line 64 of file kpttaskcostpanel.h.

Referenced by buildCommand(), ok(), and setStartValues().

QStringList KPlato::TaskCostPanel::m_accountList [private]

Definition at line 65 of file kpttaskcostpanel.h.

Referenced by setStartValues(), and TaskCostPanel().

Account* KPlato::TaskCostPanel::m_oldrunning [private]

Definition at line 66 of file kpttaskcostpanel.h.

Referenced by buildCommand(), and setStartValues().

Account* KPlato::TaskCostPanel::m_oldstartup [private]

Definition at line 67 of file kpttaskcostpanel.h.

Referenced by buildCommand(), and setStartValues().

Account* KPlato::TaskCostPanel::m_oldshutdown [private]

Definition at line 68 of file kpttaskcostpanel.h.

Referenced by buildCommand(), and setStartValues().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:52 2006 for KPlato by  doxygen 1.5.1-p1