From db201be17e65cdaaeaa24e57a83d1c0a37e05513 Mon Sep 17 00:00:00 2001 From: Wenduo Zhou <zhouw@ornl.gov> Date: Mon, 18 Mar 2013 10:47:57 -0400 Subject: [PATCH] Modify GUI setup. Refs #6555. --- .../diffraction/diffraction_run_setup.py | 6 +- .../ui/diffraction/diffraction_adv_setup.ui | 915 ++++++--- .../ui/diffraction/diffraction_run_setup.ui | 1804 +++++++++-------- .../diffraction/ui_diffraction_adv_setup.py | 366 +++- .../diffraction/ui_diffraction_run_setup.py | 638 +++--- 5 files changed, 2182 insertions(+), 1547 deletions(-) diff --git a/Code/Mantid/scripts/Interface/reduction_gui/widgets/diffraction/diffraction_run_setup.py b/Code/Mantid/scripts/Interface/reduction_gui/widgets/diffraction/diffraction_run_setup.py index 8d685057692..71f4c54a504 100644 --- a/Code/Mantid/scripts/Interface/reduction_gui/widgets/diffraction/diffraction_run_setup.py +++ b/Code/Mantid/scripts/Interface/reduction_gui/widgets/diffraction/diffraction_run_setup.py @@ -75,9 +75,9 @@ class RunSetupWidget(BaseWidget): iv1.setBottom(0) self._content.vanrun_edit.setValidator(iv1) - iv2 = QtGui.QIntValidator(self._content.vannoiserun_edit) - iv2.setBottom(0) - self._content.vannoiserun_edit.setValidator(iv2) + # iv2 = QtGui.QIntValidator(self._content.vannoiserun_edit) + # iv2.setBottom(0) + # self._content.vannoiserun_edit.setValidator(iv2) iv3 = QtGui.QIntValidator(self._content.vanbkgdrun_edit) iv3.setBottom(0) diff --git a/Code/Mantid/scripts/Interface/ui/diffraction/diffraction_adv_setup.ui b/Code/Mantid/scripts/Interface/ui/diffraction/diffraction_adv_setup.ui index f98faafe5c7..eddf0385063 100644 --- a/Code/Mantid/scripts/Interface/ui/diffraction/diffraction_adv_setup.ui +++ b/Code/Mantid/scripts/Interface/ui/diffraction/diffraction_adv_setup.ui @@ -6,12 +6,12 @@ <rect> <x>0</x> <y>0</y> - <width>879</width> - <height>556</height> + <width>1026</width> + <height>1273</height> </rect> </property> <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> @@ -19,345 +19,622 @@ <property name="windowTitle"> <string>Frame</string> </property> + <property name="toolTip"> + <string>Click to browse.</string> + </property> <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> + <enum>QFrame::NoFrame</enum> </property> <property name="frameShadow"> - <enum>QFrame::Raised</enum> + <enum>QFrame::Plain</enum> + </property> + <property name="lineWidth"> + <number>8</number> </property> - <layout class="QVBoxLayout" name="verticalLayout_3"> + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="margin"> + <number>0</number> + </property> <item> - <widget class="QGroupBox" name="emptycan_gbox"> + <widget class="QScrollArea" name="scrollArea"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="title"> - <string/> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Plain</enum> </property> - <widget class="QFrame" name="frame_2"> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="widgetResizable"> + <bool>true</bool> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + <widget class="QWidget" name="scrollAreaWidgetContents"> <property name="geometry"> <rect> - <x>10</x> + <x>0</x> <y>0</y> - <width>741</width> - <height>241</height> + <width>1026</width> + <height>1273</height> </rect> </property> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <widget class="QLineEdit" name="lowres_edit"> - <property name="geometry"> - <rect> - <x>10</x> - <y>90</y> - <width>111</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLabel" name="label_6"> - <property name="geometry"> - <rect> - <x>10</x> - <y>140</y> - <width>142</width> - <height>39</height> - </rect> - </property> - <property name="text"> - <string>Maximum Chunk Size</string> - </property> - </widget> - <widget class="QLabel" name="label_5"> - <property name="geometry"> - <rect> - <x>540</x> - <y>50</y> - <width>192</width> - <height>39</height> - </rect> - </property> - <property name="text"> - <string>Remove Prompt Pulse Width</string> - </property> - </widget> - <widget class="QLabel" name="label_4"> - <property name="geometry"> - <rect> - <x>320</x> - <y>50</y> - <width>208</width> - <height>39</height> - </rect> - </property> - <property name="text"> - <string>Minimum Cropped Wavelength</string> - </property> - </widget> - <widget class="QLineEdit" name="unwrap_edit"> - <property name="geometry"> - <rect> - <x>150</x> - <y>90</y> - <width>101</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLineEdit" name="cropwavelengthmin_edit"> - <property name="geometry"> - <rect> - <x>320</x> - <y>90</y> - <width>131</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QCheckBox" name="filterbadpulses_chkbox"> - <property name="geometry"> - <rect> - <x>550</x> - <y>180</y> - <width>141</width> - <height>22</height> - </rect> - </property> - <property name="text"> - <string>Filter Bad Pulses</string> - </property> - </widget> - <widget class="QLabel" name="label_3"> - <property name="geometry"> - <rect> - <x>10</x> - <y>50</y> - <width>131</width> - <height>39</height> - </rect> - </property> - <property name="text"> - <string>Low Resolution Ref</string> - </property> - </widget> - <widget class="QLineEdit" name="removepromptwidth_edit"> - <property name="geometry"> - <rect> - <x>540</x> - <y>90</y> - <width>151</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLabel" name="label_2"> - <property name="geometry"> - <rect> - <x>160</x> - <y>50</y> - <width>80</width> - <height>39</height> - </rect> - </property> - <property name="text"> - <string>Unwrap Ref</string> - </property> - </widget> - <widget class="QLineEdit" name="maxchunksize_edit"> - <property name="geometry"> - <rect> - <x>10</x> - <y>180</y> - <width>161</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QComboBox" name="pushdatapos_combo"> - <property name="geometry"> - <rect> - <x>320</x> - <y>180</y> - <width>131</width> - <height>27</height> - </rect> - </property> + <layout class="QVBoxLayout" name="verticalLayout_4"> <item> - <property name="text"> - <string>None</string> - </property> + <layout class="QHBoxLayout" name="horizontalLayout_13"> + <item> + <widget class="QLabel" name="instr_name_label"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>300</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>100</width> + <height>30</height> + </size> + </property> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Advanced Setup of SNS Powder Reduction</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_19"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QCommandLinkButton" name="help_button"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>73</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>73</width> + <height>33</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="text"> + <string>Help</string> + </property> + <property name="iconSize"> + <size> + <width>15</width> + <height>15</height> + </size> + </property> + </widget> + </item> + </layout> </item> <item> - <property name="text"> - <string>ResetToZero</string> - </property> + <widget class="QGroupBox" name="reduction_options_group"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="title"> + <string>Advanced Setup</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_6"> + <item> + <widget class="QLabel" name="label_4"> + <property name="minimumSize"> + <size> + <width>160</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>160</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>File Extension</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="extension_combo"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>400</width> + <height>16777215</height> + </size> + </property> + <item> + <property name="text"> + <string>_event.nxs</string> + </property> + </item> + <item> + <property name="text"> + <string>_histo.nxs</string> + </property> + </item> + <item> + <property name="text"> + <string>_runinfo.xml</string> + </property> + </item> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_13"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QCheckBox" name="preserveevents_checkbox"> + <property name="maximumSize"> + <size> + <width>160</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Check to calculate the absolute scale factor using the direct beam method.</string> + </property> + <property name="statusTip"> + <string>Check to calculate the absolute scale factor using the direct beam method.</string> + </property> + <property name="text"> + <string>Preserve Events</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_20"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_8"> + <item> + <widget class="QLabel" name="label_2"> + <property name="minimumSize"> + <size> + <width>160</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>120</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>Push Data Positive</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="pushdatapos_combo"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>400</width> + <height>16777215</height> + </size> + </property> + <item> + <property name="text"> + <string>None</string> + </property> + </item> + <item> + <property name="text"> + <string>ResetToZero</string> + </property> + </item> + <item> + <property name="text"> + <string>AddMinimum</string> + </property> + </item> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_10"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QCheckBox" name="filterbadpulses_chkbox"> + <property name="text"> + <string>Filter Bad Pulses</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_8"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="2"> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="0" column="4"> + <widget class="QLineEdit" name="unwrap_edit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="0" column="0"> + <widget class="QLabel" name="label_3"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Low Resolution Ref</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QLineEdit" name="lowres_edit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="0" column="3"> + <widget class="QLabel" name="label_5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Unwrap Ref</string> + </property> + </widget> + </item> + <item row="0" column="5"> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_6"> + <property name="text"> + <string>Minumum Cropped Wavelength</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLineEdit" name="cropwavelengthmin_edit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="1" column="4"> + <widget class="QLineEdit" name="removepromptwidth_edit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QLabel" name="label_10"> + <property name="text"> + <string>Remove Prompt Pulse Width</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_7"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Maximum Chunk Size</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="maxchunksize_edit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>300</width> + <height>0</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="toolTip"> + <string>Enter a valid file path to be used for the dark current data.</string> + </property> + <property name="statusTip"> + <string>Enter a valid file path to be used for the dark current data.</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> </item> <item> - <property name="text"> - <string>AddMinimum</string> - </property> + <widget class="QGroupBox" name="mask_groupbox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Strip Vanadium Peaks</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QLabel" name="mask_help_label"> + <property name="font"> + <font> + <family>Bitstream Charter</family> + <italic>true</italic> + </font> + </property> + <property name="text"> + <string>The following input parameters are used to control the algorithm to strip vanadium peaks. +</string> + </property> + </widget> + </item> + <item> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="3"> + <widget class="QLabel" name="label_7"> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QLineEdit" name="vanpeakfwhm_edit"/> + </item> + <item row="1" column="2"> + <widget class="QLineEdit" name="vansmoothpar_edit"/> + </item> + <item row="0" column="5"> + <widget class="QLabel" name="label_12"> + <property name="text"> + <string>Peak Tolerance</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QLabel" name="label_11"> + <property name="text"> + <string>Peak FWHM</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLabel" name="label_8"> + <property name="text"> + <string>Peak Smooth Parameters</string> + </property> + </widget> + </item> + <item row="0" column="4"> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="0" column="6"> + <widget class="QLineEdit" name="vanpeaktol_edit"/> + </item> + <item row="0" column="0"> + <widget class="QCheckBox" name="stripvanpeaks_chkbox"> + <property name="text"> + <string>Strip Vanadium Peaks</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> </item> - </widget> - <widget class="QLabel" name="label_11"> - <property name="geometry"> - <rect> - <x>320</x> - <y>150</y> - <width>141</width> - <height>17</height> - </rect> - </property> - <property name="text"> - <string>Push Data Postive</string> - </property> - </widget> - <widget class="QLabel" name="label_10"> - <property name="geometry"> - <rect> - <x>10</x> - <y>10</y> - <width>131</width> - <height>21</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>13</pointsize> - <weight>75</weight> - <italic>true</italic> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Advanced Setup</string> - </property> - </widget> - </widget> - <widget class="QFrame" name="frame_3"> - <property name="geometry"> - <rect> - <x>10</x> - <y>280</y> - <width>741</width> - <height>201</height> - </rect> - </property> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <widget class="QLabel" name="label_7"> - <property name="geometry"> - <rect> - <x>320</x> - <y>80</y> - <width>169</width> - <height>39</height> - </rect> - </property> - <property name="text"> - <string>Peak Smooth Parameters</string> - </property> - </widget> - <widget class="QLabel" name="label_8"> - <property name="geometry"> - <rect> - <x>180</x> - <y>80</y> - <width>102</width> - <height>39</height> - </rect> - </property> - <property name="text"> - <string>Peak Tolerance</string> - </property> - </widget> - <widget class="QLabel" name="label_9"> - <property name="geometry"> - <rect> - <x>50</x> - <y>80</y> - <width>81</width> - <height>39</height> - </rect> - </property> - <property name="text"> - <string>Peak FWHM</string> - </property> - </widget> - <widget class="QLineEdit" name="vanpeakfwhm_edit"> - <property name="geometry"> - <rect> - <x>50</x> - <y>130</y> - <width>91</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLineEdit" name="vanpeaktol_edit"> - <property name="geometry"> - <rect> - <x>180</x> - <y>130</y> - <width>101</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QCheckBox" name="stripvanpeaks_chkbox"> - <property name="geometry"> - <rect> - <x>320</x> - <y>20</y> - <width>181</width> - <height>22</height> - </rect> - </property> - <property name="text"> - <string>Strip Vanadium Peaks</string> - </property> - </widget> - <widget class="QLineEdit" name="vansmoothpar_edit"> - <property name="geometry"> - <rect> - <x>320</x> - <y>130</y> - <width>201</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLabel" name="label"> - <property name="geometry"> - <rect> - <x>10</x> - <y>10</y> - <width>201</width> - <height>41</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>14</pointsize> - <weight>75</weight> - <italic>true</italic> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Strip Vanadium Peaks</string> - </property> - </widget> + </layout> </widget> </widget> </item> diff --git a/Code/Mantid/scripts/Interface/ui/diffraction/diffraction_run_setup.ui b/Code/Mantid/scripts/Interface/ui/diffraction/diffraction_run_setup.ui index a354ff73c38..844fa626ee0 100644 --- a/Code/Mantid/scripts/Interface/ui/diffraction/diffraction_run_setup.ui +++ b/Code/Mantid/scripts/Interface/ui/diffraction/diffraction_run_setup.ui @@ -6,872 +6,984 @@ <rect> <x>0</x> <y>0</y> - <width>949</width> - <height>814</height> + <width>1026</width> + <height>1273</height> </rect> </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="windowTitle"> <string>Frame</string> </property> + <property name="toolTip"> + <string>Click to browse.</string> + </property> <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> + <enum>QFrame::NoFrame</enum> </property> <property name="frameShadow"> - <enum>QFrame::Raised</enum> + <enum>QFrame::Plain</enum> + </property> + <property name="lineWidth"> + <number>8</number> </property> - <layout class="QVBoxLayout" name="verticalLayout_3"> + <layout class="QVBoxLayout" name="verticalLayout"> + <property name="margin"> + <number>0</number> + </property> <item> - <widget class="QFrame" name="frame"> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> + <widget class="QScrollArea" name="scrollArea"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> </property> - <widget class="QLabel" name="label_4"> - <property name="geometry"> - <rect> - <x>20</x> - <y>20</y> - <width>88</width> - <height>31</height> - </rect> - </property> - <property name="text"> - <string>Run numbers</string> - </property> - </widget> - <widget class="QLineEdit" name="runnumbers_edit"> - <property name="geometry"> - <rect> - <x>150</x> - <y>20</y> - <width>721</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLabel" name="label_5"> - <property name="geometry"> - <rect> - <x>20</x> - <y>80</y> - <width>94</width> - <height>16</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>File Extension</string> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - <widget class="QComboBox" name="extension_combo"> - <property name="geometry"> - <rect> - <x>150</x> - <y>80</y> - <width>117</width> - <height>27</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="baseSize"> - <size> - <width>200</width> - <height>0</height> - </size> - </property> - <item> - <property name="text"> - <string>_event.nxs</string> - </property> - </item> - <item> - <property name="text"> - <string>_histo.nxs</string> - </property> - </item> - <item> - <property name="text"> - <string>_runinfo.xml</string> - </property> - </item> - </widget> - <widget class="QLabel" name="label"> - <property name="geometry"> - <rect> - <x>20</x> - <y>130</y> - <width>134</width> - <height>21</height> - </rect> - </property> - <property name="text"> - <string>Calibration File </string> - </property> - </widget> - <widget class="QLineEdit" name="calfile_edit"> - <property name="geometry"> - <rect> - <x>150</x> - <y>130</y> - <width>601</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QPushButton" name="calfile_browse"> - <property name="geometry"> - <rect> - <x>780</x> - <y>130</y> - <width>85</width> - <height>27</height> - </rect> - </property> - <property name="text"> - <string>Browse</string> - </property> - </widget> - <widget class="QCheckBox" name="preserveevents_checkbox"> - <property name="geometry"> - <rect> - <x>350</x> - <y>80</y> - <width>137</width> - <height>22</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Preserve Events</string> - </property> - </widget> - <widget class="QCheckBox" name="sum_checkbox"> - <property name="geometry"> - <rect> - <x>590</x> - <y>80</y> - <width>59</width> - <height>22</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Sum</string> - </property> - </widget> - </widget> - </item> - <item> - <widget class="QFrame" name="frame_2"> <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> + <enum>QFrame::NoFrame</enum> </property> <property name="frameShadow"> - <enum>QFrame::Raised</enum> + <enum>QFrame::Plain</enum> </property> - <widget class="QLabel" name="label_2"> - <property name="geometry"> - <rect> - <x>10</x> - <y>10</y> - <width>131</width> - <height>41</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> - <property name="text"> - <string>Characterization File</string> - </property> - </widget> - <widget class="QLineEdit" name="charfile_edit"> - <property name="geometry"> - <rect> - <x>150</x> - <y>20</y> - <width>601</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QPushButton" name="charfile_browse"> - <property name="geometry"> - <rect> - <x>780</x> - <y>20</y> - <width>85</width> - <height>27</height> - </rect> - </property> - <property name="text"> - <string>Browse</string> - </property> - </widget> - <widget class="QLineEdit" name="emptyrun_edit"> - <property name="geometry"> - <rect> - <x>180</x> - <y>100</y> - <width>113</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLineEdit" name="vanrun_edit"> - <property name="geometry"> - <rect> - <x>670</x> - <y>100</y> - <width>81</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLineEdit" name="vannoiserun_edit"> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="geometry"> - <rect> - <x>180</x> - <y>140</y> - <width>113</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLineEdit" name="vanbkgdrun_edit"> - <property name="geometry"> - <rect> - <x>670</x> - <y>140</y> - <width>81</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLabel" name="label_3"> - <property name="geometry"> - <rect> - <x>70</x> - <y>100</y> - <width>91</width> - <height>17</height> - </rect> - </property> - <property name="text"> - <string>Empty Run</string> - </property> - </widget> - <widget class="QLabel" name="label_10"> - <property name="geometry"> - <rect> - <x>20</x> - <y>140</y> - <width>141</width> - <height>17</height> - </rect> - </property> - <property name="text"> - <string>Vanadium Noise Run</string> - </property> - </widget> - <widget class="QLabel" name="label_11"> - <property name="geometry"> - <rect> - <x>560</x> - <y>100</y> - <width>101</width> - <height>20</height> - </rect> - </property> - <property name="text"> - <string>Vanadium Run</string> - </property> - </widget> - <widget class="QLabel" name="label_12"> - <property name="geometry"> - <rect> - <x>510</x> - <y>140</y> - <width>151</width> - <height>17</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - </font> - </property> - <property name="text"> - <string>Vanadium Background Run</string> - </property> - </widget> - <widget class="QCheckBox" name="disablevancorr_chkbox"> - <property name="geometry"> - <rect> - <x>760</x> - <y>100</y> - <width>151</width> - <height>31</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>10</pointsize> - <weight>50</weight> - <italic>false</italic> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>Disable Correction</string> - </property> - </widget> - <widget class="QLabel" name="label_16"> - <property name="geometry"> - <rect> - <x>350</x> - <y>70</y> - <width>201</width> - <height>17</height> - </rect> - </property> - <property name="text"> - <string>Override Characterization File </string> - </property> - </widget> - <widget class="Line" name="line_3"> - <property name="geometry"> - <rect> - <x>30</x> - <y>70</y> - <width>311</width> - <height>20</height> - </rect> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - <widget class="Line" name="line_4"> - <property name="geometry"> - <rect> - <x>570</x> - <y>70</y> - <width>311</width> - <height>20</height> - </rect> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - <widget class="QCheckBox" name="disablevanbkgdcorr_chkbox"> - <property name="geometry"> - <rect> - <x>760</x> - <y>140</y> - <width>151</width> - <height>31</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>10</pointsize> - <weight>50</weight> - <italic>false</italic> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>Disable Correction</string> - </property> - </widget> - <widget class="QCheckBox" name="disablebkgdcorr_chkbox"> - <property name="geometry"> - <rect> - <x>300</x> - <y>100</y> - <width>151</width> - <height>31</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>10</pointsize> - <weight>50</weight> - <italic>false</italic> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>Disable Correction</string> - </property> - </widget> - <widget class="Line" name="line_5"> - <property name="geometry"> - <rect> - <x>470</x> - <y>100</y> - <width>20</width> - <height>81</height> - </rect> - </property> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - </widget> - <zorder>label_2</zorder> - <zorder>charfile_edit</zorder> - <zorder>charfile_browse</zorder> - <zorder>emptyrun_edit</zorder> - <zorder>vanrun_edit</zorder> - <zorder>vannoiserun_edit</zorder> - <zorder>vanbkgdrun_edit</zorder> - <zorder>label_3</zorder> - <zorder>label_10</zorder> - <zorder>label_11</zorder> - <zorder>label_12</zorder> - <zorder>frame_3</zorder> - <zorder>frame_3</zorder> - <zorder>disablevancorr_chkbox</zorder> - <zorder>frame_3</zorder> - <zorder>label_16</zorder> - <zorder>line_3</zorder> - <zorder>line_4</zorder> - <zorder>disablevanbkgdcorr_chkbox</zorder> - <zorder>disablebkgdcorr_chkbox</zorder> - <zorder>line_5</zorder> - </widget> - </item> - <item> - <widget class="QFrame" name="frame_3"> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> + <property name="lineWidth"> + <number>0</number> </property> - <widget class="QLineEdit" name="binning_edit"> - <property name="geometry"> - <rect> - <x>160</x> - <y>50</y> - <width>111</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QCheckBox" name="binind_checkbox"> - <property name="geometry"> - <rect> - <x>360</x> - <y>50</y> - <width>135</width> - <height>22</height> - </rect> - </property> - <property name="text"> - <string>Bin In d-spacing</string> - </property> - </widget> - <widget class="QLabel" name="label_6"> - <property name="geometry"> - <rect> - <x>60</x> - <y>100</y> - <width>76</width> - <height>41</height> - </rect> - </property> - <property name="text"> - <string>ResampleX</string> - </property> - </widget> - <widget class="QLineEdit" name="resamplex_edit"> - <property name="geometry"> - <rect> - <x>160</x> - <y>110</y> - <width>111</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QComboBox" name="bintype_combo"> - <property name="geometry"> - <rect> - <x>360</x> - <y>110</y> - <width>171</width> - <height>27</height> - </rect> - </property> - <item> - <property name="text"> - <string>Linear Binning</string> - </property> - </item> - <item> - <property name="text"> - <string>logarithmic binning</string> - </property> - </item> - </widget> - <widget class="QLineEdit" name="lineEdit_5"> - <property name="geometry"> - <rect> - <x>730</x> - <y>50</y> - <width>113</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLineEdit" name="lineEdit_6"> - <property name="geometry"> - <rect> - <x>730</x> - <y>110</y> - <width>113</width> - <height>27</height> - </rect> - </property> - </widget> - <widget class="QLabel" name="label_13"> - <property name="geometry"> - <rect> - <x>650</x> - <y>50</y> - <width>66</width> - <height>17</height> - </rect> - </property> - <property name="text"> - <string>TOF Min</string> - </property> - </widget> - <widget class="QLabel" name="label_14"> - <property name="geometry"> - <rect> - <x>650</x> - <y>110</y> - <width>66</width> - <height>17</height> - </rect> - </property> - <property name="text"> - <string>TOF Max</string> - </property> - </widget> - <widget class="QLabel" name="label_15"> - <property name="geometry"> - <rect> - <x>80</x> - <y>50</y> - <width>66</width> - <height>17</height> - </rect> - </property> - <property name="text"> - <string>Binning</string> - </property> - </widget> - <widget class="QRadioButton" name="usebin_button"> - <property name="geometry"> - <rect> - <x>20</x> - <y>50</y> - <width>41</width> - <height>22</height> - </rect> - </property> - <property name="text"> - <string/> - </property> - </widget> - <widget class="QRadioButton" name="resamplex_button"> - <property name="geometry"> - <rect> - <x>20</x> - <y>110</y> - <width>41</width> - <height>22</height> - </rect> - </property> - <property name="text"> - <string/> - </property> - </widget> - <widget class="Line" name="line"> - <property name="geometry"> - <rect> - <x>290</x> - <y>10</y> - <width>20</width> - <height>171</height> - </rect> - </property> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - </widget> - <widget class="Line" name="line_2"> - <property name="geometry"> - <rect> - <x>570</x> - <y>10</y> - <width>20</width> - <height>171</height> - </rect> - </property> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - </widget> - <zorder>binning_edit</zorder> - <zorder>binind_checkbox</zorder> - <zorder>label_6</zorder> - <zorder>resamplex_edit</zorder> - <zorder>bintype_combo</zorder> - <zorder>lineEdit_5</zorder> - <zorder>lineEdit_6</zorder> - <zorder>label_13</zorder> - <zorder>label_14</zorder> - <zorder>label_15</zorder> - <zorder>frame_2</zorder> - <zorder>frame_2</zorder> - <zorder>usebin_button</zorder> - <zorder>resamplex_button</zorder> - <zorder>line</zorder> - <zorder>line_2</zorder> - <zorder>frame_2</zorder> - </widget> - </item> - <item> - <widget class="QFrame" name="frame_4"> - <property name="frameShape"> - <enum>QFrame::StyledPanel</enum> + <property name="widgetResizable"> + <bool>true</bool> </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> </property> - <widget class="QLabel" name="label_7"> - <property name="geometry"> - <rect> - <x>20</x> - <y>10</y> - <width>117</width> - <height>51</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Output Directory</string> - </property> - </widget> - <widget class="QLineEdit" name="outputdir_edit"> - <property name="geometry"> - <rect> - <x>160</x> - <y>20</y> - <width>621</width> - <height>27</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - <widget class="QPushButton" name="outputdir_browse"> - <property name="geometry"> - <rect> - <x>800</x> - <y>20</y> - <width>85</width> - <height>27</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Browse</string> - </property> - </widget> - <widget class="QLabel" name="label_8"> - <property name="geometry"> - <rect> - <x>80</x> - <y>60</y> - <width>51</width> - <height>51</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Save As</string> - </property> - </widget> - <widget class="QComboBox" name="saveas_combo"> - <property name="geometry"> - <rect> - <x>160</x> - <y>70</y> - <width>261</width> - <height>27</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <item> - <property name="text"> - <string>gsas</string> - </property> - </item> - <item> - <property name="text"> - <string>fullprof</string> - </property> - </item> - <item> - <property name="text"> - <string>gsas and fullprof</string> - </property> - </item> - <item> - <property name="text"> - <string>gsas and fullprof and pdfgetn</string> - </property> - </item> - <item> - <property name="text"> - <string>NeXus</string> - </property> - </item> - <item> - <property name="text"> - <string>gsas and NeXus</string> - </property> - </item> - <item> - <property name="text"> - <string>fullprof and NeXus</string> - </property> - </item> - <item> - <property name="text"> - <string>gsas and fullprof and NeXus</string> - </property> - </item> - <item> - <property name="text"> - <string>gsas and fullprof and pdfgetn and NeXus</string> - </property> - </item> - </widget> - <widget class="QLabel" name="label_9"> - <property name="geometry"> - <rect> - <x>500</x> - <y>60</y> - <width>65</width> - <height>41</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Final Unit</string> - </property> - </widget> - <widget class="QComboBox" name="unit_combo"> - <property name="geometry"> - <rect> - <x>600</x> - <y>70</y> - <width>141</width> - <height>27</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <item> - <property name="text"> - <string>dSpacing</string> - </property> - </item> - <item> - <property name="text"> - <string>MomentumTransfer</string> - </property> - </item> + <widget class="QWidget" name="scrollAreaWidgetContents"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>1026</width> + <height>1273</height> + </rect> + </property> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_13"> + <item> + <widget class="QLabel" name="instr_name_label"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>160</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>100</width> + <height>30</height> + </size> + </property> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>SNS Powder Reduction</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_19"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QCommandLinkButton" name="help_button"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>73</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>73</width> + <height>33</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="text"> + <string>Help</string> + </property> + <property name="iconSize"> + <size> + <width>15</width> + <height>15</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QGroupBox" name="reduction_options_group"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="title"> + <string>Reduction Options</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <item> + <widget class="QLabel" name="att_scale_factor_label"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>100</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>Run Numbers</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="runnumbers_edit"> + <property name="minimumSize"> + <size> + <width>80</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>360</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Enter a scaling factor to be multiplied to I(Q).</string> + </property> + <property name="statusTip"> + <string>Enter a scaling factor to be multiplied to I(Q).</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="sum_checkbox"> + <property name="minimumSize"> + <size> + <width>80</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>180</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Select to normalize to the beam monitor data</string> + </property> + <property name="statusTip"> + <string>Select to normalize to the beam monitor data</string> + </property> + <property name="text"> + <string>Sum</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="monitor_layout"> + <item> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>Calibration File</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="calfile_edit"> + <property name="toolTip"> + <string>Enter a valid path for the beam monitor reference file.</string> + </property> + <property name="statusTip"> + <string>Enter a valid path for the beam monitor reference file.</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="calfile_browse"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Browse</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_9"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_6"> + <item> + <widget class="QLabel" name="label_4"> + <property name="maximumSize"> + <size> + <width>100</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>File Extension</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="extension_combo"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>400</width> + <height>16777215</height> + </size> + </property> + <item> + <property name="text"> + <string>_event.nxs</string> + </property> + </item> + <item> + <property name="text"> + <string>_histo.nxs</string> + </property> + </item> + <item> + <property name="text"> + <string>_runinfo.xml</string> + </property> + </item> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_13"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QCheckBox" name="preserveevents_checkbox"> + <property name="maximumSize"> + <size> + <width>160</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Check to calculate the absolute scale factor using the direct beam method.</string> + </property> + <property name="statusTip"> + <string>Check to calculate the absolute scale factor using the direct beam method.</string> + </property> + <property name="text"> + <string>Preserve Events</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_20"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="abs_scale_direct_beam_layout"> + <item> + <widget class="QLabel" name="direct_beam_label"> + <property name="minimumSize"> + <size> + <width>150</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>150</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>Characterizaton File</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="charfile_edit"> + <property name="minimumSize"> + <size> + <width>300</width> + <height>0</height> + </size> + </property> + <property name="toolTip"> + <string>Enter a valid file path for a direct beam data file.</string> + </property> + <property name="statusTip"> + <string>Enter a valid file path for a direct beam data file.</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="charfile_browse"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Browse</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_7"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Output Directory</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="outputdir_edit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>300</width> + <height>0</height> + </size> + </property> + <property name="baseSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="toolTip"> + <string>Enter a valid file path to be used for the dark current data.</string> + </property> + <property name="statusTip"> + <string>Enter a valid file path to be used for the dark current data.</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="outputdir_browse"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Browse</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_7"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_8"> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>Save As</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="saveas_combo"> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> + <item> + <property name="text"> + <string>gsas</string> + </property> + </item> + <item> + <property name="text"> + <string>fullprof</string> + </property> + </item> + <item> + <property name="text"> + <string>gsas and fullprof</string> + </property> + </item> + <item> + <property name="text"> + <string>gsas and fullprof and pdfgetn</string> + </property> + </item> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_10"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_6"> + <property name="text"> + <string>Final Unit</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="unit_combo"> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <item> + <property name="text"> + <string>dSpacing</string> + </property> + </item> + <item> + <property name="text"> + <string>MomentumTransfer</string> + </property> + </item> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_8"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="geometry_options_groupbox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="title"> + <string>Overriding Characterization File</string> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + <layout class="QVBoxLayout" name="verticalLayout_5"> + <item> + <layout class="QHBoxLayout" name="mask_template_horiz_layout"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="experiment_parameter_help"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>150</width> + <height>0</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">font: italic 10pt "Bitstream Charter";</string> + </property> + <property name="text"> + <string>Characterization file can be overriden or disabled</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QFormLayout" name="formLayout_3"> + <property name="sizeConstraint"> + <enum>QLayout::SetDefaultConstraint</enum> + </property> + <property name="fieldGrowthPolicy"> + <enum>QFormLayout::AllNonFixedFieldsGrow</enum> + </property> + <property name="labelAlignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="formAlignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + <item row="0" column="0"> + <widget class="QCheckBox" name="disablebkgdcorr_chkbox"> + <property name="toolTip"> + <string>Select to set the detector distance offset.</string> + </property> + <property name="statusTip"> + <string>Select to set the detector distance offset.</string> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="text"> + <string>Disable Empty Run Correction</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QLineEdit" name="emptyrun_edit"> + <property name="minimumSize"> + <size> + <width>80</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>80</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Enter the detector distance offset in mm.</string> + </property> + <property name="statusTip"> + <string>Enter the detector distance offset in mm.</string> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QCheckBox" name="disablevancorr_chkbox"> + <property name="toolTip"> + <string>Select to force the sample-detector distance.</string> + </property> + <property name="statusTip"> + <string>Select to force the sample-detector distance.</string> + </property> + <property name="text"> + <string>Disable Vanadium Run Correction</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLineEdit" name="vanrun_edit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>80</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>80</width> + <height>16777215</height> + </size> + </property> + <property name="toolTip"> + <string>Enter the value of the sample-to-detector distance in mm.</string> + </property> + <property name="statusTip"> + <string>Enter the value of the sample-to-detector distance in mm.</string> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QCheckBox" name="disablevanbkgdcorr_chkbox"> + <property name="text"> + <string>Disable Vanariumd Background Correction</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QLineEdit" name="vanbkgdrun_edit"> + <property name="maximumSize"> + <size> + <width>80</width> + <height>16777215</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="mask_groupbox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Binning</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QLabel" name="mask_help_label"> + <property name="font"> + <font> + <family>Bitstream Charter</family> + <italic>true</italic> + </font> + </property> + <property name="text"> + <string>Choose a file to set your mask. Note that only the mask information, not the data, will be used in the reduction. +The data is only used to help you setting the mask. +The mask information is saved separately so that your data file will NOT be modified.</string> + </property> + </widget> + </item> + <item> + <layout class="QGridLayout" name="gridLayout"> + <item row="2" column="5"> + <widget class="QLabel" name="label_9"> + <property name="text"> + <string>TOF Max</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QLineEdit" name="resamplex_edit"/> + </item> + <item row="2" column="3"> + <widget class="QComboBox" name="bintype_combo"> + <property name="minimumSize"> + <size> + <width>160</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>200</width> + <height>16777215</height> + </size> + </property> + <item> + <property name="text"> + <string>Linear Binning</string> + </property> + </item> + <item> + <property name="text"> + <string>Logarithmic Binning</string> + </property> + </item> + </widget> + </item> + <item row="0" column="5"> + <widget class="QLabel" name="label_8"> + <property name="text"> + <string>TOF Min</string> + </property> + </widget> + </item> + <item row="0" column="0"> + <widget class="QRadioButton" name="usebin_button"> + <property name="text"> + <string>Binning</string> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QLabel" name="label_7"> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item row="0" column="3"> + <widget class="QCheckBox" name="binind_checkbox"> + <property name="text"> + <string>Bin In d-spacing</string> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QRadioButton" name="resamplex_button"> + <property name="text"> + <string>ResampleX</string> + </property> + </widget> + </item> + <item row="2" column="6"> + <widget class="QLineEdit" name="tofmax_edit"/> + </item> + <item row="0" column="1"> + <widget class="QLineEdit" name="binning_edit"/> + </item> + <item row="0" column="6"> + <widget class="QLineEdit" name="tofmin_edit"/> + </item> + <item row="2" column="2"> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="4"> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> </widget> - <zorder>label_7</zorder> - <zorder>outputdir_edit</zorder> - <zorder>outputdir_browse</zorder> - <zorder>label_8</zorder> - <zorder>saveas_combo</zorder> - <zorder>label_9</zorder> - <zorder>unit_combo</zorder> - <zorder>frame_3</zorder> </widget> </item> </layout> diff --git a/Code/Mantid/scripts/Interface/ui/diffraction/ui_diffraction_adv_setup.py b/Code/Mantid/scripts/Interface/ui/diffraction/ui_diffraction_adv_setup.py index e6e4067cfd5..974eda48bc3 100644 --- a/Code/Mantid/scripts/Interface/ui/diffraction/ui_diffraction_adv_setup.py +++ b/Code/Mantid/scripts/Interface/ui/diffraction/ui_diffraction_adv_setup.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'diffraction_van_setup.ui' +# Form implementation generated from reading ui file 'diffraction_adv_setup.ui' # -# Created: Mon Feb 25 14:48:57 2013 +# Created: Mon Mar 18 10:43:41 2013 # by: PyQt4 UI code generator 4.9.1 # # WARNING! All changes made in this file will be lost! @@ -17,136 +17,292 @@ except AttributeError: class Ui_Frame(object): def setupUi(self, Frame): Frame.setObjectName(_fromUtf8("Frame")) - Frame.resize(879, 556) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) + Frame.resize(1026, 1273) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Frame.sizePolicy().hasHeightForWidth()) Frame.setSizePolicy(sizePolicy) - Frame.setFrameShape(QtGui.QFrame.StyledPanel) - Frame.setFrameShadow(QtGui.QFrame.Raised) - self.verticalLayout_3 = QtGui.QVBoxLayout(Frame) - self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) - self.emptycan_gbox = QtGui.QGroupBox(Frame) + Frame.setFrameShape(QtGui.QFrame.NoFrame) + Frame.setFrameShadow(QtGui.QFrame.Plain) + Frame.setLineWidth(8) + self.verticalLayout = QtGui.QVBoxLayout(Frame) + self.verticalLayout.setMargin(0) + self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) + self.scrollArea = QtGui.QScrollArea(Frame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.emptycan_gbox.sizePolicy().hasHeightForWidth()) - self.emptycan_gbox.setSizePolicy(sizePolicy) - self.emptycan_gbox.setTitle(_fromUtf8("")) - self.emptycan_gbox.setObjectName(_fromUtf8("emptycan_gbox")) - self.frame_2 = QtGui.QFrame(self.emptycan_gbox) - self.frame_2.setGeometry(QtCore.QRect(10, 0, 741, 241)) - self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) - self.frame_2.setFrameShadow(QtGui.QFrame.Raised) - self.frame_2.setObjectName(_fromUtf8("frame_2")) - self.lowres_edit = QtGui.QLineEdit(self.frame_2) - self.lowres_edit.setGeometry(QtCore.QRect(10, 90, 111, 27)) - self.lowres_edit.setObjectName(_fromUtf8("lowres_edit")) - self.label_6 = QtGui.QLabel(self.frame_2) - self.label_6.setGeometry(QtCore.QRect(10, 140, 142, 39)) - self.label_6.setObjectName(_fromUtf8("label_6")) - self.label_5 = QtGui.QLabel(self.frame_2) - self.label_5.setGeometry(QtCore.QRect(540, 50, 192, 39)) - self.label_5.setObjectName(_fromUtf8("label_5")) - self.label_4 = QtGui.QLabel(self.frame_2) - self.label_4.setGeometry(QtCore.QRect(320, 50, 208, 39)) + sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth()) + self.scrollArea.setSizePolicy(sizePolicy) + self.scrollArea.setMinimumSize(QtCore.QSize(0, 0)) + self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) + self.scrollArea.setFrameShadow(QtGui.QFrame.Plain) + self.scrollArea.setLineWidth(0) + self.scrollArea.setWidgetResizable(True) + self.scrollArea.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) + self.scrollArea.setObjectName(_fromUtf8("scrollArea")) + self.scrollAreaWidgetContents = QtGui.QWidget() + self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1026, 1273)) + self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) + self.verticalLayout_4 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) + self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) + self.horizontalLayout_13 = QtGui.QHBoxLayout() + self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) + self.instr_name_label = QtGui.QLabel(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.instr_name_label.sizePolicy().hasHeightForWidth()) + self.instr_name_label.setSizePolicy(sizePolicy) + self.instr_name_label.setMinimumSize(QtCore.QSize(300, 30)) + self.instr_name_label.setMaximumSize(QtCore.QSize(100, 30)) + font = QtGui.QFont() + font.setBold(True) + font.setWeight(75) + self.instr_name_label.setFont(font) + self.instr_name_label.setObjectName(_fromUtf8("instr_name_label")) + self.horizontalLayout_13.addWidget(self.instr_name_label) + spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_13.addItem(spacerItem) + self.help_button = QtGui.QCommandLinkButton(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.help_button.sizePolicy().hasHeightForWidth()) + self.help_button.setSizePolicy(sizePolicy) + self.help_button.setMinimumSize(QtCore.QSize(73, 30)) + self.help_button.setMaximumSize(QtCore.QSize(73, 33)) + font = QtGui.QFont() + font.setPointSize(10) + font.setBold(False) + font.setWeight(50) + self.help_button.setFont(font) + self.help_button.setFocusPolicy(QtCore.Qt.NoFocus) + self.help_button.setIconSize(QtCore.QSize(15, 15)) + self.help_button.setObjectName(_fromUtf8("help_button")) + self.horizontalLayout_13.addWidget(self.help_button) + self.verticalLayout_4.addLayout(self.horizontalLayout_13) + self.reduction_options_group = QtGui.QGroupBox(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.reduction_options_group.sizePolicy().hasHeightForWidth()) + self.reduction_options_group.setSizePolicy(sizePolicy) + self.reduction_options_group.setMaximumSize(QtCore.QSize(16777215, 16777215)) + self.reduction_options_group.setObjectName(_fromUtf8("reduction_options_group")) + self.verticalLayout_6 = QtGui.QVBoxLayout(self.reduction_options_group) + self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) + self.horizontalLayout_6 = QtGui.QHBoxLayout() + self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) + self.label_4 = QtGui.QLabel(self.reduction_options_group) + self.label_4.setMinimumSize(QtCore.QSize(160, 0)) + self.label_4.setMaximumSize(QtCore.QSize(160, 16777215)) self.label_4.setObjectName(_fromUtf8("label_4")) - self.unwrap_edit = QtGui.QLineEdit(self.frame_2) - self.unwrap_edit.setGeometry(QtCore.QRect(150, 90, 101, 27)) - self.unwrap_edit.setObjectName(_fromUtf8("unwrap_edit")) - self.cropwavelengthmin_edit = QtGui.QLineEdit(self.frame_2) - self.cropwavelengthmin_edit.setGeometry(QtCore.QRect(320, 90, 131, 27)) - self.cropwavelengthmin_edit.setObjectName(_fromUtf8("cropwavelengthmin_edit")) - self.filterbadpulses_chkbox = QtGui.QCheckBox(self.frame_2) - self.filterbadpulses_chkbox.setGeometry(QtCore.QRect(550, 180, 141, 22)) - self.filterbadpulses_chkbox.setObjectName(_fromUtf8("filterbadpulses_chkbox")) - self.label_3 = QtGui.QLabel(self.frame_2) - self.label_3.setGeometry(QtCore.QRect(10, 50, 131, 39)) - self.label_3.setObjectName(_fromUtf8("label_3")) - self.removepromptwidth_edit = QtGui.QLineEdit(self.frame_2) - self.removepromptwidth_edit.setGeometry(QtCore.QRect(540, 90, 151, 27)) - self.removepromptwidth_edit.setObjectName(_fromUtf8("removepromptwidth_edit")) - self.label_2 = QtGui.QLabel(self.frame_2) - self.label_2.setGeometry(QtCore.QRect(160, 50, 80, 39)) + self.horizontalLayout_6.addWidget(self.label_4) + self.extension_combo = QtGui.QComboBox(self.reduction_options_group) + self.extension_combo.setMinimumSize(QtCore.QSize(200, 0)) + self.extension_combo.setMaximumSize(QtCore.QSize(400, 16777215)) + self.extension_combo.setObjectName(_fromUtf8("extension_combo")) + self.extension_combo.addItem(_fromUtf8("")) + self.extension_combo.addItem(_fromUtf8("")) + self.extension_combo.addItem(_fromUtf8("")) + self.horizontalLayout_6.addWidget(self.extension_combo) + spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_6.addItem(spacerItem1) + self.preserveevents_checkbox = QtGui.QCheckBox(self.reduction_options_group) + self.preserveevents_checkbox.setMaximumSize(QtCore.QSize(160, 16777215)) + self.preserveevents_checkbox.setObjectName(_fromUtf8("preserveevents_checkbox")) + self.horizontalLayout_6.addWidget(self.preserveevents_checkbox) + spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_6.addItem(spacerItem2) + self.verticalLayout_6.addLayout(self.horizontalLayout_6) + self.horizontalLayout_8 = QtGui.QHBoxLayout() + self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) + self.label_2 = QtGui.QLabel(self.reduction_options_group) + self.label_2.setMinimumSize(QtCore.QSize(160, 0)) + self.label_2.setMaximumSize(QtCore.QSize(120, 16777215)) self.label_2.setObjectName(_fromUtf8("label_2")) - self.maxchunksize_edit = QtGui.QLineEdit(self.frame_2) - self.maxchunksize_edit.setGeometry(QtCore.QRect(10, 180, 161, 27)) - self.maxchunksize_edit.setObjectName(_fromUtf8("maxchunksize_edit")) - self.pushdatapos_combo = QtGui.QComboBox(self.frame_2) - self.pushdatapos_combo.setGeometry(QtCore.QRect(320, 180, 131, 27)) + self.horizontalLayout_8.addWidget(self.label_2) + self.pushdatapos_combo = QtGui.QComboBox(self.reduction_options_group) + self.pushdatapos_combo.setMinimumSize(QtCore.QSize(200, 0)) + self.pushdatapos_combo.setMaximumSize(QtCore.QSize(400, 16777215)) self.pushdatapos_combo.setObjectName(_fromUtf8("pushdatapos_combo")) self.pushdatapos_combo.addItem(_fromUtf8("")) self.pushdatapos_combo.addItem(_fromUtf8("")) self.pushdatapos_combo.addItem(_fromUtf8("")) - self.label_11 = QtGui.QLabel(self.frame_2) - self.label_11.setGeometry(QtCore.QRect(320, 150, 141, 17)) - self.label_11.setObjectName(_fromUtf8("label_11")) - self.label_10 = QtGui.QLabel(self.frame_2) - self.label_10.setGeometry(QtCore.QRect(10, 10, 131, 21)) + self.horizontalLayout_8.addWidget(self.pushdatapos_combo) + spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_8.addItem(spacerItem3) + self.filterbadpulses_chkbox = QtGui.QCheckBox(self.reduction_options_group) + self.filterbadpulses_chkbox.setObjectName(_fromUtf8("filterbadpulses_chkbox")) + self.horizontalLayout_8.addWidget(self.filterbadpulses_chkbox) + spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_8.addItem(spacerItem4) + self.verticalLayout_6.addLayout(self.horizontalLayout_8) + self.gridLayout_2 = QtGui.QGridLayout() + self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) + spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.gridLayout_2.addItem(spacerItem5, 0, 2, 1, 1) + self.unwrap_edit = QtGui.QLineEdit(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.unwrap_edit.sizePolicy().hasHeightForWidth()) + self.unwrap_edit.setSizePolicy(sizePolicy) + self.unwrap_edit.setObjectName(_fromUtf8("unwrap_edit")) + self.gridLayout_2.addWidget(self.unwrap_edit, 0, 4, 1, 1) + self.label_3 = QtGui.QLabel(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) + self.label_3.setSizePolicy(sizePolicy) + self.label_3.setObjectName(_fromUtf8("label_3")) + self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 1) + self.lowres_edit = QtGui.QLineEdit(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.lowres_edit.sizePolicy().hasHeightForWidth()) + self.lowres_edit.setSizePolicy(sizePolicy) + self.lowres_edit.setObjectName(_fromUtf8("lowres_edit")) + self.gridLayout_2.addWidget(self.lowres_edit, 0, 1, 1, 1) + self.label_5 = QtGui.QLabel(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) + self.label_5.setSizePolicy(sizePolicy) + self.label_5.setObjectName(_fromUtf8("label_5")) + self.gridLayout_2.addWidget(self.label_5, 0, 3, 1, 1) + spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.gridLayout_2.addItem(spacerItem6, 0, 5, 1, 1) + self.label_6 = QtGui.QLabel(self.reduction_options_group) + self.label_6.setObjectName(_fromUtf8("label_6")) + self.gridLayout_2.addWidget(self.label_6, 1, 0, 1, 1) + self.cropwavelengthmin_edit = QtGui.QLineEdit(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.cropwavelengthmin_edit.sizePolicy().hasHeightForWidth()) + self.cropwavelengthmin_edit.setSizePolicy(sizePolicy) + self.cropwavelengthmin_edit.setObjectName(_fromUtf8("cropwavelengthmin_edit")) + self.gridLayout_2.addWidget(self.cropwavelengthmin_edit, 1, 1, 1, 1) + self.removepromptwidth_edit = QtGui.QLineEdit(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.removepromptwidth_edit.sizePolicy().hasHeightForWidth()) + self.removepromptwidth_edit.setSizePolicy(sizePolicy) + self.removepromptwidth_edit.setObjectName(_fromUtf8("removepromptwidth_edit")) + self.gridLayout_2.addWidget(self.removepromptwidth_edit, 1, 4, 1, 1) + self.label_10 = QtGui.QLabel(self.reduction_options_group) + self.label_10.setObjectName(_fromUtf8("label_10")) + self.gridLayout_2.addWidget(self.label_10, 1, 3, 1, 1) + self.verticalLayout_6.addLayout(self.gridLayout_2) + self.horizontalLayout_7 = QtGui.QHBoxLayout() + self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) + self.label = QtGui.QLabel(self.reduction_options_group) + self.label.setObjectName(_fromUtf8("label")) + self.horizontalLayout_7.addWidget(self.label) + self.maxchunksize_edit = QtGui.QLineEdit(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.maxchunksize_edit.sizePolicy().hasHeightForWidth()) + self.maxchunksize_edit.setSizePolicy(sizePolicy) + self.maxchunksize_edit.setMinimumSize(QtCore.QSize(300, 0)) + self.maxchunksize_edit.setBaseSize(QtCore.QSize(0, 0)) + self.maxchunksize_edit.setObjectName(_fromUtf8("maxchunksize_edit")) + self.horizontalLayout_7.addWidget(self.maxchunksize_edit) + self.verticalLayout_6.addLayout(self.horizontalLayout_7) + self.verticalLayout_4.addWidget(self.reduction_options_group) + self.mask_groupbox = QtGui.QGroupBox(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.mask_groupbox.sizePolicy().hasHeightForWidth()) + self.mask_groupbox.setSizePolicy(sizePolicy) + self.mask_groupbox.setObjectName(_fromUtf8("mask_groupbox")) + self.verticalLayout_2 = QtGui.QVBoxLayout(self.mask_groupbox) + self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) + self.mask_help_label = QtGui.QLabel(self.mask_groupbox) font = QtGui.QFont() - font.setPointSize(13) - font.setBold(True) + font.setFamily(_fromUtf8("Bitstream Charter")) font.setItalic(True) - font.setWeight(75) - self.label_10.setFont(font) - self.label_10.setObjectName(_fromUtf8("label_10")) - self.frame_3 = QtGui.QFrame(self.emptycan_gbox) - self.frame_3.setGeometry(QtCore.QRect(10, 280, 741, 201)) - self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) - self.frame_3.setFrameShadow(QtGui.QFrame.Raised) - self.frame_3.setObjectName(_fromUtf8("frame_3")) - self.label_7 = QtGui.QLabel(self.frame_3) - self.label_7.setGeometry(QtCore.QRect(320, 80, 169, 39)) + self.mask_help_label.setFont(font) + self.mask_help_label.setObjectName(_fromUtf8("mask_help_label")) + self.verticalLayout_2.addWidget(self.mask_help_label) + self.gridLayout = QtGui.QGridLayout() + self.gridLayout.setObjectName(_fromUtf8("gridLayout")) + self.label_7 = QtGui.QLabel(self.mask_groupbox) + self.label_7.setText(_fromUtf8("")) self.label_7.setObjectName(_fromUtf8("label_7")) - self.label_8 = QtGui.QLabel(self.frame_3) - self.label_8.setGeometry(QtCore.QRect(180, 80, 102, 39)) - self.label_8.setObjectName(_fromUtf8("label_8")) - self.label_9 = QtGui.QLabel(self.frame_3) - self.label_9.setGeometry(QtCore.QRect(50, 80, 81, 39)) - self.label_9.setObjectName(_fromUtf8("label_9")) - self.vanpeakfwhm_edit = QtGui.QLineEdit(self.frame_3) - self.vanpeakfwhm_edit.setGeometry(QtCore.QRect(50, 130, 91, 27)) + self.gridLayout.addWidget(self.label_7, 0, 3, 1, 1) + self.vanpeakfwhm_edit = QtGui.QLineEdit(self.mask_groupbox) self.vanpeakfwhm_edit.setObjectName(_fromUtf8("vanpeakfwhm_edit")) - self.vanpeaktol_edit = QtGui.QLineEdit(self.frame_3) - self.vanpeaktol_edit.setGeometry(QtCore.QRect(180, 130, 101, 27)) + self.gridLayout.addWidget(self.vanpeakfwhm_edit, 0, 2, 1, 1) + self.vansmoothpar_edit = QtGui.QLineEdit(self.mask_groupbox) + self.vansmoothpar_edit.setObjectName(_fromUtf8("vansmoothpar_edit")) + self.gridLayout.addWidget(self.vansmoothpar_edit, 1, 2, 1, 1) + self.label_12 = QtGui.QLabel(self.mask_groupbox) + self.label_12.setObjectName(_fromUtf8("label_12")) + self.gridLayout.addWidget(self.label_12, 0, 5, 1, 1) + self.label_11 = QtGui.QLabel(self.mask_groupbox) + self.label_11.setObjectName(_fromUtf8("label_11")) + self.gridLayout.addWidget(self.label_11, 0, 1, 1, 1) + self.label_8 = QtGui.QLabel(self.mask_groupbox) + self.label_8.setObjectName(_fromUtf8("label_8")) + self.gridLayout.addWidget(self.label_8, 1, 1, 1, 1) + spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.gridLayout.addItem(spacerItem7, 0, 4, 1, 1) + self.vanpeaktol_edit = QtGui.QLineEdit(self.mask_groupbox) self.vanpeaktol_edit.setObjectName(_fromUtf8("vanpeaktol_edit")) - self.stripvanpeaks_chkbox = QtGui.QCheckBox(self.frame_3) - self.stripvanpeaks_chkbox.setGeometry(QtCore.QRect(320, 20, 181, 22)) + self.gridLayout.addWidget(self.vanpeaktol_edit, 0, 6, 1, 1) + self.stripvanpeaks_chkbox = QtGui.QCheckBox(self.mask_groupbox) self.stripvanpeaks_chkbox.setObjectName(_fromUtf8("stripvanpeaks_chkbox")) - self.vansmoothpar_edit = QtGui.QLineEdit(self.frame_3) - self.vansmoothpar_edit.setGeometry(QtCore.QRect(320, 130, 201, 27)) - self.vansmoothpar_edit.setObjectName(_fromUtf8("vansmoothpar_edit")) - self.label = QtGui.QLabel(self.frame_3) - self.label.setGeometry(QtCore.QRect(10, 10, 201, 41)) - font = QtGui.QFont() - font.setPointSize(14) - font.setBold(True) - font.setItalic(True) - font.setWeight(75) - self.label.setFont(font) - self.label.setObjectName(_fromUtf8("label")) - self.verticalLayout_3.addWidget(self.emptycan_gbox) + self.gridLayout.addWidget(self.stripvanpeaks_chkbox, 0, 0, 1, 1) + self.verticalLayout_2.addLayout(self.gridLayout) + spacerItem8 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) + self.verticalLayout_2.addItem(spacerItem8) + self.verticalLayout_4.addWidget(self.mask_groupbox) + self.scrollArea.setWidget(self.scrollAreaWidgetContents) + self.verticalLayout.addWidget(self.scrollArea) self.retranslateUi(Frame) QtCore.QMetaObject.connectSlotsByName(Frame) def retranslateUi(self, Frame): Frame.setWindowTitle(QtGui.QApplication.translate("Frame", "Frame", None, QtGui.QApplication.UnicodeUTF8)) - self.label_6.setText(QtGui.QApplication.translate("Frame", "Maximum Chunk Size", None, QtGui.QApplication.UnicodeUTF8)) - self.label_5.setText(QtGui.QApplication.translate("Frame", "Remove Prompt Pulse Width", None, QtGui.QApplication.UnicodeUTF8)) - self.label_4.setText(QtGui.QApplication.translate("Frame", "Minimum Cropped Wavelength", None, QtGui.QApplication.UnicodeUTF8)) - self.filterbadpulses_chkbox.setText(QtGui.QApplication.translate("Frame", "Filter Bad Pulses", None, QtGui.QApplication.UnicodeUTF8)) - self.label_3.setText(QtGui.QApplication.translate("Frame", "Low Resolution Ref", None, QtGui.QApplication.UnicodeUTF8)) - self.label_2.setText(QtGui.QApplication.translate("Frame", "Unwrap Ref", None, QtGui.QApplication.UnicodeUTF8)) + Frame.setToolTip(QtGui.QApplication.translate("Frame", "Click to browse.", None, QtGui.QApplication.UnicodeUTF8)) + self.instr_name_label.setText(QtGui.QApplication.translate("Frame", "Advanced Setup of SNS Powder Reduction", None, QtGui.QApplication.UnicodeUTF8)) + self.help_button.setText(QtGui.QApplication.translate("Frame", "Help", None, QtGui.QApplication.UnicodeUTF8)) + self.reduction_options_group.setTitle(QtGui.QApplication.translate("Frame", "Advanced Setup", None, QtGui.QApplication.UnicodeUTF8)) + self.label_4.setText(QtGui.QApplication.translate("Frame", "File Extension", None, QtGui.QApplication.UnicodeUTF8)) + self.extension_combo.setItemText(0, QtGui.QApplication.translate("Frame", "_event.nxs", None, QtGui.QApplication.UnicodeUTF8)) + self.extension_combo.setItemText(1, QtGui.QApplication.translate("Frame", "_histo.nxs", None, QtGui.QApplication.UnicodeUTF8)) + self.extension_combo.setItemText(2, QtGui.QApplication.translate("Frame", "_runinfo.xml", None, QtGui.QApplication.UnicodeUTF8)) + self.preserveevents_checkbox.setToolTip(QtGui.QApplication.translate("Frame", "Check to calculate the absolute scale factor using the direct beam method.", None, QtGui.QApplication.UnicodeUTF8)) + self.preserveevents_checkbox.setStatusTip(QtGui.QApplication.translate("Frame", "Check to calculate the absolute scale factor using the direct beam method.", None, QtGui.QApplication.UnicodeUTF8)) + self.preserveevents_checkbox.setText(QtGui.QApplication.translate("Frame", "Preserve Events", None, QtGui.QApplication.UnicodeUTF8)) + self.label_2.setText(QtGui.QApplication.translate("Frame", "Push Data Positive", None, QtGui.QApplication.UnicodeUTF8)) self.pushdatapos_combo.setItemText(0, QtGui.QApplication.translate("Frame", "None", None, QtGui.QApplication.UnicodeUTF8)) self.pushdatapos_combo.setItemText(1, QtGui.QApplication.translate("Frame", "ResetToZero", None, QtGui.QApplication.UnicodeUTF8)) self.pushdatapos_combo.setItemText(2, QtGui.QApplication.translate("Frame", "AddMinimum", None, QtGui.QApplication.UnicodeUTF8)) - self.label_11.setText(QtGui.QApplication.translate("Frame", "Push Data Postive", None, QtGui.QApplication.UnicodeUTF8)) - self.label_10.setText(QtGui.QApplication.translate("Frame", "Advanced Setup", None, QtGui.QApplication.UnicodeUTF8)) - self.label_7.setText(QtGui.QApplication.translate("Frame", "Peak Smooth Parameters", None, QtGui.QApplication.UnicodeUTF8)) - self.label_8.setText(QtGui.QApplication.translate("Frame", "Peak Tolerance", None, QtGui.QApplication.UnicodeUTF8)) - self.label_9.setText(QtGui.QApplication.translate("Frame", "Peak FWHM", None, QtGui.QApplication.UnicodeUTF8)) + self.filterbadpulses_chkbox.setText(QtGui.QApplication.translate("Frame", "Filter Bad Pulses", None, QtGui.QApplication.UnicodeUTF8)) + self.label_3.setText(QtGui.QApplication.translate("Frame", "Low Resolution Ref", None, QtGui.QApplication.UnicodeUTF8)) + self.label_5.setText(QtGui.QApplication.translate("Frame", "Unwrap Ref", None, QtGui.QApplication.UnicodeUTF8)) + self.label_6.setText(QtGui.QApplication.translate("Frame", "Minumum Cropped Wavelength", None, QtGui.QApplication.UnicodeUTF8)) + self.label_10.setText(QtGui.QApplication.translate("Frame", "Remove Prompt Pulse Width", None, QtGui.QApplication.UnicodeUTF8)) + self.label.setText(QtGui.QApplication.translate("Frame", "Maximum Chunk Size", None, QtGui.QApplication.UnicodeUTF8)) + self.maxchunksize_edit.setToolTip(QtGui.QApplication.translate("Frame", "Enter a valid file path to be used for the dark current data.", None, QtGui.QApplication.UnicodeUTF8)) + self.maxchunksize_edit.setStatusTip(QtGui.QApplication.translate("Frame", "Enter a valid file path to be used for the dark current data.", None, QtGui.QApplication.UnicodeUTF8)) + self.mask_groupbox.setTitle(QtGui.QApplication.translate("Frame", "Strip Vanadium Peaks", None, QtGui.QApplication.UnicodeUTF8)) + self.mask_help_label.setText(QtGui.QApplication.translate("Frame", "The following input parameters are used to control the algorithm to strip vanadium peaks.\n" +"", None, QtGui.QApplication.UnicodeUTF8)) + self.label_12.setText(QtGui.QApplication.translate("Frame", "Peak Tolerance", None, QtGui.QApplication.UnicodeUTF8)) + self.label_11.setText(QtGui.QApplication.translate("Frame", "Peak FWHM", None, QtGui.QApplication.UnicodeUTF8)) + self.label_8.setText(QtGui.QApplication.translate("Frame", "Peak Smooth Parameters", None, QtGui.QApplication.UnicodeUTF8)) self.stripvanpeaks_chkbox.setText(QtGui.QApplication.translate("Frame", "Strip Vanadium Peaks", None, QtGui.QApplication.UnicodeUTF8)) - self.label.setText(QtGui.QApplication.translate("Frame", "Strip Vanadium Peaks", None, QtGui.QApplication.UnicodeUTF8)) diff --git a/Code/Mantid/scripts/Interface/ui/diffraction/ui_diffraction_run_setup.py b/Code/Mantid/scripts/Interface/ui/diffraction/ui_diffraction_run_setup.py index f6655f5e2a6..619fb9a6a6e 100644 --- a/Code/Mantid/scripts/Interface/ui/diffraction/ui_diffraction_run_setup.py +++ b/Code/Mantid/scripts/Interface/ui/diffraction/ui_diffraction_run_setup.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'diffraction_run_setup.ui' # -# Created: Tue Feb 26 11:24:56 2013 +# Created: Fri Mar 15 23:10:09 2013 # by: PyQt4 UI code generator 4.9.1 # # WARNING! All changes made in this file will be lost! @@ -17,330 +17,420 @@ except AttributeError: class Ui_Frame(object): def setupUi(self, Frame): Frame.setObjectName(_fromUtf8("Frame")) - Frame.resize(949, 814) - Frame.setFrameShape(QtGui.QFrame.StyledPanel) - Frame.setFrameShadow(QtGui.QFrame.Raised) - self.verticalLayout_3 = QtGui.QVBoxLayout(Frame) - self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) - self.frame = QtGui.QFrame(Frame) - self.frame.setFrameShape(QtGui.QFrame.StyledPanel) - self.frame.setFrameShadow(QtGui.QFrame.Raised) - self.frame.setObjectName(_fromUtf8("frame")) - self.label_4 = QtGui.QLabel(self.frame) - self.label_4.setGeometry(QtCore.QRect(20, 20, 88, 31)) - self.label_4.setObjectName(_fromUtf8("label_4")) - self.runnumbers_edit = QtGui.QLineEdit(self.frame) - self.runnumbers_edit.setGeometry(QtCore.QRect(150, 20, 721, 27)) - self.runnumbers_edit.setObjectName(_fromUtf8("runnumbers_edit")) - self.label_5 = QtGui.QLabel(self.frame) - self.label_5.setGeometry(QtCore.QRect(20, 80, 94, 16)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) + Frame.resize(1026, 1273) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) - self.label_5.setSizePolicy(sizePolicy) - self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) - self.label_5.setObjectName(_fromUtf8("label_5")) - self.extension_combo = QtGui.QComboBox(self.frame) - self.extension_combo.setGeometry(QtCore.QRect(150, 80, 117, 27)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(Frame.sizePolicy().hasHeightForWidth()) + Frame.setSizePolicy(sizePolicy) + Frame.setFrameShape(QtGui.QFrame.NoFrame) + Frame.setFrameShadow(QtGui.QFrame.Plain) + Frame.setLineWidth(8) + self.verticalLayout = QtGui.QVBoxLayout(Frame) + self.verticalLayout.setMargin(0) + self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) + self.scrollArea = QtGui.QScrollArea(Frame) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.extension_combo.sizePolicy().hasHeightForWidth()) - self.extension_combo.setSizePolicy(sizePolicy) - self.extension_combo.setBaseSize(QtCore.QSize(200, 0)) - self.extension_combo.setObjectName(_fromUtf8("extension_combo")) - self.extension_combo.addItem(_fromUtf8("")) - self.extension_combo.addItem(_fromUtf8("")) - self.extension_combo.addItem(_fromUtf8("")) - self.label = QtGui.QLabel(self.frame) - self.label.setGeometry(QtCore.QRect(20, 130, 134, 21)) - self.label.setObjectName(_fromUtf8("label")) - self.calfile_edit = QtGui.QLineEdit(self.frame) - self.calfile_edit.setGeometry(QtCore.QRect(150, 130, 601, 27)) - self.calfile_edit.setObjectName(_fromUtf8("calfile_edit")) - self.calfile_browse = QtGui.QPushButton(self.frame) - self.calfile_browse.setGeometry(QtCore.QRect(780, 130, 85, 27)) - self.calfile_browse.setObjectName(_fromUtf8("calfile_browse")) - self.preserveevents_checkbox = QtGui.QCheckBox(self.frame) - self.preserveevents_checkbox.setGeometry(QtCore.QRect(350, 80, 137, 22)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth()) + self.scrollArea.setSizePolicy(sizePolicy) + self.scrollArea.setMinimumSize(QtCore.QSize(0, 0)) + self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) + self.scrollArea.setFrameShadow(QtGui.QFrame.Plain) + self.scrollArea.setLineWidth(0) + self.scrollArea.setWidgetResizable(True) + self.scrollArea.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) + self.scrollArea.setObjectName(_fromUtf8("scrollArea")) + self.scrollAreaWidgetContents = QtGui.QWidget() + self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 1026, 1273)) + self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) + self.verticalLayout_4 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) + self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) + self.horizontalLayout_13 = QtGui.QHBoxLayout() + self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) + self.instr_name_label = QtGui.QLabel(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.preserveevents_checkbox.sizePolicy().hasHeightForWidth()) - self.preserveevents_checkbox.setSizePolicy(sizePolicy) - self.preserveevents_checkbox.setObjectName(_fromUtf8("preserveevents_checkbox")) - self.sum_checkbox = QtGui.QCheckBox(self.frame) - self.sum_checkbox.setGeometry(QtCore.QRect(590, 80, 59, 22)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.instr_name_label.sizePolicy().hasHeightForWidth()) + self.instr_name_label.setSizePolicy(sizePolicy) + self.instr_name_label.setMinimumSize(QtCore.QSize(160, 30)) + self.instr_name_label.setMaximumSize(QtCore.QSize(100, 30)) + font = QtGui.QFont() + font.setBold(True) + font.setWeight(75) + self.instr_name_label.setFont(font) + self.instr_name_label.setObjectName(_fromUtf8("instr_name_label")) + self.horizontalLayout_13.addWidget(self.instr_name_label) + spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_13.addItem(spacerItem) + self.help_button = QtGui.QCommandLinkButton(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.sum_checkbox.sizePolicy().hasHeightForWidth()) - self.sum_checkbox.setSizePolicy(sizePolicy) - self.sum_checkbox.setObjectName(_fromUtf8("sum_checkbox")) - self.verticalLayout_3.addWidget(self.frame) - self.frame_2 = QtGui.QFrame(Frame) - self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) - self.frame_2.setFrameShadow(QtGui.QFrame.Raised) - self.frame_2.setObjectName(_fromUtf8("frame_2")) - self.label_2 = QtGui.QLabel(self.frame_2) - self.label_2.setGeometry(QtCore.QRect(10, 10, 131, 41)) - font = QtGui.QFont() - font.setPointSize(10) - self.label_2.setFont(font) - self.label_2.setObjectName(_fromUtf8("label_2")) - self.charfile_edit = QtGui.QLineEdit(self.frame_2) - self.charfile_edit.setGeometry(QtCore.QRect(150, 20, 601, 27)) - self.charfile_edit.setObjectName(_fromUtf8("charfile_edit")) - self.charfile_browse = QtGui.QPushButton(self.frame_2) - self.charfile_browse.setGeometry(QtCore.QRect(780, 20, 85, 27)) - self.charfile_browse.setObjectName(_fromUtf8("charfile_browse")) - self.emptyrun_edit = QtGui.QLineEdit(self.frame_2) - self.emptyrun_edit.setGeometry(QtCore.QRect(180, 100, 113, 27)) - self.emptyrun_edit.setObjectName(_fromUtf8("emptyrun_edit")) - self.vanrun_edit = QtGui.QLineEdit(self.frame_2) - self.vanrun_edit.setGeometry(QtCore.QRect(670, 100, 81, 27)) - self.vanrun_edit.setObjectName(_fromUtf8("vanrun_edit")) - self.vannoiserun_edit = QtGui.QLineEdit(self.frame_2) - self.vannoiserun_edit.setEnabled(False) - self.vannoiserun_edit.setGeometry(QtCore.QRect(180, 140, 113, 27)) - self.vannoiserun_edit.setObjectName(_fromUtf8("vannoiserun_edit")) - self.vanbkgdrun_edit = QtGui.QLineEdit(self.frame_2) - self.vanbkgdrun_edit.setGeometry(QtCore.QRect(670, 140, 81, 27)) - self.vanbkgdrun_edit.setObjectName(_fromUtf8("vanbkgdrun_edit")) - self.label_3 = QtGui.QLabel(self.frame_2) - self.label_3.setGeometry(QtCore.QRect(70, 100, 91, 17)) - self.label_3.setObjectName(_fromUtf8("label_3")) - self.label_10 = QtGui.QLabel(self.frame_2) - self.label_10.setGeometry(QtCore.QRect(20, 140, 141, 17)) - self.label_10.setObjectName(_fromUtf8("label_10")) - self.label_11 = QtGui.QLabel(self.frame_2) - self.label_11.setGeometry(QtCore.QRect(560, 100, 101, 20)) - self.label_11.setObjectName(_fromUtf8("label_11")) - self.label_12 = QtGui.QLabel(self.frame_2) - self.label_12.setGeometry(QtCore.QRect(510, 140, 151, 17)) - font = QtGui.QFont() - font.setPointSize(9) - self.label_12.setFont(font) - self.label_12.setObjectName(_fromUtf8("label_12")) - self.disablevancorr_chkbox = QtGui.QCheckBox(self.frame_2) - self.disablevancorr_chkbox.setGeometry(QtCore.QRect(760, 100, 151, 31)) + sizePolicy.setHeightForWidth(self.help_button.sizePolicy().hasHeightForWidth()) + self.help_button.setSizePolicy(sizePolicy) + self.help_button.setMinimumSize(QtCore.QSize(73, 30)) + self.help_button.setMaximumSize(QtCore.QSize(73, 33)) font = QtGui.QFont() font.setPointSize(10) font.setBold(False) - font.setItalic(False) font.setWeight(50) - self.disablevancorr_chkbox.setFont(font) - self.disablevancorr_chkbox.setObjectName(_fromUtf8("disablevancorr_chkbox")) - self.label_16 = QtGui.QLabel(self.frame_2) - self.label_16.setGeometry(QtCore.QRect(350, 70, 201, 17)) - self.label_16.setObjectName(_fromUtf8("label_16")) - self.line_3 = QtGui.QFrame(self.frame_2) - self.line_3.setGeometry(QtCore.QRect(30, 70, 311, 20)) - self.line_3.setFrameShape(QtGui.QFrame.HLine) - self.line_3.setFrameShadow(QtGui.QFrame.Sunken) - self.line_3.setObjectName(_fromUtf8("line_3")) - self.line_4 = QtGui.QFrame(self.frame_2) - self.line_4.setGeometry(QtCore.QRect(570, 70, 311, 20)) - self.line_4.setFrameShape(QtGui.QFrame.HLine) - self.line_4.setFrameShadow(QtGui.QFrame.Sunken) - self.line_4.setObjectName(_fromUtf8("line_4")) - self.disablevanbkgdcorr_chkbox = QtGui.QCheckBox(self.frame_2) - self.disablevanbkgdcorr_chkbox.setGeometry(QtCore.QRect(760, 140, 151, 31)) - font = QtGui.QFont() - font.setPointSize(10) - font.setBold(False) - font.setItalic(False) - font.setWeight(50) - self.disablevanbkgdcorr_chkbox.setFont(font) - self.disablevanbkgdcorr_chkbox.setObjectName(_fromUtf8("disablevanbkgdcorr_chkbox")) - self.disablebkgdcorr_chkbox = QtGui.QCheckBox(self.frame_2) - self.disablebkgdcorr_chkbox.setGeometry(QtCore.QRect(300, 100, 151, 31)) - font = QtGui.QFont() - font.setPointSize(10) - font.setBold(False) - font.setItalic(False) - font.setWeight(50) - self.disablebkgdcorr_chkbox.setFont(font) - self.disablebkgdcorr_chkbox.setObjectName(_fromUtf8("disablebkgdcorr_chkbox")) - self.line_5 = QtGui.QFrame(self.frame_2) - self.line_5.setGeometry(QtCore.QRect(470, 100, 20, 81)) - self.line_5.setFrameShape(QtGui.QFrame.VLine) - self.line_5.setFrameShadow(QtGui.QFrame.Sunken) - self.line_5.setObjectName(_fromUtf8("line_5")) - self.verticalLayout_3.addWidget(self.frame_2) - self.frame_3 = QtGui.QFrame(Frame) - self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) - self.frame_3.setFrameShadow(QtGui.QFrame.Raised) - self.frame_3.setObjectName(_fromUtf8("frame_3")) - self.binning_edit = QtGui.QLineEdit(self.frame_3) - self.binning_edit.setGeometry(QtCore.QRect(160, 50, 111, 27)) - self.binning_edit.setObjectName(_fromUtf8("binning_edit")) - self.binind_checkbox = QtGui.QCheckBox(self.frame_3) - self.binind_checkbox.setGeometry(QtCore.QRect(360, 50, 135, 22)) - self.binind_checkbox.setObjectName(_fromUtf8("binind_checkbox")) - self.label_6 = QtGui.QLabel(self.frame_3) - self.label_6.setGeometry(QtCore.QRect(60, 100, 76, 41)) - self.label_6.setObjectName(_fromUtf8("label_6")) - self.resamplex_edit = QtGui.QLineEdit(self.frame_3) - self.resamplex_edit.setGeometry(QtCore.QRect(160, 110, 111, 27)) - self.resamplex_edit.setObjectName(_fromUtf8("resamplex_edit")) - self.bintype_combo = QtGui.QComboBox(self.frame_3) - self.bintype_combo.setGeometry(QtCore.QRect(360, 110, 171, 27)) - self.bintype_combo.setObjectName(_fromUtf8("bintype_combo")) - self.bintype_combo.addItem(_fromUtf8("")) - self.bintype_combo.addItem(_fromUtf8("")) - self.lineEdit_5 = QtGui.QLineEdit(self.frame_3) - self.lineEdit_5.setGeometry(QtCore.QRect(730, 50, 113, 27)) - self.lineEdit_5.setObjectName(_fromUtf8("lineEdit_5")) - self.lineEdit_6 = QtGui.QLineEdit(self.frame_3) - self.lineEdit_6.setGeometry(QtCore.QRect(730, 110, 113, 27)) - self.lineEdit_6.setObjectName(_fromUtf8("lineEdit_6")) - self.label_13 = QtGui.QLabel(self.frame_3) - self.label_13.setGeometry(QtCore.QRect(650, 50, 66, 17)) - self.label_13.setObjectName(_fromUtf8("label_13")) - self.label_14 = QtGui.QLabel(self.frame_3) - self.label_14.setGeometry(QtCore.QRect(650, 110, 66, 17)) - self.label_14.setObjectName(_fromUtf8("label_14")) - self.label_15 = QtGui.QLabel(self.frame_3) - self.label_15.setGeometry(QtCore.QRect(80, 50, 66, 17)) - self.label_15.setObjectName(_fromUtf8("label_15")) - self.usebin_button = QtGui.QRadioButton(self.frame_3) - self.usebin_button.setGeometry(QtCore.QRect(20, 50, 41, 22)) - self.usebin_button.setText(_fromUtf8("")) - self.usebin_button.setObjectName(_fromUtf8("usebin_button")) - self.resamplex_button = QtGui.QRadioButton(self.frame_3) - self.resamplex_button.setGeometry(QtCore.QRect(20, 110, 41, 22)) - self.resamplex_button.setText(_fromUtf8("")) - self.resamplex_button.setObjectName(_fromUtf8("resamplex_button")) - self.line = QtGui.QFrame(self.frame_3) - self.line.setGeometry(QtCore.QRect(290, 10, 20, 171)) - self.line.setFrameShape(QtGui.QFrame.VLine) - self.line.setFrameShadow(QtGui.QFrame.Sunken) - self.line.setObjectName(_fromUtf8("line")) - self.line_2 = QtGui.QFrame(self.frame_3) - self.line_2.setGeometry(QtCore.QRect(570, 10, 20, 171)) - self.line_2.setFrameShape(QtGui.QFrame.VLine) - self.line_2.setFrameShadow(QtGui.QFrame.Sunken) - self.line_2.setObjectName(_fromUtf8("line_2")) - self.verticalLayout_3.addWidget(self.frame_3) - self.frame_4 = QtGui.QFrame(Frame) - self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) - self.frame_4.setFrameShadow(QtGui.QFrame.Raised) - self.frame_4.setObjectName(_fromUtf8("frame_4")) - self.label_7 = QtGui.QLabel(self.frame_4) - self.label_7.setGeometry(QtCore.QRect(20, 10, 117, 51)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) + self.help_button.setFont(font) + self.help_button.setFocusPolicy(QtCore.Qt.NoFocus) + self.help_button.setIconSize(QtCore.QSize(15, 15)) + self.help_button.setObjectName(_fromUtf8("help_button")) + self.horizontalLayout_13.addWidget(self.help_button) + self.verticalLayout_4.addLayout(self.horizontalLayout_13) + self.reduction_options_group = QtGui.QGroupBox(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth()) - self.label_7.setSizePolicy(sizePolicy) - self.label_7.setObjectName(_fromUtf8("label_7")) - self.outputdir_edit = QtGui.QLineEdit(self.frame_4) - self.outputdir_edit.setGeometry(QtCore.QRect(160, 20, 621, 27)) + sizePolicy.setHeightForWidth(self.reduction_options_group.sizePolicy().hasHeightForWidth()) + self.reduction_options_group.setSizePolicy(sizePolicy) + self.reduction_options_group.setMaximumSize(QtCore.QSize(16777215, 16777215)) + self.reduction_options_group.setObjectName(_fromUtf8("reduction_options_group")) + self.verticalLayout_6 = QtGui.QVBoxLayout(self.reduction_options_group) + self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) + self.horizontalLayout_4 = QtGui.QHBoxLayout() + self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) + self.att_scale_factor_label = QtGui.QLabel(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.att_scale_factor_label.sizePolicy().hasHeightForWidth()) + self.att_scale_factor_label.setSizePolicy(sizePolicy) + self.att_scale_factor_label.setMinimumSize(QtCore.QSize(100, 0)) + self.att_scale_factor_label.setMaximumSize(QtCore.QSize(100, 16777215)) + self.att_scale_factor_label.setObjectName(_fromUtf8("att_scale_factor_label")) + self.horizontalLayout_4.addWidget(self.att_scale_factor_label) + self.runnumbers_edit = QtGui.QLineEdit(self.reduction_options_group) + self.runnumbers_edit.setMinimumSize(QtCore.QSize(80, 0)) + self.runnumbers_edit.setMaximumSize(QtCore.QSize(360, 16777215)) + self.runnumbers_edit.setObjectName(_fromUtf8("runnumbers_edit")) + self.horizontalLayout_4.addWidget(self.runnumbers_edit) + self.sum_checkbox = QtGui.QCheckBox(self.reduction_options_group) + self.sum_checkbox.setMinimumSize(QtCore.QSize(80, 0)) + self.sum_checkbox.setMaximumSize(QtCore.QSize(180, 16777215)) + self.sum_checkbox.setObjectName(_fromUtf8("sum_checkbox")) + self.horizontalLayout_4.addWidget(self.sum_checkbox) + spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_4.addItem(spacerItem1) + self.verticalLayout_6.addLayout(self.horizontalLayout_4) + self.monitor_layout = QtGui.QHBoxLayout() + self.monitor_layout.setObjectName(_fromUtf8("monitor_layout")) + self.label_3 = QtGui.QLabel(self.reduction_options_group) + self.label_3.setObjectName(_fromUtf8("label_3")) + self.monitor_layout.addWidget(self.label_3) + self.calfile_edit = QtGui.QLineEdit(self.reduction_options_group) + self.calfile_edit.setObjectName(_fromUtf8("calfile_edit")) + self.monitor_layout.addWidget(self.calfile_edit) + self.calfile_browse = QtGui.QPushButton(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.calfile_browse.sizePolicy().hasHeightForWidth()) + self.calfile_browse.setSizePolicy(sizePolicy) + self.calfile_browse.setObjectName(_fromUtf8("calfile_browse")) + self.monitor_layout.addWidget(self.calfile_browse) + spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.monitor_layout.addItem(spacerItem2) + self.verticalLayout_6.addLayout(self.monitor_layout) + self.horizontalLayout_6 = QtGui.QHBoxLayout() + self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) + self.label_4 = QtGui.QLabel(self.reduction_options_group) + self.label_4.setMaximumSize(QtCore.QSize(100, 16777215)) + self.label_4.setObjectName(_fromUtf8("label_4")) + self.horizontalLayout_6.addWidget(self.label_4) + self.extension_combo = QtGui.QComboBox(self.reduction_options_group) + self.extension_combo.setMinimumSize(QtCore.QSize(200, 0)) + self.extension_combo.setMaximumSize(QtCore.QSize(400, 16777215)) + self.extension_combo.setObjectName(_fromUtf8("extension_combo")) + self.extension_combo.addItem(_fromUtf8("")) + self.extension_combo.addItem(_fromUtf8("")) + self.extension_combo.addItem(_fromUtf8("")) + self.horizontalLayout_6.addWidget(self.extension_combo) + spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_6.addItem(spacerItem3) + self.preserveevents_checkbox = QtGui.QCheckBox(self.reduction_options_group) + self.preserveevents_checkbox.setMaximumSize(QtCore.QSize(160, 16777215)) + self.preserveevents_checkbox.setObjectName(_fromUtf8("preserveevents_checkbox")) + self.horizontalLayout_6.addWidget(self.preserveevents_checkbox) + spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_6.addItem(spacerItem4) + self.verticalLayout_6.addLayout(self.horizontalLayout_6) + self.abs_scale_direct_beam_layout = QtGui.QHBoxLayout() + self.abs_scale_direct_beam_layout.setObjectName(_fromUtf8("abs_scale_direct_beam_layout")) + self.direct_beam_label = QtGui.QLabel(self.reduction_options_group) + self.direct_beam_label.setMinimumSize(QtCore.QSize(150, 0)) + self.direct_beam_label.setMaximumSize(QtCore.QSize(150, 16777215)) + self.direct_beam_label.setObjectName(_fromUtf8("direct_beam_label")) + self.abs_scale_direct_beam_layout.addWidget(self.direct_beam_label) + self.charfile_edit = QtGui.QLineEdit(self.reduction_options_group) + self.charfile_edit.setMinimumSize(QtCore.QSize(300, 0)) + self.charfile_edit.setObjectName(_fromUtf8("charfile_edit")) + self.abs_scale_direct_beam_layout.addWidget(self.charfile_edit) + self.charfile_browse = QtGui.QPushButton(self.reduction_options_group) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.charfile_browse.sizePolicy().hasHeightForWidth()) + self.charfile_browse.setSizePolicy(sizePolicy) + self.charfile_browse.setObjectName(_fromUtf8("charfile_browse")) + self.abs_scale_direct_beam_layout.addWidget(self.charfile_browse) + spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.abs_scale_direct_beam_layout.addItem(spacerItem5) + self.verticalLayout_6.addLayout(self.abs_scale_direct_beam_layout) + self.horizontalLayout_7 = QtGui.QHBoxLayout() + self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) + self.label = QtGui.QLabel(self.reduction_options_group) + self.label.setObjectName(_fromUtf8("label")) + self.horizontalLayout_7.addWidget(self.label) + self.outputdir_edit = QtGui.QLineEdit(self.reduction_options_group) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.outputdir_edit.sizePolicy().hasHeightForWidth()) self.outputdir_edit.setSizePolicy(sizePolicy) + self.outputdir_edit.setMinimumSize(QtCore.QSize(300, 0)) + self.outputdir_edit.setBaseSize(QtCore.QSize(0, 0)) self.outputdir_edit.setObjectName(_fromUtf8("outputdir_edit")) - self.outputdir_browse = QtGui.QPushButton(self.frame_4) - self.outputdir_browse.setGeometry(QtCore.QRect(800, 20, 85, 27)) + self.horizontalLayout_7.addWidget(self.outputdir_edit) + self.outputdir_browse = QtGui.QPushButton(self.reduction_options_group) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.outputdir_browse.sizePolicy().hasHeightForWidth()) self.outputdir_browse.setSizePolicy(sizePolicy) self.outputdir_browse.setObjectName(_fromUtf8("outputdir_browse")) - self.label_8 = QtGui.QLabel(self.frame_4) - self.label_8.setGeometry(QtCore.QRect(80, 60, 51, 51)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth()) - self.label_8.setSizePolicy(sizePolicy) - self.label_8.setObjectName(_fromUtf8("label_8")) - self.saveas_combo = QtGui.QComboBox(self.frame_4) - self.saveas_combo.setGeometry(QtCore.QRect(160, 70, 261, 27)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.saveas_combo.sizePolicy().hasHeightForWidth()) - self.saveas_combo.setSizePolicy(sizePolicy) + self.horizontalLayout_7.addWidget(self.outputdir_browse) + spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_7.addItem(spacerItem6) + self.verticalLayout_6.addLayout(self.horizontalLayout_7) + self.horizontalLayout_8 = QtGui.QHBoxLayout() + self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) + self.label_2 = QtGui.QLabel(self.reduction_options_group) + self.label_2.setObjectName(_fromUtf8("label_2")) + self.horizontalLayout_8.addWidget(self.label_2) + self.saveas_combo = QtGui.QComboBox(self.reduction_options_group) + self.saveas_combo.setMinimumSize(QtCore.QSize(120, 0)) self.saveas_combo.setObjectName(_fromUtf8("saveas_combo")) self.saveas_combo.addItem(_fromUtf8("")) self.saveas_combo.addItem(_fromUtf8("")) self.saveas_combo.addItem(_fromUtf8("")) self.saveas_combo.addItem(_fromUtf8("")) - self.saveas_combo.addItem(_fromUtf8("")) - self.saveas_combo.addItem(_fromUtf8("")) - self.saveas_combo.addItem(_fromUtf8("")) - self.saveas_combo.addItem(_fromUtf8("")) - self.saveas_combo.addItem(_fromUtf8("")) - self.label_9 = QtGui.QLabel(self.frame_4) - self.label_9.setGeometry(QtCore.QRect(500, 60, 65, 41)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) + self.horizontalLayout_8.addWidget(self.saveas_combo) + spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_8.addItem(spacerItem7) + self.label_6 = QtGui.QLabel(self.reduction_options_group) + self.label_6.setObjectName(_fromUtf8("label_6")) + self.horizontalLayout_8.addWidget(self.label_6) + self.unit_combo = QtGui.QComboBox(self.reduction_options_group) + self.unit_combo.setMinimumSize(QtCore.QSize(100, 0)) + self.unit_combo.setObjectName(_fromUtf8("unit_combo")) + self.unit_combo.addItem(_fromUtf8("")) + self.unit_combo.addItem(_fromUtf8("")) + self.horizontalLayout_8.addWidget(self.unit_combo) + spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_8.addItem(spacerItem8) + self.verticalLayout_6.addLayout(self.horizontalLayout_8) + self.verticalLayout_4.addWidget(self.reduction_options_group) + self.geometry_options_groupbox = QtGui.QGroupBox(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth()) - self.label_9.setSizePolicy(sizePolicy) - self.label_9.setObjectName(_fromUtf8("label_9")) - self.unit_combo = QtGui.QComboBox(self.frame_4) - self.unit_combo.setGeometry(QtCore.QRect(600, 70, 141, 27)) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.geometry_options_groupbox.sizePolicy().hasHeightForWidth()) + self.geometry_options_groupbox.setSizePolicy(sizePolicy) + self.geometry_options_groupbox.setMinimumSize(QtCore.QSize(0, 0)) + self.geometry_options_groupbox.setMaximumSize(QtCore.QSize(16777215, 16777215)) + self.geometry_options_groupbox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) + self.geometry_options_groupbox.setObjectName(_fromUtf8("geometry_options_groupbox")) + self.verticalLayout_5 = QtGui.QVBoxLayout(self.geometry_options_groupbox) + self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) + self.mask_template_horiz_layout = QtGui.QHBoxLayout() + self.mask_template_horiz_layout.setSpacing(0) + self.mask_template_horiz_layout.setObjectName(_fromUtf8("mask_template_horiz_layout")) + self.experiment_parameter_help = QtGui.QLabel(self.geometry_options_groupbox) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.unit_combo.sizePolicy().hasHeightForWidth()) - self.unit_combo.setSizePolicy(sizePolicy) - self.unit_combo.setObjectName(_fromUtf8("unit_combo")) - self.unit_combo.addItem(_fromUtf8("")) - self.unit_combo.addItem(_fromUtf8("")) - self.verticalLayout_3.addWidget(self.frame_4) + sizePolicy.setHeightForWidth(self.experiment_parameter_help.sizePolicy().hasHeightForWidth()) + self.experiment_parameter_help.setSizePolicy(sizePolicy) + self.experiment_parameter_help.setMinimumSize(QtCore.QSize(150, 0)) + self.experiment_parameter_help.setStyleSheet(_fromUtf8("font: italic 10pt \"Bitstream Charter\";")) + self.experiment_parameter_help.setObjectName(_fromUtf8("experiment_parameter_help")) + self.mask_template_horiz_layout.addWidget(self.experiment_parameter_help) + self.verticalLayout_5.addLayout(self.mask_template_horiz_layout) + self.formLayout_3 = QtGui.QFormLayout() + self.formLayout_3.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) + self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow) + self.formLayout_3.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) + self.formLayout_3.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) + self.formLayout_3.setObjectName(_fromUtf8("formLayout_3")) + self.disablebkgdcorr_chkbox = QtGui.QCheckBox(self.geometry_options_groupbox) + self.disablebkgdcorr_chkbox.setWhatsThis(_fromUtf8("")) + self.disablebkgdcorr_chkbox.setObjectName(_fromUtf8("disablebkgdcorr_chkbox")) + self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.disablebkgdcorr_chkbox) + self.emptyrun_edit = QtGui.QLineEdit(self.geometry_options_groupbox) + self.emptyrun_edit.setMinimumSize(QtCore.QSize(80, 0)) + self.emptyrun_edit.setMaximumSize(QtCore.QSize(80, 16777215)) + self.emptyrun_edit.setObjectName(_fromUtf8("emptyrun_edit")) + self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.emptyrun_edit) + self.disablevancorr_chkbox = QtGui.QCheckBox(self.geometry_options_groupbox) + self.disablevancorr_chkbox.setObjectName(_fromUtf8("disablevancorr_chkbox")) + self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.disablevancorr_chkbox) + self.vanrun_edit = QtGui.QLineEdit(self.geometry_options_groupbox) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.vanrun_edit.sizePolicy().hasHeightForWidth()) + self.vanrun_edit.setSizePolicy(sizePolicy) + self.vanrun_edit.setMinimumSize(QtCore.QSize(80, 0)) + self.vanrun_edit.setMaximumSize(QtCore.QSize(80, 16777215)) + self.vanrun_edit.setObjectName(_fromUtf8("vanrun_edit")) + self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.vanrun_edit) + self.disablevanbkgdcorr_chkbox = QtGui.QCheckBox(self.geometry_options_groupbox) + self.disablevanbkgdcorr_chkbox.setObjectName(_fromUtf8("disablevanbkgdcorr_chkbox")) + self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.disablevanbkgdcorr_chkbox) + self.vanbkgdrun_edit = QtGui.QLineEdit(self.geometry_options_groupbox) + self.vanbkgdrun_edit.setMaximumSize(QtCore.QSize(80, 16777215)) + self.vanbkgdrun_edit.setObjectName(_fromUtf8("vanbkgdrun_edit")) + self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.vanbkgdrun_edit) + self.verticalLayout_5.addLayout(self.formLayout_3) + self.verticalLayout_4.addWidget(self.geometry_options_groupbox) + self.mask_groupbox = QtGui.QGroupBox(self.scrollAreaWidgetContents) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.mask_groupbox.sizePolicy().hasHeightForWidth()) + self.mask_groupbox.setSizePolicy(sizePolicy) + self.mask_groupbox.setObjectName(_fromUtf8("mask_groupbox")) + self.verticalLayout_2 = QtGui.QVBoxLayout(self.mask_groupbox) + self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) + self.mask_help_label = QtGui.QLabel(self.mask_groupbox) + font = QtGui.QFont() + font.setFamily(_fromUtf8("Bitstream Charter")) + font.setItalic(True) + self.mask_help_label.setFont(font) + self.mask_help_label.setObjectName(_fromUtf8("mask_help_label")) + self.verticalLayout_2.addWidget(self.mask_help_label) + self.gridLayout = QtGui.QGridLayout() + self.gridLayout.setObjectName(_fromUtf8("gridLayout")) + self.label_9 = QtGui.QLabel(self.mask_groupbox) + self.label_9.setObjectName(_fromUtf8("label_9")) + self.gridLayout.addWidget(self.label_9, 2, 5, 1, 1) + self.resamplex_edit = QtGui.QLineEdit(self.mask_groupbox) + self.resamplex_edit.setObjectName(_fromUtf8("resamplex_edit")) + self.gridLayout.addWidget(self.resamplex_edit, 2, 1, 1, 1) + self.bintype_combo = QtGui.QComboBox(self.mask_groupbox) + self.bintype_combo.setMinimumSize(QtCore.QSize(160, 0)) + self.bintype_combo.setMaximumSize(QtCore.QSize(200, 16777215)) + self.bintype_combo.setObjectName(_fromUtf8("bintype_combo")) + self.bintype_combo.addItem(_fromUtf8("")) + self.bintype_combo.addItem(_fromUtf8("")) + self.gridLayout.addWidget(self.bintype_combo, 2, 3, 1, 1) + self.label_8 = QtGui.QLabel(self.mask_groupbox) + self.label_8.setObjectName(_fromUtf8("label_8")) + self.gridLayout.addWidget(self.label_8, 0, 5, 1, 1) + self.usebin_button = QtGui.QRadioButton(self.mask_groupbox) + self.usebin_button.setObjectName(_fromUtf8("usebin_button")) + self.gridLayout.addWidget(self.usebin_button, 0, 0, 1, 1) + self.label_7 = QtGui.QLabel(self.mask_groupbox) + self.label_7.setText(_fromUtf8("")) + self.label_7.setObjectName(_fromUtf8("label_7")) + self.gridLayout.addWidget(self.label_7, 0, 2, 1, 1) + self.binind_checkbox = QtGui.QCheckBox(self.mask_groupbox) + self.binind_checkbox.setObjectName(_fromUtf8("binind_checkbox")) + self.gridLayout.addWidget(self.binind_checkbox, 0, 3, 1, 1) + self.resamplex_button = QtGui.QRadioButton(self.mask_groupbox) + self.resamplex_button.setObjectName(_fromUtf8("resamplex_button")) + self.gridLayout.addWidget(self.resamplex_button, 2, 0, 1, 1) + self.tofmax_edit = QtGui.QLineEdit(self.mask_groupbox) + self.tofmax_edit.setObjectName(_fromUtf8("tofmax_edit")) + self.gridLayout.addWidget(self.tofmax_edit, 2, 6, 1, 1) + self.binning_edit = QtGui.QLineEdit(self.mask_groupbox) + self.binning_edit.setObjectName(_fromUtf8("binning_edit")) + self.gridLayout.addWidget(self.binning_edit, 0, 1, 1, 1) + self.tofmin_edit = QtGui.QLineEdit(self.mask_groupbox) + self.tofmin_edit.setObjectName(_fromUtf8("tofmin_edit")) + self.gridLayout.addWidget(self.tofmin_edit, 0, 6, 1, 1) + spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.gridLayout.addItem(spacerItem9, 2, 2, 1, 1) + spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.gridLayout.addItem(spacerItem10, 2, 4, 1, 1) + self.verticalLayout_2.addLayout(self.gridLayout) + self.verticalLayout_4.addWidget(self.mask_groupbox) + spacerItem11 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) + self.verticalLayout_4.addItem(spacerItem11) + self.scrollArea.setWidget(self.scrollAreaWidgetContents) + self.verticalLayout.addWidget(self.scrollArea) self.retranslateUi(Frame) QtCore.QMetaObject.connectSlotsByName(Frame) def retranslateUi(self, Frame): Frame.setWindowTitle(QtGui.QApplication.translate("Frame", "Frame", None, QtGui.QApplication.UnicodeUTF8)) - self.label_4.setText(QtGui.QApplication.translate("Frame", "Run numbers", None, QtGui.QApplication.UnicodeUTF8)) - self.label_5.setText(QtGui.QApplication.translate("Frame", "File Extension", None, QtGui.QApplication.UnicodeUTF8)) + Frame.setToolTip(QtGui.QApplication.translate("Frame", "Click to browse.", None, QtGui.QApplication.UnicodeUTF8)) + self.instr_name_label.setText(QtGui.QApplication.translate("Frame", "SNS Powder Reduction", None, QtGui.QApplication.UnicodeUTF8)) + self.help_button.setText(QtGui.QApplication.translate("Frame", "Help", None, QtGui.QApplication.UnicodeUTF8)) + self.reduction_options_group.setTitle(QtGui.QApplication.translate("Frame", "Reduction Options", None, QtGui.QApplication.UnicodeUTF8)) + self.att_scale_factor_label.setText(QtGui.QApplication.translate("Frame", "Run Numbers", None, QtGui.QApplication.UnicodeUTF8)) + self.runnumbers_edit.setToolTip(QtGui.QApplication.translate("Frame", "Enter a scaling factor to be multiplied to I(Q).", None, QtGui.QApplication.UnicodeUTF8)) + self.runnumbers_edit.setStatusTip(QtGui.QApplication.translate("Frame", "Enter a scaling factor to be multiplied to I(Q).", None, QtGui.QApplication.UnicodeUTF8)) + self.sum_checkbox.setToolTip(QtGui.QApplication.translate("Frame", "Select to normalize to the beam monitor data", None, QtGui.QApplication.UnicodeUTF8)) + self.sum_checkbox.setStatusTip(QtGui.QApplication.translate("Frame", "Select to normalize to the beam monitor data", None, QtGui.QApplication.UnicodeUTF8)) + self.sum_checkbox.setText(QtGui.QApplication.translate("Frame", "Sum", None, QtGui.QApplication.UnicodeUTF8)) + self.label_3.setText(QtGui.QApplication.translate("Frame", "Calibration File", None, QtGui.QApplication.UnicodeUTF8)) + self.calfile_edit.setToolTip(QtGui.QApplication.translate("Frame", "Enter a valid path for the beam monitor reference file.", None, QtGui.QApplication.UnicodeUTF8)) + self.calfile_edit.setStatusTip(QtGui.QApplication.translate("Frame", "Enter a valid path for the beam monitor reference file.", None, QtGui.QApplication.UnicodeUTF8)) + self.calfile_browse.setText(QtGui.QApplication.translate("Frame", "Browse", None, QtGui.QApplication.UnicodeUTF8)) + self.label_4.setText(QtGui.QApplication.translate("Frame", "File Extension", None, QtGui.QApplication.UnicodeUTF8)) self.extension_combo.setItemText(0, QtGui.QApplication.translate("Frame", "_event.nxs", None, QtGui.QApplication.UnicodeUTF8)) self.extension_combo.setItemText(1, QtGui.QApplication.translate("Frame", "_histo.nxs", None, QtGui.QApplication.UnicodeUTF8)) self.extension_combo.setItemText(2, QtGui.QApplication.translate("Frame", "_runinfo.xml", None, QtGui.QApplication.UnicodeUTF8)) - self.label.setText(QtGui.QApplication.translate("Frame", "Calibration File ", None, QtGui.QApplication.UnicodeUTF8)) - self.calfile_browse.setText(QtGui.QApplication.translate("Frame", "Browse", None, QtGui.QApplication.UnicodeUTF8)) + self.preserveevents_checkbox.setToolTip(QtGui.QApplication.translate("Frame", "Check to calculate the absolute scale factor using the direct beam method.", None, QtGui.QApplication.UnicodeUTF8)) + self.preserveevents_checkbox.setStatusTip(QtGui.QApplication.translate("Frame", "Check to calculate the absolute scale factor using the direct beam method.", None, QtGui.QApplication.UnicodeUTF8)) self.preserveevents_checkbox.setText(QtGui.QApplication.translate("Frame", "Preserve Events", None, QtGui.QApplication.UnicodeUTF8)) - self.sum_checkbox.setText(QtGui.QApplication.translate("Frame", "Sum", None, QtGui.QApplication.UnicodeUTF8)) - self.label_2.setText(QtGui.QApplication.translate("Frame", "Characterization File", None, QtGui.QApplication.UnicodeUTF8)) + self.direct_beam_label.setText(QtGui.QApplication.translate("Frame", "Characterizaton File", None, QtGui.QApplication.UnicodeUTF8)) + self.charfile_edit.setToolTip(QtGui.QApplication.translate("Frame", "Enter a valid file path for a direct beam data file.", None, QtGui.QApplication.UnicodeUTF8)) + self.charfile_edit.setStatusTip(QtGui.QApplication.translate("Frame", "Enter a valid file path for a direct beam data file.", None, QtGui.QApplication.UnicodeUTF8)) self.charfile_browse.setText(QtGui.QApplication.translate("Frame", "Browse", None, QtGui.QApplication.UnicodeUTF8)) - self.label_3.setText(QtGui.QApplication.translate("Frame", "Empty Run", None, QtGui.QApplication.UnicodeUTF8)) - self.label_10.setText(QtGui.QApplication.translate("Frame", "Vanadium Noise Run", None, QtGui.QApplication.UnicodeUTF8)) - self.label_11.setText(QtGui.QApplication.translate("Frame", "Vanadium Run", None, QtGui.QApplication.UnicodeUTF8)) - self.label_12.setText(QtGui.QApplication.translate("Frame", "Vanadium Background Run", None, QtGui.QApplication.UnicodeUTF8)) - self.disablevancorr_chkbox.setText(QtGui.QApplication.translate("Frame", "Disable Correction", None, QtGui.QApplication.UnicodeUTF8)) - self.label_16.setText(QtGui.QApplication.translate("Frame", "Override Characterization File ", None, QtGui.QApplication.UnicodeUTF8)) - self.disablevanbkgdcorr_chkbox.setText(QtGui.QApplication.translate("Frame", "Disable Correction", None, QtGui.QApplication.UnicodeUTF8)) - self.disablebkgdcorr_chkbox.setText(QtGui.QApplication.translate("Frame", "Disable Correction", None, QtGui.QApplication.UnicodeUTF8)) - self.binind_checkbox.setText(QtGui.QApplication.translate("Frame", "Bin In d-spacing", None, QtGui.QApplication.UnicodeUTF8)) - self.label_6.setText(QtGui.QApplication.translate("Frame", "ResampleX", None, QtGui.QApplication.UnicodeUTF8)) - self.bintype_combo.setItemText(0, QtGui.QApplication.translate("Frame", "Linear Binning", None, QtGui.QApplication.UnicodeUTF8)) - self.bintype_combo.setItemText(1, QtGui.QApplication.translate("Frame", "logarithmic binning", None, QtGui.QApplication.UnicodeUTF8)) - self.label_13.setText(QtGui.QApplication.translate("Frame", "TOF Min", None, QtGui.QApplication.UnicodeUTF8)) - self.label_14.setText(QtGui.QApplication.translate("Frame", "TOF Max", None, QtGui.QApplication.UnicodeUTF8)) - self.label_15.setText(QtGui.QApplication.translate("Frame", "Binning", None, QtGui.QApplication.UnicodeUTF8)) - self.label_7.setText(QtGui.QApplication.translate("Frame", "Output Directory", None, QtGui.QApplication.UnicodeUTF8)) + self.label.setText(QtGui.QApplication.translate("Frame", "Output Directory", None, QtGui.QApplication.UnicodeUTF8)) + self.outputdir_edit.setToolTip(QtGui.QApplication.translate("Frame", "Enter a valid file path to be used for the dark current data.", None, QtGui.QApplication.UnicodeUTF8)) + self.outputdir_edit.setStatusTip(QtGui.QApplication.translate("Frame", "Enter a valid file path to be used for the dark current data.", None, QtGui.QApplication.UnicodeUTF8)) self.outputdir_browse.setText(QtGui.QApplication.translate("Frame", "Browse", None, QtGui.QApplication.UnicodeUTF8)) - self.label_8.setText(QtGui.QApplication.translate("Frame", "Save As", None, QtGui.QApplication.UnicodeUTF8)) + self.label_2.setText(QtGui.QApplication.translate("Frame", "Save As", None, QtGui.QApplication.UnicodeUTF8)) self.saveas_combo.setItemText(0, QtGui.QApplication.translate("Frame", "gsas", None, QtGui.QApplication.UnicodeUTF8)) self.saveas_combo.setItemText(1, QtGui.QApplication.translate("Frame", "fullprof", None, QtGui.QApplication.UnicodeUTF8)) self.saveas_combo.setItemText(2, QtGui.QApplication.translate("Frame", "gsas and fullprof", None, QtGui.QApplication.UnicodeUTF8)) self.saveas_combo.setItemText(3, QtGui.QApplication.translate("Frame", "gsas and fullprof and pdfgetn", None, QtGui.QApplication.UnicodeUTF8)) - self.saveas_combo.setItemText(4, QtGui.QApplication.translate("Frame", "NeXus", None, QtGui.QApplication.UnicodeUTF8)) - self.saveas_combo.setItemText(5, QtGui.QApplication.translate("Frame", "gsas and NeXus", None, QtGui.QApplication.UnicodeUTF8)) - self.saveas_combo.setItemText(6, QtGui.QApplication.translate("Frame", "fullprof and NeXus", None, QtGui.QApplication.UnicodeUTF8)) - self.saveas_combo.setItemText(7, QtGui.QApplication.translate("Frame", "gsas and fullprof and NeXus", None, QtGui.QApplication.UnicodeUTF8)) - self.saveas_combo.setItemText(8, QtGui.QApplication.translate("Frame", "gsas and fullprof and pdfgetn and NeXus", None, QtGui.QApplication.UnicodeUTF8)) - self.label_9.setText(QtGui.QApplication.translate("Frame", "Final Unit", None, QtGui.QApplication.UnicodeUTF8)) + self.label_6.setText(QtGui.QApplication.translate("Frame", "Final Unit", None, QtGui.QApplication.UnicodeUTF8)) self.unit_combo.setItemText(0, QtGui.QApplication.translate("Frame", "dSpacing", None, QtGui.QApplication.UnicodeUTF8)) self.unit_combo.setItemText(1, QtGui.QApplication.translate("Frame", "MomentumTransfer", None, QtGui.QApplication.UnicodeUTF8)) + self.geometry_options_groupbox.setTitle(QtGui.QApplication.translate("Frame", "Overriding CharacterizationFile", None, QtGui.QApplication.UnicodeUTF8)) + self.experiment_parameter_help.setText(QtGui.QApplication.translate("Frame", "blablabla.\n" +"blablabla.", None, QtGui.QApplication.UnicodeUTF8)) + self.disablebkgdcorr_chkbox.setToolTip(QtGui.QApplication.translate("Frame", "Select to set the detector distance offset.", None, QtGui.QApplication.UnicodeUTF8)) + self.disablebkgdcorr_chkbox.setStatusTip(QtGui.QApplication.translate("Frame", "Select to set the detector distance offset.", None, QtGui.QApplication.UnicodeUTF8)) + self.disablebkgdcorr_chkbox.setText(QtGui.QApplication.translate("Frame", "Disable Empty Run Correction", None, QtGui.QApplication.UnicodeUTF8)) + self.emptyrun_edit.setToolTip(QtGui.QApplication.translate("Frame", "Enter the detector distance offset in mm.", None, QtGui.QApplication.UnicodeUTF8)) + self.emptyrun_edit.setStatusTip(QtGui.QApplication.translate("Frame", "Enter the detector distance offset in mm.", None, QtGui.QApplication.UnicodeUTF8)) + self.disablevancorr_chkbox.setToolTip(QtGui.QApplication.translate("Frame", "Select to force the sample-detector distance.", None, QtGui.QApplication.UnicodeUTF8)) + self.disablevancorr_chkbox.setStatusTip(QtGui.QApplication.translate("Frame", "Select to force the sample-detector distance.", None, QtGui.QApplication.UnicodeUTF8)) + self.disablevancorr_chkbox.setText(QtGui.QApplication.translate("Frame", "Disable Vanadium Run Correction", None, QtGui.QApplication.UnicodeUTF8)) + self.vanrun_edit.setToolTip(QtGui.QApplication.translate("Frame", "Enter the value of the sample-to-detector distance in mm.", None, QtGui.QApplication.UnicodeUTF8)) + self.vanrun_edit.setStatusTip(QtGui.QApplication.translate("Frame", "Enter the value of the sample-to-detector distance in mm.", None, QtGui.QApplication.UnicodeUTF8)) + self.disablevanbkgdcorr_chkbox.setText(QtGui.QApplication.translate("Frame", "Disable Vanariumd Background Correction", None, QtGui.QApplication.UnicodeUTF8)) + self.mask_groupbox.setTitle(QtGui.QApplication.translate("Frame", "Binning", None, QtGui.QApplication.UnicodeUTF8)) + self.mask_help_label.setText(QtGui.QApplication.translate("Frame", "Choose a file to set your mask. Note that only the mask information, not the data, will be used in the reduction.\n" +"The data is only used to help you setting the mask.\n" +"The mask information is saved separately so that your data file will NOT be modified.", None, QtGui.QApplication.UnicodeUTF8)) + self.label_9.setText(QtGui.QApplication.translate("Frame", "TOF Max", None, QtGui.QApplication.UnicodeUTF8)) + self.bintype_combo.setItemText(0, QtGui.QApplication.translate("Frame", "Logarithmic Binning", None, QtGui.QApplication.UnicodeUTF8)) + self.bintype_combo.setItemText(1, QtGui.QApplication.translate("Frame", "Linear Binning", None, QtGui.QApplication.UnicodeUTF8)) + self.label_8.setText(QtGui.QApplication.translate("Frame", "TOF Min", None, QtGui.QApplication.UnicodeUTF8)) + self.usebin_button.setText(QtGui.QApplication.translate("Frame", "Binning", None, QtGui.QApplication.UnicodeUTF8)) + self.binind_checkbox.setText(QtGui.QApplication.translate("Frame", "Bin In d-spacing", None, QtGui.QApplication.UnicodeUTF8)) + self.resamplex_button.setText(QtGui.QApplication.translate("Frame", "ResampleX", None, QtGui.QApplication.UnicodeUTF8)) -- GitLab