-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #5421 Adding Stretch interface.
- Loading branch information
Samuel Jackson
committed
Sep 11, 2013
1 parent
0c5a3ac
commit 1b077dc
Showing
8 changed files
with
339 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Stretch.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef MANTIDQTCUSTOMINTERFACES_STRETCH_H_ | ||
#define MANTIDQTCUSTOMINTERFACES_STRETCH_H_ | ||
|
||
#include "ui_Stretch.h" | ||
#include "MantidQtCustomInterfaces/IndirectBayesTab.h" | ||
|
||
namespace MantidQt | ||
{ | ||
namespace CustomInterfaces | ||
{ | ||
class DLLExport Stretch : public IndirectBayesTab | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
Stretch(QWidget * parent = 0); | ||
|
||
private: | ||
virtual void help(); | ||
virtual void validate(); | ||
virtual void run(); | ||
|
||
/// Plot of the input | ||
QwtPlot* m_plot; | ||
/// Tree of the properties | ||
QtTreePropertyBrowser* m_propTree; | ||
/// Internal list of the properties | ||
QMap<QString, QtProperty*> m_properties; | ||
/// Double manager to create properties | ||
QtDoublePropertyManager* m_dblManager; | ||
//The ui form | ||
Ui::Stretch m_uiForm; | ||
|
||
}; | ||
} // namespace CustomInterfaces | ||
} // namespace MantidQt | ||
|
||
#endif |
233 changes: 233 additions & 0 deletions
233
Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Stretch.ui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Stretch</class> | ||
<widget class="QWidget" name="Stretch"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>950</width> | ||
<height>615</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="lblSample"> | ||
<property name="text"> | ||
<string>Sample: </string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="MantidQt::MantidWidgets::DataSelector" name="dsSample"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="loadLabelText" stdset="0"> | ||
<string>Plot</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="lblRes"> | ||
<property name="text"> | ||
<string>Resolution: </string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="MantidQt::MantidWidgets::DataSelector" name="dsResolution"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="autoLoad"> | ||
<bool>false</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<widget class="QGroupBox" name="gbOptions"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="title"> | ||
<string>Options</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<item> | ||
<layout class="QGridLayout" name="gridLayout_2"> | ||
<item row="1" column="1"> | ||
<widget class="QComboBox" name="cbMode"> | ||
<item> | ||
<property name="text"> | ||
<string>Fit</string> | ||
</property> | ||
</item> | ||
</widget> | ||
</item> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="lblBackground"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string>Background: </string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="3"> | ||
<widget class="QCheckBox" name="chkElasticPeak"> | ||
<property name="text"> | ||
<string>Elastic Peak</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="QComboBox" name="cbBackground"> | ||
<item> | ||
<property name="text"> | ||
<string>Flat</string> | ||
</property> | ||
</item> | ||
<item> | ||
<property name="text"> | ||
<string>Sloped</string> | ||
</property> | ||
</item> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="lblMode"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string>Mode</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="2"> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeType"> | ||
<enum>QSizePolicy::Preferred</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
<zorder>cbBackground</zorder> | ||
<zorder>lblBackground</zorder> | ||
<zorder>chkElasticPeak</zorder> | ||
<zorder>cbMode</zorder> | ||
<zorder>lblMode</zorder> | ||
<zorder>layoutWidget</zorder> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
<item> | ||
<layout class="QVBoxLayout" name="treeSpace"/> | ||
</item> | ||
<item> | ||
<layout class="QVBoxLayout" name="plotSpace"/> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_44"> | ||
<item> | ||
<widget class="QCheckBox" name="ckVerbose"> | ||
<property name="enabled"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="text"> | ||
<string>Verbose</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="horizontalSpacer_17"> | ||
<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="ckPlot"> | ||
<property name="text"> | ||
<string>Plot Result</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="horizontalSpacer_18"> | ||
<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="ckSave"> | ||
<property name="text"> | ||
<string>Save Result</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<customwidgets> | ||
<customwidget> | ||
<class>MantidQt::MantidWidgets::DataSelector</class> | ||
<extends>QWidget</extends> | ||
<header>MantidQtMantidWidgets/DataSelector.h</header> | ||
</customwidget> | ||
</customwidgets> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.