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

C:/Users/David/Documents/QtProjects/visualsc/app/smproject.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 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     // private data
00065 
00066     QString         _file;
00067     SCDataModel      *_dm;
00068     SCGraphicsView   _graphicsView;
00069 
00070 
00071 
00072     private:
00073 
00074     // private methods
00075 
00076 
00077 };
00078 
00079 #endif // SMPROJECT_H

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