BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Widget to define project settings.
Definition at line 27 of file ProjectSettingsView.h.
Public Member Functions | |
ProjectSettingsView (QWidget *parentWidget, ProjectDocument *document) | |
Protected Member Functions | |
void | showEvent (QShowEvent *) override |
Private Member Functions | |
ProjectDocument::Functionalities | functionalities () const |
void | onFunctionalityToggled () |
void | onSingleInstrumentRadioToggled (bool newState) |
void | onSingleSampleRadioToggled (bool newState) |
void | storeAsDefaults () |
void | updateInformation () |
void | writeFunctionalityToUI () |
void | writeOptionsToUI () |
Write entries in OptionsItem to UI. More... | |
Private Attributes | |
ProjectDocument * | m_document |
Ui::ProjectSettingsView * | m_ui |
ProjectSettingsView::ProjectSettingsView | ( | QWidget * | parentWidget, |
ProjectDocument * | document | ||
) |
Definition at line 23 of file ProjectSettingsView.cpp.
References GroupBoxCollapser::installIntoGroupBox(), m_document, m_ui, ProjectDocument::modified(), onFunctionalityToggled(), onSingleInstrumentRadioToggled(), onSingleSampleRadioToggled(), storeAsDefaults(), and updateInformation().
|
private |
Definition at line 169 of file ProjectSettingsView.cpp.
References ProjectDocument::DepthProbe, ProjectDocument::Gisas, m_ui, ProjectDocument::Offspec, and ProjectDocument::Specular.
Referenced by onFunctionalityToggled(), and storeAsDefaults().
|
private |
Definition at line 153 of file ProjectSettingsView.cpp.
References functionalities(), m_document, ProjectDocument::None, ProjectDocument::setFunctionalities(), GUI::View::Helpers::warning(), and writeFunctionalityToUI().
Referenced by ProjectSettingsView().
|
private |
Definition at line 116 of file ProjectSettingsView.cpp.
References InstrumentCollection::collectedItems(), ProjectDocument::collectedItems(), m_document, m_ui, ProjectDocument::setSingleInstrumentMode(), and GUI::View::Helpers::warning().
Referenced by ProjectSettingsView().
|
private |
Definition at line 135 of file ProjectSettingsView.cpp.
References m_document, m_ui, ProjectDocument::sampleItems(), MultiLayerItems::sampleItems(), ProjectDocument::setSingleSampleMode(), and GUI::View::Helpers::warning().
Referenced by ProjectSettingsView().
|
overrideprotected |
Definition at line 62 of file ProjectSettingsView.cpp.
References writeOptionsToUI().
|
private |
Definition at line 109 of file ProjectSettingsView.cpp.
References appSettings, functionalities(), m_ui, ApplicationSettings::setDefaultFunctionalities(), ApplicationSettings::setDefaultIsSingleInstrumentMode(), ApplicationSettings::setDefaultIsSingleSampleMode(), and toVariant().
Referenced by ProjectSettingsView().
|
private |
Definition at line 96 of file ProjectSettingsView.cpp.
References ProjectDocument::hasValidNameAndPath(), m_document, m_ui, GUI::RealSpace::Particles::name(), ProjectDocument::projectFileName(), ProjectDocument::projectName(), and GUI::Util::Path::withTildeHomePath().
Referenced by ProjectSettingsView(), and writeOptionsToUI().
|
private |
Definition at line 81 of file ProjectSettingsView.cpp.
References ProjectDocument::DepthProbe, ProjectDocument::functionalities(), ProjectDocument::Gisas, m_document, m_ui, ProjectDocument::Offspec, and ProjectDocument::Specular.
Referenced by onFunctionalityToggled(), and writeOptionsToUI().
|
private |
Write entries in OptionsItem to UI.
Definition at line 67 of file ProjectSettingsView.cpp.
References m_document, m_ui, ProjectDocument::singleInstrumentMode(), ProjectDocument::singleSampleMode(), updateInformation(), and writeFunctionalityToUI().
Referenced by showEvent().
|
private |
Definition at line 51 of file ProjectSettingsView.h.
Referenced by ProjectSettingsView(), onFunctionalityToggled(), onSingleInstrumentRadioToggled(), onSingleSampleRadioToggled(), updateInformation(), writeFunctionalityToUI(), and writeOptionsToUI().
|
private |
Definition at line 50 of file ProjectSettingsView.h.
Referenced by ProjectSettingsView(), functionalities(), onSingleInstrumentRadioToggled(), onSingleSampleRadioToggled(), storeAsDefaults(), updateInformation(), writeFunctionalityToUI(), and writeOptionsToUI().