Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef SMPROJECT_H
00022 #define SMPROJECT_H
00023
00024 #include <QGraphicsView>
00025 #include <QString>
00026 #include "scstate.h"
00027 #include <QObject>
00028 #include "scgraphicsview.h"
00029 #include <QTimer>
00030 #include "scdatamodel.h"
00031
00032
00033
00034 class SelectableLineSegmentGraphic;
00035
00036 class StateAttributes;
00037
00038 class SMProject : public QObject
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 SMProject(QWidget *parentWidget);
00044 ~SMProject();
00045
00046 void initNewSM();
00047
00048 void close();
00049
00050 void readInputFile(QString file);
00051 void save(QString file);
00052 QGraphicsView * getQGraphicsView();
00053 SCDataModel * getDM();
00054
00055 signals:
00056 void error(QString err);
00057 void readInputFileCompleted (bool,QStringList );
00058
00059 private slots:
00060 void handleOpenCompleted (bool,QStringList );
00061
00062 private:
00063
00064
00065
00066 QString _file;
00067 SCDataModel *_dm;
00068 SCGraphicsView _graphicsView;
00069
00070
00071
00072 private:
00073
00074
00075
00076
00077 };
00078
00079 #endif // SMPROJECT_H