Skip to content

Commit

Permalink
Added preview plot of transmission curve
Browse files Browse the repository at this point in the history
Refs #11072
  • Loading branch information
DanNixon committed Feb 17, 2015
1 parent 3ce33ee commit 45204c8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>550</width>
<height>450</height>
<height>570</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -232,23 +232,23 @@
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QWidget" name="ppTransmission" native="true">
<widget class="MantidQt::MantidWidgets::PreviewPlot" name="ppTransmission" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="canvasColor" stdset="0">
<property name="showLegend" stdset="0">
<bool>false</bool>
</property>
<property name="canvasColour" stdset="0">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="showLegend" stdset="0">
<bool>true</bool>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -295,6 +295,26 @@
</layout>
</widget>
</widget>
<customwidgets>
<customwidget>
<class>MantidQt::MantidWidgets::PreviewPlot</class>
<extends>QWidget</extends>
<header>MantidQtMantidWidgets/PreviewPlot.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>cbBinningType</tabstop>
<tabstop>spSingleLow</tabstop>
<tabstop>spSingleWidth</tabstop>
<tabstop>spSingleHigh</tabstop>
<tabstop>leMultiple</tabstop>
<tabstop>leChemicalFormula</tabstop>
<tabstop>spNumberDensity</tabstop>
<tabstop>spThickness</tabstop>
<tabstop>twResults</tabstop>
<tabstop>pbCalculate</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
Expand Down
Expand Up @@ -198,5 +198,7 @@ void SampleTransmission::algorithmComplete(bool error)

m_uiForm.twResults->resizeColumnToContents(0);

//TODO: Preview plot
// Plot transmission curve on preview plot
m_uiForm.ppTransmission->addSpectrum("Transmission", "CalculatedSampleTransmission", 0);
m_uiForm.ppTransmission->resizeX();
}
@@ -1,5 +1,5 @@
Data Comparison
===============
Sample Transmission Calculator
==============================

.. contents:: Table of Contents
:local:
Expand Down

0 comments on commit 45204c8

Please sign in to comment.