// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void DynamicChoiceWidget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(value, SIGNAL(currentIndexChanged(int)), this, SLOT(widgetChanged(int) ) ); if (m_FilterParameter != NULL) { QString units = m_FilterParameter->getUnits(); if(units.isEmpty() == false) { label->setText(m_FilterParameter->getHumanLabel() + " (" + units + ")"); } else { label->setText(m_FilterParameter->getHumanLabel() ); } updateComboBox(); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void SeparatorWidget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); label->setStyleSheet(getLabelStyleSheet()); blockSignals(true); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); } blockSignals(false); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void PhaseTypeSelectionWidget::setupGui() { if(getFilter() == NULL) { return; } // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); label->setText(m_FilterParameter->getHumanLabel() ); dataContainerCombo->blockSignals(true); attributeMatrixCombo->blockSignals(true); dataContainerCombo->clear(); attributeMatrixCombo->clear(); // Now let the gui send signals like normal dataContainerCombo->blockSignals(false); attributeMatrixCombo->blockSignals(false); populateComboBoxes(); updatePhaseComboBoxes(); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void StringWidget::setupGui() { blockSignals(true); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); QString str = getFilter()->property(PROPERTY_NAME_AS_CHAR).toString(); value->setText(str); } blockSignals(false); applyChangesBtn->setVisible(false); // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(value, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&))); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void DataContainerCreationWidget::setupGui() { blockSignals(true); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); QString str = getFilter()->property(PROPERTY_NAME_AS_CHAR).toString(); dataContainerName->setText(str); } blockSignals(false); applyChangesBtn->setVisible(false); // Do not allow the user to put a forward slash into the dataContainerName line edit dataContainerName->setValidator(new QRegularExpressionValidator(QRegularExpression("[^/]*"), this)); // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its dataContainerNames updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(dataContainerName, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&))); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void InputPathWidget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(value, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&))); QFileCompleter* com = new QFileCompleter(this, false); value->setCompleter(com); QObject::connect( com, SIGNAL(activated(const QString&)), this, SLOT(widgetChanged(const QString&))); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); QString currentPath = getFilter()->property(PROPERTY_NAME_AS_CHAR).toString(); value->setText(currentPath); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void SecondOrderPolynomialWidget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(c20, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(c02, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(c11, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(c10, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(c01, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(c00, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); QDoubleValidator* c20Val = new QDoubleValidator(c20); c20->setValidator(c20Val); QDoubleValidator* c02Val = new QDoubleValidator(c02); c02->setValidator(c02Val); QDoubleValidator* c11Val = new QDoubleValidator(c11); c11->setValidator(c11Val); QDoubleValidator* c10Val = new QDoubleValidator(c10); c10->setValidator(c10Val); QDoubleValidator* c01Val = new QDoubleValidator(c01); c01->setValidator(c01Val); QDoubleValidator* c00Val = new QDoubleValidator(c00); c00->setValidator(c00Val); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); Float2ndOrderPoly_t data = getFilter()->property(PROPERTY_NAME_AS_CHAR).value<Float2ndOrderPoly_t>(); c20->setText( QString::number(data.c20) ); c02->setText( QString::number(data.c02) ); c11->setText( QString::number(data.c11) ); c10->setText( QString::number(data.c10) ); c01->setText( QString::number(data.c01) ); c00->setText( QString::number(data.c00) ); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void DataArraySelectionWidget::setupGui() { // Sanity Check the filter and the filter parameter if(getFilter() == NULL) { return; } if (getFilterParameter() == NULL) { return; } // Generate the text for the QLabel label->setText(getFilterParameter()->getHumanLabel() ); // Get the default path from the Filter instance to cache m_DefaultPath = getFilter()->property(PROPERTY_NAME_AS_CHAR).value<DataArrayPath>(); // dataContainerCombo->addItem(m_DefaultPath.getDataContainerName()); // attributeMatrixCombo->addItem(m_DefaultPath.getAttributeMatrixName() ); // attributeArrayCombo->addItem(m_DefaultPath.getDataArrayName() ); // Block Signals from the ComboBoxes while we clear them dataContainerCombo->blockSignals(true); attributeMatrixCombo->blockSignals(true); attributeArrayCombo->blockSignals(true); dataContainerCombo->clear(); attributeMatrixCombo->clear(); attributeArrayCombo->clear(); dataContainerCombo->blockSignals(false); attributeMatrixCombo->blockSignals(false); attributeArrayCombo->blockSignals(false); populateComboBoxes(); // Lastly, hook up the filter's signals and slots to our own signals and slots // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void VolumeDataContainerInfoWidget::setupGui() { if(getFilter() == NULL) { return; } // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); if (m_FilterParameter == NULL) { return; } label->setText(m_FilterParameter->getHumanLabel() ); dataContainerList->blockSignals(true); dataContainerList->clear(); // Now let the gui send signals like normal dataContainerList->blockSignals(false); if (m_FilterParameter != NULL) { IntVec3_t data = getFilter()->property(PROPERTY_NAME_AS_CHAR).value<IntVec3_t>(); QString str = QString("%1 x %2 x %3").arg(data.x).arg(data.y).arg(data.z); voxelExtentsLabel->setText(str); } if (m_FilterParameter != NULL) { FloatVec3_t data = getFilter()->property(m_FilterParameter->getResolutionProperty().toLatin1().constData()).value<FloatVec3_t>(); QString str = QString("%1, %2, %3").arg(data.x).arg(data.y).arg(data.z); resolutionLabel->setText(str); } populateComboBoxes(); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void FloatVec3Widget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(xData, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(yData, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(zData, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); QLocale loc = QLocale::system(); QDoubleValidator* xVal = new QDoubleValidator(xData); xData->setValidator(xVal); xVal->setLocale(loc); QDoubleValidator* yVal = new QDoubleValidator(yData); yData->setValidator(yVal); yVal->setLocale(loc); QDoubleValidator* zVal = new QDoubleValidator(zData); zData->setValidator(zVal); zVal->setLocale(loc); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); FloatVec3_t data = getFilter()->property(PROPERTY_NAME_AS_CHAR).value<FloatVec3_t>(); xData->setText(loc.toString(data.x)); yData->setText(loc.toString(data.y)); zData->setText(loc.toString(data.z)); } errorLabel->hide(); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void UnknownWidget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); if (getFilterParameter() != NULL) { QString str = QObject::tr("%1: Unknown Filter ParameterWidgetType: %2.").arg(getFilterParameter()->getHumanLabel()).arg(getFilterParameter()->getWidgetType()); label->setText( str ); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void DataContainerReaderWidget::setupGui() { connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); // Put in a QStandardItemModel QAbstractItemModel* oldModel = dcaProxyView->model(); QStandardItemModel* model = new QStandardItemModel; dcaProxyView->setModel(model); delete oldModel; // void activated(const QModelIndex& index); connect(dcaProxyView, SIGNAL(clicked(const QModelIndex&)), this, SLOT(itemActivated(const QModelIndex))); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); } if(getFilter() != NULL) { QString path = m_Filter->getInputFile(); filePath->setText(path); on_filePath_fileDropped(path); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void DynamicTableWidget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); tableLabel->setText(m_FilterParameter->getHumanLabel()); // Set the item delegate so that we can only enter 'double' values into the table DynamicTableItemDelegate* dlg = new DynamicTableItemDelegate; dynamicTable->setItemDelegate(dlg); // Set button tooltips addRowBtn->setToolTip(addRowTT); addColBtn->setToolTip(addColTT); deleteRowBtn->setToolTip(deleteRowTT); deleteColBtn->setToolTip(deleteColTT); // Populate the table populateTable(); // Set Icons QIcon addIcon = QIcon(QString(":/add2.png")); QIcon deleteIcon = QIcon(QString(":/delete2.png")); addRowBtn->setIcon(addIcon); addColBtn->setIcon(addIcon); deleteRowBtn->setIcon(deleteIcon); deleteColBtn->setIcon(deleteIcon); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void BooleanWidget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(value, SIGNAL(stateChanged(int)), this, SLOT(widgetChanged(int) ) ); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); QVariant objValue = getFilter()->property(PROPERTY_NAME_AS_CHAR); if (objValue.isValid() == true) { value->setChecked(objValue.toBool()); } else { QString ss = QObject::tr("Error occurred getting Filter Parameter %1 for filter %2").arg(getFilterParameter()->getPropertyName()).arg(getFilter()->getNameOfClass()); emit errorSettingFilterParameter(ss); qDebug() << ss; } } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void ChoiceWidget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(value, SIGNAL(currentIndexChanged(int)), this, SLOT(widgetChanged(int) ) ); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); // setup the list of choices for the widget ChoiceFilterParameter* choice = dynamic_cast<ChoiceFilterParameter*>(getFilterParameter()); if(choice) { QList<QString> choices = choice->getChoices().toList(); value->blockSignals(true); value->addItems(choices); value->blockSignals(false); } // Get the Default value from the filter int i = getFilter()->property(PROPERTY_NAME_AS_CHAR).toInt(); value->setCurrentIndex(i); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void DataContainerArrayProxyWidget::setupGui() { connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); // Put in a QStandardItemModel QAbstractItemModel* oldModel = dcaProxyView->model(); QStandardItemModel* model = new QStandardItemModel; dcaProxyView->setModel(model); delete oldModel; connect(model, SIGNAL(itemChanged(QStandardItem*)), this, SLOT(itemActivated(QStandardItem*))); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); //If the filter is just being dragged into the pipeline then the filter is going to have an empty // Proxy object at which point nothing is going to be put into the lists. But if the Filter was // initialized from a pipeline file then it might actually have a proxy so we need to do something // with that proxy? m_DcaProxy = getFilter()->property(PROPERTY_NAME_AS_CHAR).value<DataContainerArrayProxy>(); //m_DcaProxy.print("DataContainerArrayProxyWidget::setupGui()"); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void Symmetric6x6Widget::setupGui() { // Catch when the filter is about to execute the preflight connect(getFilter(), SIGNAL(preflightAboutToExecute()), this, SLOT(beforePreflight())); // Catch when the filter is finished running the preflight connect(getFilter(), SIGNAL(preflightExecuted()), this, SLOT(afterPreflight())); // Catch when the filter wants its values updated connect(getFilter(), SIGNAL(updateFilterParameters(AbstractFilter*)), this, SLOT(filterNeedsInputParameters(AbstractFilter*))); connect(v11, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v12, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v13, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v14, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v15, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v16, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v22, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v23, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v24, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v25, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v26, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v33, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v34, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v35, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v36, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v44, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v45, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v46, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v55, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v56, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); connect(v66, SIGNAL(textChanged(const QString&)), this, SLOT(widgetChanged(const QString&) ) ); QDoubleValidator* v11Val = new QDoubleValidator(v11); v11->setValidator(v11Val); QDoubleValidator* v12Val = new QDoubleValidator(v12); v12->setValidator(v12Val); QDoubleValidator* v13Val = new QDoubleValidator(v13); v13->setValidator(v13Val); QDoubleValidator* v14Val = new QDoubleValidator(v14); v14->setValidator(v14Val); QDoubleValidator* v15Val = new QDoubleValidator(v15); v15->setValidator(v15Val); QDoubleValidator* v16Val = new QDoubleValidator(v16); v16->setValidator(v16Val); QDoubleValidator* v22Val = new QDoubleValidator(v22); v22->setValidator(v22Val); QDoubleValidator* v23Val = new QDoubleValidator(v23); v23->setValidator(v23Val); QDoubleValidator* v24Val = new QDoubleValidator(v24); v24->setValidator(v24Val); QDoubleValidator* v25Val = new QDoubleValidator(v25); v25->setValidator(v25Val); QDoubleValidator* v26Val = new QDoubleValidator(v26); v26->setValidator(v26Val); QDoubleValidator* v33Val = new QDoubleValidator(v33); v33->setValidator(v33Val); QDoubleValidator* v34Val = new QDoubleValidator(v34); v34->setValidator(v34Val); QDoubleValidator* v35Val = new QDoubleValidator(v35); v35->setValidator(v35Val); QDoubleValidator* v36Val = new QDoubleValidator(v36); v36->setValidator(v36Val); QDoubleValidator* v44Val = new QDoubleValidator(v44); v44->setValidator(v44Val); QDoubleValidator* v45Val = new QDoubleValidator(v45); v45->setValidator(v45Val); QDoubleValidator* v46Val = new QDoubleValidator(v46); v46->setValidator(v46Val); QDoubleValidator* v55Val = new QDoubleValidator(v55); v55->setValidator(v55Val); QDoubleValidator* v56Val = new QDoubleValidator(v56); v56->setValidator(v56Val); QDoubleValidator* v66Val = new QDoubleValidator(v66); v66->setValidator(v66Val); if (getFilterParameter() != NULL) { label->setText(getFilterParameter()->getHumanLabel() ); FloatVec21_t data = getFilter()->property(PROPERTY_NAME_AS_CHAR).value<FloatVec21_t>(); v11->setText( QString::number(data.v11) ); v12->setText( QString::number(data.v12) ); v13->setText( QString::number(data.v13) ); v14->setText( QString::number(data.v14) ); v15->setText( QString::number(data.v15) ); v16->setText( QString::number(data.v16) ); v22->setText( QString::number(data.v22) ); v23->setText( QString::number(data.v23) ); v24->setText( QString::number(data.v24) ); v25->setText( QString::number(data.v25) ); v26->setText( QString::number(data.v26) ); v33->setText( QString::number(data.v33) ); v34->setText( QString::number(data.v34) ); v35->setText( QString::number(data.v35) ); v36->setText( QString::number(data.v36) ); v44->setText( QString::number(data.v44) ); v45->setText( QString::number(data.v45) ); v46->setText( QString::number(data.v46) ); v55->setText( QString::number(data.v55) ); v56->setText( QString::number(data.v56) ); v66->setText( QString::number(data.v66) ); } //connect combobox to symmetry state connect(comboBox, SIGNAL(currentIndexChanged( int )), this, SLOT( changeSym( int ) ) ); clearSym(); changeSym(comboBox->currentIndex()); }