Isis Developer Reference
MosaicGraphicsView.h
Go to the documentation of this file.
1#ifndef MosaicGraphicsView_H
2#define MosaicGraphicsView_H
3
4#include <QGraphicsView>
5#include <QSize>
6
7namespace Isis {
20 Q_OBJECT
21
22 public:
23 MosaicGraphicsView(QGraphicsScene *scene, QWidget *parent = 0);
24 virtual ~MosaicGraphicsView();
25
26 void enableResizeZooming(bool enabled) {
27 p_resizeZooming = enabled;
28 }
29
30 protected:
31 virtual void contextMenuEvent(QContextMenuEvent *event);
32 virtual void resizeEvent(QResizeEvent *event);
33
34 private:
35 bool p_resizeZooming;
36 QSize m_oldSize;
37 };
38}
39
40#endif
41
A graphics view that resizes in a more friendly way.
Definition MosaicGraphicsView.h:19
virtual void resizeEvent(QResizeEvent *event)
Definition MosaicGraphicsView.cpp:33
virtual ~MosaicGraphicsView()
Definition MosaicGraphicsView.cpp:24
MosaicGraphicsView(QGraphicsScene *scene, QWidget *parent=0)
Definition MosaicGraphicsView.cpp:9
void enableResizeZooming(bool enabled)
Definition MosaicGraphicsView.h:26
virtual void contextMenuEvent(QContextMenuEvent *event)
Definition MosaicGraphicsView.cpp:28
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16