"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/kdefrontend/dockwidgets/CartesianPlotDock.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.

CartesianPlotDock.cpp  (labplot-2.8.1):CartesianPlotDock.cpp  (labplot-2.8.2)
skipping to change at line 119 skipping to change at line 119
//Validators //Validators
ui.leRangeFirst->setValidator( new QIntValidator(ui.leRangeFirst) ); ui.leRangeFirst->setValidator( new QIntValidator(ui.leRangeFirst) );
ui.leRangeLast->setValidator( new QIntValidator(ui.leRangeLast) ); ui.leRangeLast->setValidator( new QIntValidator(ui.leRangeLast) );
ui.leXBreakStart->setValidator( new QDoubleValidator(ui.leXBreakStart) ); ui.leXBreakStart->setValidator( new QDoubleValidator(ui.leXBreakStart) );
ui.leXBreakEnd->setValidator( new QDoubleValidator(ui.leXBreakEnd) ); ui.leXBreakEnd->setValidator( new QDoubleValidator(ui.leXBreakEnd) );
ui.leYBreakStart->setValidator( new QDoubleValidator(ui.leYBreakStart) ); ui.leYBreakStart->setValidator( new QDoubleValidator(ui.leYBreakStart) );
ui.leYBreakEnd->setValidator( new QDoubleValidator(ui.leYBreakEnd) ); ui.leYBreakEnd->setValidator( new QDoubleValidator(ui.leYBreakEnd) );
//set the current locale //set the current locale
SET_NUMBER_LOCALE updateLocale();
ui.sbLeft->setLocale(numberLocale);
ui.sbTop->setLocale(numberLocale);
ui.sbWidth->setLocale(numberLocale);
ui.sbHeight->setLocale(numberLocale);
ui.sbBorderWidth->setLocale(numberLocale);
ui.sbBorderCornerRadius->setLocale(numberLocale);
ui.sbPaddingHorizontal->setLocale(numberLocale);
ui.sbPaddingVertical->setLocale(numberLocale);
ui.sbPaddingRight->setLocale(numberLocale);
ui.sbPaddingBottom->setLocale(numberLocale);
labelWidget->updateLocale();
//SIGNAL/SLOT //SIGNAL/SLOT
//General //General
connect(ui.leName, &QLineEdit::textChanged, this, &CartesianPlotDock::nam eChanged); connect(ui.leName, &QLineEdit::textChanged, this, &CartesianPlotDock::nam eChanged);
connect(ui.leComment, &QLineEdit::textChanged, this, &CartesianPlotDock:: commentChanged); connect(ui.leComment, &QLineEdit::textChanged, this, &CartesianPlotDock:: commentChanged);
connect(ui.chkVisible, &QCheckBox::clicked, this, &CartesianPlotDock::vis ibilityChanged); connect(ui.chkVisible, &QCheckBox::clicked, this, &CartesianPlotDock::vis ibilityChanged);
connect(ui.sbLeft, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &CartesianPlotDock::geometryChanged); connect(ui.sbLeft, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &CartesianPlotDock::geometryChanged);
connect(ui.sbTop, QOverload<double>::of(&QDoubleSpinBox::valueChanged), t his, &CartesianPlotDock::geometryChanged); connect(ui.sbTop, QOverload<double>::of(&QDoubleSpinBox::valueChanged), t his, &CartesianPlotDock::geometryChanged);
connect(ui.sbWidth, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &CartesianPlotDock::geometryChanged); connect(ui.sbWidth, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &CartesianPlotDock::geometryChanged);
connect(ui.sbHeight, QOverload<double>::of(&QDoubleSpinBox::valueChanged) , this, &CartesianPlotDock::geometryChanged); connect(ui.sbHeight, QOverload<double>::of(&QDoubleSpinBox::valueChanged) , this, &CartesianPlotDock::geometryChanged);
skipping to change at line 410 skipping to change at line 399
ui.sbWidth->setLocale(numberLocale); ui.sbWidth->setLocale(numberLocale);
ui.sbHeight->setLocale(numberLocale); ui.sbHeight->setLocale(numberLocale);
ui.sbBorderWidth->setLocale(numberLocale); ui.sbBorderWidth->setLocale(numberLocale);
ui.sbBorderCornerRadius->setLocale(numberLocale); ui.sbBorderCornerRadius->setLocale(numberLocale);
ui.sbPaddingHorizontal->setLocale(numberLocale); ui.sbPaddingHorizontal->setLocale(numberLocale);
ui.sbPaddingVertical->setLocale(numberLocale); ui.sbPaddingVertical->setLocale(numberLocale);
ui.sbPaddingRight->setLocale(numberLocale); ui.sbPaddingRight->setLocale(numberLocale);
ui.sbPaddingBottom->setLocale(numberLocale); ui.sbPaddingBottom->setLocale(numberLocale);
//update the QLineEdits, avoid the change events //update the QLineEdits, avoid the change events
Lock lock(m_initializing); if (m_plot) {
ui.leRangeFirst->setText(numberLocale.toString(m_plot->rangeFirstValues() Lock lock(m_initializing);
)); ui.leRangeFirst->setText(numberLocale.toString(m_plot->rangeFirst
ui.leRangeLast->setText(numberLocale.toString(m_plot->rangeLastValues())) Values()));
; ui.leRangeLast->setText(numberLocale.toString(m_plot->rangeLastVa
ui.leXMin->setText(numberLocale.toString(m_plot->xMin())); lues()));
ui.leXMax->setText(numberLocale.toString(m_plot->xMax())); ui.leXMin->setText(numberLocale.toString(m_plot->xMin()));
ui.leYMin->setText(numberLocale.toString(m_plot->yMin())); ui.leXMax->setText(numberLocale.toString(m_plot->xMax()));
ui.leYMax->setText(numberLocale.toString(m_plot->yMax())); ui.leYMin->setText(numberLocale.toString(m_plot->yMin()));
ui.leYMax->setText(numberLocale.toString(m_plot->yMax()));
}
//update the title label //update the title label
labelWidget->updateLocale(); labelWidget->updateLocale();
} }
void CartesianPlotDock::updateUnits() { void CartesianPlotDock::updateUnits() {
const KConfigGroup group = KSharedConfig::openConfig()->group(QLatin1Stri ng("Settings_General")); const KConfigGroup group = KSharedConfig::openConfig()->group(QLatin1Stri ng("Settings_General"));
BaseDock::Units units = (BaseDock::Units)group.readEntry("Units", static_ cast<int>(Units::Metric)); BaseDock::Units units = (BaseDock::Units)group.readEntry("Units", static_ cast<int>(Units::Metric));
if (units == m_units) if (units == m_units)
return; return;
 End of changes. 2 change blocks. 
21 lines changed or deleted 12 lines changed or added

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