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 
7 namespace 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 
QWidget
Isis::MosaicGraphicsView::enableResizeZooming
void enableResizeZooming(bool enabled)
Definition: MosaicGraphicsView.h:26
Isis::MosaicGraphicsView::MosaicGraphicsView
MosaicGraphicsView(QGraphicsScene *scene, QWidget *parent=0)
Definition: MosaicGraphicsView.cpp:9
QGraphicsView
Isis::MosaicGraphicsView::contextMenuEvent
virtual void contextMenuEvent(QContextMenuEvent *event)
Definition: MosaicGraphicsView.cpp:28
Isis::MosaicGraphicsView::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
Definition: MosaicGraphicsView.cpp:33
QGraphicsScene
MosaicGraphicsView.h
Isis::MosaicGraphicsView::~MosaicGraphicsView
virtual ~MosaicGraphicsView()
Definition: MosaicGraphicsView.cpp:24
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