#include <kptrelationdialog.h>
Inherited by KPlato::ModifyRelationDialog.
Inheritance diagram for KPlato::AddRelationDialog:
Public Member Functions | |
AddRelationDialog (Relation *rel, QWidget *p, QString caption=QString::null, ButtonCodes buttons=Ok|Cancel, const char *n=0) | |
virtual KCommand * | buildCommand (Part *part) |
int | selectedRelationType () const |
Protected Slots | |
void | slotOk () |
void | lagChanged () |
void | typeClicked (int) |
void | slotFinishStartToggled (bool) |
void | slotFinishFinishToggled (bool) |
void | slotStartStartToggled (bool) |
Protected Attributes | |
RelationPanel * | m_panel |
Q3ButtonGroup * | relationType |
Relation * | m_relation |
DurationWidget * | m_lag |
Definition at line 52 of file kptrelationdialog.h.
KPlato::AddRelationDialog::AddRelationDialog | ( | Relation * | rel, | |
QWidget * | p, | |||
QString | caption = QString::null , |
|||
ButtonCodes | buttons = Ok|Cancel , |
|||
const char * | n = 0 | |||
) |
Definition at line 48 of file kptrelationdialog.cc.
References KPlato::Relation::child(), KPlato::DurationWidget::Days, KPlato::Relation::FinishFinish, KPlato::Relation::FinishStart, KPlato::DurationWidget::Hours, KPlato::Relation::lag(), KPlato::RelationPanel::lag, lagChanged(), m_panel, m_relation, KPlato::DurationWidget::Minutes, KPlato::Node::name(), KPlato::Relation::parent(), KPlato::DurationWidget::setFieldUnit(), KPlato::DurationWidget::setValue(), KPlato::DurationWidget::setVisibleFields(), slotFinishFinishToggled(), slotFinishStartToggled(), slotStartStartToggled(), KPlato::Relation::StartStart, and KPlato::Relation::type().
KCommand * KPlato::AddRelationDialog::buildCommand | ( | Part * | part | ) | [virtual] |
Reimplemented in KPlato::ModifyRelationDialog.
Definition at line 87 of file kptrelationdialog.cc.
References m_relation.
Referenced by KPlato::View::slotAddRelation().
int KPlato::AddRelationDialog::selectedRelationType | ( | ) | const |
Definition at line 119 of file kptrelationdialog.cc.
References KPlato::Relation::FinishFinish, KPlato::Relation::FinishStart, m_panel, and KPlato::Relation::StartStart.
Referenced by KPlato::ModifyRelationDialog::buildCommand().
void KPlato::AddRelationDialog::slotOk | ( | ) | [protected, slot] |
Definition at line 91 of file kptrelationdialog.cc.
void KPlato::AddRelationDialog::lagChanged | ( | ) | [protected, slot] |
void KPlato::AddRelationDialog::typeClicked | ( | int | ) | [protected, slot] |
Definition at line 114 of file kptrelationdialog.cc.
References m_relation, and KPlato::Relation::type().
void KPlato::AddRelationDialog::slotFinishStartToggled | ( | bool | ) | [protected, slot] |
Definition at line 94 of file kptrelationdialog.cc.
References KPlato::Relation::FinishStart, m_relation, and KPlato::Relation::type().
Referenced by AddRelationDialog().
void KPlato::AddRelationDialog::slotFinishFinishToggled | ( | bool | ) | [protected, slot] |
Definition at line 99 of file kptrelationdialog.cc.
References KPlato::Relation::FinishFinish, m_relation, and KPlato::Relation::type().
Referenced by AddRelationDialog().
void KPlato::AddRelationDialog::slotStartStartToggled | ( | bool | ) | [protected, slot] |
Definition at line 104 of file kptrelationdialog.cc.
References m_relation, KPlato::Relation::StartStart, and KPlato::Relation::type().
Referenced by AddRelationDialog().
RelationPanel* KPlato::AddRelationDialog::m_panel [protected] |
Definition at line 70 of file kptrelationdialog.h.
Referenced by AddRelationDialog(), KPlato::ModifyRelationDialog::buildCommand(), and selectedRelationType().
Q3ButtonGroup* KPlato::AddRelationDialog::relationType [protected] |
Definition at line 71 of file kptrelationdialog.h.
Relation* KPlato::AddRelationDialog::m_relation [protected] |
Definition at line 72 of file kptrelationdialog.h.
Referenced by AddRelationDialog(), KPlato::ModifyRelationDialog::buildCommand(), buildCommand(), slotFinishFinishToggled(), slotFinishStartToggled(), slotStartStartToggled(), and typeClicked().
DurationWidget* KPlato::AddRelationDialog::m_lag [protected] |
Definition at line 73 of file kptrelationdialog.h.