28 :
AlgorithmDialog(parent), m_propertiesWidget(nullptr), m_dialogLayout(nullptr) {}
37 this->resize(475, 545);
51 this->
tie(it.value(), it.key());
57 connect(inputWorkspaceWidget, SIGNAL(valueChanged(
const QString &)),
this,
85 std::string inWsValue = this->
getAlgorithm()->getPointerToProperty(inWsName)->value();
97 inWs = std::dynamic_pointer_cast<MatrixWorkspace>(inGroupWs->getItem(0));
104 if (containsRectDetectors == Instrument::ContainsState::Full)
#define DECLARE_DIALOG(classname)
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
This class should be the basis for all customised algorithm dialogs.
QStringList m_enabled
A list of property names that should have their widgets enabled.
QStringList m_python_arguments
A list of property names that have been passed from Python.
QStringList m_disabled
A list of property names that the user has requested to be disabled (overrides those in enabled)
QHash< QString, QString > m_errors
A map where key = property name; value = the error for this property (i.e.
QLayout * createDefaultButtonLayout(const QString &helpText=QString("?"), const QString &loadText=QString("Run"), const QString &cancelText=QString("Close"), const QString &keepOpenText=QString("Keep Open"))
Create a row layout of buttons with specified text.
QWidget * tie(QWidget *widget, const QString &property, QLayout *parent_layout=nullptr, bool readHistory=true)
Tie a widget to a property.
Mantid::API::IAlgorithm_sptr getAlgorithm() const
Get the algorithm pointer.
void addOptionalMessage(QVBoxLayout *mainLay)
Add the optional message to the given layout.
void accept() override
A default slot that can be used for an OK button.
Class to hold a set of workspaces.
ContainsState
To determine whether the instrument contains elements of some type.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
void initLayout() override
Initialize the layout.
static const QString RECTANGULAR_GROUP
Rectangular detector group name.
SmoothNeighboursDialog(QWidget *parent=nullptr)
Constructor.
void inputWorkspaceChanged(const QString &pName)
Called when input workspace get changed.
static const QString INPUT_WORKSPACE
Input workspace name.
void accept() override
Overridden to enable validators.
static const QString NON_UNIFORM_GROUP
Non rectangular detector group name.
QVBoxLayout * m_dialogLayout
Main layout for the dialog.
MantidQt::API::AlgorithmPropertiesWidget * m_propertiesWidget
Widget for all the PropertyWidgets.
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class