KChart
KChartAbstractCoordinatePlane.cpp
77 void AbstractCoordinatePlane::replaceDiagram ( AbstractDiagram* diagram, AbstractDiagram* oldDiagram_ )
162 void KChart::AbstractCoordinatePlane::setReferenceCoordinatePlane( AbstractCoordinatePlane * plane )
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();
void relayout()
Calling relayout() on the plane triggers the global KChart::Chart::slotRelayout()
Definition: KChartAbstractCoordinatePlane.cpp:243
An area in the chart with a background, a frame, etc.
Definition: KChartAbstractArea.h:33
void setParent(QWidget *parent)
GridAttributes globalGridAttributes() const
Definition: KChartAbstractCoordinatePlane.cpp:147
bool isCornerSpacersEnabled() const
Definition: KChartAbstractCoordinatePlane.cpp:279
virtual void mouseReleaseEvent(QMouseEvent *event) override
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Q_EMITQ_EMIT
QSize minimumSize() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:207
void update()
Class only listed here to document inheritance of some KChart classes.
Qt::Orientations expandingDirections() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:195
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition: KChartAbstractCoordinatePlane.h:30
void setParent(Chart *parent)
Called internally by KChart::Chart.
Definition: KChartAbstractCoordinatePlane.cpp:172
void push_back(const T &value)
virtual void setCoordinatePlane(AbstractCoordinatePlane *plane)
Set the coordinate plane associated with the diagram.
Definition: KChartAbstractDiagram.cpp:219
void setReferenceCoordinatePlane(AbstractCoordinatePlane *plane)
Set another coordinate plane to be used as the reference plane for this one.
Definition: KChartAbstractCoordinatePlane.cpp:162
LeftButton
Definition: KChartPosition.h:22
virtual void mousePressEvent(QMouseEvent *event) override
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void hide()
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
AbstractDiagram * diagram()
Definition: KChartAbstractCoordinatePlane.cpp:114
ZoomParameters stores the center and the factor of zooming internally.
Definition: KChartZoomParameters.h:28
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
typedef Orientations
static QString granularitySequenceToString(GranularitySequence sequence)
Converts the specified granularity sequence enum to a string representation.
Definition: KChartEnums.h:95
QueuedConnection
QRect geometry() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:232
virtual void addDiagram(AbstractDiagram *diagram)
Adds a diagram to this coordinate plane.
Definition: KChartAbstractCoordinatePlane.cpp:57
void setRubberBandZoomingEnabled(bool enable)
Enables or disables zooming with a rubber band using the mouse.
Definition: KChartAbstractCoordinatePlane.cpp:255
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
virtual void mouseDoubleClickEvent(QMouseEvent *event) override
A set of attributes controlling the appearance of grids.
Definition: KChartGridAttributes.h:25
virtual void takeDiagram(AbstractDiagram *diagram)
Removes the diagram from the plane, without deleting it.
Definition: KChartAbstractCoordinatePlane.cpp:98
void geometryChanged(QRect, QRect)
Emitted after the geometry of the Coordinate Plane has been changed.
void destroyedCoordinatePlane(KChart::AbstractCoordinatePlane *)
Emitted when this coordinate plane is destroyed.
DataDimensionsList gridDimensionsList()
Returns the dimensions used for drawing the grid lines.
Definition: KChartAbstractCoordinatePlane.cpp:152
bool isEmpty() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:188
void layoutPlanes()
Calling layoutPlanes() on the plane triggers the global KChart::Chart::slotLayoutPlanes()
Definition: KChartAbstractCoordinatePlane.cpp:249
bool isRubberBandZoomingEnabled() const
Definition: KChartAbstractCoordinatePlane.cpp:266
virtual void layoutDiagrams()=0
Distribute the available space among the diagrams and axes.
QSize sizeHint() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:212
Rectangle
void update()
Calling update() on the plane triggers the global KChart::Chart::update()
Definition: KChartAbstractCoordinatePlane.cpp:237
AbstractDiagramList diagrams()
Definition: KChartAbstractCoordinatePlane.cpp:124
AbstractDiagram defines the interface for diagram classes.
Definition: KChartAbstractDiagram.h:36
void setCornerSpacersEnabled(bool enable)
Enables or disables the use of spacers in the plane corners.
Definition: KChartAbstractCoordinatePlane.cpp:271
QSize maximumSize() const override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:200
bool isVisiblePoint(const QPointF &point) const
Tests, if a point is visible on the coordinate plane.
Definition: KChartAbstractCoordinatePlane.cpp:410
Helper class for one dimension of data, e.g.
Definition: KChartAbstractCoordinatePlane.h:364
QObject * parent() const const
void setGeometry(const QRect &r) override
pure virtual in QLayoutItem
Definition: KChartAbstractCoordinatePlane.cpp:219
QRect normalized() const const
void setGridNeedsRecalculate()
Used by the chart to clear the cached grid data.
Definition: KChartAbstractCoordinatePlane.cpp:157
virtual void mouseMoveEvent(QMouseEvent *event) override
void setGlobalGridAttributes(const GridAttributes &)
Set the grid attributes to be used by this coordinate plane.
Definition: KChartAbstractCoordinatePlane.cpp:141
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jun 5 2023 03:58:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jun 5 2023 03:58:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.