KPlato::AddRelationDialog Class Reference

#include <kptrelationdialog.h>

Inherited by KPlato::ModifyRelationDialog.

Inheritance diagram for KPlato::AddRelationDialog:

[legend]
List of all members.

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

RelationPanelm_panel
Q3ButtonGroup * relationType
Relationm_relation
DurationWidgetm_lag

Detailed Description

Definition at line 52 of file kptrelationdialog.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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]

Definition at line 110 of file kptrelationdialog.cc.

Referenced by AddRelationDialog().

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().


Member Data Documentation

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.


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