9 QTableWidget* paramTable,
15 _paramTable(paramTable)
21 QLineEdit *edit =
new QLineEdit(parent);
28 QLineEdit *edit = qobject_cast<QLineEdit *>(editor);
29 if( !index.model()->data(index).toString().isEmpty() ){
30 edit->setText(index.model()->data(index).toString());
39 QLineEdit *edit = qobject_cast<QLineEdit *>(editor);
40 if( !edit->displayText().isEmpty() ){
41 model->setData(index, edit->displayText());
44 model->setData(index,
"0");
56 if( !edit->displayText().isEmpty() ){
57 values[ (index.row()*ssize)+index.column() ]=edit->displayText().toStdString();
60 values[ (index.row()*ssize)+index.column() ]=
"0";
72 for(
unsigned int i=0; i<values.
size(); i++ ){
73 val += values[i].c_str();
this class is a Marlin Steering File consistency check Tool.
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
QWidget * createEditor(QWidget *parent) const
handles information about marlin processors and their collections needed by MarlinSteerCheck ...
const std::string & getType()
Returns the Type of the processor.
void setEditorData(QWidget *editor, const QModelIndex &index) const
CMProcessor * getMProcs()
Returns the Marlin Processors.
int getParamSetSize(const std::string &type, const std::string &key)
returns the set_size of the parameter with the given key for the processor with the given type ...
NParamVecSetD(const NParamVecSetD &)=default
QTableWidget * _paramTable
std::shared_ptr< StringParameters > getParameters()
Returns the string parameters for this processor.