source: ntrip/trunk/BNC/bncmapview.h@ 3187

Last change on this file since 3187 was 2803, checked in by weber, 14 years ago

Newline at end of file added

File size: 837 bytes
Line 
1
2#ifndef BNCMAPVIEW_H
3#define BNCMAPVIEW_H
4
5#include <QGraphicsView>
6#include <QGraphicsRectItem>
7
8class BncMapView : public QGraphicsView
9{
10 Q_OBJECT;
11
12 public:
13 BncMapView(QWidget* parent = NULL);
14
15 protected:
16 QPointF _currentCenterPoint; // centerpoint for for panning and zooming
17 QPoint _lastPanPoint; // from panning the view
18 void SetCenter(const QPointF& centerPoint); // set the current centerpoint in the
19
20 QPointF GetCenter(){ return _currentCenterPoint; }
21
22 virtual void mousePressEvent(QMouseEvent* event);
23 virtual void mouseReleaseEvent(QMouseEvent* event);
24 virtual void mouseMoveEvent(QMouseEvent* event);
25 virtual void wheelEvent(QWheelEvent* event);
26 virtual void resizeEvent(QResizeEvent* event);
27};
28
29#endif
Note: See TracBrowser for help on using the repository browser.