diff options
| author | Karel Kočí <cynerd@email.cz> | 2017-12-15 22:45:28 +0100 | 
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2017-12-15 22:45:28 +0100 | 
| commit | e6ca4b4568e311b47239bfe83de15ed9e91c57b9 (patch) | |
| tree | 3da2f72faf360058bae02c35b0c724233bd64d61 /qtmips_gui/coreview.h | |
| parent | bbea996112eb7ac81ec50d2af08f4bd681d0e50d (diff) | |
| download | qtmips-e6ca4b4568e311b47239bfe83de15ed9e91c57b9.tar.gz qtmips-e6ca4b4568e311b47239bfe83de15ed9e91c57b9.tar.bz2 qtmips-e6ca4b4568e311b47239bfe83de15ed9e91c57b9.zip | |
Implement few initial graphic elements
Diffstat (limited to 'qtmips_gui/coreview.h')
| -rw-r--r-- | qtmips_gui/coreview.h | 46 | 
1 files changed, 17 insertions, 29 deletions
| diff --git a/qtmips_gui/coreview.h b/qtmips_gui/coreview.h index a2772fb..fc69861 100644 --- a/qtmips_gui/coreview.h +++ b/qtmips_gui/coreview.h @@ -2,45 +2,33 @@  #define COREVIEW_H  #include <QGraphicsView> -#include <QGraphicsItem> -#include <QList> -#include "machineconfig.h" +#include <QGraphicsScene> +#include "qtmipsmachine.h" +#include "coreview/connection.h" +#include "coreview/programcounter.h" +#include "coreview/multiplexer.h" +#include "coreview/latch.h"  class CoreView : public QGraphicsView {      Q_OBJECT  public: -    CoreView(QWidget *parent); +    CoreView(QWidget *parent, QtMipsMachine *machine);  private: +    void resizeEvent(QResizeEvent *event); -}; +    QGraphicsScene scene; +    QtMipsMachine *machine; -/* -class CoreViewBlock : public QGraphicsItem { -    Q_OBJECT -public: -    CoreViewBlock(); +    coreview::ProgramCounter *pc; +    coreview::Multiplexer *pc_multiplexer; +    coreview::Connection *pc2pc; +    coreview::Latch *testlatch;  }; -class CoreViewLine : public QGraphicsItem { -    Q_OBJECT -public: -    struct point { -        int x1, y1, x2, y2; -    }; - -    CoreViewLine(); -    CoreViewLine(struct point start, struct point end, QList<struct point> axis); -    ~CoreViewLine(); +#else -    void set_start(struct point); -    void set_end(struct point); -    void set_axis(QList<struct point>); - -protected: -    struct point start, end; -    QList<struct point> axis; -}; -*/ +class CoreView; +class CoreViewBlock;  #endif // COREVIEW_H | 
