Skip to content

Commit b3cdd08

Browse files
committed
Add internal qwtpolar 1.1.1 for Qwt 6.1
(cherry picked from commit c3881d4)
1 parent 3507bd8 commit b3cdd08

31 files changed

+7904
-5
lines changed

src/app/CMakeLists.txt

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,7 @@ IF (WITH_QWTPOLAR)
337337
)
338338

339339
SET(QWTPOLAR_INCLUDE_DIR gps/qwtpolar-0.1)
340-
ELSE(QWT_VERSION_STR VERSION_LESS "6.0.0")
341-
IF(NOT QWT_VERSION_STR VERSION_LESS "6.1.0")
342-
MESSAGE(FATAL_ERROR "Internal QwtPolar does not support Qwt 6.1 and above")
343-
ENDIF(NOT QWT_VERSION_STR VERSION_LESS "6.1.0")
344-
340+
ELSEIF(QWT_VERSION_STR VERSION_LESS "6.1.0")
345341
SET(QGIS_APP_SRCS
346342
${QGIS_APP_SRCS}
347343
gps/qwtpolar-1.0/qwt_polar_canvas.cpp
@@ -371,6 +367,36 @@ IF (WITH_QWTPOLAR)
371367
)
372368

373369
SET(QWTPOLAR_INCLUDE_DIR gps/qwtpolar-1.0)
370+
ELSE(QWT_VERSION_STR VERSION_LESS "6.1.0")
371+
SET(QGIS_APP_SRCS
372+
${QGIS_APP_SRCS}
373+
gps/qwtpolar-1.1.1/qwt_polar_canvas.cpp
374+
gps/qwtpolar-1.1.1/qwt_polar_curve.cpp
375+
gps/qwtpolar-1.1.1/qwt_polar_fitter.cpp
376+
gps/qwtpolar-1.1.1/qwt_polar_grid.cpp
377+
gps/qwtpolar-1.1.1/qwt_polar_item.cpp
378+
gps/qwtpolar-1.1.1/qwt_polar_itemdict.cpp
379+
gps/qwtpolar-1.1.1/qwt_polar_layout.cpp
380+
gps/qwtpolar-1.1.1/qwt_polar_magnifier.cpp
381+
gps/qwtpolar-1.1.1/qwt_polar_marker.cpp
382+
gps/qwtpolar-1.1.1/qwt_polar_panner.cpp
383+
gps/qwtpolar-1.1.1/qwt_polar_picker.cpp
384+
gps/qwtpolar-1.1.1/qwt_polar_plot.cpp
385+
gps/qwtpolar-1.1.1/qwt_polar_renderer.cpp
386+
gps/qwtpolar-1.1.1/qwt_polar_spectrogram.cpp
387+
)
388+
389+
SET (QGIS_APP_MOC_HDRS
390+
${QGIS_APP_MOC_HDRS}
391+
gps/qwtpolar-1.1.1/qwt_polar_canvas.h
392+
gps/qwtpolar-1.1.1/qwt_polar_magnifier.h
393+
gps/qwtpolar-1.1.1/qwt_polar_panner.h
394+
gps/qwtpolar-1.1.1/qwt_polar_picker.h
395+
gps/qwtpolar-1.1.1/qwt_polar_plot.h
396+
gps/qwtpolar-1.1.1/qwt_polar_renderer.h
397+
)
398+
399+
SET(QWTPOLAR_INCLUDE_DIR gps/qwtpolar-1.1.1)
374400
ENDIF(QWT_VERSION_STR VERSION_LESS "6.0.0")
375401

376402
SET(QWTPOLAR_LIBRARY "")
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
9+
#ifndef QWT_POLAR_H
10+
#define QWT_POLAR_H 1
11+
12+
#include "qwt_polar_global.h"
13+
14+
namespace QwtPolar
15+
{
16+
//! Unit of an angle
17+
enum AngleUnit
18+
{
19+
//! 0.0 -> 2_M_PI
20+
Radians,
21+
22+
//! 0.0 -> 360.0
23+
Degrees,
24+
25+
//! 0.0 - 400.0
26+
Gradians,
27+
28+
//! 0.0 - 1.0
29+
Turns
30+
};
31+
32+
//! An enum, that identifies the type of a coordinate
33+
enum Coordinate
34+
{
35+
//! Azimuth
36+
Azimuth,
37+
38+
//! Radius
39+
Radius
40+
};
41+
42+
/*!
43+
Indices used to identify an axis.
44+
\sa Scale
45+
*/
46+
enum Axis
47+
{
48+
//! Azimuth axis
49+
AxisAzimuth,
50+
51+
//! Left axis
52+
AxisLeft,
53+
54+
//! Right axis
55+
AxisRight,
56+
57+
//! Top axis
58+
AxisTop,
59+
60+
//! Bottom axis
61+
AxisBottom,
62+
63+
//! Number of available axis
64+
AxesCount
65+
};
66+
67+
/*!
68+
Indices used to identify a scale.
69+
\sa Axis
70+
*/
71+
enum Scale
72+
{
73+
//! Azimuth scale
74+
ScaleAzimuth = Azimuth,
75+
76+
//! Radial scale
77+
ScaleRadius = Radius,
78+
79+
//! Number of scales
80+
ScaleCount
81+
};
82+
}
83+
84+
#endif

0 commit comments

Comments
 (0)