F:/KPlato/koffice/kplato/kptrelationdialog.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 The koffice team <koffice@kde.org>
00003    Copyright (C) 2003, 2004 Dag Andersen <danders@get2net.dk>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KPTRELATIONDIALOG_H
00022 #define KPTRELATIONDIALOG_H
00023 
00024 #include "ui_relationpanel.h"
00025 #include <QWidget>
00026 #include <kdialog.h>
00027 
00028 class Q3ButtonGroup;
00029 class QAbstractButton;
00030 class KCommand;
00031 
00032 namespace KPlato
00033 {
00034 
00035 class RelationPanel;
00036 class DurationWidget;
00037 
00038 class Node;
00039 class Relation;
00040 class Part;
00041 class ModifyRelationTypeCmd;
00042 
00043 class RelationPanel : public QWidget, public Ui_RelationPanel
00044 {
00045     Q_OBJECT
00046 public:
00047     RelationPanel(QWidget *parent=0);
00048     
00049     DurationWidget *lag;
00050 };
00051 
00052 class AddRelationDialog : public KDialog
00053 {
00054     Q_OBJECT
00055 public:
00056     AddRelationDialog(Relation *rel, QWidget *p, QString caption=QString::null, ButtonCodes buttons=Ok|Cancel, const char *n=0);
00057 
00058     virtual KCommand *buildCommand(Part *part);
00059     int selectedRelationType() const;
00060     
00061 protected slots:
00062     void slotOk();
00063     void lagChanged();
00064     void typeClicked(int);
00065     void slotFinishStartToggled(bool);
00066     void slotFinishFinishToggled(bool);
00067     void slotStartStartToggled(bool);
00068 
00069 protected:
00070     RelationPanel *m_panel;
00071     Q3ButtonGroup *relationType;
00072     Relation *m_relation;
00073     DurationWidget *m_lag;
00074 };
00075 
00076 
00077 class ModifyRelationDialog : public AddRelationDialog
00078 {
00079     Q_OBJECT
00080 public:
00081     ModifyRelationDialog(Relation *rel, QWidget *p=0, const char *n=0);
00082 
00083     virtual KCommand *buildCommand(Part *part);
00084     bool relationIsDeleted() { return m_deleted; }
00085 
00086 protected slots:
00087     void slotUser1();
00088 
00089 private:
00090     bool m_deleted;
00091 };
00092 
00093 }  //KPlato namespace
00094 
00095 #endif // RELATIONDIALOG_H

Généré le Wed Nov 22 23:40:57 2006 pour KPlato par  doxygen 1.5.1-p1