2 #include "ui_qxrdmaskdialog.h"
17 printf(
"QxrdMaskDialog::QxrdMaskDialog(%p)\n",
this);
49 proc -> prop_MaskMinimumValue() -> linkTo(m_MaskMinimum);
50 proc -> prop_MaskMaximumValue() -> linkTo(m_MaskMaximum);
51 proc -> prop_MaskCircleRadius() -> linkTo(m_MaskCircleRadius);
52 proc -> prop_MaskSetPixels() -> linkTo(m_MaskSetPixels);
59 m_MaskStackView -> setMaskStack(
m_Masks);
61 m_MaskStackView -> setMaskDialog(
this);
68 printf(
"QxrdMaskDialog::~QxrdMaskDialog(%p)\n",
this);
74 QDockWidget::changeEvent(e);
76 case QEvent::LanguageChange:
93 int nmasks = m->size();
95 for (
int i=0; i<nmasks; i++) {
99 actions.addAction(tr(
"%1: %2").arg(lvl).arg(p->get_Title()))->setData(i);
104 QAction *selected = actions.exec(QCursor::pos());
107 return selected->data().toInt();
122 proc->hideMaskAllStack(n);
123 proc->statusMessage(
"Mask Stack Hide All");
136 proc->showMaskAllStack(n);
137 proc->statusMessage(
"Mask Stack Show All");
150 proc->hideMaskRangeStack(n);
151 proc->statusMessage(
"Mask Stack Hide In Range");
164 proc->showMaskRangeStack(n);
165 proc->statusMessage(
"Mask Stack Show In Range");
200 proc->invertMaskStack(n);
201 proc->statusMessage(
"Mask Stack Invert");
214 proc->growMaskStack(n);
215 proc->statusMessage(
"Mask Stack Invert");
228 proc->shrinkMaskStack(n);
229 proc->statusMessage(
"Mask Stack Invert");
242 proc->andMaskStack(n);
243 proc->statusMessage(
"Mask Stack AND");
256 proc->orMaskStack(n);
257 proc->statusMessage(
"Mask Stack OR");
270 proc->xorMaskStack(n);
271 proc->statusMessage(
"Mask Stack XOR");
284 proc->andNotMaskStack(n);
285 proc->statusMessage(
"Mask Stack AND NOT");
298 proc->orNotMaskStack(n);
299 proc->statusMessage(
"Mask Stack OR NOT");
312 proc->xorNotMaskStack(n);
313 proc->statusMessage(
"Mask Stack XOR NOT");
326 proc->exchangeMaskStack(n);
327 proc->statusMessage(
"Mask Stack Exchanged");
340 proc->rollMaskStack(n);
350 proc->rollMaskStack(1);
351 proc->statusMessage(
"Mask Stack Rolled Up");
360 proc->rollMaskStack(-1);
361 proc->statusMessage(
"Mask Stack Rolled Down");
370 proc->clearMaskStack();
371 proc->statusMessage(
"Mask Stack Cleared");
380 proc->clearMaskStackTop();
381 proc->statusMessage(
"Top of Mask Stack Cleared");
390 proc->pushMaskStack();
391 proc->statusMessage(
"Mask Pushed");
400 proc->newMaskStack();
401 proc->statusMessage(
"New Mask");
410 proc->statusMessage(
"Undo Not Implemented");
void changeEvent(QEvent *e)
QWeakPointer< QxrdDataProcessor > QxrdDataProcessorWPtr
qint64 qcepDebug(int cond)
QxrdMaskDialog(QxrdDataProcessorWPtr procw, QWidget *parent=0)
QSharedPointer< QxrdDataProcessor > QxrdDataProcessorPtr
int maskStackSelectPopup()
QxrdDataProcessorWPtr m_Processor
QxrdMaskStackWPtr m_Masks
static QString stackLevelName(int n)
QxrdMaskStackModelPtr m_MaskStackModel
QSharedPointer< QxrdMaskStackModel > QxrdMaskStackModelPtr
QSharedPointer< QcepMaskData > QcepMaskDataPtr