Skip to content
Permalink
Browse files

Add internal qwtpolar 1.1.1 for Qwt 6.1

(cherry picked from commit c3881d4)
  • Loading branch information
jef-n committed Mar 22, 2016
1 parent 3507bd8 commit b3cdd08f5cc8de6f5e0a5e90ec1ad0c9145a2546
Showing with 7,904 additions and 5 deletions.
  1. +31 −5 src/app/CMakeLists.txt
  2. +84 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar.h
  3. +320 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_canvas.cpp
  4. +79 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_canvas.h
  5. +596 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_curve.cpp
  6. +161 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_curve.h
  7. +100 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_fitter.cpp
  8. +40 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_fitter.h
  9. +39 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_global.h
  10. +1,138 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_grid.cpp
  11. +187 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_grid.h
  12. +484 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_item.cpp
  13. +178 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_item.h
  14. +171 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_itemdict.cpp
  15. +55 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_itemdict.h
  16. +444 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_layout.cpp
  17. +78 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_layout.h
  18. +167 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_magnifier.cpp
  19. +58 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_magnifier.h
  20. +233 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_marker.cpp
  21. +70 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_marker.h
  22. +118 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_panner.cpp
  23. +52 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_panner.h
  24. +246 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_picker.cpp
  25. +98 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_picker.h
  26. +1,362 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_plot.cpp
  27. +219 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_plot.h
  28. +437 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_renderer.cpp
  29. +72 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_renderer.h
  30. +495 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_spectrogram.cpp
  31. +92 −0 src/app/gps/qwtpolar-1.1.1/qwt_polar_spectrogram.h
@@ -337,11 +337,7 @@ IF (WITH_QWTPOLAR)
)

SET(QWTPOLAR_INCLUDE_DIR gps/qwtpolar-0.1)
ELSE(QWT_VERSION_STR VERSION_LESS "6.0.0")
IF(NOT QWT_VERSION_STR VERSION_LESS "6.1.0")
MESSAGE(FATAL_ERROR "Internal QwtPolar does not support Qwt 6.1 and above")
ENDIF(NOT QWT_VERSION_STR VERSION_LESS "6.1.0")

ELSEIF(QWT_VERSION_STR VERSION_LESS "6.1.0")
SET(QGIS_APP_SRCS
${QGIS_APP_SRCS}
gps/qwtpolar-1.0/qwt_polar_canvas.cpp
@@ -371,6 +367,36 @@ IF (WITH_QWTPOLAR)
)

SET(QWTPOLAR_INCLUDE_DIR gps/qwtpolar-1.0)
ELSE(QWT_VERSION_STR VERSION_LESS "6.1.0")
SET(QGIS_APP_SRCS
${QGIS_APP_SRCS}
gps/qwtpolar-1.1.1/qwt_polar_canvas.cpp
gps/qwtpolar-1.1.1/qwt_polar_curve.cpp
gps/qwtpolar-1.1.1/qwt_polar_fitter.cpp
gps/qwtpolar-1.1.1/qwt_polar_grid.cpp
gps/qwtpolar-1.1.1/qwt_polar_item.cpp
gps/qwtpolar-1.1.1/qwt_polar_itemdict.cpp
gps/qwtpolar-1.1.1/qwt_polar_layout.cpp
gps/qwtpolar-1.1.1/qwt_polar_magnifier.cpp
gps/qwtpolar-1.1.1/qwt_polar_marker.cpp
gps/qwtpolar-1.1.1/qwt_polar_panner.cpp
gps/qwtpolar-1.1.1/qwt_polar_picker.cpp
gps/qwtpolar-1.1.1/qwt_polar_plot.cpp
gps/qwtpolar-1.1.1/qwt_polar_renderer.cpp
gps/qwtpolar-1.1.1/qwt_polar_spectrogram.cpp
)

SET (QGIS_APP_MOC_HDRS
${QGIS_APP_MOC_HDRS}
gps/qwtpolar-1.1.1/qwt_polar_canvas.h
gps/qwtpolar-1.1.1/qwt_polar_magnifier.h
gps/qwtpolar-1.1.1/qwt_polar_panner.h
gps/qwtpolar-1.1.1/qwt_polar_picker.h
gps/qwtpolar-1.1.1/qwt_polar_plot.h
gps/qwtpolar-1.1.1/qwt_polar_renderer.h
)

SET(QWTPOLAR_INCLUDE_DIR gps/qwtpolar-1.1.1)
ENDIF(QWT_VERSION_STR VERSION_LESS "6.0.0")

SET(QWTPOLAR_LIBRARY "")
@@ -0,0 +1,84 @@
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* QwtPolar Widget Library
* Copyright (C) 2008 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/

#ifndef QWT_POLAR_H
#define QWT_POLAR_H 1

#include "qwt_polar_global.h"

namespace QwtPolar
{
//! Unit of an angle
enum AngleUnit
{
//! 0.0 -> 2_M_PI
Radians,

//! 0.0 -> 360.0
Degrees,

//! 0.0 - 400.0
Gradians,

//! 0.0 - 1.0
Turns
};

//! An enum, that identifies the type of a coordinate
enum Coordinate
{
//! Azimuth
Azimuth,

//! Radius
Radius
};

/*!
Indices used to identify an axis.
\sa Scale
*/
enum Axis
{
//! Azimuth axis
AxisAzimuth,

//! Left axis
AxisLeft,

//! Right axis
AxisRight,

//! Top axis
AxisTop,

//! Bottom axis
AxisBottom,

//! Number of available axis
AxesCount
};

/*!
Indices used to identify a scale.
\sa Axis
*/
enum Scale
{
//! Azimuth scale
ScaleAzimuth = Azimuth,

//! Radial scale
ScaleRadius = Radius,

//! Number of scales
ScaleCount
};
}

#endif

0 comments on commit b3cdd08

Please sign in to comment.
You can’t perform that action at this time.