15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_INSTRUMENTVIEWACTIONS_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_INSTRUMENTVIEWACTIONS_H
23 class QItemSelectionModel;
Collection of actions to add/remove/clone instrument.
void setAllActionsEnabled(bool value)
void onRemoveInstrument()
Removes currently selected instrument.
void onContextMenuRequest(const QPoint &point, const QModelIndex &indexAtPoint)
void onCloneInstrument()
Clones currently selected instrument.
void setModel(SessionModel *model)
void setSelectionModel(QItemSelectionModel *selectionModel)
QMenu * m_addInstrumentMenu
QMap< QString, int > mapOfNames()
void initAddInstrumentMenu()
Constructs menu to add instruments of various types.
QAction * m_cloneInstrumentAction
QAction * m_removeInstrumentAction
InstrumentViewActions(QWidget *parent=nullptr)
QItemSelectionModel * m_selectionModel
QMenu * instrumentMenu()
Returns menu to create one of available instrument types.
QString suggestInstrumentName(const QString ¤tName)