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 {
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.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31