Skip to content

Commit

Permalink
Refs #5421 Adding interface for Quasi.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Sep 11, 2013
1 parent e966be9 commit 0c5a3ac
Show file tree
Hide file tree
Showing 6 changed files with 398 additions and 5 deletions.
12 changes: 8 additions & 4 deletions Code/Mantid/MantidQt/CustomInterfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set ( SRC_FILES
src/MuonAnalysisOptionTab.cpp
src/MuonAnalysisResultTableTab.cpp
src/QtWorkspaceMementoModel.cpp
src/Quasi.cpp
src/ResNorm.cpp
src/SANSAddFiles.cpp
src/SANSDiagnostics.cpp
Expand Down Expand Up @@ -72,6 +73,7 @@ set ( INC_FILES
inc/MantidQtCustomInterfaces/MuonAnalysisOptionTab.h
inc/MantidQtCustomInterfaces/MuonAnalysisResultTableTab.h
inc/MantidQtCustomInterfaces/QtWorkspaceMementoModel.h
inc/MantidQtCustomInterfaces/Quasi.h
inc/MantidQtCustomInterfaces/ResNorm.h
inc/MantidQtCustomInterfaces/SANSAddFiles.h
inc/MantidQtCustomInterfaces/SANSDiagnostics.h
Expand Down Expand Up @@ -105,22 +107,23 @@ set ( MOC_FILES inc/MantidQtCustomInterfaces/Background.h
inc/MantidQtCustomInterfaces/Homer.h
inc/MantidQtCustomInterfaces/IDATab.h
inc/MantidQtCustomInterfaces/Indirect.h
inc/MantidQtCustomInterfaces/IndirectBayes.h
inc/MantidQtCustomInterfaces/IndirectBayesTab.h
inc/MantidQtCustomInterfaces/IndirectBayes.h
inc/MantidQtCustomInterfaces/IndirectBayesTab.h
inc/MantidQtCustomInterfaces/IndirectDataAnalysis.h
inc/MantidQtCustomInterfaces/IndirectDiffractionReduction.h
inc/MantidQtCustomInterfaces/MSDFit.h
inc/MantidQtCustomInterfaces/MuonAnalysis.h
inc/MantidQtCustomInterfaces/MuonAnalysisFitDataTab.h
inc/MantidQtCustomInterfaces/MuonAnalysisOptionTab.h
inc/MantidQtCustomInterfaces/MuonAnalysisResultTableTab.h
inc/MantidQtCustomInterfaces/ResNorm.h
inc/MantidQtCustomInterfaces/Quasi.h
inc/MantidQtCustomInterfaces/ResNorm.h
inc/MantidQtCustomInterfaces/SANSAddFiles.h
inc/MantidQtCustomInterfaces/SANSPlotSpecial.h
inc/MantidQtCustomInterfaces/SANSRunWindow.h
inc/MantidQtCustomInterfaces/SANSDiagnostics.h
inc/MantidQtCustomInterfaces/Transmission.h
inc/MantidQtCustomInterfaces/MantidEV.h
inc/MantidQtCustomInterfaces/MantidEV.h
inc/MantidQtCustomInterfaces/StepScan.h
)

Expand All @@ -131,6 +134,7 @@ set ( UI_FILES inc/MantidQtCustomInterfaces/ConvertToEnergy.ui
inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui
inc/MantidQtCustomInterfaces/IndirectDiffractionReduction.ui
inc/MantidQtCustomInterfaces/MuonAnalysis.ui
inc/MantidQtCustomInterfaces/Quasi.ui
inc/MantidQtCustomInterfaces/ResNorm.ui
inc/MantidQtCustomInterfaces/SANSPlotSpecial.ui
inc/MantidQtCustomInterfaces/SANSRunWindow.ui
Expand Down
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
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>
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</sizepolicy>
</property>
<property name="loadLabelText" stdset="0">
<string>Plot</string>
<string>Load</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 0c5a3ac

Please sign in to comment.