Mantid
|
Widget for inputting workspace information. More...
#include <FitDialog.h>
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... | |
DynamicPropertiesWidget * | m_dynamicProperties |
Dynamic propeties widget. More... | |
FitDialog * | m_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... | |
Widget for inputting workspace information.
Definition at line 102 of file FitDialog.h.
MantidQt::CustomDialogs::InputWorkspaceWidget::InputWorkspaceWidget | ( | FitDialog * | parent, |
int | domainIndex = 0 |
||
) |
Constructor.
parent | :: Parent dialog. |
domainIndex | Number that allows to identify the InputWorkspace formed with the followin rule InputWorkspace_[domainIndex] |
Definition at line 47 of file FitDialog.cpp.
|
inline |
Get allowed values for a property.
Definition at line 110 of file FitDialog.h.
References MantidQt::CustomDialogs::FitDialog::getAllowedPropertyValues(), and m_fitDialog.
|
inline |
Return the domain index.
Definition at line 118 of file FitDialog.h.
References m_domainIndex.
Referenced by MantidQt::CustomDialogs::MWPropertiesWidget::setProperties(), and MantidQt::CustomDialogs::MDPropertiesWidget::setProperties().
|
inline |
Get the domain type: Simple, Sequential, or Parallel.
Definition at line 124 of file FitDialog.h.
References MantidQt::CustomDialogs::FitDialog::getDomainType(), and m_fitDialog.
Referenced by MantidQt::CustomDialogs::MDPropertiesWidget::MDPropertiesWidget(), MantidQt::CustomDialogs::MWPropertiesWidget::MWPropertiesWidget(), MantidQt::CustomDialogs::MWPropertiesWidget::setProperties(), and MantidQt::CustomDialogs::MDPropertiesWidget::setProperties().
|
inline |
Return property value stored in history.
Definition at line 108 of file FitDialog.h.
References MantidQt::API::AlgorithmDialog::getPreviousValue(), and m_fitDialog.
QString MantidQt::CustomDialogs::InputWorkspaceWidget::getWorkspaceName | ( | ) | const |
Get workspace name.
Definition at line 138 of file FitDialog.cpp.
References m_workspaceName.
Referenced by MantidQt::CustomDialogs::FitDialog::createInputWorkspaceWidgets(), MantidQt::CustomDialogs::MWPropertiesWidget::MWPropertiesWidget(), and setProperties().
|
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().
|
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().
|
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().
|
protected |
Is ws name set?
Definition at line 66 of file FitDialog.cpp.
References m_workspaceName.
Referenced by setDynamicProperties().
|
protectedslot |
Set the dynamic properties.
Definition at line 109 of file FitDialog.cpp.
References isMatrixWorkspace(), MantidQt::CustomDialogs::FitDialog::isMD(), isMDWorkspace(), isWSNameSet(), m_dynamicProperties, m_fitDialog, and m_layout.
void MantidQt::CustomDialogs::InputWorkspaceWidget::setProperties | ( | ) |
Set all workspace properties.
Definition at line 163 of file FitDialog.cpp.
References getWorkspaceName(), isWorkspaceSupported(), m_dynamicProperties, m_wsPropName, MantidQt::CustomDialogs::DynamicPropertiesWidget::setProperties(), and setPropertyValue().
Referenced by MantidQt::CustomDialogs::FitDialog::parseInput().
void MantidQt::CustomDialogs::InputWorkspaceWidget::setPropertyValue | ( | const QString & | propName, |
const QString & | propValue | ||
) |
Set a property.
propName | :: Property name |
propValue | :: Property value |
Definition at line 153 of file FitDialog.cpp.
References MantidQt::API::AlgorithmDialog::getAlgorithm(), m_fitDialog, and MantidQt::API::AlgorithmDialog::storePropertyValue().
Referenced by setProperties(), MantidQt::CustomDialogs::MWPropertiesWidget::setProperties(), and MantidQt::CustomDialogs::MDPropertiesWidget::setProperties().
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().
|
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().
|
protected |
Dynamic propeties widget.
Definition at line 149 of file FitDialog.h.
Referenced by setDynamicProperties(), and setProperties().
|
protected |
Parent FitDialog.
Definition at line 140 of file FitDialog.h.
Referenced by getAllowedPropertyValues(), getDomainType(), getStoredPropertyValue(), setDynamicProperties(), and setPropertyValue().
|
protected |
|
protected |
Workspace name widget.
Definition at line 147 of file FitDialog.h.
Referenced by getWorkspaceName(), isMatrixWorkspace(), isMDWorkspace(), isWSNameSet(), and setWorkspaceName().
|
protected |
Name of the property for the input workspace.
Definition at line 145 of file FitDialog.h.
Referenced by setProperties().