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 SCGRAPHICSVIEW_H
00022 #define SCGRAPHICSVIEW_H
00023
00024 #include "scgraphicsview_global.h"
00025 #include "scdatamodel.h"
00026 #include <QObject>
00027 #include <QGraphicsView>
00028 #include "stateattributes.h"
00029 #include "stateboxgraphic.h"
00030 #include "selectablelinesegmentgraphic.h"
00031 #include "textformattoolbar.h"
00032 #include <QMap>
00033
00048 class SCGRAPHICSVIEWSHARED_EXPORT SCGraphicsView : QWidget
00049 {
00050 Q_OBJECT
00051
00052
00053 public:
00054 SCGraphicsView(QWidget *parent, SCDataModel * dm);
00055
00056 QGraphicsView * getQGraphicsView();
00057
00058 signals:
00059
00060 private slots:
00061
00062 void handleNewState(SCState * newState);
00063 void handleNewTransition(SCTransition*);
00064
00065 private:
00066
00067
00068
00069 QGraphicsScene _scene;
00070 QGraphicsView _view;
00071 SCDataModel *_dm;
00072 QMap<SCState*,StateBoxGraphic*> _mapStateToGraphic;
00073
00074
00075
00076
00077 void increaseSizeOfAllAncestors (SCState * state);
00078
00079 SCState * lookUpTargetState(QString target);
00080
00081
00082 };
00083
00084 #endif // SCGRAPHICSVIEW_H