-
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 interface for Quasi.
- Loading branch information
Samuel Jackson
committed
Sep 11, 2013
1 parent
e966be9
commit 0c5a3ac
Showing
6 changed files
with
398 additions
and
5 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
38 changes: 38 additions & 0 deletions
38
Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Quasi.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_QUASI_H_ | ||
#define MANTIDQTCUSTOMINTERFACES_QUASI_H_ | ||
|
||
#include "ui_Quasi.h" | ||
#include "MantidQtCustomInterfaces/IndirectBayesTab.h" | ||
|
||
namespace MantidQt | ||
{ | ||
namespace CustomInterfaces | ||
{ | ||
class DLLExport Quasi : public IndirectBayesTab | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
Quasi(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::Quasi m_uiForm; | ||
|
||
}; | ||
} // namespace CustomInterfaces | ||
} // namespace MantidQt | ||
|
||
#endif |
295 changes: 295 additions & 0 deletions
295
Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Quasi.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,295 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Quasi</class> | ||
<widget class="QWidget" name="Quasi"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>838</width> | ||
<height>554</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<item> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="lblInput"> | ||
<property name="text"> | ||
<string>Input:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="MantidQt::MantidWidgets::DataSelector" name="dataSelector"> | ||
<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> | ||
<property name="workspaceSuffixes" stdset="0"> | ||
<stringlist> | ||
<string>_red</string> | ||
</stringlist> | ||
</property> | ||
<property name="fileBrowserSuffixes" stdset="0"> | ||
<stringlist> | ||
<string>_red.nxs</string> | ||
</stringlist> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="lblResolution"> | ||
<property name="text"> | ||
<string>Resolution:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="MantidQt::MantidWidgets::DataSelector" name="dataSelector_2"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="autoLoad"> | ||
<bool>false</bool> | ||
</property> | ||
<property name="workspaceSuffixes" stdset="0"> | ||
<stringlist> | ||
<string>_res</string> | ||
</stringlist> | ||
</property> | ||
<property name="fileBrowserSuffixes" stdset="0"> | ||
<stringlist> | ||
<string>_res</string> | ||
</stringlist> | ||
</property> | ||
<property name="showLoad"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<widget class="QGroupBox" name="fitOptions"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="title"> | ||
<string>Fit Options</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<layout class="QGridLayout" name="gridLayout_2"> | ||
<item row="2" column="0"> | ||
<widget class="QCheckBox" name="chkFixWidth"> | ||
<property name="text"> | ||
<string>Fix Width</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="3" column="0"> | ||
<widget class="QCheckBox" name="chkUseResNorm"> | ||
<property name="text"> | ||
<string>Use ResNorm</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="2"> | ||
<widget class="MantidQt::MantidWidgets::MWRunFiles" name="mwFixWidthDat"> | ||
<property name="label" stdset="0"> | ||
<string/> | ||
</property> | ||
<property name="fileExtensions"> | ||
<stringlist> | ||
<string>.dat</string> | ||
</stringlist> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="2"> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<widget class="QComboBox" name="cbBackground"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<item> | ||
<property name="text"> | ||
<string>Flat</string> | ||
</property> | ||
</item> | ||
<item> | ||
<property name="text"> | ||
<string>Sloping</string> | ||
</property> | ||
</item> | ||
</widget> | ||
</item> | ||
<item> | ||
<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> | ||
<item> | ||
<widget class="QCheckBox" name="chkElasticPeak"> | ||
<property name="text"> | ||
<string>Elastic Peak</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item row="3" column="2"> | ||
<widget class="MantidQt::MantidWidgets::DataSelector" name="dsResNorm"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="autoLoad"> | ||
<bool>false</bool> | ||
</property> | ||
<property name="workspaceSuffixes" stdset="0"> | ||
<stringlist> | ||
<string>_red</string> | ||
</stringlist> | ||
</property> | ||
<property name="fileBrowserSuffixes" stdset="0"> | ||
<stringlist> | ||
<string>_red.nxs</string> | ||
</stringlist> | ||
</property> | ||
<property name="showLoad"> | ||
<bool>false</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="lblBackground"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="text"> | ||
<string>Background:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</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::MWRunFiles</class> | ||
<extends>QWidget</extends> | ||
<header>MantidQtMantidWidgets/MWRunFiles.h</header> | ||
</customwidget> | ||
<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
Oops, something went wrong.