Skip to content

Commit

Permalink
Extend SANS interface to display MASK/LINE option
Browse files Browse the repository at this point in the history
  • Loading branch information
gesnerpassos committed Jul 26, 2013
1 parent c0c1ab0 commit 1f91f3e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Code/Mantid/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,13 +1061,20 @@ void SANSRunWindow::updateMaskTable()
"print i.ReductionSingleton().mask.arm_width");
QString arm_angle = runReduceScriptFunction(
"print i.ReductionSingleton().mask.arm_angle");
QString arm_x = runReduceScriptFunction(
"print i.ReductionSingleton().mask.arm_x");
QString arm_y = runReduceScriptFunction(
"print i.ReductionSingleton().mask.arm_y");
if ( arm_width != "None" && arm_angle != "None" )
{
int row = m_uiForm.mask_table->rowCount();
m_uiForm.mask_table->insertRow(row);
m_uiForm.mask_table->setItem(row, 0, new QTableWidgetItem("Arm"));
m_uiForm.mask_table->setItem(row, 1, new QTableWidgetItem(reardet_name));
m_uiForm.mask_table->setItem(row, 2, new QTableWidgetItem("LINE " + arm_width + " " + arm_angle));
if (arm_x != "None" && arm_y != "None")
m_uiForm.mask_table->setItem(row, 2, new QTableWidgetItem("LINE " + arm_width + " " + arm_angle + " " + arm_x +" " + arm_y));
else
m_uiForm.mask_table->setItem(row, 2, new QTableWidgetItem("LINE " + arm_width + " " + arm_angle));
}
}

Expand Down

0 comments on commit 1f91f3e

Please sign in to comment.