15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_PROPERTYEDITOR_CUSTOMEDITORS_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_PROPERTYEDITOR_CUSTOMEDITORS_H
31 explicit CustomEditor(QWidget* parent =
nullptr) : QWidget(parent) {}
36 void setData(
const QVariant& data);
BoolEditor(QWidget *parent=nullptr)
void initEditor()
Inits editor widgets from m_data.
void onCheckBoxChange(bool value)
Editor for ComboProperty variant.
virtual int internIndex()
Returns index for QComboBox.
void setConnected(bool isConnected)
virtual QStringList internLabels()
Returns list of labels for QComboBox.
virtual void onIndexChanged(int index)
class WheelEventEater * m_wheel_event_filter
QSize minimumSizeHint() const
void initEditor()
Inits editor widgets from m_data.
ComboPropertyEditor(QWidget *parent=nullptr)
Base class for all custom variants editors.
void dataChanged(const QVariant &data)
Signal emit then user changed the data through the editor.
virtual void initEditor()
Inits editor widgets from m_data.
void setData(const QVariant &data)
Sets the data from the model to editor.
CustomEditor(QWidget *parent=nullptr)
void setDataIntern(const QVariant &data)
Saves the data from the editor and informs external delegates.
Editor for Double variant.
void setDecimals(int decimals)
void setLimits(const RealLimits &limits)
class QDoubleSpinBox * m_doubleEditor
DoubleEditor(QWidget *parent=nullptr)
void initEditor()
Inits editor widgets from m_data.
Editor for ExternalProperty variant.
ExternalPropertyEditor(QWidget *parent=nullptr)
void setExternalDialogType(const QString &dialogType)
LostFocusFilter * m_focusFilter
QString m_extDialogType
Type of the dialog which will be created on button click.
void initEditor()
Inits editor widgets from m_data.
IntEditor(QWidget *parent=nullptr)
class QSpinBox * m_intEditor
void setLimits(const RealLimits &limits)
void initEditor()
Inits editor widgets from m_data.
Event filter to prevent lost of focus by custom material editor.
Limits for a real fit parameter.
Editor for ScientificDoubleProperty variant.
void initEditor()
Inits editor widgets from m_data.
class QLineEdit * m_lineEdit
void setLimits(const RealLimits &limits)
ScientificDoublePropertyEditor(QWidget *parent=nullptr)
class QDoubleValidator * m_validator
Editor for Double variant using ScientificSpinBox.
void setDecimals(int decimals)
void setLimits(const RealLimits &limits)
void initEditor()
Inits editor widgets from m_data.
void setSingleStep(double step)
ScientificSpinBoxEditor(QWidget *parent=nullptr)
class ScientificSpinBox * m_doubleEditor
Event filter to install on combo boxes and spin boxes to not to react on wheel events during scrollin...