Merge branch 'master' into q3k/clickity
This commit is contained in:
commit
340c2520b0
@ -167,19 +167,19 @@ void BaseMainWindow::createGraphicsBar()
|
|||||||
{
|
{
|
||||||
QAction *actionZoomIn = new QAction("Zoom In", this);
|
QAction *actionZoomIn = new QAction("Zoom In", this);
|
||||||
actionZoomIn->setIcon(QIcon(":/icons/resources/zoom_in.png"));
|
actionZoomIn->setIcon(QIcon(":/icons/resources/zoom_in.png"));
|
||||||
connect(actionZoomIn, SIGNAL(triggered()), fpgaView, SLOT(zoom_in()));
|
connect(actionZoomIn, SIGNAL(triggered()), fpgaView, SLOT(zoomIn()));
|
||||||
|
|
||||||
QAction *actionZoomOut = new QAction("Zoom Out", this);
|
QAction *actionZoomOut = new QAction("Zoom Out", this);
|
||||||
actionZoomOut->setIcon(QIcon(":/icons/resources/zoom_out.png"));
|
actionZoomOut->setIcon(QIcon(":/icons/resources/zoom_out.png"));
|
||||||
connect(actionZoomOut, SIGNAL(triggered()), fpgaView, SLOT(zoom_out()));
|
connect(actionZoomOut, SIGNAL(triggered()), fpgaView, SLOT(zoomOut()));
|
||||||
|
|
||||||
QAction *actionZoomSelected = new QAction("Zoom Selected", this);
|
QAction *actionZoomSelected = new QAction("Zoom Selected", this);
|
||||||
actionZoomSelected->setIcon(QIcon(":/icons/resources/shape_handles.png"));
|
actionZoomSelected->setIcon(QIcon(":/icons/resources/shape_handles.png"));
|
||||||
connect(actionZoomSelected, SIGNAL(triggered()), fpgaView, SLOT(zoom_selected()));
|
connect(actionZoomSelected, SIGNAL(triggered()), fpgaView, SLOT(zoomSelected()));
|
||||||
|
|
||||||
QAction *actionZoomOutbound = new QAction("Zoom Outbound", this);
|
QAction *actionZoomOutbound = new QAction("Zoom Outbound", this);
|
||||||
actionZoomOutbound->setIcon(QIcon(":/icons/resources/shape_square.png"));
|
actionZoomOutbound->setIcon(QIcon(":/icons/resources/shape_square.png"));
|
||||||
connect(actionZoomOutbound, SIGNAL(triggered()), fpgaView, SLOT(zoom_outbound()));
|
connect(actionZoomOutbound, SIGNAL(triggered()), fpgaView, SLOT(zoomOutbound()));
|
||||||
|
|
||||||
graphicsToolBar = new QToolBar();
|
graphicsToolBar = new QToolBar();
|
||||||
addToolBar(Qt::TopToolBarArea, graphicsToolBar);
|
addToolBar(Qt::TopToolBarArea, graphicsToolBar);
|
||||||
|
@ -644,12 +644,12 @@ void FPGAViewWidget::zoom(int level)
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FPGAViewWidget::zoom_in() { zoom(10); }
|
void FPGAViewWidget::zoomIn() { zoom(10); }
|
||||||
|
|
||||||
void FPGAViewWidget::zoom_out() { zoom(-10); }
|
void FPGAViewWidget::zoomOut() { zoom(-10); }
|
||||||
|
|
||||||
void FPGAViewWidget::zoom_selected() {}
|
void FPGAViewWidget::zoomSelected() {}
|
||||||
|
|
||||||
void FPGAViewWidget::zoom_outbound() {}
|
void FPGAViewWidget::zoomOutbound() {}
|
||||||
|
|
||||||
NEXTPNR_NAMESPACE_END
|
NEXTPNR_NAMESPACE_END
|
||||||
|
@ -271,14 +271,6 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
|
|||||||
QSize minimumSizeHint() const override;
|
QSize minimumSizeHint() const override;
|
||||||
QSize sizeHint() const override;
|
QSize sizeHint() const override;
|
||||||
|
|
||||||
void setXTranslation(float t_x);
|
|
||||||
void setYTranslation(float t_y);
|
|
||||||
void setZoom(float t_z);
|
|
||||||
|
|
||||||
void xRotationChanged(int angle);
|
|
||||||
void yRotationChanged(int angle);
|
|
||||||
void zRotationChanged(int angle);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void initializeGL() Q_DECL_OVERRIDE;
|
void initializeGL() Q_DECL_OVERRIDE;
|
||||||
void paintGL() Q_DECL_OVERRIDE;
|
void paintGL() Q_DECL_OVERRIDE;
|
||||||
@ -288,15 +280,16 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
|
|||||||
void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
|
void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
|
||||||
void drawDecal(LineShaderData &data, const DecalXY &decal);
|
void drawDecal(LineShaderData &data, const DecalXY &decal);
|
||||||
void drawDecal(LineShaderData out[], const DecalXY &decal);
|
void drawDecal(LineShaderData out[], const DecalXY &decal);
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void newContext(Context *ctx);
|
void newContext(Context *ctx);
|
||||||
void onSelectedArchItem(std::vector<DecalXY> decals);
|
void onSelectedArchItem(std::vector<DecalXY> decals);
|
||||||
void onHighlightGroupChanged(std::vector<DecalXY> decals, int group);
|
void onHighlightGroupChanged(std::vector<DecalXY> decals, int group);
|
||||||
void pokeRenderer(void);
|
void pokeRenderer(void);
|
||||||
void zoom_in();
|
void zoomIn();
|
||||||
void zoom_out();
|
void zoomOut();
|
||||||
void zoom_selected();
|
void zoomSelected();
|
||||||
void zoom_outbound();
|
void zoomOutbound();
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void clickedBel(BelId bel);
|
void clickedBel(BelId bel);
|
||||||
|
Loading…
Reference in New Issue
Block a user