39    setWindowTitle(
"Movement Options");
 
   41    QGridLayout *mainLayout = 
new QGridLayout;
 
   42    setLayout(mainLayout);
 
   46    QString showMovementWhatsThis =
 
   47        tr(
"Check or uncheck to draw or clear the movement arrows");
 
   48    QLabel *showMovementLabel = 
new QLabel(
"&Show Movement");
 
   49    showMovementLabel->setWhatsThis(showMovementWhatsThis);
 
   50    mainLayout->addWidget(showMovementLabel, row, 0);
 
   60    QString colorSourceWhatsThis =
 
   61        tr(
"Select criteria for arrow color");
 
   62    QLabel *colorSourceLabel = 
new QLabel(
"&Color Criteria");
 
   63    colorSourceLabel->setWhatsThis(colorSourceWhatsThis);
 
   64    mainLayout->addWidget(colorSourceLabel, row, 0, 1, 1);
 
   81    QString brightestMeasureCountValueWhatsThis =
 
   82        tr(
"Measure count of brightest color. Points with this measure count or greater will be " 
   83           "colored the brightest.");
 
   98    QString brightestResidualMagnitudeValueWhatsThis =
 
   99        tr(
"Residual magnitude of brightest color. Points with this maximum residual magnitude or " 
  100           "greater will be colored the brightest.");
 
  115    mainLayout->setRowMinimumHeight(row, 10);
 
  118    QHBoxLayout *buttonsAreaLayout = 
new QHBoxLayout;
 
  119    mainLayout->addLayout(buttonsAreaLayout, row, 0, 1, 2, Qt::AlignRight);
 
  121    buttonsAreaLayout->addStretch();
 
  128            this, SLOT(accept()));
 
  137    QPushButton *cancelButton = 
new QPushButton(
"&Cancel");
 
  138    cancelButton->setIcon(QIcon::fromTheme(
"dialog-cancel"));
 
  139    connect(cancelButton, SIGNAL(clicked()),
 
  140            this, SLOT(reject()));
 
  141    buttonsAreaLayout->addWidget(cancelButton);
 
 
  213    bool comboSelectedMeasureCount =
 
  216    bool movementIsMeasureCnt = movementEnabled && comboSelectedMeasureCount;
 
  220    bool comboSelectedResidualMagnitude =
 
  223    bool movementIsResidualMagnitude = movementEnabled && comboSelectedResidualMagnitude;
 
  227    bool comboSelectedNoColor = 
 
  231    bool validState = !movementEnabled ||
 
  232        comboSelectedNoColor ||
 
  233        (comboSelectedMeasureCount &&
 
  235        (comboSelectedResidualMagnitude &&