Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
MantidQt::CustomDialogs::InputWorkspaceWidget Class Reference

Widget for inputting workspace information. More...

#include <FitDialog.h>

Inheritance diagram for MantidQt::CustomDialogs::InputWorkspaceWidget:

Public Member Functions

QStringList getAllowedPropertyValues (const QString &propName) const
 Get allowed values for a property. More...
 
int getDomainIndex () const
 Return the domain index. More...
 
int getDomainType () const
 Get the domain type: Simple, Sequential, or Parallel. More...
 
QString getStoredPropertyValue (const QString &propName) const
 Return property value stored in history. More...
 
QString getWorkspaceName () const
 Get workspace name. More...
 
 InputWorkspaceWidget (FitDialog *parent, int domainIndex=0)
 Constructor. More...
 
void setProperties ()
 Set all workspace properties. More...
 
void setPropertyValue (const QString &propName, const QString &propValue)
 Set a property. More...
 
void setWorkspaceName (const QString &wsName)
 Set workspace name. More...
 

Protected Slots

void setDynamicProperties ()
 Set the dynamic properties. More...
 

Protected Member Functions

bool isMatrixWorkspace () const
 Is the workspace MW? More...
 
bool isMDWorkspace () const
 Is the workspace MD? More...
 
bool isWorkspaceSupported () const
 is current workspace supported by Fit? More...
 
bool isWSNameSet () const
 Is ws name set? More...
 

Protected Attributes

int m_domainIndex
 In multidomain fitting it is index of domain created from this workspace In single domain case == 0. More...
 
DynamicPropertiesWidgetm_dynamicProperties
 Dynamic propeties widget. More...
 
FitDialogm_fitDialog
 Parent FitDialog. More...
 
QVBoxLayout * m_layout
 The main layout. More...
 
QComboBox * m_workspaceName
 Workspace name widget. More...
 
QString m_wsPropName
 Name of the property for the input workspace. More...
 

Detailed Description

Widget for inputting workspace information.

Definition at line 102 of file FitDialog.h.

Constructor & Destructor Documentation

◆ InputWorkspaceWidget()

MantidQt::CustomDialogs::InputWorkspaceWidget::InputWorkspaceWidget ( FitDialog parent,
int  domainIndex = 0 
)

Constructor.

Parameters
parent:: Parent dialog.
domainIndexNumber that allows to identify the InputWorkspace formed with the followin rule InputWorkspace_[domainIndex]

Definition at line 47 of file FitDialog.cpp.

Member Function Documentation

◆ getAllowedPropertyValues()

QStringList MantidQt::CustomDialogs::InputWorkspaceWidget::getAllowedPropertyValues ( const QString &  propName) const
inline

Get allowed values for a property.

Definition at line 110 of file FitDialog.h.

References MantidQt::CustomDialogs::FitDialog::getAllowedPropertyValues(), and m_fitDialog.

◆ getDomainIndex()

int MantidQt::CustomDialogs::InputWorkspaceWidget::getDomainIndex ( ) const
inline

◆ getDomainType()

int MantidQt::CustomDialogs::InputWorkspaceWidget::getDomainType ( ) const
inline

◆ getStoredPropertyValue()

QString MantidQt::CustomDialogs::InputWorkspaceWidget::getStoredPropertyValue ( const QString &  propName) const
inline

Return property value stored in history.

Definition at line 108 of file FitDialog.h.

References MantidQt::API::AlgorithmDialog::getPreviousValue(), and m_fitDialog.

◆ getWorkspaceName()

QString MantidQt::CustomDialogs::InputWorkspaceWidget::getWorkspaceName ( ) const

◆ isMatrixWorkspace()

bool MantidQt::CustomDialogs::InputWorkspaceWidget::isMatrixWorkspace ( ) const
protected

Is the workspace MW?

Definition at line 74 of file FitDialog.cpp.

References Mantid::Kernel::SingletonHolder< T >::Instance(), and m_workspaceName.

Referenced by isWorkspaceSupported(), and setDynamicProperties().

◆ isMDWorkspace()

bool MantidQt::CustomDialogs::InputWorkspaceWidget::isMDWorkspace ( ) const
protected

Is the workspace MD?

Definition at line 89 of file FitDialog.cpp.

References Mantid::Kernel::SingletonHolder< T >::Instance(), and m_workspaceName.

Referenced by isWorkspaceSupported(), and setDynamicProperties().

◆ isWorkspaceSupported()

bool MantidQt::CustomDialogs::InputWorkspaceWidget::isWorkspaceSupported ( ) const
protected

is current workspace supported by Fit?

Is current workspace supported by Fit?

Definition at line 104 of file FitDialog.cpp.

References isMatrixWorkspace(), and isMDWorkspace().

Referenced by setProperties().

◆ isWSNameSet()

bool MantidQt::CustomDialogs::InputWorkspaceWidget::isWSNameSet ( ) const
protected

Is ws name set?

Definition at line 66 of file FitDialog.cpp.

References m_workspaceName.

Referenced by setDynamicProperties().

◆ setDynamicProperties

void MantidQt::CustomDialogs::InputWorkspaceWidget::setDynamicProperties ( )
protectedslot

◆ setProperties()

void MantidQt::CustomDialogs::InputWorkspaceWidget::setProperties ( )

◆ setPropertyValue()

void MantidQt::CustomDialogs::InputWorkspaceWidget::setPropertyValue ( const QString &  propName,
const QString &  propValue 
)

◆ setWorkspaceName()

void MantidQt::CustomDialogs::InputWorkspaceWidget::setWorkspaceName ( const QString &  wsName)

Set workspace name.

Definition at line 141 of file FitDialog.cpp.

References m_workspaceName.

Referenced by MantidQt::CustomDialogs::FitDialog::setWorkspaceName().

Member Data Documentation

◆ m_domainIndex

int MantidQt::CustomDialogs::InputWorkspaceWidget::m_domainIndex
protected

In multidomain fitting it is index of domain created from this workspace In single domain case == 0.

Definition at line 143 of file FitDialog.h.

Referenced by getDomainIndex().

◆ m_dynamicProperties

DynamicPropertiesWidget* MantidQt::CustomDialogs::InputWorkspaceWidget::m_dynamicProperties
protected

Dynamic propeties widget.

Definition at line 149 of file FitDialog.h.

Referenced by setDynamicProperties(), and setProperties().

◆ m_fitDialog

FitDialog* MantidQt::CustomDialogs::InputWorkspaceWidget::m_fitDialog
protected

◆ m_layout

QVBoxLayout* MantidQt::CustomDialogs::InputWorkspaceWidget::m_layout
protected

The main layout.

Definition at line 152 of file FitDialog.h.

Referenced by setDynamicProperties().

◆ m_workspaceName

QComboBox* MantidQt::CustomDialogs::InputWorkspaceWidget::m_workspaceName
protected

Workspace name widget.

Definition at line 147 of file FitDialog.h.

Referenced by getWorkspaceName(), isMatrixWorkspace(), isMDWorkspace(), isWSNameSet(), and setWorkspaceName().

◆ m_wsPropName

QString MantidQt::CustomDialogs::InputWorkspaceWidget::m_wsPropName
protected

Name of the property for the input workspace.

Definition at line 145 of file FitDialog.h.

Referenced by setProperties().


The documentation for this class was generated from the following files: