diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-14 19:44:37 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-14 19:44:37 +0200 |
commit | 8d1996cae99ff80a2d9390b94db54217ed1d8726 (patch) | |
tree | 432025dff841a5ee71100897f9d4afb1021decdd /gui/fpgaviewwidget.h | |
parent | f339f796a1bd7e98be184085e831e9d44ea85dd1 (diff) | |
download | nextpnr-8d1996cae99ff80a2d9390b94db54217ed1d8726.tar.gz nextpnr-8d1996cae99ff80a2d9390b94db54217ed1d8726.tar.bz2 nextpnr-8d1996cae99ff80a2d9390b94db54217ed1d8726.zip |
display selected object from tree
Diffstat (limited to 'gui/fpgaviewwidget.h')
-rw-r--r-- | gui/fpgaviewwidget.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/fpgaviewwidget.h b/gui/fpgaviewwidget.h index 3652e82e..0a9599c9 100644 --- a/gui/fpgaviewwidget.h +++ b/gui/fpgaviewwidget.h @@ -213,6 +213,7 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions Q_PROPERTY(QColor gHiddenColor MEMBER gHiddenColor_ DESIGNABLE true) Q_PROPERTY(QColor gInactiveColor MEMBER gInactiveColor_ DESIGNABLE true) Q_PROPERTY(QColor gActiveColor MEMBER gActiveColor_ DESIGNABLE true) + Q_PROPERTY(QColor gSelectedColor MEMBER gSelectedColor_ DESIGNABLE true) Q_PROPERTY(QColor frameColor MEMBER frameColor_ DESIGNABLE true) public: @@ -309,7 +310,7 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions public Q_SLOTS: void newContext(Context *ctx); - + void onSelectedArchItem(std::vector<DecalXY> decals); private: QPoint lastPos_; LineShader lineShader_; @@ -332,9 +333,13 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions QColor gHiddenColor_; QColor gInactiveColor_; QColor gActiveColor_; + QColor gSelectedColor_; QColor frameColor_; LineShaderData shaders_[4]; + LineShaderData selectedShader_; + std::vector<DecalXY> selectedItems_; + bool selectedItemsChanged; }; NEXTPNR_NAMESPACE_END |