From a23cc47fbde7af1c8a3fd89034ef70a24232c605 Mon Sep 17 00:00:00 2001 From: Raquel Alvarez Banos <raquel.alvarez.banos@gmail.com> Date: Wed, 4 Mar 2015 11:33:08 +0000 Subject: [PATCH] Re #9489 Add grouping section to ALC --- .../Muon/ALCDataLoadingView.ui | 895 ++++++++++-------- 1 file changed, 503 insertions(+), 392 deletions(-) diff --git a/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Muon/ALCDataLoadingView.ui b/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Muon/ALCDataLoadingView.ui index 9780978e28e..04998fe13f7 100644 --- a/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Muon/ALCDataLoadingView.ui +++ b/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Muon/ALCDataLoadingView.ui @@ -1,409 +1,520 @@ <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> - <class>ALCDataLoadingView</class> - <widget class="QWidget" name="ALCDataLoadingView"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>943</width> - <height>435</height> - </rect> - </property> - <property name="windowTitle"> - <string>Form</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout_3"> - <item> - <widget class="QSplitter" name="splitter"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <widget class="QWidget" name="layoutWidget"> - <layout class="QVBoxLayout" name="verticalLayout"> - <item> - <widget class="QGroupBox" name="dataGroup"> - <property name="title"> - <string>Data</string> - </property> - <layout class="QFormLayout" name="formLayout"> - <property name="fieldGrowthPolicy"> - <enum>QFormLayout::ExpandingFieldsGrow</enum> + <class>ALCDataLoadingView</class> + <widget class="QWidget" name="ALCDataLoadingView"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>943</width> + <height>435</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> + <widget class="QSplitter" name="splitter"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> </property> - <item row="0" column="0"> - <widget class="QLabel" name="label"> - <property name="text"> - <string>First</string> - </property> - </widget> - </item> - <item row="1" column="0"> - <widget class="QLabel" name="label_2"> - <property name="text"> - <string>Last</string> - </property> - </widget> - </item> - <item row="2" column="0"> - <widget class="QLabel" name="label_3"> - <property name="text"> - <string>Log</string> - </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="MantidQt::MantidWidgets::MWRunFiles" name="firstRun" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="label" stdset="0"> - <string/> - </property> - <property name="multipleFiles" stdset="0"> - <bool>false</bool> - </property> - </widget> - </item> - <item row="1" column="1"> - <widget class="MantidQt::MantidWidgets::MWRunFiles" name="lastRun" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="label" stdset="0"> - <string/> - </property> - <property name="multipleFiles" stdset="0"> - <bool>false</bool> - </property> - </widget> - </item> - <item row="2" column="1"> - <widget class="QComboBox" name="log"> - <property name="editable"> - <bool>false</bool> - </property> - <property name="sizeAdjustPolicy"> - <enum>QComboBox::AdjustToContents</enum> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QGroupBox" name="deadTimeGroup"> - <property name="title"> - <string>Dead Time Correction</string> - </property> - <layout class="QVBoxLayout" name="verticalLayoutDeadTime"> - <item> - <layout class="QHBoxLayout" name="horizontalLayoutDeadTime"> - <item> - <widget class="QRadioButton" name="none"> - <property name="text"> - <string>None</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - <attribute name="buttonGroup"> - <string notr="true">deadTimeCorrType</string> - </attribute> - </widget> - </item> - <item> - <widget class="QRadioButton" name="fromDataFile"> - <property name="text"> - <string>From Data File</string> - </property> - <attribute name="buttonGroup"> - <string notr="true">deadTimeCorrType</string> - </attribute> - </widget> - </item> - <item> - <widget class="QRadioButton" name="fromCustomFile"> - <property name="text"> - <string>From Custom File</string> - </property> - <attribute name="buttonGroup"> - <string notr="true">deadTimeCorrType</string> - </attribute> - </widget> - </item> + <widget class="QWidget" name="layoutWidget"> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QGroupBox" name="dataGroup"> + <property name="title"> + <string>Data</string> + </property> + <layout class="QFormLayout" name="formLayout"> + <property name="fieldGrowthPolicy"> + <enum>QFormLayout::ExpandingFieldsGrow</enum> + </property> + <item row="0" column="0"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>First</string> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>Last</string> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>Log</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="MantidQt::MantidWidgets::MWRunFiles" name="firstRun" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="label" stdset="0"> + <string/> + </property> + <property name="multipleFiles" stdset="0"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="MantidQt::MantidWidgets::MWRunFiles" name="lastRun" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="label" stdset="0"> + <string/> + </property> + <property name="multipleFiles" stdset="0"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QComboBox" name="log"> + <property name="editable"> + <bool>false</bool> + </property> + <property name="sizeAdjustPolicy"> + <enum>QComboBox::AdjustToContents</enum> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="deadTimeGroup"> + <property name="title"> + <string>Dead Time Correction</string> + </property> + <layout class="QVBoxLayout" name="verticalLayoutDeadTime"> + <item> + <layout class="QHBoxLayout" name="horizontalLayoutDeadTime"> + <item> + <widget class="QRadioButton" name="none"> + <property name="text"> + <string>None</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <attribute name="buttonGroup"> + <string notr="true">deadTimeCorrType</string> + </attribute> + </widget> + </item> + <item> + <widget class="QRadioButton" name="fromDataFile"> + <property name="text"> + <string>From Data File</string> + </property> + <attribute name="buttonGroup"> + <string notr="true">deadTimeCorrType</string> + </attribute> + </widget> + </item> + <item> + <widget class="QRadioButton" name="fromCustomFile"> + <property name="text"> + <string>From Custom File</string> + </property> + <attribute name="buttonGroup"> + <string notr="true">deadTimeCorrType</string> + </attribute> + </widget> + </item> + <item> + <spacer name="horizontalSpacerDeadTime"> + <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="horizontalLayoutDeadTime_2"> + <item> + <widget class="MantidQt::MantidWidgets::MWRunFiles" name="deadTimeFile" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="label" stdset="0"> + <string/> + </property> + <property name="multipleFiles" stdset="0"> + <bool>false</bool> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="detectorGroupingGroup"> + <property name="title"> + <string>Grouping</string> + </property> + <layout class="QVBoxLayout" name="verticalLayoutGrouping"> + <item> + <layout class="QHBoxLayout" name="horizontalLayoutGrouping"> + <item> + <widget class="QRadioButton" name="autoGroupingButton"> + <property name="text"> + <string>Auto</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <attribute name="buttonGroup"> + <string notr="true">detectorGroupingType</string> + </attribute> + </widget> + </item> + <item> + <widget class="QRadioButton" name="customGroupingButton"> + <property name="text"> + <string>Custom</string> + </property> + <attribute name="buttonGroup"> + <string notr="true">detectorGroupingType</string> + </attribute> + </widget> + </item> + <item> + <spacer name="horizontalSpacerGrouping"> + <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="horizontalLayoutGrouping_2"> + <item> + <widget class="QLabel" name="labelForward"> + <property name="text"> + <string>Forward</string> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="forwardEdit"> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="labelBackward"> + <property name="text"> + <string>Backward</string> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="backwardEdit"> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> <item> - <spacer name="horizontalSpacerDeadTime"> + <widget class="QGroupBox" name="groupBox_2"> + <property name="title"> + <string>Calculation</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QLabel" name="label_6"> + <property name="text"> + <string>Type:</string> + </property> + </widget> + </item> + <item> + <widget class="QRadioButton" name="integral"> + <property name="text"> + <string>Integral</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <attribute name="buttonGroup"> + <string notr="true">calculationType</string> + </attribute> + </widget> + </item> + <item> + <widget class="QRadioButton" name="differential"> + <property name="text"> + <string>Differential</string> + </property> + <attribute name="buttonGroup"> + <string notr="true">calculationType</string> + </attribute> + </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="horizontalLayout_2"> + <item> + <widget class="QCheckBox" name="timeLimit"> + <property name="text"> + <string>Time limit:</string> + </property> + </widget> + </item> + <item> + <widget class="QWidget" name="timeLimits" native="true"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="minimumSize"> + <size> + <width>100</width> + <height>0</height> + </size> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <property name="margin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="label_4"> + <property name="text"> + <string>From [µ]</string> + </property> + </widget> + </item> + <item> + <widget class="QDoubleSpinBox" name="minTime"/> + </item> + <item> + <widget class="QLabel" name="label_5"> + <property name="text"> + <string>Max [µ]</string> + </property> + </widget> + </item> + <item> + <widget class="QDoubleSpinBox" name="maxTime"/> + </item> + </layout> + </widget> + </item> + <item> + <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> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> - <width>40</width> - <height>20</height> + <width>20</width> + <height>40</height> </size> </property> </spacer> </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <spacer name="horizontalSpacer"> + <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="QPushButton" name="load"> + <property name="text"> + <string>Load</string> + </property> + </widget> + </item> + </layout> + </item> </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayoutDeadTime_2"> - <item> - <widget class="MantidQt::MantidWidgets::MWRunFiles" name="deadTimeFile" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="label" stdset="0"> - <string/> - </property> - <property name="multipleFiles" stdset="0"> - <bool>false</bool> - </property> - <property name="enabled"> - <bool>false</bool> - </property> - </widget> - </item> - </layout> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QGroupBox" name="groupBox_2"> - <property name="title"> - <string>Calculation</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout_4"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QLabel" name="label_6"> - <property name="text"> - <string>Type:</string> - </property> - </widget> - </item> - <item> - <widget class="QRadioButton" name="integral"> - <property name="text"> - <string>Integral</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - <attribute name="buttonGroup"> - <string notr="true">calculationType</string> - </attribute> - </widget> - </item> - <item> - <widget class="QRadioButton" name="differential"> - <property name="text"> - <string>Differential</string> - </property> - <attribute name="buttonGroup"> - <string notr="true">calculationType</string> - </attribute> - </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="horizontalLayout_2"> - <item> - <widget class="QCheckBox" name="timeLimit"> - <property name="text"> - <string>Time limit:</string> - </property> - </widget> - </item> - <item> - <widget class="QWidget" name="timeLimits" native="true"> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="minimumSize"> - <size> - <width>100</width> - <height>0</height> - </size> - </property> - <layout class="QHBoxLayout" name="horizontalLayout_4"> - <property name="margin"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="label_4"> - <property name="text"> - <string>From [µ]</string> - </property> - </widget> - </item> - <item> - <widget class="QDoubleSpinBox" name="minTime"/> - </item> - <item> - <widget class="QLabel" name="label_5"> - <property name="text"> - <string>Max [µ]</string> - </property> + </widget> + <widget class="QGroupBox" name="groupBox"> + <property name="title"> + <string>Loaded data</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QwtPlot" name="dataPlot"> + <property name="minimumSize"> + <size> + <width>300</width> + <height>0</height> + </size> + </property> </widget> - </item> - <item> - <widget class="QDoubleSpinBox" name="maxTime"/> - </item> - </layout> - </widget> - </item> - <item> - <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> - </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> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_3"> - <item> - <spacer name="horizontalSpacer"> - <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="QPushButton" name="load"> - <property name="text"> - <string>Load</string> - </property> + </item> + </layout> </widget> - </item> - </layout> - </item> - </layout> - </widget> - <widget class="QGroupBox" name="groupBox"> - <property name="title"> - <string>Loaded data</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <item> - <widget class="QwtPlot" name="dataPlot"> - <property name="minimumSize"> - <size> - <width>300</width> - <height>0</height> - </size> - </property> </widget> - </item> - </layout> - </widget> - </widget> - </item> - </layout> - </widget> - <customwidgets> - <customwidget> - <class>QwtPlot</class> - <extends>QFrame</extends> - <header>qwt_plot.h</header> - </customwidget> - <customwidget> - <class>MantidQt::MantidWidgets::MWRunFiles</class> - <extends>QWidget</extends> - <header>MantidQtMantidWidgets/MWRunFiles.h</header> - </customwidget> - </customwidgets> - <tabstops> - <tabstop>log</tabstop> - <tabstop>integral</tabstop> - <tabstop>differential</tabstop> - <tabstop>timeLimit</tabstop> - <tabstop>minTime</tabstop> - <tabstop>maxTime</tabstop> - <tabstop>load</tabstop> - </tabstops> - <resources/> - <connections> - <connection> - <sender>timeLimit</sender> - <signal>toggled(bool)</signal> - <receiver>timeLimits</receiver> - <slot>setEnabled(bool)</slot> - <hints> - <hint type="sourcelabel"> - <x>94</x> - <y>193</y> - </hint> - <hint type="destinationlabel"> - <x>264</x> - <y>205</y> - </hint> - </hints> - </connection> - <connection> - <sender>fromCustomFile</sender> - <signal>toggled(bool)</signal> - <receiver>deadTimeFile</receiver> - <slot>setEnabled(bool)</slot> - </connection> - </connections> - <buttongroups> - <buttongroup name="calculationType"/> - <buttongroup name="deadTimeCorrType"/> - </buttongroups> + </item> + </layout> + </widget> + <customwidgets> + <customwidget> + <class>QwtPlot</class> + <extends>QFrame</extends> + <header>qwt_plot.h</header> + </customwidget> + <customwidget> + <class>MantidQt::MantidWidgets::MWRunFiles</class> + <extends>QWidget</extends> + <header>MantidQtMantidWidgets/MWRunFiles.h</header> + </customwidget> + </customwidgets> + <tabstops> + <tabstop>log</tabstop> + <tabstop>integral</tabstop> + <tabstop>differential</tabstop> + <tabstop>timeLimit</tabstop> + <tabstop>minTime</tabstop> + <tabstop>maxTime</tabstop> + <tabstop>load</tabstop> + </tabstops> + <resources/> + <connections> + <connection> + <sender>timeLimit</sender> + <signal>toggled(bool)</signal> + <receiver>timeLimits</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>94</x> + <y>193</y> + </hint> + <hint type="destinationlabel"> + <x>264</x> + <y>205</y> + </hint> + </hints> + </connection> + <connection> + <sender>fromCustomFile</sender> + <signal>toggled(bool)</signal> + <receiver>deadTimeFile</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>customGroupingButton</sender> + <signal>toggled(bool)</signal> + <receiver>labelForward</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>customGroupingButton</sender> + <signal>toggled(bool)</signal> + <receiver>labelBackward</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>customGroupingButton</sender> + <signal>toggled(bool)</signal> + <receiver>forwardEdit</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>customGroupingButton</sender> + <signal>toggled(bool)</signal> + <receiver>backwardEdit</receiver> + <slot>setEnabled(bool)</slot> + </connection> + </connections> + <buttongroups> + <buttongroup name="calculationType"/> + <buttongroup name="deadTimeCorrType"/> + </buttongroups> </ui> -- GitLab