isis/src/qisis/objs/MosaicSceneWidget/MosaicGridTool.cpp
void MosaicGridTool::onToolOpen(bool check) {
    if (check && m_shouldCheckBoxes) {
      QSettings settings(
          FileName(QString("$HOME/.Isis/%1/mosaicSceneGridTool.config")
              .arg(QApplication::applicationName())).expanded(),
          QSettings::NativeFormat);

      bool drawAuto = settings.value("autoGrid", true).toBool();
      m_autoGridCheckBox->setChecked(drawAuto);

      // This is necessary to fully initialize properly... the auto increments should still be
      //   the default increments. This will also cause the lat/lon extents to be properly computed.
      if (!drawAuto) {
        autoGrid(true);
        autoGrid(false);
      }

      m_autoGridCheckBox->setEnabled(true);
      m_autoGridLabel->setEnabled(true);
      m_drawGridCheckBox->setChecked(true);
      m_shouldCheckBoxes = false;
    }
  }
/**
   * Checks both checkboxes when the tool is first opened. Allows the grid to remain
   *   when the tool is not active.
   *
   * @param check True when the tool is activated
   */
Checks both checkboxes when the tool is first opened. Allows the grid to remain
when the tool is not active.

@param check True when the tool is activated
Checks both checkboxes when the tool is first opened . Allows the grid to remain when the tool is not active . @param check True when the tool is activated
void MosaicGridTool::onToolOpen(bool check) {
    if (check && m_shouldCheckBoxes) {
      QSettings settings(
          FileName(QString("$HOME/.Isis/%1/mosaicSceneGridTool.config")
              .arg(QApplication::applicationName())).expanded(),
          QSettings::NativeFormat);
      bool drawAuto = settings.value("autoGrid", true).toBool();
      m_autoGridCheckBox->setChecked(drawAuto);
      if (!drawAuto) {
        autoGrid(true);
        autoGrid(false);
      }
      m_autoGridCheckBox->setEnabled(true);
      m_autoGridLabel->setEnabled(true);
      m_drawGridCheckBox->setChecked(true);
      m_shouldCheckBoxes = false;
    }
  }
void MosaicGridTool :: onToolOpen ( bool check ) { if ( check && m_shouldCheckBoxes ) { QSettings settings ( FileName ( QString ( " " ) . arg ( QApplication :: applicationName ( ) ) ) . expanded ( ) , QSettings :: NativeFormat ) ; bool drawAuto = settings . value ( " " , true ) . toBool ( ) ; m_autoGridCheckBox -> setChecked ( drawAuto ) ; if ( ! drawAuto ) { autoGrid ( true ) ; autoGrid ( false ) ; } m_autoGridCheckBox -> setEnabled ( true ) ; m_autoGridLabel -> setEnabled ( true ) ; m_drawGridCheckBox -> setChecked ( true ) ; m_shouldCheckBoxes = false ; } }
Checks both checkboxes when the tool is first opened.
Checks both checkboxes when the tool is first opened .
// This is necessary to fully initialize properly... the auto increments should still be //   the default increments. This will also cause the lat/lon extents to be properly computed.