BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MesoCrystalForm.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/View/SampleDesigner/MesoCrystalForm.h
6
//! @brief Defines class MesoCrystalForm
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2021
11
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************************************
14
15
#ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MESOCRYSTALFORM_H
16
#define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MESOCRYSTALFORM_H
17
18
#include <QGroupBox>
19
20
class
MesoCrystalItem
;
21
class
QAction;
22
class
SampleEditorController
;
23
class
QComboBox;
24
class
ItemWithParticles
;
25
class
QFormLayout;
26
27
//! Form for editing a mesocrystal
28
class
MesoCrystalForm
:
public
QGroupBox {
29
public
:
30
MesoCrystalForm
(QWidget* parent,
MesoCrystalItem
* item,
SampleEditorController
* ec,
31
bool
allowRemove =
true
);
32
33
void
enableStructureEditing
(
bool
b);
34
MesoCrystalItem
*
mesoCrystalItem
()
const
;
35
void
createBasisWidgets
();
36
37
private
:
38
QComboBox*
createBasisCombo
(QWidget* parent,
ItemWithParticles
* current);
39
40
void
onBasisComboChanged
();
41
42
QFormLayout*
m_layout
;
43
MesoCrystalItem
*
m_item
;
44
QAction*
m_removeAction
=
nullptr
;
45
SampleEditorController
*
m_ec
;
46
QComboBox*
m_basisCombo
;
47
int
m_rowOfBasisTypeCombo
;
48
};
49
50
51
#endif
// BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MESOCRYSTALFORM_H
ItemWithParticles
Definition:
ItemWithParticles.h:27
MesoCrystalForm
Form for editing a mesocrystal.
Definition:
MesoCrystalForm.h:28
MesoCrystalForm::createBasisWidgets
void createBasisWidgets()
Definition:
MesoCrystalForm.cpp:108
MesoCrystalForm::m_rowOfBasisTypeCombo
int m_rowOfBasisTypeCombo
Definition:
MesoCrystalForm.h:47
MesoCrystalForm::m_basisCombo
QComboBox * m_basisCombo
Definition:
MesoCrystalForm.h:46
MesoCrystalForm::m_item
MesoCrystalItem * m_item
Definition:
MesoCrystalForm.h:43
MesoCrystalForm::mesoCrystalItem
MesoCrystalItem * mesoCrystalItem() const
Definition:
MesoCrystalForm.cpp:123
MesoCrystalForm::MesoCrystalForm
MesoCrystalForm(QWidget *parent, MesoCrystalItem *item, SampleEditorController *ec, bool allowRemove=true)
Definition:
MesoCrystalForm.cpp:26
MesoCrystalForm::createBasisCombo
QComboBox * createBasisCombo(QWidget *parent, ItemWithParticles *current)
Definition:
MesoCrystalForm.cpp:65
MesoCrystalForm::m_layout
QFormLayout * m_layout
Definition:
MesoCrystalForm.h:42
MesoCrystalForm::onBasisComboChanged
void onBasisComboChanged()
Definition:
MesoCrystalForm.cpp:95
MesoCrystalForm::m_ec
SampleEditorController * m_ec
Definition:
MesoCrystalForm.h:45
MesoCrystalForm::m_removeAction
QAction * m_removeAction
Definition:
MesoCrystalForm.h:44
MesoCrystalForm::enableStructureEditing
void enableStructureEditing(bool b)
Definition:
MesoCrystalForm.cpp:117
MesoCrystalItem
Definition:
MesoCrystalItem.h:30
SampleEditorController
Class to modify a sample from the layer oriented sample editor.
Definition:
SampleEditorController.h:50
GUI
View
SampleDesigner
MesoCrystalForm.h
Generated by
1.9.1