15 #ifndef BORNAGAIN_GUI_VIEW_MASK_MASKEDITORACTIONS_H
16 #define BORNAGAIN_GUI_VIEW_MASK_MASKEDITORACTIONS_H
20 #include <QModelIndex>
25 class QItemSelectionModel;
Defines class MaskEditorFlags.
Defines actions for MaskEditor which are related to selected MaskItem (toggle mask value,...
QItemSelectionModel * m_selectionModel
Index in the model corresponding to IntensityDataItem.
bool isSendToBackPossible() const
Returns true if at least one of MaskItems in the selection can be moved one level down.
QAction * m_toggleMaskValueAction
QList< QAction * > topToolbarActions()
void propertyPanelRequest()
QAction * m_togglePanelAction
void onToggleMaskValueAction()
Performs switch of mask value for all selected items (true -> false, false -> true)
MaskEditorActions(QWidget *parent)
void onItemContextMenuRequest(const QPoint &point)
Constructs MaskItem context menu following the request from MaskGraphicsScene or MaskEditorInfoPanel.
void setAllActionsEnabled(bool value)
QAction * m_bringToFrontAction
QAction * m_sendToBackAction
QAction * m_deleteMaskAction
void setModel(SessionModel *maskModel, const QModelIndex &rootIndex)
void changeMaskStackingOrder(MaskEditorFlags::Stacking value)
Lower mask one level down or rise one level up in the masks stack.
QAction * bringToFrontAction()
QAction * m_savePlotAction
void initItemContextMenu(QMenu &menu)
Init external context menu with currently defined actions. Triggered from MaskGraphicsScene of MaskEd...
void onSendToBackAction()
QAction * sendToBackAction()
bool isBringToFrontPossible() const
Returns true if at least one of MaskItems in the selection can be moved one level up (Naturally,...
void onBringToFrontAction()
SessionModel * m_maskModel
QAction * m_resetViewAction
void setSelectionModel(QItemSelectionModel *selectionModel)
void onDeleteMaskAction()
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....