KChart
KChartAbstractCoordinatePlane.cpp
77void AbstractCoordinatePlane::replaceDiagram ( AbstractDiagram* diagram, AbstractDiagram* oldDiagram_ )
289 d->rubberBand = new QRubberBand( QRubberBand::Rectangle, qobject_cast< QWidget* >( parent() ) );
343 d->rubberBandZoomConfigHistory.push( ZoomParameters( zoomFactorX(), zoomFactorY(), zoomCenter() ) );
352 const qreal centerX = qFloor( d->rubberBand->geometry().width() / 2.0 + d->rubberBand->geometry().x() );
353 const qreal centerY = qCeil( d->rubberBand->geometry().height() / 2.0 + d->rubberBand->geometry().y() );
363 const qreal newCenterX = rubberCenterX / myWidth / zoomFactorX() + zoomCenter().x() - 0.5 / zoomFactorX();
364 const qreal newCenterY = rubberCenterY / myHeight / zoomFactorY() + zoomCenter().y() - 0.5 / zoomFactorY();
430 << " calcMode=" << ( r.calcMode == AbstractCoordinatePlane::Logarithmic ? "Logarithmic" : "Linear" )
static QString granularitySequenceToString(GranularitySequence sequence)
Converts the specified granularity sequence enum to a string representation.
Definition KChartEnums.h:95
An area in the chart with a background, a frame, etc.
Definition KChartAbstractArea.h:36
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition KChartAbstractCoordinatePlane.h:31
QSize minimumSize() const override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:207
void geometryChanged(QRect, QRect)
Emitted after the geometry of the Coordinate Plane has been changed.
void layoutPlanes()
Calling layoutPlanes() on the plane triggers the global KChart::Chart::slotLayoutPlanes()
Definition KChartAbstractCoordinatePlane.cpp:249
void setReferenceCoordinatePlane(AbstractCoordinatePlane *plane)
Set another coordinate plane to be used as the reference plane for this one.
Definition KChartAbstractCoordinatePlane.cpp:162
virtual void addDiagram(AbstractDiagram *diagram)
Adds a diagram to this coordinate plane.
Definition KChartAbstractCoordinatePlane.cpp:57
bool isRubberBandZoomingEnabled() const
Definition KChartAbstractCoordinatePlane.cpp:266
bool isCornerSpacersEnabled() const
Definition KChartAbstractCoordinatePlane.cpp:279
QSize sizeHint() const override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:212
void setCornerSpacersEnabled(bool enable)
Enables or disables the use of spacers in the plane corners.
Definition KChartAbstractCoordinatePlane.cpp:271
void setParent(Chart *parent)
Called internally by KChart::Chart.
Definition KChartAbstractCoordinatePlane.cpp:172
virtual void replaceDiagram(AbstractDiagram *diagram, AbstractDiagram *oldDiagram=nullptr)
Replaces the old diagram, or appends the diagram, it there is none yet.
Definition KChartAbstractCoordinatePlane.cpp:77
void setGeometry(const QRect &r) override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:219
virtual void layoutDiagrams()=0
Distribute the available space among the diagrams and axes.
void setRubberBandZoomingEnabled(bool enable)
Enables or disables zooming with a rubber band using the mouse.
Definition KChartAbstractCoordinatePlane.cpp:255
QRect geometry() const override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:232
void update()
Calling update() on the plane triggers the global KChart::Chart::update()
Definition KChartAbstractCoordinatePlane.cpp:237
void relayout()
Calling relayout() on the plane triggers the global KChart::Chart::slotRelayout()
Definition KChartAbstractCoordinatePlane.cpp:243
void setGridNeedsRecalculate()
Used by the chart to clear the cached grid data.
Definition KChartAbstractCoordinatePlane.cpp:157
QSize maximumSize() const override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:200
void setGlobalGridAttributes(const GridAttributes &)
Set the grid attributes to be used by this coordinate plane.
Definition KChartAbstractCoordinatePlane.cpp:141
AbstractDiagramList diagrams()
Definition KChartAbstractCoordinatePlane.cpp:124
AbstractDiagram * diagram()
Definition KChartAbstractCoordinatePlane.cpp:114
Qt::Orientations expandingDirections() const override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:195
bool isEmpty() const override
pure virtual in QLayoutItem
Definition KChartAbstractCoordinatePlane.cpp:188
void destroyedCoordinatePlane(KChart::AbstractCoordinatePlane *)
Emitted when this coordinate plane is destroyed.
GridAttributes globalGridAttributes() const
Definition KChartAbstractCoordinatePlane.cpp:147
virtual void takeDiagram(AbstractDiagram *diagram)
Removes the diagram from the plane, without deleting it.
Definition KChartAbstractCoordinatePlane.cpp:98
AbstractCoordinatePlane * referenceCoordinatePlane() const
There are two ways, in which planes can be caused to interact, in where they are put layouting wise: ...
Definition KChartAbstractCoordinatePlane.cpp:167
bool isVisiblePoint(const QPointF &point) const
Tests, if a point is visible on the coordinate plane.
Definition KChartAbstractCoordinatePlane.cpp:410
DataDimensionsList gridDimensionsList()
Returns the dimensions used for drawing the grid lines.
Definition KChartAbstractCoordinatePlane.cpp:152
AbstractDiagram defines the interface for diagram classes.
Definition KChartAbstractDiagram.h:37
virtual void setCoordinatePlane(AbstractCoordinatePlane *plane)
Set the coordinate plane associated with the diagram.
Definition KChartAbstractDiagram.cpp:219
Helper class for one dimension of data, e.g.
Definition KChartAbstractCoordinatePlane.h:364
A set of attributes controlling the appearance of grids.
Definition KChartGridAttributes.h:26
ZoomParameters stores the center and the factor of zooming internally.
Definition KChartZoomParameters.h:28
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
void push_back(parameter_type value)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
QRect normalized() const const
Rectangle
QueuedConnection
LeftButton
typedef Orientations
void hide()
void setParent(QWidget *parent)
void update()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.