15 #ifndef BORNAGAIN_GUI_VIEW_MASK_MASKGRAPHICSVIEW_H
16 #define BORNAGAIN_GUI_VIEW_MASK_MASKGRAPHICSVIEW_H
19 #include <QGraphicsView>
30 QSize
sizeHint()
const override {
return QSize(512, 512); }
Defines class MaskEditorFlags.
Graphics proxy to place QWidget inside QGraphicsScene, used by MaskEditorCanvas.
Graphics view for MaskEditorCanvas.
void wheelEvent(QWheelEvent *event) override
void changeActivityRequest(MaskEditorFlags::Activity)
void setZoomValue(double zoom_value)
double m_current_zoom_value
void updateSize(const QSize &newSize)
void resizeEvent(QResizeEvent *event) override
On resize event changes scene size and MaskGraphicsProxy so they would get the size of viewport.
bool isControlButtonIsPressed(QWheelEvent *event)
QSize minimumSizeHint() const override
MaskGraphicsView(QGraphicsScene *scene, QWidget *parent=nullptr)
void keyReleaseEvent(QKeyEvent *event) override
void cancelCurrentDrawing()
void deleteSelectedRequest()
void keyPressEvent(QKeyEvent *event) override
QSize sizeHint() const override
void onResetViewRequest()
Reset given view to original zoom state. Also asks graphics scene to do the same with color map.