15#include <Poco/AutoPtr.h>
16#include <Poco/NObserver.h>
26namespace MantidWidgets {
50 Q_PROPERTY(QStringList WorkspaceTypes READ getWorkspaceTypes WRITE setWorkspaceTypes)
51 Q_PROPERTY(
bool ShowHidden READ showHiddenWorkspaces WRITE showHiddenWorkspaces)
52 Q_PROPERTY(
bool ShowGroups READ showWorkspaceGroups WRITE showWorkspaceGroups)
53 Q_PROPERTY(
bool Optional READ isOptional WRITE setOptional)
54 Q_PROPERTY(
bool Sorted READ isSorted WRITE setSorted)
55 Q_PROPERTY(QStringList Suffix READ getSuffixes WRITE setSuffixes)
56 Q_PROPERTY(QString
Algorithm READ getValidatingAlgorithm WRITE setValidatingAlgorithm)
60 using QComboBox::currentIndexChanged;
67 QStringList getWorkspaceTypes() const;
68 void setWorkspaceTypes(const QStringList &types);
69 bool showHiddenWorkspaces() const;
70 void showHiddenWorkspaces(
bool show);
71 bool showWorkspaceGroups() const;
72 void showWorkspaceGroups(
bool show);
73 bool isOptional() const;
74 void setOptional(
bool optional);
75 bool isSorted() const;
76 void setSorted(
bool sorted);
77 QStringList getSuffixes() const;
78 void setSuffixes(const QStringList &suffix);
79 void setLowerBinLimit(
int numberOfBins);
80 void setUpperBinLimit(
int numberOfBins);
81 QString getValidatingAlgorithm() const;
82 void setValidatingAlgorithm(const QString &algName);
85 void disconnectObservers();
86 void connectObservers();
87 bool isConnected() const;
101 bool hasValidSuffix(const QString &name) const;
106 void dropEvent(QDropEvent * ) override;
108 void dragEnterEvent(QDragEnterEvent * ) override;
110 void focusInEvent(QFocusEvent * ) override;
124 QStringList m_workspaceTypes;
134 std::pair<
int,
int> m_binLimits;
135 QStringList m_suffix;
137 QString m_algPropName;
#define EXPORT_OPT_MANTIDQT_COMMON
Base class from which all concrete algorithm classes should be derived.
AddNotification is sent after an new object is added to the data service.
AfterReplaceNotification is sent after an object is replaced in the addOrReplace() function.
Clear notification is sent when the service is cleared.
PostDeleteNotification is sent after an object is deleted from the data service.
Rename notification is sent when the rename method is called.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
const Poco::AutoPtr< Mantid::Kernel::DataService< Mantid::API::Workspace >::AfterReplaceNotification > & WorkspaceAfterReplaceNotification_ptr
const Poco::AutoPtr< Mantid::Kernel::DataService< Mantid::API::Workspace >::ClearNotification > & ClearADSNotification_ptr
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
const Poco::AutoPtr< Mantid::Kernel::DataService< Mantid::API::Workspace >::RenameNotification > & WorkspaceRenameNotification_ptr
const Poco::AutoPtr< Mantid::Kernel::DataService< Mantid::API::Workspace >::AddNotification > & WorkspaceAddNotification_ptr
const Poco::AutoPtr< Mantid::Kernel::DataService< Mantid::API::Workspace >::PostDeleteNotification > & WorkspacePostDeleteNotification_ptr
Helper class which provides the Collimation Length for SANS instruments.