Skip to content

Commit

Permalink
Disable plot guess for diffsphere
Browse files Browse the repository at this point in the history
Refs #11552
  • Loading branch information
DanNixon authored and quantumsteve committed Apr 16, 2015
1 parent 5e30aba commit 5eec453
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -743,27 +743,35 @@ namespace IDA

auto hwhmRangeSelector = m_uiForm.ppPlot->getRangeSelector("ConvFitHWHM");

//TODO
switch ( index )
{
case 0:
hwhmRangeSelector->setVisible(false);
m_uiForm.ckPlotGuess->setEnabled(true);
break;
case 1:
m_cfTree->addProperty(m_properties["Lorentzian1"]);
hwhmRangeSelector->setVisible(true);
m_uiForm.ckPlotGuess->setEnabled(true);
break;
case 2:
m_cfTree->addProperty(m_properties["Lorentzian1"]);
m_cfTree->addProperty(m_properties["Lorentzian2"]);
hwhmRangeSelector->setVisible(true);
m_uiForm.ckPlotGuess->setEnabled(true);
break;
case 3:
m_cfTree->addProperty(m_properties["DiffSphere"]);
hwhmRangeSelector->setVisible(false);
m_uiForm.ckPlotGuess->setChecked(false);
m_uiForm.ckPlotGuess->setEnabled(false);
break;
case 4:
m_cfTree->addProperty(m_properties["DiffRotDiscreteCircle"]);
hwhmRangeSelector->setVisible(false);
m_uiForm.ckPlotGuess->setChecked(false);
m_uiForm.ckPlotGuess->setEnabled(false);
break;
}

Expand Down

0 comments on commit 5eec453

Please sign in to comment.