"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/backend/worksheet/plots/cartesian/CustomPoint.cpp" between
labplot-2.8.1.tar.gz and labplot-2.8.2.tar.gz

About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.

CustomPoint.cpp  (labplot-2.8.1):CustomPoint.cpp  (labplot-2.8.2)
/*************************************************************************** /***************************************************************************
File : CustomPoint.cpp File : CustomPoint.cpp
Project : LabPlot Project : LabPlot
Description : Custom user-defined point on the plot Description : Custom user-defined point on the plot
-------------------------------------------------------------------- --------------------------------------------------------------------
Copyright : (C) 2015 Ankit Wagadre (wagadre.ankit@gmail.com) Copyright : (C) 2015 Ankit Wagadre (wagadre.ankit@gmail.com)
Copyright : (C) 2015 Alexander Semke (alexander.semke@web.de) Copyright : (C) 2015-2020 Alexander Semke (alexander.semke@web.de )
***************************************************************************/ ***************************************************************************/
/*************************************************************************** /***************************************************************************
* * * *
* This program is free software; you can redistribute it and/or modify * * This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* This program is distributed in the hope that it will be useful, * * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * * but WITHOUT ANY WARRANTY; without even the implied warranty of *
skipping to change at line 449 skipping to change at line 449
d->position.setY(str.toDouble()); d->position.setY(str.toDouble());
str = attribs.value("visible").toString(); str = attribs.value("visible").toString();
if (str.isEmpty()) if (str.isEmpty())
reader->raiseWarning(attributeWarning.subs("visib le").toString()); reader->raiseWarning(attributeWarning.subs("visib le").toString());
else else
d->setVisible(str.toInt()); d->setVisible(str.toInt());
} else if (!preview && reader->name() == "symbol") { } else if (!preview && reader->name() == "symbol") {
attribs = reader->attributes(); attribs = reader->attributes();
str = attribs.value("symbolStyle").toString(); READ_INT_VALUE("symbolStyle", symbolStyle, Symbol::Style)
if (str.isEmpty()) ;
reader->raiseWarning(attributeWarning.subs("symbo READ_DOUBLE_VALUE("opacity", symbolOpacity);
lStyle").toString()); READ_DOUBLE_VALUE("rotation", symbolRotationAngle);
else READ_DOUBLE_VALUE("size", symbolSize);
d->symbolStyle = (Symbol::Style)str.toInt();
str = attribs.value("opacity").toString();
if (str.isEmpty())
reader->raiseWarning(attributeWarning.subs("opaci
ty").toString());
else
d->symbolOpacity = str.toDouble();
str = attribs.value("rotation").toString();
if (str.isEmpty())
reader->raiseWarning(attributeWarning.subs("rotat
ion").toString());
else
d->symbolRotationAngle = str.toDouble();
str = attribs.value("size").toString();
if (str.isEmpty())
reader->raiseWarning(attributeWarning.subs("size"
).toString());
else
d->symbolSize = str.toDouble();
READ_QBRUSH(d->symbolBrush); READ_QBRUSH(d->symbolBrush);
READ_QPEN(d->symbolPen); READ_QPEN(d->symbolPen);
} else { // unknown element } else { // unknown element
reader->raiseWarning(i18n("unknown element '%1'", reader- >name().toString())); reader->raiseWarning(i18n("unknown element '%1'", reader- >name().toString()));
if (!reader->skipToEndElement()) return false; if (!reader->skipToEndElement()) return false;
} }
} }
retransform(); retransform();
return true; return true;
 End of changes. 2 change blocks. 
29 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)