11 #ifndef KDCHARTCHART_H
12 #define KDCHARTCHART_H
17 #include "kdchart_export.h"
55 class BackgroundAttributes;
56 class FrameAttributes;
57 class AbstractDiagram;
58 class AbstractCoordinatePlane;
83 class KDCHART_EXPORT
Chart :
public QWidget
87 Q_PROPERTY(
int globalLeadingTop READ globalLeadingTop WRITE setGlobalLeadingTop)
88 Q_PROPERTY(
int globalLeadingBottom READ globalLeadingBottom WRITE setGlobalLeadingBottom)
89 Q_PROPERTY(
int globalLeadingLeft READ globalLeadingLeft WRITE setGlobalLeadingLeft)
90 Q_PROPERTY(
int globalLeadingRight READ globalLeadingRight WRITE setGlobalLeadingRight)
91 Q_PROPERTY(
bool useNewLayoutSystem READ useNewLayoutSystem WRITE setUseNewLayoutSystem)
96 explicit Chart(QWidget *parent =
nullptr);
107 bool useNewLayoutSystem()
const;
108 void setUseNewLayoutSystem(
bool value);
210 void setCoordinatePlaneLayout(QLayout *layout);
211 QLayout *coordinatePlaneLayout();
282 void addLegend(
Legend *legend);
307 void replaceLegend(
Legend *legend,
Legend *oldLegend =
nullptr);
317 void takeLegend(
Legend *legend);
338 void setGlobalLeading(
int left,
int top,
int right,
int bottom);
347 void setGlobalLeadingLeft(
int leading);
357 int globalLeadingLeft()
const;
366 void setGlobalLeadingTop(
int leading);
376 int globalLeadingTop()
const;
385 void setGlobalLeadingRight(
int leading);
395 int globalLeadingRight()
const;
404 void setGlobalLeadingBottom(
int leading);
414 int globalLeadingBottom()
const;
429 void paint(QPainter *painter,
const QRect &target);
431 void reLayoutFloatingLegends();
442 void resizeEvent(QResizeEvent *event)
override;
451 void paintEvent(QPaintEvent *event)
override;
454 void mousePressEvent(QMouseEvent *event)
override;
456 void mouseDoubleClickEvent(QMouseEvent *event)
override;
458 void mouseMoveEvent(QMouseEvent *event)
override;
460 void mouseReleaseEvent(QMouseEvent *event)
override;
462 bool event(QEvent *event)
override;
466 void addLegendInternal(
Legend *legend,
bool setMeasures);
#define KDCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET(X)
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
A chart with one or more diagrams.
A set of attributes for frames around items.
Legend defines the interface for the legend drawing class.
QList< AbstractCoordinatePlane * > CoordinatePlaneList
QList< HeaderFooter * > HeaderFooterList
QList< Legend * > LegendList