MCPcopy Create free account
hub / github.com/KDE/labplot / setCoordinateSystemIndex

Method setCoordinateSystemIndex

src/backend/worksheet/WorksheetElement.cpp:702–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700};
701
702void WorksheetElement::setCoordinateSystemIndex(int index, QUndoCommand* parent) {
703 if (index != m_cSystemIndex) {
704 auto* command = new SetCoordinateSystemIndexCmd(this, index, parent);
705 if (!parent)
706 exec(command);
707 } else if (!cSystem) {
708 // during load the index will be set,
709 // but the element might not have yet a plot assigned
710 if (plot())
711 cSystem = dynamic_cast<const CartesianCoordinateSystem*>(plot()->coordinateSystem(index));
712 retransform();
713 }
714}
715
716int WorksheetElement::coordinateSystemCount() const {
717 Q_D(const WorksheetElement);

Callers 15

plotRangeChangedMethod · 0.80
removePlotRangeMethod · 0.80
showParetoPlotMethod · 0.80
loadCurvesMethod · 0.80
loadAxesMethod · 0.80
InfoElementMethod · 0.80
addCurveMethod · 0.80
assignCurveMethod · 0.80
addHorizontalAxisMethod · 0.80
addVerticalAxisMethod · 0.80
addCustomPointMethod · 0.80

Calls 1

coordinateSystemMethod · 0.45

Tested by 15

curveRangeChangeMethod · 0.64
removeReaddxColumMethod · 0.64
removeReaddyColumMethod · 0.64
copyPasteMethod · 0.64
saveLoadMethod · 0.64