#include <kpttaskcostpanel.h>
Inherits KPlato::TaskCostPanelImpl.
Inheritance diagram for KPlato::TaskCostPanel:
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 | |
Task & | m_task |
Accounts & | m_accounts |
QStringList | m_accountList |
Account * | m_oldrunning |
Account * | m_oldstartup |
Account * | m_oldshutdown |
Definition at line 48 of file kpttaskcostpanel.h.
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().
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] |
Task& KPlato::TaskCostPanel::m_task [private] |
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().