• Main Page
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

C:/Users/David/Documents/QtProjects/visualsc/scdatamodel/sctransition.h

Go to the documentation of this file.
00001 /*
00002     visualsc - Visual State Chart Editing for SCXML State Engines
00003     Copyright (C) 2011  David W. Drell (david@davidwdrell.net) and
00004     Contributing Authors:
00005 
00006 
00007     This program is free software: you can redistribute it and/or modify
00008     it under the terms of the GNU General Public License as published by
00009     the Free Software Foundation, either version 3 of the License, or
00010     (at your option) any later version.
00011 
00012     This program is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef SCTRANSISTION_H
00022 #define SCTRANSISTION_H
00023 
00024 #include "transitionattributes.h"
00025 #include <QObject>
00026 #include <QList>
00027 #include <QPointF>
00028 class SCState;
00029 #include "scdatamodel_global.h"
00030 class QXmlStreamWriter;
00031 #include "scitem.h"
00032 
00047 class SCDATAMODELSHARED_EXPORT  SCTransition : public SCItem
00048 {
00049     Q_OBJECT
00050 
00051 public:
00052     SCTransition(QObject * parent);
00053 
00054     ~SCTransition();
00055 
00056     virtual IAttributeContainer * getAttributes(); //reimplemented from base SCItem
00057     void    setAttributeValue(QString key, QString value);
00058     QString getAttributeValue(QString key);
00059     void    writeSCVXML(QXmlStreamWriter & sw);
00060 
00061      //public data members
00062 
00063     TransitionAttributes attributes;
00064 
00065 signals:
00066     void selected();
00067     void unselected();
00068 
00069 private slots:
00070     void handleLineSelected();
00071     void handleLineUnSelected();
00072 
00073 private:
00074 
00075     SCState *       _targetState;
00076 
00077 };
00078 
00079 
00080 #endif // SCTRANSISTION_H

Generated on Mon Sep 26 2011 06:59:25 for visualsc by  doxygen 1.7.1