9#ifndef KCHART_STOCK_DIAGRAM_H
10#define KCHART_STOCK_DIAGRAM_H
12#include "KChartAbstractCartesianDiagram.h"
13#include "KChartCartesianCoordinatePlane.h"
14#include "KChartStockBarAttributes.h"
15#include "KChartThreeDBarAttributes.h"
20class KCHART_EXPORT StockDiagram :
public AbstractCartesianDiagram
24 Q_DISABLE_COPY( StockDiagram )
26 KCHART_DECLARE_DERIVED_DIAGRAM( StockDiagram, CartesianCoordinatePlane )
35 explicit StockDiagram(
QWidget *parent =
nullptr, CartesianCoordinatePlane *plane =
nullptr );
36 ~StockDiagram()
override;
43 void setType( Type type );
50 void setStockBarAttributes(
const StockBarAttributes &attr );
51 StockBarAttributes stockBarAttributes()
const;
53 void setStockBarAttributes(
int column,
const StockBarAttributes &attr );
54 StockBarAttributes stockBarAttributes(
int column )
const;
72 void setThreeDBarAttributes(
const ThreeDBarAttributes &attr );
79 ThreeDBarAttributes threeDBarAttributes()
const;
90 ThreeDBarAttributes threeDBarAttributes(
int column )
const;
92 void setThreeDBarAttributes(
int column,
const ThreeDBarAttributes &attr );
94 void setLowHighLinePen(
const QPen &pen );
95 QPen lowHighLinePen()
const;
97 void setLowHighLinePen(
int column,
const QPen &pen );
98 QPen lowHighLinePen(
int column )
const;
100 void setUpTrendCandlestickBrush(
const QBrush &brush );
101 QBrush upTrendCandlestickBrush()
const;
103 void setDownTrendCandlestickBrush(
const QBrush &brush );
104 QBrush downTrendCandlestickBrush()
const;
106 void setUpTrendCandlestickBrush(
int column,
const QBrush &brush );
107 QBrush upTrendCandlestickBrush(
int column )
const;
109 void setDownTrendCandlestickBrush(
int column,
const QBrush &brush );
110 QBrush downTrendCandlestickBrush(
int column )
const;
112 void setUpTrendCandlestickPen(
const QPen &pen );
113 QPen upTrendCandlestickPen()
const;
115 void setDownTrendCandlestickPen(
const QPen &pen );
116 QPen downTrendCandlestickPen()
const;
118 void setUpTrendCandlestickPen(
int column,
const QPen &pen );
119 QPen upTrendCandlestickPen(
int column )
const;
121 void setDownTrendCandlestickPen(
int column,
const QPen &pen );
122 QPen downTrendCandlestickPen(
int column )
const;
124#if defined(Q_COMPILER_MANGLES_RETURN_TYPE)
125 virtual const int numberOfAbscissaSegments()
const;
126 virtual const int numberOfOrdinateSegments()
const;
128 int numberOfAbscissaSegments()
const override;
129 int numberOfOrdinateSegments()
const override;
132 void paint( PaintContext *paintContext )
override;
134 void resize(
const QSizeF &size )
override;
136 qreal threeDItemDepth(
int column )
const override;
137 qreal threeDItemDepth(
const QModelIndex &index )
const override;
140 const QPair<QPointF, QPointF> calculateDataBoundaries()
const override;
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)