Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT REVIEW 2378 Part Four: The Phantom XML - Extract ROIFormWidget into Widgets Sub-directory #2496

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mantidimaging/gui/ui/spectrum_viewer.ui
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@
</layout>
</widget>
</item>
<!-- <item>
<widget class="QWidget" name="ExportTabsPlaceholder"/>
</item> -->
<item>
<widget class="QWidget" name="experimentSetupGroupBox" native="true"/>
</item>
Expand Down
287 changes: 287 additions & 0 deletions mantidimaging/gui/widgets/spectrum_widgets/ROIFormWidget.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,287 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>RoiFormGroupBox</class>
<widget class="QGroupBox" name="RoiFormGroupBox">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>305</width>
<height>587</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string notr="true">GroupBox</string>
</property>
<property name="toolTip">
<string notr="true"/>
</property>
<property name="statusTip">
<string notr="true"/>
</property>
<property name="whatsThis">
<string notr="true"/>
</property>
<property name="title">
<string notr="true"/>
</property>
<widget class="QTabWidget" name="ExportTabs">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>302</width>
<height>351</height>
</rect>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="ROITab">
<attribute name="title">
<string>ROIs</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QGroupBox" name="roiTableGroupBox">
<property name="title">
<string>ROI Table</string>
</property>
<property name="flat">
<bool>false</bool>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="RemovableRowTableView" name="ROITableView">
<attribute name="horizontalHeaderHighlightSections">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
</widget>
</item>
<item>
<layout class="QGridLayout" name="ROIAddRemoveGridLayout">
<item row="0" column="1">
<widget class="QPushButton" name="AddROIButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Adds a new row to the table.&lt;/p&gt;&lt;p&gt;Slice index defaults to the current preview slice index.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Add</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="RemoveROIButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Removes the selected row from the table.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QPushButton" name="ExportButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Export spectrum</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="ImageTab">
<attribute name="title">
<string>Image</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QLabel" name="OutputModeLabel">
<property name="text">
<string>Output Mode</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="ImageOutputModeComboBox">
<item>
<property name="text">
<string>Single Spectrum</string>
</property>
</item>
<item>
<property name="text">
<string>2D Binned</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="ErrorModeLabel">
<property name="text">
<string>Error Mode</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="TransmissionErrorModeComboBox">
<item>
<property name="text">
<string>Standard Deviation</string>
</property>
</item>
<item>
<property name="text">
<string>Propagated</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="BinSizeLabel">
<property name="text">
<string>Bin Size</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="BinSizeSpinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="BinStepLabel">
<property name="text">
<string>Bin Step</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="BinStepSpinBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000</number>
</property>
</widget>
</item>
<item>
<spacer name="BinSteptoExportRitsVerticalSpacer">
<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>
<widget class="QPushButton" name="ExportRITSButton">
<property name="text">
<string>Export to RITS</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QGroupBox" name="roiPropertiesGroupBox">
<property name="geometry">
<rect>
<x>2</x>
<y>370</y>
<width>301</width>
<height>200</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>200</height>
</size>
</property>
<property name="title">
<string>ROI Properties</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QTableWidget" name="roiPropertiesTableWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>200</height>
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<customwidgets>
<customwidget>
<class>RemovableRowTableView</class>
<extends>QTableView</extends>
<header>mantidimaging.gui.widgets</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
Loading