mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
somewhere
This commit is contained in:
@ -31,219 +31,11 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QGroupBox" name="boxOutDir">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>15</x>
|
|
||||||
<y>30</y>
|
|
||||||
<width>747</width>
|
|
||||||
<height>116</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string><nobr>
|
|
||||||
Directory where one saves the data.
|
|
||||||
</nobr><br>
|
|
||||||
#outdir#
|
|
||||||
<br>
|
|
||||||
</string>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
|
||||||
<string>Output Directory</string>
|
|
||||||
</property>
|
|
||||||
<widget class="QFrame" name="frameOutput">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>5</x>
|
|
||||||
<y>10</y>
|
|
||||||
<width>731</width>
|
|
||||||
<height>96</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string><nobr>
|
|
||||||
Directory where one saves the data.
|
|
||||||
</nobr><br>
|
|
||||||
#outdir#
|
|
||||||
<br>
|
|
||||||
</string>
|
|
||||||
</property>
|
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::NoFrame</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Plain</enum>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="horizontalLayoutWidget">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>10</x>
|
|
||||||
<y>10</y>
|
|
||||||
<width>716</width>
|
|
||||||
<height>92</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
|
||||||
<property name="verticalSpacing">
|
|
||||||
<number>4</number>
|
|
||||||
</property>
|
|
||||||
<item row="1" column="2">
|
|
||||||
<widget class="QLineEdit" name="dispReadOutputDir">
|
|
||||||
<property name="focusPolicy">
|
|
||||||
<enum>Qt::NoFocus</enum>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string><nobr>
|
|
||||||
Directory where one saves the data.
|
|
||||||
</nobr><br>
|
|
||||||
#outdir#
|
|
||||||
<br>
|
|
||||||
</string>
|
|
||||||
</property>
|
|
||||||
<property name="frame">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="echoMode">
|
|
||||||
<enum>QLineEdit::Normal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="lblDetector">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="palette">
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="WindowText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>2</red>
|
|
||||||
<green>2</green>
|
|
||||||
<blue>2</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="WindowText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="WindowText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>119</red>
|
|
||||||
<green>119</green>
|
|
||||||
<blue>119</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string><nobr>
|
|
||||||
Directory where one saves the data.
|
|
||||||
</nobr><br>
|
|
||||||
#outdir#
|
|
||||||
<br>
|
|
||||||
</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Readout:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="2">
|
|
||||||
<widget class="QLineEdit" name="dispOutputDir">
|
|
||||||
<property name="focusPolicy">
|
|
||||||
<enum>Qt::StrongFocus</enum>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string><nobr>
|
|
||||||
Directory where one saves the data.
|
|
||||||
</nobr><br>
|
|
||||||
#outdir#
|
|
||||||
<br>
|
|
||||||
</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2">
|
|
||||||
<widget class="QComboBox" name="comboDetector">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<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>20</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="3">
|
|
||||||
<widget class="QPushButton" name="btnOutputBrowse">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string><nobr>
|
|
||||||
Directory where one saves the data.
|
|
||||||
</nobr><br>
|
|
||||||
#outdir#
|
|
||||||
<br>
|
|
||||||
</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Browse</string>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset resource="../include/icons.qrc">
|
|
||||||
<normaloff>:/icons/images/browse.png</normaloff>:/icons/images/browse.png</iconset>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
<widget class="QGroupBox" name="boxCorrection_2">
|
<widget class="QGroupBox" name="boxCorrection_2">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>15</x>
|
<x>15</x>
|
||||||
<y>160</y>
|
<y>170</y>
|
||||||
<width>746</width>
|
<width>746</width>
|
||||||
<height>170</height>
|
<height>170</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -700,12 +492,441 @@ Directory where one saves the data.
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<zorder>boxOutDir</zorder>
|
<widget class="QGroupBox" name="boxCorrection_3">
|
||||||
<zorder>boxCorrection_2</zorder>
|
<property name="geometry">
|
||||||
<zorder>btnOutputBrowse</zorder>
|
<rect>
|
||||||
|
<x>20</x>
|
||||||
|
<y>8</y>
|
||||||
|
<width>737</width>
|
||||||
|
<height>155</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>File</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="horizontalLayoutWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>13</x>
|
||||||
|
<y>19</y>
|
||||||
|
<width>713</width>
|
||||||
|
<height>125</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<property name="verticalSpacing">
|
||||||
|
<number>4</number>
|
||||||
|
</property>
|
||||||
|
<item row="3" column="2">
|
||||||
|
<spacer name="horizontalSpacer_6">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>45</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QComboBox" name="comboFileFormat">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>105</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>File Format<br/>#fileformat# <br/></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Binary</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>ASCII</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>HDF5</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="lblDetector">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>70</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="palette">
|
||||||
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>2</red>
|
||||||
|
<green>2</green>
|
||||||
|
<blue>2</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>119</red>
|
||||||
|
<green>119</green>
|
||||||
|
<blue>119</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><nobr>
|
||||||
|
Directory where one saves the data.
|
||||||
|
</nobr><br>
|
||||||
|
#outdir#
|
||||||
|
<br>
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Readout:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QComboBox" name="comboDetector">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>105</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1" colspan="6">
|
||||||
|
<widget class="QLineEdit" name="dispReadOutputDir">
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><nobr>
|
||||||
|
Directory where one saves the data.
|
||||||
|
</nobr><br>
|
||||||
|
#outdir#
|
||||||
|
<br>
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="echoMode">
|
||||||
|
<enum>QLineEdit::Normal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="lblFileFormat">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>70</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="palette">
|
||||||
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>2</red>
|
||||||
|
<green>2</green>
|
||||||
|
<blue>2</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>119</red>
|
||||||
|
<green>119</green>
|
||||||
|
<blue>119</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>File Format<br/>#fileformat# <br/></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Format:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2" colspan="5">
|
||||||
|
<spacer name="horizontalSpacer_8">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>470</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="6">
|
||||||
|
<widget class="QPushButton" name="btnOutputBrowse">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><nobr>
|
||||||
|
Directory where one saves the data.
|
||||||
|
</nobr><br>
|
||||||
|
#outdir#
|
||||||
|
<br>
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../include/icons.qrc">
|
||||||
|
<normaloff>:/icons/images/browse.png</normaloff>:/icons/images/browse.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1" colspan="5">
|
||||||
|
<widget class="QLineEdit" name="dispOutputDir">
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::StrongFocus</enum>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><nobr>
|
||||||
|
Directory where one saves the data.
|
||||||
|
</nobr><br>
|
||||||
|
#outdir#
|
||||||
|
<br>
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="lblOutputDir">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>70</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="palette">
|
||||||
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>2</red>
|
||||||
|
<green>2</green>
|
||||||
|
<blue>2</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>119</red>
|
||||||
|
<green>119</green>
|
||||||
|
<blue>119</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><nobr>
|
||||||
|
Directory where one saves the data.
|
||||||
|
</nobr><br>
|
||||||
|
#outdir#
|
||||||
|
<br>
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Path:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="4" colspan="3">
|
||||||
|
<widget class="QLineEdit" name="dispFileName">
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Name of file. Can be modified in Measurement tab.<br/>#fname# <br/></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="frame">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="echoMode">
|
||||||
|
<enum>QLineEdit::Normal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="3">
|
||||||
|
<widget class="QLabel" name="lblFileName">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="palette">
|
||||||
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>2</red>
|
||||||
|
<green>2</green>
|
||||||
|
<blue>2</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>119</red>
|
||||||
|
<green>119</green>
|
||||||
|
<blue>119</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Name of file. Can be modified in Measurement tab.<br/>#fname# <br/></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Name Prefix:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>dispReadOutputDir</tabstop>
|
|
||||||
<tabstop>chkFlatField</tabstop>
|
<tabstop>chkFlatField</tabstop>
|
||||||
<tabstop>dispFlatField</tabstop>
|
<tabstop>dispFlatField</tabstop>
|
||||||
<tabstop>btnFlatField</tabstop>
|
<tabstop>btnFlatField</tabstop>
|
||||||
|
@ -90,15 +90,25 @@ private:
|
|||||||
void GetCompression();
|
void GetCompression();
|
||||||
|
|
||||||
/** update speed */
|
/** update speed */
|
||||||
void updateSpeedFromServer();
|
void UpdateSpeedFromServer();
|
||||||
|
|
||||||
/** update flags */
|
/** update flags */
|
||||||
void updateFlagsFromServer();
|
void UpdateFlagsFromServer();
|
||||||
|
|
||||||
|
/** update flags */
|
||||||
|
void SetupFileFormat();
|
||||||
|
|
||||||
|
/** update file format */
|
||||||
|
void UpdateFileFormatFromServer();
|
||||||
|
|
||||||
|
/** update overwrite enable */
|
||||||
|
void UpdateFileOverwriteFromServer();
|
||||||
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
/** Open dialog to choose the output directory */
|
/** Open dialog to choose the output directory */
|
||||||
void browseOutputDir();
|
void BrowseOutputDir();
|
||||||
|
|
||||||
/**set flat field file*/
|
/**set flat field file*/
|
||||||
void SetFlatField();
|
void SetFlatField();
|
||||||
@ -137,10 +147,16 @@ void SetCompression(bool enable);
|
|||||||
void EnableTenGigabitEthernet(bool enable, int get=0);
|
void EnableTenGigabitEthernet(bool enable, int get=0);
|
||||||
|
|
||||||
/** set speed */
|
/** set speed */
|
||||||
void setSpeed();
|
void SetSpeed();
|
||||||
|
|
||||||
/** set flags */
|
/** set flags */
|
||||||
void setFlags();
|
void SetFlags();
|
||||||
|
|
||||||
|
/** set file format */
|
||||||
|
void SetFileFormat(int format);
|
||||||
|
|
||||||
|
/** set overwrite enable */
|
||||||
|
void SetOverwriteEnable(bool enable);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/**signal to enable/disable positions in Actions*/
|
/**signal to enable/disable positions in Actions*/
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#include "slsDetector.h"
|
#include "slsDetector.h"
|
||||||
#include "multiSlsDetector.h"
|
#include "multiSlsDetector.h"
|
||||||
// Qt Include Headers
|
// Qt Include Headers
|
||||||
|
#include <QStandardItemModel>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
// C++ Include Headers
|
// C++ Include Headers
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -76,12 +77,15 @@ void qTabDataOutput::SetupWidgetWindow(){
|
|||||||
"<nobr> #flatfield# filename</nobr><br><br>")+
|
"<nobr> #flatfield# filename</nobr><br><br>")+
|
||||||
QString("<nobr><font color=\"red\">"
|
QString("<nobr><font color=\"red\">"
|
||||||
"Enter a valid file to enable Flat Field.</font></nobr>");
|
"Enter a valid file to enable Flat Field.</font></nobr>");
|
||||||
outDirTip = boxOutDir->toolTip();
|
outDirTip = lblOutputDir->toolTip();
|
||||||
|
|
||||||
|
|
||||||
//expert mode is not enabled initially
|
//expert mode is not enabled initially
|
||||||
chkCompression->setEnabled(false);
|
chkCompression->setEnabled(false);
|
||||||
|
|
||||||
|
//enabling file format depending on detector type
|
||||||
|
SetupFileFormat();
|
||||||
|
|
||||||
Initialization();
|
Initialization();
|
||||||
|
|
||||||
disconnect(comboDetector, SIGNAL(currentIndexChanged(int)), this, SLOT(GetOutputDir()));
|
disconnect(comboDetector, SIGNAL(currentIndexChanged(int)), this, SLOT(GetOutputDir()));
|
||||||
@ -144,8 +148,13 @@ void qTabDataOutput::Initialization(){
|
|||||||
connect(comboDetector, SIGNAL(currentIndexChanged(int)), this, SLOT(GetOutputDir()));
|
connect(comboDetector, SIGNAL(currentIndexChanged(int)), this, SLOT(GetOutputDir()));
|
||||||
connect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(SetOutputDir()));
|
connect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(SetOutputDir()));
|
||||||
|
|
||||||
|
//overwrite enable
|
||||||
|
connect(chkOverwriteEnable, SIGNAL(toggled(bool)), this, SLOT(SetOverwriteEnable(bool)));
|
||||||
|
|
||||||
connect(btnOutputBrowse, SIGNAL(clicked()), this, SLOT(browseOutputDir()));
|
//file format
|
||||||
|
connect(comboFileFormat, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFileFormat(int)));
|
||||||
|
|
||||||
|
connect(btnOutputBrowse, SIGNAL(clicked()), this, SLOT(BrowseOutputDir()));
|
||||||
//flat field correction
|
//flat field correction
|
||||||
connect(chkFlatField, SIGNAL(toggled(bool)), this, SLOT(SetFlatField()));
|
connect(chkFlatField, SIGNAL(toggled(bool)), this, SLOT(SetFlatField()));
|
||||||
connect(btnFlatField, SIGNAL(clicked()), this, SLOT(BrowseFlatFieldPath()));
|
connect(btnFlatField, SIGNAL(clicked()), this, SLOT(BrowseFlatFieldPath()));
|
||||||
@ -166,10 +175,10 @@ void qTabDataOutput::Initialization(){
|
|||||||
//eiger
|
//eiger
|
||||||
if(widgetEiger->isVisible()){
|
if(widgetEiger->isVisible()){
|
||||||
//speed
|
//speed
|
||||||
connect(comboEigerClkDivider,SIGNAL(currentIndexChanged(int)), this, SLOT(setSpeed()));
|
connect(comboEigerClkDivider,SIGNAL(currentIndexChanged(int)), this, SLOT(SetSpeed()));
|
||||||
//flags
|
//flags
|
||||||
connect(comboEigerFlags1, SIGNAL(currentIndexChanged(int)), this, SLOT(setFlags()));
|
connect(comboEigerFlags1, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFlags()));
|
||||||
connect(comboEigerFlags2, SIGNAL(currentIndexChanged(int)), this, SLOT(setFlags()));
|
connect(comboEigerFlags2, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFlags()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +198,7 @@ void qTabDataOutput::SetExpertMode(bool enable){
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::browseOutputDir()
|
void qTabDataOutput::BrowseOutputDir()
|
||||||
{
|
{
|
||||||
QString directory = QFileDialog::getExistingDirectory(this,tr("Choose Output Directory "),dispOutputDir->text());
|
QString directory = QFileDialog::getExistingDirectory(this,tr("Choose Output Directory "),dispOutputDir->text());
|
||||||
if (!directory.isEmpty())
|
if (!directory.isEmpty())
|
||||||
@ -516,7 +525,7 @@ void qTabDataOutput::PopulateDetectors(){
|
|||||||
#endif
|
#endif
|
||||||
comboDetector->clear();
|
comboDetector->clear();
|
||||||
comboDetector->addItem("All");
|
comboDetector->addItem("All");
|
||||||
boxOutDir->setTitle("Output Directory");
|
lblOutputDir->setText("Path:");
|
||||||
//add specific detector options only if more than 1 detector
|
//add specific detector options only if more than 1 detector
|
||||||
if(myDet->getNumberOfDetectors()>1){
|
if(myDet->getNumberOfDetectors()>1){
|
||||||
for(int i=0;i<myDet->getNumberOfDetectors();i++)
|
for(int i=0;i<myDet->getNumberOfDetectors();i++)
|
||||||
@ -533,24 +542,44 @@ void qTabDataOutput::GetOutputDir(){
|
|||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Getting output directory" << endl;
|
cout << "Getting output directory" << endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
disconnect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(SetOutputDir()));
|
||||||
//all
|
//all
|
||||||
if(!comboDetector->currentIndex())
|
if(!comboDetector->currentIndex()) {
|
||||||
dispReadOutputDir->setText(QString(myDet->getFilePath().c_str()));
|
dispOutputDir->setText(QString(myDet->getFilePath().c_str()));
|
||||||
|
//multi file path blank means sls file paths are different
|
||||||
|
if (dispOutputDir->text().isEmpty()) {
|
||||||
|
qDefs::Message(qDefs::INFO,"The file path for individual units are different.\n"
|
||||||
|
"Hence, leaving the common field blank.","qTabDataOutput::GetOutputDir");
|
||||||
|
#ifdef VERBOSE
|
||||||
|
cout << "The file path for individual units are different.\n"
|
||||||
|
"Hence, leaving the common field blank." << endl;
|
||||||
|
#endif
|
||||||
|
QString errTip = QString("<br><nobr><font color=\"red\">"
|
||||||
|
"<b>Output Directory</b>"
|
||||||
|
"Information only: The file path for individual units are different.<br>"
|
||||||
|
"Hence, leaving the common field blank.</font></nobr>");
|
||||||
|
lblOutputDir->setText("Path*:");
|
||||||
|
//dispOutputDir->setPalette(*red1);
|
||||||
|
lblOutputDir->setToolTip(errTip);
|
||||||
|
btnOutputBrowse->setToolTip(errTip);
|
||||||
|
dispOutputDir->setToolTip(errTip);
|
||||||
|
} else {
|
||||||
|
lblOutputDir->setText("Path:");
|
||||||
|
//dispOutputDir->setPalette(*black1);
|
||||||
|
lblOutputDir->setToolTip(outDirTip);
|
||||||
|
btnOutputBrowse->setToolTip(outDirTip);
|
||||||
|
dispOutputDir->setToolTip(outDirTip);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//specific
|
//specific
|
||||||
else{
|
else{
|
||||||
slsDetector *det = myDet->getSlsDetector(comboDetector->currentIndex()-1);
|
slsDetector *det = myDet->getSlsDetector(comboDetector->currentIndex()-1);
|
||||||
qDefs::checkErrorMessage(myDet,"qTabDataOutput::GetOutputDir");
|
qDefs::checkErrorMessage(myDet,"qTabDataOutput::GetOutputDir");
|
||||||
dispReadOutputDir->setText(QString(det->getFilePath().c_str()));
|
dispOutputDir->setText(QString(det->getFilePath().c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VerifyOutputDirectory();
|
|
||||||
|
|
||||||
//clear field to write
|
|
||||||
disconnect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(SetOutputDir()));
|
|
||||||
dispOutputDir->setText("");
|
|
||||||
dispOutputDir->setPalette(*black1);
|
|
||||||
connect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(SetOutputDir()));
|
connect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(SetOutputDir()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -562,89 +591,69 @@ int qTabDataOutput::VerifyOutputDirectory(){
|
|||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Verifying output directory" << endl;
|
cout << "Verifying output directory" << endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
GetOutputDir();
|
||||||
|
|
||||||
bool error = false;
|
bool error = false;
|
||||||
QString errTip = outDirTip;
|
|
||||||
string path = "";
|
|
||||||
string inputpath = string(dispReadOutputDir->text().toAscii().constData());
|
|
||||||
string detName = "";
|
string detName = "";
|
||||||
string mess = "";
|
string mess = "";
|
||||||
|
|
||||||
|
//common
|
||||||
|
myDet->setFilePath(myDet->getFilePath());
|
||||||
|
if(!qDefs::checkErrorMessage(myDet,"qTabDataOutput::VerifyOutputDirectory").empty())
|
||||||
|
error = true;
|
||||||
|
|
||||||
//for each detector
|
//for each detector
|
||||||
for(int i=0;i<myDet->getNumberOfDetectors();i++){
|
for(int i=0;i<myDet->getNumberOfDetectors();i++){
|
||||||
slsDetector *det = myDet->getSlsDetector(i);
|
slsDetector *det = myDet->getSlsDetector(i);
|
||||||
qDefs::checkErrorMessage(myDet,"qTabDataOutput::VerifyOutputDirectory");
|
qDefs::checkErrorMessage(myDet,"qTabDataOutput::VerifyOutputDirectory");
|
||||||
detName = string("\n - ") + string(comboDetector->itemText(i+1).toAscii().constData());
|
detName = string("\n - ") + string(comboDetector->itemText(i+1).toAscii().constData());
|
||||||
if(!comboDetector->currentIndex())
|
det->setFilePath(det->getFilePath());
|
||||||
path = inputpath;
|
if(!qDefs::checkErrorMessage(det,"qTabDataOutput::VerifyOutputDirectory").empty()) {
|
||||||
else
|
|
||||||
path = det->getFilePath();
|
|
||||||
|
|
||||||
//verify if specific outdir works for each det
|
|
||||||
if(det->setFilePath(path).empty()){
|
|
||||||
mess. append(detName);
|
|
||||||
error = true;
|
|
||||||
}else if(!qDefs::checkErrorMessage(det,"qTabDataOutput::VerifyOutputDirectory",false).empty()){
|
|
||||||
mess. append(detName);
|
mess. append(detName);
|
||||||
error = true;
|
error = true;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
//verify all paths are the same for no receiver
|
|
||||||
if ((!receiver) && (path != det->getFilePath())){
|
|
||||||
error = true;
|
|
||||||
qDefs::Message(qDefs::WARNING,string("Enter a valid output directory ") + detName,"Data Output Verify");
|
|
||||||
}*/
|
|
||||||
//myDet->setFilePath(det->getFilePath());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//invalid
|
||||||
//set the read output dir text anyway
|
|
||||||
//specific
|
|
||||||
if(comboDetector->currentIndex())
|
|
||||||
path = myDet->getSlsDetector(comboDetector->currentIndex()-1)->getFilePath();
|
|
||||||
//all
|
|
||||||
else
|
|
||||||
path = myDet->getFilePath();
|
|
||||||
dispReadOutputDir->setText(QString(path.c_str()));
|
|
||||||
|
|
||||||
|
|
||||||
//if error, display in red
|
|
||||||
if(error){
|
if(error){
|
||||||
|
qDefs::Message(qDefs::WARNING,string("Invalid Output Directory ")+ mess ,"qTabDataOutput::VerifyOutputDirectory");
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "The output path doesnt exist anymore" << endl;
|
cout << "The output path doesnt exist anymore" << endl;
|
||||||
#endif
|
#endif
|
||||||
qDefs::Message(qDefs::WARNING,string("Invalid Output Directory ")+ mess ,"qTabDataOutput::VerifyOutputDirectory");
|
|
||||||
dispReadOutputDir->setPalette(*red1);
|
|
||||||
boxOutDir->setPalette(red);
|
|
||||||
|
|
||||||
//replace all \n with <br>
|
//replace all \n with <br>
|
||||||
size_t pos = 0;
|
size_t pos = 0;
|
||||||
while((pos = mess.find("\n", pos)) != string::npos){
|
while((pos = mess.find("\n", pos)) != string::npos){
|
||||||
mess.replace(pos, 1, "<br>");
|
mess.replace(pos, 1, "<br>");
|
||||||
pos += 1;
|
pos += 1;
|
||||||
}
|
}
|
||||||
errTip = errTip +
|
QString errTip = outDirTip +
|
||||||
QString("<br><nobr><font color=\"red\">"
|
QString("<br><nobr><font color=\"red\">"
|
||||||
"Invalid <b>Output Directory</b>") + QString(mess.c_str()) +
|
"Invalid <b>Output Directory</b>") +
|
||||||
QString( ".</font></nobr>");
|
QString(mess.c_str()) +
|
||||||
boxOutDir->setToolTip(errTip);
|
QString( ".</font></nobr>");
|
||||||
boxOutDir->setTitle("Output Directory*");
|
lblOutputDir->setText("Path*:");
|
||||||
|
dispOutputDir->setPalette(*red1);
|
||||||
|
lblOutputDir->setToolTip(errTip);
|
||||||
|
btnOutputBrowse->setToolTip(errTip);
|
||||||
|
dispOutputDir->setToolTip(errTip);
|
||||||
|
|
||||||
return slsDetectorDefs::FAIL;
|
return slsDetectorDefs::FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//no error
|
//valid
|
||||||
else{
|
else{
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "The output path has been verified" << endl;
|
cout << "The output pathid valid" << endl;
|
||||||
#endif
|
#endif
|
||||||
dispReadOutputDir->setPalette(*black1);
|
lblOutputDir->setText("Path:");
|
||||||
boxOutDir->setPalette(black);
|
dispOutputDir->setPalette(*black1);
|
||||||
boxOutDir->setToolTip(outDirTip);
|
lblOutputDir->setToolTip(outDirTip);
|
||||||
boxOutDir->setTitle("Output Directory");
|
btnOutputBrowse->setToolTip(outDirTip);
|
||||||
|
dispOutputDir->setToolTip(outDirTip);
|
||||||
}
|
}
|
||||||
|
|
||||||
return slsDetectorDefs::OK;
|
return slsDetectorDefs::OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -657,61 +666,67 @@ void qTabDataOutput::SetOutputDir(){
|
|||||||
cout << "Setting output directory" << endl;
|
cout << "Setting output directory" << endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool error = false;
|
|
||||||
QString path = dispOutputDir->text();
|
|
||||||
|
|
||||||
if(path.isEmpty())
|
|
||||||
return;
|
|
||||||
|
|
||||||
disconnect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(SetOutputDir()));
|
disconnect(dispOutputDir, SIGNAL(editingFinished()), this, SLOT(SetOutputDir()));
|
||||||
|
|
||||||
|
|
||||||
|
bool error = false;
|
||||||
|
QString path = dispOutputDir->text();
|
||||||
|
|
||||||
|
//empty
|
||||||
|
if(path.isEmpty()) {
|
||||||
|
qDefs::Message(qDefs::WARNING,"Invalid Output Path. Must not be empty.","qTabDataOutput::SetOutputDir");
|
||||||
|
#ifdef VERBOSE
|
||||||
|
cout << "Invalid Output Path. Must not be empty." << endl;
|
||||||
|
#endif
|
||||||
|
error = true;
|
||||||
|
}
|
||||||
//gets rid of the end '/'s
|
//gets rid of the end '/'s
|
||||||
while(path.endsWith('/')) path.chop(1);
|
else if (path.endsWith('/')){
|
||||||
dispOutputDir->setText(path);
|
while(path.endsWith('/'))
|
||||||
|
path.chop(1);
|
||||||
|
dispOutputDir->setText(path);
|
||||||
|
}
|
||||||
|
|
||||||
//specific
|
//specific
|
||||||
if(comboDetector->currentIndex()){
|
if(comboDetector->currentIndex()){
|
||||||
slsDetector *det = myDet->getSlsDetector(comboDetector->currentIndex()-1);
|
slsDetector *det = myDet->getSlsDetector(comboDetector->currentIndex()-1);
|
||||||
qDefs::checkErrorMessage(myDet,"qTabDataOutput::SetOutputDir");
|
qDefs::checkErrorMessage(myDet,"qTabDataOutput::SetOutputDir");
|
||||||
det->setFilePath(string(dispOutputDir->text().toAscii().constData()));
|
det->setFilePath(string(dispOutputDir->text().toAscii().constData()));
|
||||||
//if error, set it to what it was set before
|
if(!qDefs::checkErrorMessage(det,"qTabDataOutput::SetOutputDir").empty())
|
||||||
if(!qDefs::checkErrorMessage(det,"qTabDataOutput::SetOutputDir").empty()){
|
|
||||||
#ifdef VERBOSE
|
|
||||||
cout << "The output path could not be set" << endl;
|
|
||||||
#endif
|
|
||||||
det->setFilePath(string(dispReadOutputDir->text().toAscii().constData()));
|
|
||||||
dispReadOutputDir->setText(QString(det->getFilePath().c_str()));
|
|
||||||
error = true;
|
error = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//multi
|
||||||
else{
|
else{
|
||||||
if(myDet->setFilePath(string(path.toAscii().constData())).empty())
|
myDet->setFilePath(string(path.toAscii().constData()));
|
||||||
|
if(!qDefs::checkErrorMessage(myDet,"qTabDataOutput::SetOutputDir").empty())
|
||||||
error = true;
|
error = true;
|
||||||
else if(!qDefs::checkErrorMessage(myDet,"qTabDataOutput::SetOutputDir").empty())
|
|
||||||
error = true;
|
|
||||||
myDet->setFilePath(string(dispReadOutputDir->text().toAscii().constData()));
|
|
||||||
dispReadOutputDir->setText(QString(myDet->getFilePath().c_str()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(error){
|
if(error){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "The output path could not be set" << endl;
|
cout << "The output path could not be set" << endl;
|
||||||
#endif
|
#endif
|
||||||
|
QString errTip = outDirTip + QString("<br><nobr><font color=\"red\">"
|
||||||
|
"Invalid <b>File Path</b></font></nobr>");
|
||||||
|
|
||||||
|
lblOutputDir->setText("Path*:");
|
||||||
dispOutputDir->setPalette(*red1);
|
dispOutputDir->setPalette(*red1);
|
||||||
|
lblOutputDir->setToolTip(errTip);
|
||||||
|
btnOutputBrowse->setToolTip(errTip);
|
||||||
|
dispOutputDir->setToolTip(errTip);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "The output path has been modified" << endl;
|
cout << "The output path has been modified" << endl;
|
||||||
#endif
|
#endif
|
||||||
|
lblOutputDir->setText("Path:");
|
||||||
dispOutputDir->setPalette(*black1);
|
dispOutputDir->setPalette(*black1);
|
||||||
dispReadOutputDir->setText(dispOutputDir->text());
|
lblOutputDir->setToolTip(outDirTip);
|
||||||
dispOutputDir->setText("");
|
btnOutputBrowse->setToolTip(outDirTip);
|
||||||
//VerifyOutputDirectory();
|
dispOutputDir->setToolTip(outDirTip);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -772,14 +787,14 @@ void qTabDataOutput::EnableTenGigabitEthernet(bool enable,int get){
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::setSpeed(){
|
void qTabDataOutput::SetSpeed(){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << endl << "Setting Speed" << endl;
|
cout << endl << "Setting Speed" << endl;
|
||||||
#endif
|
#endif
|
||||||
if(widgetEiger->isVisible()){
|
if(widgetEiger->isVisible()){
|
||||||
myDet->setSpeed(slsDetectorDefs::CLOCK_DIVIDER,comboEigerClkDivider->currentIndex());
|
myDet->setSpeed(slsDetectorDefs::CLOCK_DIVIDER,comboEigerClkDivider->currentIndex());
|
||||||
qDefs::checkErrorMessage(myDet,"qTabDataOutput::setSpeed");
|
qDefs::checkErrorMessage(myDet,"qTabDataOutput::SetSpeed");
|
||||||
updateSpeedFromServer();
|
UpdateSpeedFromServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -788,7 +803,7 @@ void qTabDataOutput::setSpeed(){
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::setFlags(){
|
void qTabDataOutput::SetFlags(){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << endl << "Setting Readout Flags" << endl;
|
cout << endl << "Setting Readout Flags" << endl;
|
||||||
#endif
|
#endif
|
||||||
@ -813,7 +828,7 @@ void qTabDataOutput::setFlags(){
|
|||||||
qDefs::checkErrorMessage(myDet,"qTabDataOutput::setFlags");
|
qDefs::checkErrorMessage(myDet,"qTabDataOutput::setFlags");
|
||||||
|
|
||||||
//update flags
|
//update flags
|
||||||
updateFlagsFromServer();
|
UpdateFlagsFromServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -821,10 +836,10 @@ void qTabDataOutput::setFlags(){
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::updateSpeedFromServer(){
|
void qTabDataOutput::UpdateSpeedFromServer(){
|
||||||
int ret;
|
int ret;
|
||||||
if(widgetEiger->isVisible()){
|
if(widgetEiger->isVisible()){
|
||||||
disconnect(comboEigerClkDivider, SIGNAL(currentIndexChanged(int)), this, SLOT(setSpeed()));
|
disconnect(comboEigerClkDivider, SIGNAL(currentIndexChanged(int)), this, SLOT(SetSpeed()));
|
||||||
|
|
||||||
//get speed
|
//get speed
|
||||||
ret = myDet->setSpeed(slsDetectorDefs::CLOCK_DIVIDER, -1);
|
ret = myDet->setSpeed(slsDetectorDefs::CLOCK_DIVIDER, -1);
|
||||||
@ -844,7 +859,7 @@ void qTabDataOutput::updateSpeedFromServer(){
|
|||||||
qDefs::checkErrorMessage(myDet,"qTabDataOutput::updateSpeedFromServer");
|
qDefs::checkErrorMessage(myDet,"qTabDataOutput::updateSpeedFromServer");
|
||||||
|
|
||||||
}
|
}
|
||||||
connect(comboEigerClkDivider, SIGNAL(currentIndexChanged(int)), this, SLOT(setSpeed()));
|
connect(comboEigerClkDivider, SIGNAL(currentIndexChanged(int)), this, SLOT(SetSpeed()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -852,11 +867,11 @@ void qTabDataOutput::updateSpeedFromServer(){
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::updateFlagsFromServer(){
|
void qTabDataOutput::UpdateFlagsFromServer(){
|
||||||
int ret;
|
int ret;
|
||||||
if(widgetEiger->isVisible()){
|
if(widgetEiger->isVisible()){
|
||||||
disconnect(comboEigerFlags1, SIGNAL(currentIndexChanged(int)), this, SLOT(setFlags()));
|
disconnect(comboEigerFlags1, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFlags()));
|
||||||
disconnect(comboEigerFlags2, SIGNAL(currentIndexChanged(int)), this, SLOT(setFlags()));
|
disconnect(comboEigerFlags2, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFlags()));
|
||||||
|
|
||||||
//get speed
|
//get speed
|
||||||
ret = myDet->setReadOutFlags(slsDetectorDefs::GET_READOUT_FLAGS);
|
ret = myDet->setReadOutFlags(slsDetectorDefs::GET_READOUT_FLAGS);
|
||||||
@ -890,8 +905,8 @@ void qTabDataOutput::updateFlagsFromServer(){
|
|||||||
comboEigerFlags2->setCurrentIndex(Safe);
|
comboEigerFlags2->setCurrentIndex(Safe);
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(comboEigerFlags1, SIGNAL(currentIndexChanged(int)), this, SLOT(setFlags()));
|
connect(comboEigerFlags1, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFlags()));
|
||||||
connect(comboEigerFlags2, SIGNAL(currentIndexChanged(int)), this, SLOT(setFlags()));
|
connect(comboEigerFlags2, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFlags()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -899,6 +914,117 @@ void qTabDataOutput::updateFlagsFromServer(){
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
void qTabDataOutput::SetupFileFormat(){
|
||||||
|
|
||||||
|
|
||||||
|
//To be able to index items on a combo box
|
||||||
|
QStandardItemModel* model = qobject_cast<QStandardItemModel*>(comboFileFormat->model());
|
||||||
|
QModelIndex index[slsReceiverDefs::NUM_FILE_FORMATS];
|
||||||
|
QStandardItem* item[slsReceiverDefs::NUM_FILE_FORMATS];
|
||||||
|
if (model) {
|
||||||
|
for(int i=0;i<slsReceiverDefs::NUM_FILE_FORMATS;i++){
|
||||||
|
index[i] = model->index(i, comboFileFormat->modelColumn(), comboFileFormat->rootModelIndex());
|
||||||
|
item[i] = model->itemFromIndex(index[i]);
|
||||||
|
}
|
||||||
|
//Enabling/Disabling depending on the detector type
|
||||||
|
switch(detType){
|
||||||
|
case slsDetectorDefs::MYTHEN:
|
||||||
|
item[(int)slsReceiverDefs::BINARY]->setEnabled(false);
|
||||||
|
item[(int)slsReceiverDefs::ASCII]->setEnabled(true);
|
||||||
|
item[(int)slsReceiverDefs::HDF5]->setEnabled(false);
|
||||||
|
break;
|
||||||
|
case slsDetectorDefs::EIGER:
|
||||||
|
case slsDetectorDefs::MOENCH:
|
||||||
|
case slsDetectorDefs::PROPIX:
|
||||||
|
case slsDetectorDefs::GOTTHARD:
|
||||||
|
case slsDetectorDefs::JUNGFRAU:
|
||||||
|
item[(int)slsReceiverDefs::BINARY]->setEnabled(true);
|
||||||
|
item[(int)slsReceiverDefs::ASCII]->setEnabled(false);
|
||||||
|
item[(int)slsReceiverDefs::HDF5]->setEnabled(true);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
cout << "Unknown detector type " << endl;
|
||||||
|
qDefs::Message(qDefs::CRITICAL,"Unknown detector type.","qTabDataOutput::SetupFileFormat");
|
||||||
|
exit(-1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
comboFileFormat->setCurrentIndex((int)myDet->getFileFormat());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
void qTabDataOutput::UpdateFileFormatFromServer(){
|
||||||
|
#ifdef VERBOSE
|
||||||
|
cout << endl << "Getting File Format" << endl;
|
||||||
|
#endif
|
||||||
|
disconnect(comboFileFormat, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFileFormat(int)));
|
||||||
|
|
||||||
|
comboFileFormat->setCurrentIndex((int)myDet->getFileFormat());
|
||||||
|
|
||||||
|
connect(comboFileFormat, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFileFormat(int)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
void qTabDataOutput::SetFileFormat(int format){
|
||||||
|
#ifdef VERBOSE
|
||||||
|
cout << endl << "Setting File Format" << endl;
|
||||||
|
#endif
|
||||||
|
disconnect(comboFileFormat, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFileFormat(int)));
|
||||||
|
|
||||||
|
int ret = (int)myDet->setFileFormat((slsReceiverDefs::fileFormat)comboFileFormat->currentIndex());
|
||||||
|
if (ret != comboFileFormat->currentIndex()) {
|
||||||
|
qDefs::Message(qDefs::WARNING,"Could not set file format.","qTabDataOutput::SetFileFormat");
|
||||||
|
comboFileFormat->setCurrentIndex((int)ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
connect(comboFileFormat, SIGNAL(currentIndexChanged(int)), this, SLOT(SetFileFormat(int)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
void qTabDataOutput::UpdateFileOverwriteFromServer(){
|
||||||
|
#ifdef VERBOSE
|
||||||
|
cout << endl << "Getting File Over Write Enable" << endl;
|
||||||
|
#endif
|
||||||
|
disconnect(chkOverwriteEnable, SIGNAL(toggled(bool)), this, SLOT(SetOverwriteEnable(bool)));
|
||||||
|
|
||||||
|
chkFile->setChecked(myDet->overwriteFile());
|
||||||
|
|
||||||
|
connect(chkOverwriteEnable, SIGNAL(toggled(bool)), this, SLOT(SetOverwriteEnable(bool)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
void qTabDataOutput::SetOverwriteEnable(bool enable){
|
||||||
|
#ifdef VERBOSE
|
||||||
|
cout << endl << "Setting File Over Write Enable" << endl;
|
||||||
|
#endif
|
||||||
|
disconnect(chkOverwriteEnable, SIGNAL(toggled(bool)), this, SLOT(SetOverwriteEnable(bool)));
|
||||||
|
|
||||||
|
int valid = (enable?1:0);
|
||||||
|
if (myDet->overwriteFile(enable) != valid)
|
||||||
|
qDefs::Message(qDefs::WARNING,"Could not over write enable.","qTabDataOutput::SetOverwriteEnable");
|
||||||
|
|
||||||
|
connect(chkOverwriteEnable, SIGNAL(toggled(bool)), this, SLOT(SetOverwriteEnable(bool)));
|
||||||
|
|
||||||
|
UpdateFileOverwriteFromServer();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::Refresh(){
|
void qTabDataOutput::Refresh(){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << endl << "**Updating DataOutput Tab" << endl;
|
cout << endl << "**Updating DataOutput Tab" << endl;
|
||||||
@ -913,6 +1039,19 @@ void qTabDataOutput::Refresh(){
|
|||||||
PopulateDetectors();
|
PopulateDetectors();
|
||||||
connect(comboDetector, SIGNAL(currentIndexChanged(int)), this, SLOT(GetOutputDir()));
|
connect(comboDetector, SIGNAL(currentIndexChanged(int)), this, SLOT(GetOutputDir()));
|
||||||
|
|
||||||
|
//file format
|
||||||
|
UpdateFileFormatFromServer();
|
||||||
|
|
||||||
|
//overwrite
|
||||||
|
UpdateFileOverwriteFromServer();
|
||||||
|
|
||||||
|
//file name
|
||||||
|
dispFileName->setText(QString(myDet->getFileName().c_str()));
|
||||||
|
|
||||||
|
//file write enable
|
||||||
|
if(myDet->enableWriteToFile() == 1)
|
||||||
|
dispFileName->setText("Enabled");
|
||||||
|
else dispFileName->setText("Disabled");
|
||||||
|
|
||||||
//flat field correction from server
|
//flat field correction from server
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
@ -986,12 +1125,12 @@ void qTabDataOutput::Refresh(){
|
|||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Getting Speed" << endl;
|
cout << "Getting Speed" << endl;
|
||||||
#endif
|
#endif
|
||||||
updateSpeedFromServer();
|
UpdateSpeedFromServer();
|
||||||
//flags
|
//flags
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Getting Readout Flags" << endl;
|
cout << "Getting Readout Flags" << endl;
|
||||||
#endif
|
#endif
|
||||||
updateFlagsFromServer();
|
UpdateFlagsFromServer();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user