void NewExperimentSettingsDialog::on_tableWidget_Znach_cellChanged(int row, int column) { // NEW NEW 24.01 NEW NEW NEW // ui->tableWidget_Znach->resizeColumnsToContents(); ui->tableWidget_Znach->resizeRowsToContents(); // NEW NEW 24.01 NEW NEW NEW // if(auto_check) switch(column) { case FACT_NAME_COLUMN: // псевдоним { QString FactorName= ui->tableWidget_Znach->item(row,1)->text(); SetFactorInfo(row,FactorName,0,1); break; } case FACT_CENTER_COLUMN: // центр фактора onCenterChanged(row, column); break; case FACT_DIAPAZON_COLUMN: // диапазон выррирования { ui->tableWidget_Znach->blockSignals(true); double diapazon=ui->tableWidget_Znach->item(row,FACT_DIAPAZON_COLUMN)->text().toDouble(); ui->tableWidget_Znach->item(row,FACT_INTERVAL_COLUMN)->setText(QString::number(diapazon/2.)); ui->tableWidget_Znach->blockSignals(false); onCenterChanged(row, column - 1); break; } case FACT_MIN_COLUMN: // минимальное значение onMinMaxChanged(row, column + 1); break; case FACT_MAX_COLUMN: // максимальное onMinMaxChanged(row, column); break; case FACT_INTERVAL_COLUMN: { ui->tableWidget_Znach->blockSignals(true); double interval=ui->tableWidget_Znach->item(row,FACT_INTERVAL_COLUMN)->text().toDouble(); ui->tableWidget_Znach->item(row,FACT_DIAPAZON_COLUMN)->setText(QString::number(interval*2.)); ui->tableWidget_Znach->blockSignals(false); onCenterChanged(row, FACT_DIAPAZON_COLUMN - 1); break; } } }
void View::onSetCenter(const glm::vec3 &v) { if (mCenter == v) return; mCenter = v; mTransformDirty = true; // if (mHooks) mHooks->onRotationChanged(mRotation); onCenterChanged(v); }
void QxrdImagePlot::setProcessor(QxrdDataProcessorWPtr proc) { m_DataProcessor = proc; QxrdDataProcessorPtr dp(m_DataProcessor); if (dp) { QxrdCenterFinderPtr cf(dp->centerFinder()); if (cf) { connect(m_CenterFinderPicker, SIGNAL(selected(QPointF)), cf.data(), SLOT(onCenterChanged(QPointF))); connect(m_Circles, SIGNAL(selected(QRectF)), dp.data(), SLOT(maskCircle(QRectF))); connect(m_Polygons, SIGNAL(selected(QVector<QPointF>)), dp.data(), SLOT(maskPolygon(QVector<QPointF>))); connect(m_Measurer, SIGNAL(selected(QVector<QPointF>)), dp.data(), SLOT(measurePolygon(QVector<QPointF>))); // connect(m_Slicer, SIGNAL(selected(QVector<QPointF>)), // m_DataProcessor, SLOT(slicePolygon(QVector<QPointF>))); connect(m_PowderPointPicker, SIGNAL(selected(QPointF)), cf.data(), SLOT(onPointSelected(QPointF))); onCenterChanged(QPointF(cf->get_CenterX(), cf->get_CenterY())); connect(cf->prop_MarkedPoints(), SIGNAL(valueChanged(QxrdPowderPointVector,int)), this, SLOT(onMarkedPointsChanged())); onMarkedPointsChanged(); } } connect(m_Slicer, SIGNAL(selected(QVector<QPointF>)), this, SIGNAL(slicePolygon(QVector<QPointF>))); connect(m_HistogramSelector, SIGNAL(selected(QRectF)), this, SIGNAL(selectHistogram(QRectF))); }