BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
InstrumentLibrary.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/Model/Device/InstrumentLibrary.h
6
//! @brief Defines class InstrumentLibrary
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_MODEL_DEVICE_INSTRUMENTLIBRARY_H
16
#define BORNAGAIN_GUI_MODEL_DEVICE_INSTRUMENTLIBRARY_H
17
18
#include "
GUI/Model/Device/InstrumentCollection.h
"
19
#include "
GUI/Model/Device/InstrumentsEditController.h
"
20
21
class
InstrumentLibrary
{
22
public
:
23
InstrumentLibrary
();
24
25
QString
suggestName
(
const
QString&
name
)
const
;
26
27
//! Returns the new element
28
InstrumentItem
*
add
(
const
QString&
name
,
const
InstrumentItem
& itemToCopy);
29
bool
isEmpty
()
const
;
30
QList<InstrumentItem*>
collectedItems
()
const
;
31
32
bool
saveIfModified
();
33
bool
load
();
34
35
InstrumentCollection
*
collectedItems
();
36
37
InstrumentsEditController
*
editController
();
38
39
private
:
40
InstrumentCollection
m_instrumentItems
;
41
InstrumentsEditController
m_ec
;
42
bool
m_modified
;
43
};
44
45
#endif
// BORNAGAIN_GUI_MODEL_DEVICE_INSTRUMENTLIBRARY_H
InstrumentCollection.h
Defines class InstrumentCollection.
InstrumentsEditController.h
Defines class InstrumentsEditController.
InstrumentCollection
Definition:
InstrumentCollection.h:27
InstrumentItem
Abstract base class for instrument-specific item classes.
Definition:
InstrumentItems.h:41
InstrumentLibrary
Definition:
InstrumentLibrary.h:21
InstrumentLibrary::editController
InstrumentsEditController * editController()
Definition:
InstrumentLibrary.cpp:66
InstrumentLibrary::add
InstrumentItem * add(const QString &name, const InstrumentItem &itemToCopy)
Returns the new element.
Definition:
InstrumentLibrary.cpp:51
InstrumentLibrary::suggestName
QString suggestName(const QString &name) const
Definition:
InstrumentLibrary.cpp:46
InstrumentLibrary::m_modified
bool m_modified
Definition:
InstrumentLibrary.h:42
InstrumentLibrary::m_instrumentItems
InstrumentCollection m_instrumentItems
Definition:
InstrumentLibrary.h:40
InstrumentLibrary::saveIfModified
bool saveIfModified()
Definition:
InstrumentLibrary.cpp:71
InstrumentLibrary::m_ec
InstrumentsEditController m_ec
Definition:
InstrumentLibrary.h:41
InstrumentLibrary::collectedItems
QList< InstrumentItem * > collectedItems() const
Definition:
InstrumentLibrary.cpp:61
InstrumentLibrary::isEmpty
bool isEmpty() const
Definition:
InstrumentLibrary.cpp:56
InstrumentLibrary::load
bool load()
Definition:
InstrumentLibrary.cpp:97
InstrumentLibrary::InstrumentLibrary
InstrumentLibrary()
Definition:
InstrumentLibrary.cpp:36
InstrumentsEditController
Class to modify the instruments list or a single instrument and provide the necessary signaling withi...
Definition:
InstrumentsEditController.h:40
GUI::RealSpace::Particles::name
QString const & name(EShape k)
Definition:
particles.cpp:20
GUI
Model
Device
InstrumentLibrary.h
Generated by
1.9.1