|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 21 of file InstrumentLibrary.h.
Public Member Functions | |
| InstrumentLibrary () | |
| InstrumentItem * | add (const QString &name, const InstrumentItem &itemToCopy) |
| Returns the new element. More... | |
| InstrumentCollection * | collectedItems () |
| QList< InstrumentItem * > | collectedItems () const |
| InstrumentsEditController * | editController () |
| bool | isEmpty () const |
| bool | load () |
| bool | saveIfModified () |
| QString | suggestName (const QString &name) const |
Private Attributes | |
| InstrumentsEditController | m_ec |
| InstrumentCollection | m_instrumentItems |
| bool | m_modified |
| InstrumentLibrary::InstrumentLibrary | ( | ) |
Definition at line 36 of file InstrumentLibrary.cpp.
References InstrumentsEditController::instrumentAddedOrRemoved(), InstrumentsEditController::instrumentChanged(), m_ec, and m_modified.
| InstrumentItem * InstrumentLibrary::add | ( | const QString & | name, |
| const InstrumentItem & | itemToCopy | ||
| ) |
Returns the new element.
Definition at line 51 of file InstrumentLibrary.cpp.
References InstrumentsEditController::addCopy(), m_ec, and GUI::RealSpace::Particles::name().
Referenced by InstrumentLibraryEditor::execAdd().
| InstrumentCollection * InstrumentLibrary::collectedItems | ( | ) |
Definition at line 140 of file InstrumentLibrary.cpp.
References m_instrumentItems.
| QList< InstrumentItem * > InstrumentLibrary::collectedItems | ( | ) | const |
Definition at line 61 of file InstrumentLibrary.cpp.
References InstrumentCollection::collectedItems(), and m_instrumentItems.
| InstrumentsEditController * InstrumentLibrary::editController | ( | ) |
Definition at line 66 of file InstrumentLibrary.cpp.
References m_ec.
Referenced by InstrumentLibraryEditor::createWidgetsForCurrentInstrument(), and InstrumentLibraryEditor::onInstrumentChangedByEditor().
| bool InstrumentLibrary::isEmpty | ( | ) | const |
Definition at line 56 of file InstrumentLibrary.cpp.
References InstrumentCollection::collectedItems(), and m_instrumentItems.
Referenced by InstrumentListView::onLoadFromLibrary().
| bool InstrumentLibrary::load | ( | ) |
Definition at line 97 of file InstrumentLibrary.cpp.
References InstrumentCollection::clear(), m_instrumentItems, m_modified, and InstrumentCollection::serialize().
Referenced by main().
| bool InstrumentLibrary::saveIfModified | ( | ) |
Definition at line 71 of file InstrumentLibrary.cpp.
References m_instrumentItems, m_modified, and InstrumentCollection::serialize().
Referenced by main().
| QString InstrumentLibrary::suggestName | ( | const QString & | name | ) | const |
Definition at line 46 of file InstrumentLibrary.cpp.
References m_instrumentItems, GUI::RealSpace::Particles::name(), and InstrumentCollection::suggestInstrumentName().
Referenced by InstrumentLibraryEditor::execAdd().
|
private |
Definition at line 41 of file InstrumentLibrary.h.
Referenced by InstrumentLibrary(), add(), and editController().
|
private |
Definition at line 40 of file InstrumentLibrary.h.
Referenced by collectedItems(), isEmpty(), load(), saveIfModified(), and suggestName().
|
private |
Definition at line 42 of file InstrumentLibrary.h.
Referenced by InstrumentLibrary(), load(), and saveIfModified().