qwt_polar_panner.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
  2. * QwtPolar Widget Library
  3. * Copyright (C) 2008 Uwe Rathmann
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the Qwt License, Version 1.0
  7. *****************************************************************************/
  8. #ifndef QWT_POLAR_PANNER_H
  9. #define QWT_POLAR_PANNER_H 1
  10. #include "qwt_polar_global.h"
  11. #include "qwt_panner.h"
  12. class QwtPolarPlot;
  13. class QwtPolarCanvas;
  14. /*!
  15. \brief QwtPolarPanner provides panning of a polar plot canvas
  16. QwtPolarPanner is a panner for a QwtPolarCanvas, that
  17. adjusts the visible area after dropping
  18. the canvas on its new position.
  19. Together with QwtPolarMagnifier individual ways
  20. of navigating on a QwtPolarPlot widget can be implemented easily.
  21. \sa QwtPolarMagnifier
  22. */
  23. class QWT_POLAR_EXPORT QwtPolarPanner: public QwtPanner
  24. {
  25. Q_OBJECT
  26. public:
  27. explicit QwtPolarPanner( QwtPolarCanvas * );
  28. virtual ~QwtPolarPanner();
  29. QwtPolarPlot *plot();
  30. const QwtPolarPlot *plot() const;
  31. QwtPolarCanvas *canvas();
  32. const QwtPolarCanvas *canvas() const;
  33. protected Q_SLOTS:
  34. virtual void movePlot( int dx, int dy );
  35. protected:
  36. virtual void widgetMousePressEvent( QMouseEvent * );
  37. };
  38. #endif