1 #include "MosaicControlNetToolMovementConfigDialog.h" 9 #include <QDoubleValidator> 10 #include <QGridLayout> 13 #include <QMessageBox> 14 #include <QPushButton> 16 #include <QElapsedTimer> 22 #include "MosaicControlNetTool.h" 23 #include "MosaicSceneWidget.h" 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);
190 if (
m_tool->maxMovementColorMeasureCount() != -1) {
195 if (
m_tool->maxMovementColorResidualMagnitude() !=
Null) {
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 &&
const double Null
Value for an Isis Null pixel.
int toInt(const QString &string)
Global function to convert from a string to an integer.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
double toDouble(const QString &string)
Global function to convert from a string to a double.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Namespace for ISIS/Bullet specific routines.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.