Loading isis/src/qisis/objs/ControlMeasureEditWidget/ControlMeasureEditWidget.cpp +13 −14 Original line number Diff line number Diff line Loading @@ -612,9 +612,11 @@ namespace Isis { m_saveMeasure->setShortcut(Qt::Key_M); m_saveDefaultPalette = m_saveMeasure->palette(); // Blink extension allows all measures in the current control point to be blinked and gives // user ability to select which measures and the order for blinking m_blinkExtension = new QWidget; QPushButton *blinkButton = new QPushButton("Blink"); QPushButton *blinkButton = new QPushButton("Advanced Blink"); blinkButton->setCheckable(true); connect(blinkButton, &QAbstractButton::toggled, m_blinkExtension, &QWidget::setVisible); connect(blinkButton, SIGNAL(clicked()), this, SLOT(showBlinkExtension())); Loading Loading @@ -1706,16 +1708,6 @@ namespace Isis { } // TODO IPCE 2016-06-13 ALL CODE BELOW HERE IS TEMPORARY PROTOTYPE CODE NEEDS MUCH CLEANUP, LEAKY MEMORY, ETC void ControlMeasureEditWidget::setPoint(ControlPoint *editPoint, SerialNumberList *snList) { m_editPoint = editPoint; Loading Loading @@ -1747,12 +1739,13 @@ namespace Isis { } //! Slot to start blink function //! Slot to start blink function for advanced blink functionality void ControlMeasureEditWidget::blinkStartRight() { if ( m_timerOnRight ) return; // Set up blink list. Create ChipViewport for each cube active in the ListWidget // Set up blink list. Create ChipViewport for each cube active in the ListWidget, using the // correct zoom and geom selections QList<QListWidgetItem *> selected = m_blinkListWidget->selectedItems(); if (selected.size() < 1) { QMessageBox::information((QWidget *)parent(), "Error", "No files selected for blinking."); Loading @@ -1770,6 +1763,12 @@ namespace Isis { blinkChip->Load(*blinkCube); ChipViewport *blinkViewport = new ChipViewport(VIEWSIZE, VIEWSIZE, this); blinkViewport->setChip(blinkChip, blinkCube); if (m_geomIt) { blinkViewport->geomChip(m_leftChip, m_leftCube); } else { blinkViewport->zoom(m_leftView->zoomFactor()); } m_blinkChipViewportListRight.append(blinkViewport); } Loading isis/src/qisis/objs/ControlMeasureEditWidget/ControlMeasureEditWidget.h +2 −0 Original line number Diff line number Diff line Loading @@ -156,6 +156,8 @@ namespace Isis { * Application::User. * @history 2018-09-26 Tracie Sucharski - Added public method to allow change measure tack * points. * @history 2018-10-10 Tracie Sucharski - Fixed blink extension to use geom if selected and * correct zoom factor. * * @todo Re-think design of the change made on 2012-07-26. The linking was put into * ::updateLeftPositionLabel because it was the fastest solution, but Loading Loading
isis/src/qisis/objs/ControlMeasureEditWidget/ControlMeasureEditWidget.cpp +13 −14 Original line number Diff line number Diff line Loading @@ -612,9 +612,11 @@ namespace Isis { m_saveMeasure->setShortcut(Qt::Key_M); m_saveDefaultPalette = m_saveMeasure->palette(); // Blink extension allows all measures in the current control point to be blinked and gives // user ability to select which measures and the order for blinking m_blinkExtension = new QWidget; QPushButton *blinkButton = new QPushButton("Blink"); QPushButton *blinkButton = new QPushButton("Advanced Blink"); blinkButton->setCheckable(true); connect(blinkButton, &QAbstractButton::toggled, m_blinkExtension, &QWidget::setVisible); connect(blinkButton, SIGNAL(clicked()), this, SLOT(showBlinkExtension())); Loading Loading @@ -1706,16 +1708,6 @@ namespace Isis { } // TODO IPCE 2016-06-13 ALL CODE BELOW HERE IS TEMPORARY PROTOTYPE CODE NEEDS MUCH CLEANUP, LEAKY MEMORY, ETC void ControlMeasureEditWidget::setPoint(ControlPoint *editPoint, SerialNumberList *snList) { m_editPoint = editPoint; Loading Loading @@ -1747,12 +1739,13 @@ namespace Isis { } //! Slot to start blink function //! Slot to start blink function for advanced blink functionality void ControlMeasureEditWidget::blinkStartRight() { if ( m_timerOnRight ) return; // Set up blink list. Create ChipViewport for each cube active in the ListWidget // Set up blink list. Create ChipViewport for each cube active in the ListWidget, using the // correct zoom and geom selections QList<QListWidgetItem *> selected = m_blinkListWidget->selectedItems(); if (selected.size() < 1) { QMessageBox::information((QWidget *)parent(), "Error", "No files selected for blinking."); Loading @@ -1770,6 +1763,12 @@ namespace Isis { blinkChip->Load(*blinkCube); ChipViewport *blinkViewport = new ChipViewport(VIEWSIZE, VIEWSIZE, this); blinkViewport->setChip(blinkChip, blinkCube); if (m_geomIt) { blinkViewport->geomChip(m_leftChip, m_leftCube); } else { blinkViewport->zoom(m_leftView->zoomFactor()); } m_blinkChipViewportListRight.append(blinkViewport); } Loading
isis/src/qisis/objs/ControlMeasureEditWidget/ControlMeasureEditWidget.h +2 −0 Original line number Diff line number Diff line Loading @@ -156,6 +156,8 @@ namespace Isis { * Application::User. * @history 2018-09-26 Tracie Sucharski - Added public method to allow change measure tack * points. * @history 2018-10-10 Tracie Sucharski - Fixed blink extension to use geom if selected and * correct zoom factor. * * @todo Re-think design of the change made on 2012-07-26. The linking was put into * ::updateLeftPositionLabel because it was the fastest solution, but Loading