Isis 3 Programmer Reference
MosaicGraphicsView.h
1
#ifndef MosaicGraphicsView_H
2
#define MosaicGraphicsView_H
3
4
#include <QGraphicsView>
5
#include <QSize>
6
7
namespace
Isis
{
19
class
MosaicGraphicsView
:
public
QGraphicsView
{
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
QWidget
QGraphicsView
QGraphicsScene
Isis::MosaicGraphicsView
A graphics view that resizes in a more friendly way.
Definition:
MosaicGraphicsView.h:19
Isis
This is free and unencumbered software released into the public domain.
Definition:
Apollo.h:16
src
qisis
objs
MosaicSceneWidget
MosaicGraphicsView.h