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 
20 
22 public:
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 
36 
38 
39 private:
42  bool m_modified;
43 };
44 
45 #endif // BORNAGAIN_GUI_MODEL_DEVICE_INSTRUMENTLIBRARY_H
Defines class InstrumentCollection.
Defines class InstrumentsEditController.
Abstract base class for instrument-specific item classes.
InstrumentsEditController * editController()
InstrumentItem * add(const QString &name, const InstrumentItem &itemToCopy)
Returns the new element.
QString suggestName(const QString &name) const
InstrumentCollection m_instrumentItems
InstrumentsEditController m_ec
QList< InstrumentItem * > collectedItems() const
Class to modify the instruments list or a single instrument and provide the necessary signaling withi...
QString const & name(EShape k)
Definition: particles.cpp:20