#include <kptwbsdefinitionpanel.h>
Signals | |
void | changed (bool enable) |
Public Member Functions | |
WBSDefinitionPanel (WBSDefinition &def, QWidget *parent=0, const char *name=0) | |
KMacroCommand * | buildCommand (Part *part) |
bool | ok () |
void | setStartValues (Part *part) |
Protected Slots | |
void | slotChanged () |
void | slotSelectionChanged () |
void | slotRemoveBtnClicked () |
void | slotAddBtnClicked () |
void | slotLevelChanged (int) |
void | slotLevelsGroupToggled (bool on) |
Private Attributes | |
int | selectedRow |
WBSDefinition & | m_def |
Definition at line 55 of file kptwbsdefinitionpanel.h.
KPlato::WBSDefinitionPanel::WBSDefinitionPanel | ( | WBSDefinition & | def, | |
QWidget * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
Definition at line 82 of file kptwbsdefinitionpanel.cc.
References KPlato::WBSDefinition::codeList(), KPlato::WBSDefinition::defaultCodeIndex(), KPlato::WBSDefinition::defaultSeparator(), KPlato::WBSDefinition::isLevelsDefEnabled(), KPlato::WBSDefinition::levelsDef(), slotAddBtnClicked(), slotChanged(), slotLevelChanged(), slotLevelsGroupToggled(), slotRemoveBtnClicked(), and slotSelectionChanged().
KMacroCommand * KPlato::WBSDefinitionPanel::buildCommand | ( | Part * | part | ) |
Definition at line 133 of file kptwbsdefinitionpanel.cc.
Referenced by KPlato::WBSDefinitionDialog::buildCommand().
bool KPlato::WBSDefinitionPanel::ok | ( | ) |
Definition at line 139 of file kptwbsdefinitionpanel.cc.
References KPlato::WBSDefinition::clearLevelsDef(), m_def, KPlato::WBSDefinition::setDefaultCode(), KPlato::WBSDefinition::setDefaultSeparator(), KPlato::WBSDefinition::setLevelsDef(), and KPlato::WBSDefinition::setLevelsDefEnabled().
Referenced by KPlato::WBSDefinitionDialog::slotOk().
void KPlato::WBSDefinitionPanel::setStartValues | ( | Part * | part | ) |
Definition at line 130 of file kptwbsdefinitionpanel.cc.
void KPlato::WBSDefinitionPanel::changed | ( | bool | enable | ) | [signal] |
Referenced by slotChanged().
void KPlato::WBSDefinitionPanel::slotChanged | ( | ) | [protected, slot] |
Definition at line 153 of file kptwbsdefinitionpanel.cc.
References changed().
Referenced by slotAddBtnClicked(), slotLevelChanged(), and WBSDefinitionPanel().
void KPlato::WBSDefinitionPanel::slotSelectionChanged | ( | ) | [protected, slot] |
Definition at line 157 of file kptwbsdefinitionpanel.cc.
References selectedRow.
Referenced by WBSDefinitionPanel().
void KPlato::WBSDefinitionPanel::slotRemoveBtnClicked | ( | ) | [protected, slot] |
Definition at line 171 of file kptwbsdefinitionpanel.cc.
References selectedRow, and slotLevelChanged().
Referenced by WBSDefinitionPanel().
void KPlato::WBSDefinitionPanel::slotAddBtnClicked | ( | ) | [protected, slot] |
Definition at line 181 of file kptwbsdefinitionpanel.cc.
References KPlato::WBSDefinition::codeList(), KPlato::WBSDefinition::defaultCodeIndex(), KPlato::WBSDefinition::defaultSeparator(), m_def, and slotChanged().
Referenced by WBSDefinitionPanel().
void KPlato::WBSDefinitionPanel::slotLevelChanged | ( | int | ) | [protected, slot] |
Definition at line 206 of file kptwbsdefinitionpanel.cc.
References slotChanged().
Referenced by slotLevelsGroupToggled(), slotRemoveBtnClicked(), and WBSDefinitionPanel().
void KPlato::WBSDefinitionPanel::slotLevelsGroupToggled | ( | bool | on | ) | [protected, slot] |
Definition at line 216 of file kptwbsdefinitionpanel.cc.
References slotLevelChanged().
Referenced by WBSDefinitionPanel().
int KPlato::WBSDefinitionPanel::selectedRow [private] |
Definition at line 77 of file kptwbsdefinitionpanel.h.
Referenced by slotRemoveBtnClicked(), and slotSelectionChanged().
WBSDefinition& KPlato::WBSDefinitionPanel::m_def [private] |