BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ParticleForm.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/SampleDesigner/ParticleForm.h
6 //! @brief Defines class ParticleForm
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_PARTICLEFORM_H
16 #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_PARTICLEFORM_H
17 
18 #include <QGroupBox>
19 
20 class ParticleItem;
21 class QAction;
23 
24 //! Form for editing a particle
25 class ParticleForm : public QGroupBox {
26  Q_OBJECT
27 public:
28  ParticleForm(QWidget* parent, ParticleItem* item, bool allowAbundance,
29  SampleEditorController* ec, bool allowRemove = true);
30  void enableStructureEditing(bool b);
31 
32 private:
33  QAction* m_removeAction = nullptr;
34 };
35 
36 
37 #endif // BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_PARTICLEFORM_H
Form for editing a particle.
Definition: ParticleForm.h:25
ParticleForm(QWidget *parent, ParticleItem *item, bool allowAbundance, SampleEditorController *ec, bool allowRemove=true)
void enableStructureEditing(bool b)
QAction * m_removeAction
Definition: ParticleForm.h:33
Class to modify a sample from the layer oriented sample editor.