################################################################
# Qwt Widget Library
# Copyright (C) 1997   Josef Wilgen
# Copyright (C) 2002   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
################################################################

TEMPLATE          = subdirs

QWT_ROOT = $${PWD}/..
include( $${QWT_ROOT}/qwtconfig.pri )
include( $${QWT_ROOT}/qwtbuild.pri )
include( $${QWT_ROOT}/qwtfunctions.pri )

CLASSHEADERS = \
    QwtAbstractScaleDraw \
    QwtAlphaColorMap \
    QwtAxis \
    QwtAxisId \
    QwtBezier \
    QwtClipper \
    QwtColorMap \
    QwtColumnRect \
    QwtColumnSymbol \
    QwtDate \
    QwtDateScaleDraw \
    QwtDateScaleEngine \
    QwtDynGridLayout \
    QwtGlobal \
    QwtGraphic \
    QwtHueColorMap \
    QwtInterval \
    QwtIntervalSymbol \
    QwtLinearColorMap \
    QwtLinearScaleEngine \
    QwtLogScaleEngine \
    QwtLogTransform \
    QwtMagnifier \
    QwtMath \
    QwtNullPaintDevice \
    QwtNullTransform \
    QwtPainter \
    QwtPainterCommand \
    QwtPanner \
    QwtPicker \
    QwtPickerClickPointMachine \
    QwtPickerClickRectMachine \
    QwtPickerDragLineMachine \
    QwtPickerDragPointMachine \
    QwtPickerDragRectMachine \
    QwtPickerMachine \
    QwtPickerPolygonMachine \
    QwtPickerTrackerMachine \
    QwtPixelMatrix \
    QwtPlainTextEngine \
    QwtPoint3D \
    QwtPointPolar \
    QwtPowerTransform \
    QwtRichTextEngine \
    QwtRoundScaleDraw \
    QwtSaturationValueColorMap \
    QwtScaleArithmetic \
    QwtScaleDiv \
    QwtScaleDraw \
    QwtScaleEngine \
    QwtScaleMap \
    QwtSimpleCompassRose \
    QwtSplineBasis \
    QwtSpline \
    QwtSplineC1 \
    QwtSplineC2 \
    QwtSplineCubic \
    QwtSplineG1 \
    QwtSplineInterpolating \
    QwtSplineLocal \
    QwtSplineParameter \
    QwtSplineParametrization \
    QwtSplinePleasing \
    QwtSplinePolynomial \
    QwtSymbol \
    QwtSystemClock \
    QwtText \
    QwtTextEngine \
    QwtTextLabel \
    QwtTransform \
    QwtWidgetOverlay

contains(QWT_CONFIG, QwtPlot) {

    CLASSHEADERS += \
        QwtAbstractLegend \
        QwtCurveFitter \
        QwtEventPattern \
        QwtIntervalSample \
        QwtLegend \
        QwtLegendData \
        QwtLegendLabel \
        QwtPointMapper \
        QwtMatrixRasterData \
        QwtOHLCSample \
        QwtPlot \
        QwtPlotAbstractBarChart \
        QwtPlotAbstractCanvas \
        QwtPlotBarChart \
        QwtPlotCanvas \
        QwtPlotCurve \
        QwtPlotDict \
        QwtPlotDirectPainter \
        QwtPlotGraphicItem \
        QwtPlotGrid \
        QwtPlotHistogram \
        QwtPlotIntervalCurve \
        QwtPlotItem \
        QwtPlotLayout \
        QwtPlotLegendItem \
        QwtPlotMagnifier \
        QwtPlotMarker \
        QwtPlotMultiBarChart \
        QwtPlotPanner \
        QwtPlotPicker \
        QwtPlotRasterItem \
        QwtPlotRenderer \
        QwtPlotRescaler \
        QwtPlotScaleItem \
        QwtPlotSeriesItem \
        QwtPlotShapeItem \
        QwtPlotSpectroCurve \
        QwtPlotSpectrogram \
        QwtPlotTextLabel \
        QwtPlotTradingCurve \
        QwtPlotVectorField \
        QwtPlotZoneItem \
        QwtPlotZoomer \
        QwtScaleWidget \
        QwtRasterData \
        QwtSeriesData \
        QwtSetSample \
        QwtSamplingThread \
        QwtSplineCurveFitter \
        QwtWeedingCurveFitter \
        QwtIntervalSeriesData \
        QwtPoint3DSeriesData \
        QwtPointSeriesData \
        QwtSetSeriesData \
        QwtSyntheticPointData \
        QwtPointArrayData \
        QwtTradingChartData \
        QwtVectorFieldSymbol \
        QwtVectorFieldArrow \
        QwtVectorFieldThinArrow \
        QwtVectorFieldData \
        QwtVectorFieldSample \
        QwtCPointerData

        contains(QWT_CONFIG, QwtPolar) {

            CLASSHEADERS += \
                QwtPolarCanvas \
                QwtPolarCurve \
                QwtPolarFitter \
                QwtPolarGrid \
                QwtPolarItem \
                QwtPolarItemDict \
                QwtPolarLayout \
                QwtPolarMagnifier \
                QwtPolarMarker \
                QwtPolarPanner \
                QwtPolarPicker \
                QwtPolarPlot \
                QwtPolarRenderer \
                QwtPolarSpectrogram
        }
}

contains(QWT_CONFIG, QwtOpenGL) {

    lessThan(QT_MAJOR_VERSION, 6) {

        CLASSHEADERS += \
            QwtPlotGLCanvas
    }

    greaterThan(QT_MAJOR_VERSION, 4) {

        lessThan( QT_MAJOR_VERSION, 6) {

            greaterThan(QT_MINOR_VERSION, 3) {

                CLASSHEADERS += \
                    QwtPlotOpenGLCanvas
            }
        }
        else {

            CLASSHEADERS += \
                QwtPlotOpenGLCanvas
        }
    }
}

contains(QWT_CONFIG, QwtWidgets) {

    CLASSHEADERS += \
        QwtAbstractSlider \
        QwtAbstractScale \
        QwtArrowButton \
        QwtAnalogClock \
        QwtCompass \
        QwtCompassMagnetNeedle \
        QwtCompassRose \
        QwtCompassScaleDraw \
        QwtCompassWindArrow \
        QwtCounter \
        QwtDial \
        QwtDialNeedle \
        QwtDialSimpleNeedle \
        QwtKnob \
        QwtSlider \
        QwtThermo \
        QwtWheel
}

contains(QWT_CONFIG, QwtSvg) {

    CLASSHEADERS += \
        QwtPlotSvgItem
}
    
target.path    = $${QWT_INSTALL_HEADERS}
target.files   = $${CLASSHEADERS}
INSTALLS       = target

