|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Styled tool bar on top of InstrumentView with add/remove/clone instrument buttons. More...
Public Member Functions | |
| InstrumentViewToolBar (InstrumentViewActions *actions, QWidget *parent=nullptr) | |
| void | addSpacing (int width=2) |
| Width of the spacing between buttons. More... | |
| void | addStyledExpand () |
| void | addStyledSeparator () |
Protected Member Functions | |
| void | contextMenuEvent (QContextMenuEvent *) |
Private Slots | |
| void | onAddInstrument () |
Private Attributes | |
| QToolButton * | m_addInstrumentButton |
| QMenu * | m_addInstrumentMenu |
| QToolButton * | m_cloneInstrumentButton |
| QToolButton * | m_removeInstrumentButton |
Styled tool bar on top of InstrumentView with add/remove/clone instrument buttons.
Definition at line 28 of file InstrumentViewToolBar.h.
|
explicit |
Definition at line 20 of file InstrumentViewToolBar.cpp.
References m_addInstrumentButton, m_addInstrumentMenu, m_cloneInstrumentButton, m_removeInstrumentButton, onAddInstrument(), InstrumentViewActions::onCloneInstrument(), and InstrumentViewActions::onRemoveInstrument().
|
inherited |
Width of the spacing between buttons.
Definition at line 37 of file StyledToolBar.cpp.
Referenced by ItemComboToolBar::setActionList().
|
inherited |
|
inherited |
Definition at line 28 of file StyledToolBar.cpp.
Referenced by SampleToolBar::SampleToolBar().
|
protectedinherited |
Definition at line 51 of file StyledToolBar.cpp.
|
privateslot |
Definition at line 56 of file InstrumentViewToolBar.cpp.
References m_addInstrumentMenu.
Referenced by InstrumentViewToolBar().
|
private |
Definition at line 38 of file InstrumentViewToolBar.h.
Referenced by InstrumentViewToolBar().
|
private |
Definition at line 41 of file InstrumentViewToolBar.h.
Referenced by InstrumentViewToolBar(), and onAddInstrument().
|
private |
Definition at line 40 of file InstrumentViewToolBar.h.
Referenced by InstrumentViewToolBar().
|
private |
Definition at line 39 of file InstrumentViewToolBar.h.
Referenced by InstrumentViewToolBar().