#include <qxrdmaskstackview.h>
Definition at line 9 of file qxrdmaskstackview.h.
QxrdMaskStackView::QxrdMaskStackView |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Definition at line 9 of file qxrdmaskstackview.cpp.
QxrdMaskDialog * m_Dialog
QxrdMaskStackPtr m_MaskStack
QxrdDataProcessorWPtr m_Processor
void QxrdMaskStackView::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
Definition at line 32 of file qxrdmaskstackview.cpp.
References QxrdMaskStack::andMasks(), QxrdMaskStack::deleteMasks(), QxrdMaskStack::disableMasks(), QxrdMaskStack::enableMasks(), m_Dialog, m_MaskStack, m_Processor, and QxrdMaskStack::orMasks().
34 QMenu menu(NULL, NULL);
36 QAction *newMask = menu.addAction(
"New Mask Layer");
37 QAction *enbMask = menu.addAction(
"Enable Mask Layer(s)");
38 QAction *dsbMask = menu.addAction(
"Disable Mask Layer(s)");
39 QAction *delMask = menu.addAction(
"Delete Mask Layer(s)");
40 QAction *andMask = menu.addAction(
"AND Mask Layers");
41 QAction *orMask = menu.addAction(
"OR Mask Layers");
42 QAction *thrMask = menu.addAction(
"Threshold Mask...");
49 QAction *action = menu.exec(event->globalPos());
50 QModelIndexList selected = selectedIndexes();
53 if (action == newMask) {
59 }
else if (action == enbMask) {
61 }
else if (action == dsbMask) {
63 }
else if (action == delMask) {
65 }
else if (action == andMask) {
67 }
else if (action == orMask) {
69 }
else if (action == thrMask) {
QxrdMaskDialog * m_Dialog
void andMasks(QModelIndexList sel)
QxrdMaskStackPtr m_MaskStack
QxrdDataProcessorWPtr m_Processor
QSharedPointer< QxrdDataProcessor > QxrdDataProcessorPtr
void deleteMasks(QModelIndexList sel)
void orMasks(QModelIndexList sel)
void disableMasks(QModelIndexList sel)
void enableMasks(QModelIndexList sel)
The documentation for this class was generated from the following files: