BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
LayerEditorUtils.h File Reference

Description

Defines class LayerEditorUtils.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file LayerEditorUtils.h.

Include dependency graph for LayerEditorUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 LayerEditorUtils
 Utility functions to support layer oriented sample editor.
 

Functions

void LayerEditorUtils::addMultiPropertyToGrid (QGridLayout *m_gridLayout, int firstCol, const DoubleDescriptors &valueDescriptors, function< void(double, DoubleDescriptor)> setNewValue, bool vertically, bool addSpacer)
 Create DoubleSpinBoxes for the DoubeDescriptors and connect them to the given setNewValue() More...
 
void LayerEditorUtils::addMultiPropertyToGrid (QGridLayout *m_gridLayout, int firstCol, const DoubleDescriptors &valueDescriptors, SampleEditorController *ec, bool addSpacer)
 
void LayerEditorUtils::addMultiPropertyToGrid (QGridLayout *m_gridLayout, int firstCol, const DoubleDescriptors &valueDescriptors, SampleEditorController *ec, bool vertically, bool addSpacer)
 Create DoubleSpinBoxes for the DoubeDescriptors and connect them to SampleEditorController::setDouble() More...
 
void LayerEditorUtils::addVectorToGrid (QGridLayout *m_gridLayout, int firstCol, const VectorDescriptor &v, function< void(double, DoubleDescriptor)> setNewValue, bool vertically, bool addSpacer)
 Create DoubleSpinBoxes for the DoubeDescriptors and connect them to the given setNewValue() More...
 
void LayerEditorUtils::addVectorToGrid (QGridLayout *m_gridLayout, int firstCol, const VectorDescriptor &v, SampleEditorController *ec, bool vertically, bool addSpacer)
 Create DoubleSpinBoxes for the DoubeDescriptors and connect them to SampleEditorController::setDouble() More...
 
QPushButton * LayerEditorUtils::createAddParticleButton (QWidget *parentWidget, std::function< void(FormFactorItemCatalog::Type t)> slotAddFormFactor, std::function< void(ItemWithParticlesCatalog::Type t)> slotAddParticle)
 
QLabel * LayerEditorUtils::createBoldLabel (const QString &text)
 
QWidget * LayerEditorUtils::createWidgetForItemWithParticles (QWidget *parentWidget, ItemWithParticles *itemWithParticles, bool allowAbundance, SampleEditorController *ec, bool allowRemove=true)
 
DoubleDescriptors LayerEditorUtils::doubleDescriptorsOfItem (FormFactorItem *item)
 
DoubleDescriptors LayerEditorUtils::doubleDescriptorsOfItem (LayerBasicRoughnessItem *item)
 
DoubleDescriptors LayerEditorUtils::doubleDescriptorsOfItem (Profile1DItem *item)
 
DoubleDescriptors LayerEditorUtils::doubleDescriptorsOfItem (Profile2DItem *item)
 
DoubleDescriptors LayerEditorUtils::doubleDescriptorsOfItem (RotationItem *item)
 
QList< QColor > LayerEditorUtils::predefinedLayerColors ()
 
void LayerEditorUtils::updateLabelUnit (QLabel *label)
 
void LayerEditorUtils::updateLabelUnit (QLabel *label, DoubleSpinBox *editor)