BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
layerelementitem.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/sldeditor/layerelementitem.cpp
6 //! @brief Implements class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
19 #include "mvvm/utils/reallimits.h"
20 
21 namespace gui2 {
22 
24 {
25  addProperty(P_X_POS, 0.)->setDisplayName("Position");
26  addProperty(P_WIDTH, 10.)->setDisplayName("Width");
27  addProperty(P_HEIGHT, 10.)->setDisplayName("Height");
28  addProperty(P_ROUGHNESS, 5.)->setDisplayName("Roughness");
29 
30  addProperty(P_SIDE_THICKNESS, 5.)->setDisplayName("Side segment thickness");
31  addProperty(P_SIDE_BRUSH_COLOR, QColor("black"))->setDisplayName("Side segment color");
32  addProperty(P_SIDE_PEN_WIDTH, 2.)->setDisplayName("Side segment pen width");
33  addProperty(P_SIDE_PEN_COLOR, QColor("black"))->setDisplayName("Side segment pen color");
34 
35  addProperty(P_TOP_THICKNESS, 5.)->setDisplayName("Top segment thickness");
36  addProperty(P_TOP_BRUSH_COLOR, QColor("black"))->setDisplayName("Top segment color");
37  addProperty(P_TOP_PEN_WIDTH, 2.)->setDisplayName("Top segment pen width");
38  addProperty(P_TOP_PEN_COLOR, QColor("black"))->setDisplayName("Top segment pen color");
39 
40  addProperty(P_HANDLE_RADIUS, 5.)->setDisplayName("Handle radius");
41  addProperty(P_HANDLE_BRUSH_COLOR, QColor("black"))->setDisplayName("Handle color");
42  addProperty(P_HANDLE_PEN_WIDTH, 2.)->setDisplayName("Handle pen width");
43  addProperty(P_HANDLE_PEN_COLOR, QColor("black"))->setDisplayName("Handle pen color");
44 
45  addProperty(P_R_HANDLE_RADIUS, 4.)->setDisplayName("Roughness handle radius");
46  addProperty(P_R_HANDLE_BRUSH_COLOR, QColor("black"))->setDisplayName("Roughness handle color");
47  addProperty(P_R_HANDLE_PEN_WIDTH, 2.)->setDisplayName("Roughness handle pen width");
48  addProperty(P_R_HANDLE_PEN_COLOR, QColor("black"))
49  ->setDisplayName("Roughness handle pen color");
50 
51  addProperty(P_ROUGHNESS_BRUSH_COLOR, QColor("black"))->setDisplayName("Roughness handle color");
52  addProperty(P_ROUGHNESS_PEN_WIDTH, 2.)->setDisplayName("Roughness handle pen width");
53  addProperty(P_ROUGHNESS_PEN_COLOR, QColor("black"))
54  ->setDisplayName("Roughness handle pen color");
55 }
56 
57 } // namespace gui2
Complex item holding mixed SessionItem types (single properties and other CompountItems).
Definition: compounditem.h:28
T * addProperty(const std::string &name)
Adds property item of given type.
Definition: compounditem.h:43
static const std::string P_SIDE_THICKNESS
static const std::string P_TOP_PEN_WIDTH
static const std::string P_R_HANDLE_RADIUS
static const std::string P_SIDE_BRUSH_COLOR
static const std::string P_ROUGHNESS_PEN_COLOR
static const std::string P_TOP_BRUSH_COLOR
static const std::string P_ROUGHNESS_PEN_WIDTH
static const std::string P_TOP_PEN_COLOR
static const std::string P_HEIGHT
static const std::string P_HANDLE_PEN_WIDTH
static const std::string P_TOP_THICKNESS
static const std::string P_R_HANDLE_BRUSH_COLOR
static const std::string P_SIDE_PEN_WIDTH
static const std::string P_HANDLE_RADIUS
static const std::string P_ROUGHNESS_BRUSH_COLOR
static const std::string P_WIDTH
static const std::string P_ROUGHNESS
static const std::string P_SIDE_PEN_COLOR
static const std::string P_X_POS
static const std::string P_R_HANDLE_PEN_COLOR
static const std::string P_R_HANDLE_PEN_WIDTH
static const std::string P_HANDLE_PEN_COLOR
static const std::string P_HANDLE_BRUSH_COLOR
Defines class CLASS?
Defines class CLASS?
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20
Defines class CLASS?
Defines class CLASS?