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