10#include "ui_DataSelector.h"
18namespace MantidWidgets {
39 Q_PROPERTY(QStringList fileBrowserSuffixes READ getFBSuffixes WRITE setFBSuffixes)
40 Q_PROPERTY(
bool showLoad READ willShowLoad WRITE setShowLoad)
41 Q_PROPERTY(QString instrumentOverride READ getInstrumentOverride WRITE setInstrumentOverride)
42 Q_PROPERTY(
bool multipleFiles READ allowMultipleFiles WRITE allowMultipleFiles)
43 Q_PROPERTY(
bool findRunFiles READ isForRunFiles WRITE isForRunFiles)
44 Q_PROPERTY(
bool findDirectory READ isForDirectory WRITE isForDirectory)
45 Q_PROPERTY(QString label READ getLabelText WRITE setLabelText)
46 Q_PROPERTY(
bool multiEntry READ doMultiEntry WRITE doMultiEntry)
47 Q_PROPERTY(QString algorithmAndProperty READ getAlgorithmProperty WRITE setAlgorithmProperty)
48 Q_PROPERTY(
bool extsAsSingleOption READ extsAsSingleOption WRITE extsAsSingleOption)
49 Q_PROPERTY(
ButtonOpts buttonOpts READ doButtonOpt WRITE doButtonOpt)
50 Q_PROPERTY(
LiveButtonOpts liveButton READ liveButtonState WRITE liveButtonState)
55 Q_PROPERTY(QStringList workspaceSuffixes READ getWSSuffixes WRITE setWSSuffixes)
56 Q_PROPERTY(QStringList WorkspaceTypes READ getWorkspaceTypes WRITE setWorkspaceTypes)
57 Q_PROPERTY(
bool ShowHidden READ showHiddenWorkspaces WRITE showHiddenWorkspaces)
58 Q_PROPERTY(
bool ShowGroups READ showWorkspaceGroups WRITE showWorkspaceGroups)
59 Q_PROPERTY(QString
Algorithm READ getValidatingAlgorithm WRITE setValidatingAlgorithm)
62 Q_PROPERTY(
bool optional READ isOptional WRITE isOptional)
63 Q_PROPERTY(
bool autoLoad READ willAutoLoad WRITE setAutoLoad)
64 Q_PROPERTY(QString loadLabelText READ getLoadBtnText WRITE setLoadBtnText)
71 QString getFullFilePath()
const;
73 QString getWsNameFromFiles()
const;
75 virtual QString getCurrentDataName()
const;
77 void setSelectorIndex(
int index);
79 void setTypeSelectorVisible(
bool visible);
81 void setWorkspaceSelectorIndex(QString
const &workspaceName);
83 bool isFileSelectorVisible()
const;
85 bool isWorkspaceSelectorVisible()
const;
87 virtual bool isValid();
89 QString getProblem()
const;
91 void readSettings(
const QString & );
93 void saveSettings(
const QString & );
95 bool isOptional()
const;
97 void isOptional(
bool );
99 bool willAutoLoad()
const;
101 void setAutoLoad(
bool );
105 void setShowLoad(
bool load);
107 QString getLoadBtnText()
const;
109 void setLoadBtnText(
const QString & );
132 bool isForRunFiles()
const {
return m_uiForm.rfFileInput->isForRunFiles(); }
138 void isForRunFiles(
const bool mode) { m_uiForm.rfFileInput->isForRunFiles(mode); }
150 void isForDirectory(
const bool mode) { m_uiForm.rfFileInput->isForDirectory(mode); }
156 QString
getLabelText()
const {
return m_uiForm.rfFileInput->getLabelText(); }
162 void setLabelText(
const QString &text) { m_uiForm.rfFileInput->setLabelText(text); }
169 bool doMultiEntry()
const {
return m_uiForm.rfFileInput->doMultiEntry(); }
175 void doMultiEntry(
const bool multiEntry) { m_uiForm.rfFileInput->doMultiEntry(multiEntry); }
210 QStringList
getFBSuffixes() {
return m_uiForm.rfFileInput->getFileExtensions(); }
217 void setFBSuffixes(
const QStringList &suffixes) { m_uiForm.rfFileInput->setFileExtensions(suffixes); }
267 QStringList
getWSSuffixes() {
return m_uiForm.wsWorkspaceInput->getSuffixes(); }
274 void setWSSuffixes(
const QStringList &suffixes) { m_uiForm.wsWorkspaceInput->setSuffixes(suffixes); }
281 QStringList
getWorkspaceTypes()
const {
return m_uiForm.wsWorkspaceInput->getWorkspaceTypes(); }
288 void setWorkspaceTypes(
const QStringList &types) { m_uiForm.wsWorkspaceInput->setWorkspaceTypes(types); }
347 void dropEvent(QDropEvent * )
override;
349 void dragEnterEvent(QDragEnterEvent * )
override;
353 void handleViewChanged(
int index);
355 void handleFileInput();
357 void handleWorkspaceInput();
359 void handleAutoLoadComplete(
bool error);
363 void autoLoadFile(
const QString &filenames);
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
The AlgorithmRunner is a QObject that encapsulates methods for running an algorithm asynchronously (i...
Base class from which all concrete algorithm classes should be derived.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...