23 #ifndef KDCHARTCHART_H
24 #define KDCHARTCHART_H
28 #include "kdchart_export.h"
69 class BackgroundAttributes;
70 class FrameAttributes;
71 class AbstractDiagram;
72 class AbstractCoordinatePlane;
102 Q_PROPERTY(
int globalLeadingTop READ globalLeadingTop WRITE setGlobalLeadingTop )
103 Q_PROPERTY(
int globalLeadingBottom READ globalLeadingBottom WRITE setGlobalLeadingBottom )
104 Q_PROPERTY(
int globalLeadingLeft READ globalLeadingLeft WRITE setGlobalLeadingLeft )
105 Q_PROPERTY(
int globalLeadingRight READ globalLeadingRight WRITE setGlobalLeadingRight )
106 Q_PROPERTY(
bool useNewLayoutSystem READ useNewLayoutSystem WRITE setUseNewLayoutSystem )
122 bool useNewLayoutSystem()
const;
123 void setUseNewLayoutSystem(
bool value );
225 void setCoordinatePlaneLayout( QLayout * layout );
226 QLayout* coordinatePlaneLayout();
297 void addLegend(
Legend* legend );
322 void replaceLegend (
Legend* legend,
Legend* oldLegend = 0 );
332 void takeLegend(
Legend* legend );
353 void setGlobalLeading(
int left,
int top,
int right,
int bottom );
362 void setGlobalLeadingLeft(
int leading );
372 int globalLeadingLeft()
const;
381 void setGlobalLeadingTop(
int leading );
391 int globalLeadingTop()
const;
400 void setGlobalLeadingRight(
int leading );
410 int globalLeadingRight()
const;
419 void setGlobalLeadingBottom(
int leading );
429 int globalLeadingBottom()
const;
444 void paint( QPainter* painter,
const QRect& target );
446 void reLayoutFloatingLegends();
457 void resizeEvent ( QResizeEvent * event )
override;
466 void paintEvent( QPaintEvent* event )
override;
469 void mousePressEvent( QMouseEvent* event )
override;
471 void mouseDoubleClickEvent( QMouseEvent* event )
override;
473 void mouseMoveEvent( QMouseEvent* event )
override;
475 void mouseReleaseEvent( QMouseEvent* event )
override;
477 bool event( QEvent* event )
override;
481 void addLegendInternal(
Legend *legend,
bool setMeasures );