aboutsummaryrefslogtreecommitdiffstats
path: root/gui/fpgaviewwidget.h
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2019-12-28 15:46:02 +0100
committerGitHub <noreply@github.com>2019-12-28 15:46:02 +0100
commit247e18cf027334d5201be00735aa607250e6253d (patch)
tree850d77245b0469a57ddf522e7fb68e3a805e3498 /gui/fpgaviewwidget.h
parent0d43aff2682d91817ea4a1fb5dff6e169ae9a659 (diff)
parentfb5480cde349008ab74e6b7179ac1b1fc8ffef1f (diff)
downloadnextpnr-247e18cf027334d5201be00735aa607250e6253d.tar.gz
nextpnr-247e18cf027334d5201be00735aa607250e6253d.tar.bz2
nextpnr-247e18cf027334d5201be00735aa607250e6253d.zip
Merge pull request #344 from YosysHQ/mmicko/ecp5_gui
ECP5 display improvement
Diffstat (limited to 'gui/fpgaviewwidget.h')
-rw-r--r--gui/fpgaviewwidget.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/fpgaviewwidget.h b/gui/fpgaviewwidget.h
index 3c0cfbbd..735590ba 100644
--- a/gui/fpgaviewwidget.h
+++ b/gui/fpgaviewwidget.h
@@ -119,6 +119,7 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
void zoomOut();
void zoomSelected();
void zoomOutbound();
+ void enableDisableDecals(bool bels, bool wires, bool pips, bool groups);
Q_SIGNALS:
void clickedBel(BelId bel, bool add);
@@ -126,8 +127,8 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
void clickedPip(PipId pip, bool add);
private:
- const float zoomNear_ = 0.1f; // do not zoom closer than this
- float zoomFar_ = 10.0f; // do not zoom further than this
+ const float zoomNear_ = 0.05f; // do not zoom closer than this
+ float zoomFar_ = 10.0f; // do not zoom further than this
const float zoomLvl1_ = 1.0f;
const float zoomLvl2_ = 5.0f;
@@ -227,6 +228,11 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
QMatrix4x4 viewMove_;
float zoom_;
+ bool displayBel_;
+ bool displayWire_;
+ bool displayPip_;
+ bool displayGroup_;
+
struct
{
QColor background;