kplato
kptrelationdialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KPTRELATIONDIALOG_H
00022 #define KPTRELATIONDIALOG_H
00023
00024 #include <kdialogbase.h>
00025
00026 class QButtonGroup;
00027 class KCommand;
00028
00029 namespace KPlato
00030 {
00031
00032 class RelationPanel;
00033 class DurationWidget;
00034
00035 class Node;
00036 class Relation;
00037 class Part;
00038 class ModifyRelationTypeCmd;
00039
00040 class AddRelationDialog : public KDialogBase
00041 {
00042 Q_OBJECT
00043 public:
00044 AddRelationDialog(Relation *rel, QWidget *p, QString caption=QString::null, int buttons=Ok|Cancel, const char *n=0);
00045
00046 virtual KCommand *buildCommand(Part *part);
00047
00048 protected slots:
00049 void slotOk();
00050 void lagChanged();
00051 void typeClicked(int);
00052
00053 protected:
00054 RelationPanel *m_panel;
00055 QButtonGroup *relationType;
00056 Relation *m_relation;
00057 DurationWidget *m_lag;
00058 };
00059
00060
00061 class ModifyRelationDialog : public AddRelationDialog
00062 {
00063 Q_OBJECT
00064 public:
00065 ModifyRelationDialog(Relation *rel, QWidget *p=0, const char *n=0);
00066
00067 virtual KCommand *buildCommand(Part *part);
00068 bool relationIsDeleted() { return m_deleted; }
00069
00070 protected slots:
00071 void slotUser1();
00072
00073 private:
00074 bool m_deleted;
00075 };
00076
00077 }
00078
00079 #endif // RELATIONDIALOG_H
|