BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
LayerEditorToolBar (LayerEditorActions *actions, QWidget *parent=nullptr) | |
~LayerEditorToolBar ()=default | |
void | updateToolButtonStates (bool first_present, bool last_present) |
Handle the QToolButtons for their enabled state depending on what is selected. More... | |
Private Member Functions | |
QMenu * | create_layer_menu (LayerEditorActions *editor_actions) |
Creates menu to add layer and layer-repeater. More... | |
Private Attributes | |
std::map< std::string, QWidget * > | m_toolbarWidgets |
Layer editor toolbar.
Definition at line 30 of file layereditortoolbar.h.
gui2::LayerEditorToolBar::LayerEditorToolBar | ( | LayerEditorActions * | actions, |
QWidget * | parent = nullptr |
||
) |
Definition at line 24 of file layereditortoolbar.cpp.
References create_layer_menu(), m_toolbarWidgets, gui2::LayerEditorActions::onClone(), gui2::LayerEditorActions::onMoveDown(), gui2::LayerEditorActions::onMoveUp(), gui2::LayerEditorActions::onRemove(), and gui2::StyleUtils::SetToolBarStyleTextBesides().
|
default |
|
private |
Creates menu to add layer and layer-repeater.
Definition at line 84 of file layereditortoolbar.cpp.
References gui2::LayerEditorActions::onAddLayer(), and gui2::LayerEditorActions::onAddMultiLayer().
Referenced by LayerEditorToolBar().
void gui2::LayerEditorToolBar::updateToolButtonStates | ( | bool | first_present, |
bool | last_present | ||
) |
Handle the QToolButtons for their enabled state depending on what is selected.
Definition at line 110 of file layereditortoolbar.cpp.
References m_toolbarWidgets.
|
private |
Definition at line 41 of file layereditortoolbar.h.
Referenced by LayerEditorToolBar(), and updateToolButtonStates().