BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Factory to create commonly used actions.
Definition at line 26 of file ActionFactory.h.
Public Member Functions | |
ActionFactory (ActionFactory &&)=delete | |
ActionFactory (const ActionFactory &)=delete | |
ActionFactory & | operator= (ActionFactory &&)=delete |
ActionFactory & | operator= (const ActionFactory &)=delete |
Static Public Member Functions | |
static QAction * | createRemoveAction (QObject *parent, const QString &what, std::function< void()> slot=nullptr) |
Create "remove" action. More... | |
static QAction * | createShowInRealSpaceAction (QObject *parent, const QString &what, std::function< void()> slot=nullptr) |
Create "show in RealSpace" action. More... | |
static QAction * | createTogglePropertiesPanelAction (QObject *parent, QWidget *toggledWidget=nullptr) |
Create "toggle properties panel" action. More... | |
Private Member Functions | |
ActionFactory ()=default | |
|
delete |
|
delete |
|
privatedefault |
|
static |
Create "remove" action.
The "what" text will be used in the tooltip, appended to "Remove ". If a slot is given, it will be connected to the "triggered" signal.
Definition at line 18 of file ActionFactory.cpp.
Referenced by LayerForm::LayerForm(), MesoCrystalForm::MesoCrystalForm(), ParticleCompositionForm::ParticleCompositionForm(), ParticleCoreShellForm::ParticleCoreShellForm(), ParticleForm::ParticleForm(), and ParticleLayoutForm::ParticleLayoutForm().
|
static |
Create "show in RealSpace" action.
The "what" text will be used in the tooltip. If a slot is given, it will be connected to the "triggered" signal.
Definition at line 33 of file ActionFactory.cpp.
Referenced by LayerForm::LayerForm(), MesoCrystalForm::MesoCrystalForm(), MultiLayerForm::MultiLayerForm(), ParticleCompositionForm::ParticleCompositionForm(), ParticleCoreShellForm::ParticleCoreShellForm(), ParticleForm::ParticleForm(), and ParticleLayoutForm::ParticleLayoutForm().
|
static |
Create "toggle properties panel" action.
If toggledWidget is given, it will be shown/hidden when the actions changes its state.
Definition at line 48 of file ActionFactory.cpp.
Referenced by FitComparisonWidget::FitComparisonWidget(), FitComparisonWidget1D::FitComparisonWidget1D(), IntensityDataWidget::IntensityDataWidget(), MaskEditorActions::MaskEditorActions(), and SpecularDataWidget::SpecularDataWidget().
|
delete |
|
delete |