12#include "ui_FileFinderWidget.h"
45 Q_PROPERTY(
bool findRunFiles READ isForRunFiles WRITE isForRunFiles)
46 Q_PROPERTY(
bool findDirectory READ isForDirectory WRITE isForDirectory)
47 Q_PROPERTY(QString label READ getLabelText WRITE setLabelText)
48 Q_PROPERTY(
bool multipleFiles READ allowMultipleFiles WRITE allowMultipleFiles)
49 Q_PROPERTY(
bool optional READ isOptional WRITE isOptional)
50 Q_PROPERTY(
bool multiEntry READ doMultiEntry WRITE doMultiEntry)
51 Q_PROPERTY(
ButtonOpts buttonOpt READ doButtonOpt WRITE doButtonOpt)
52 Q_PROPERTY(QString algorithmAndProperty READ getAlgorithmProperty WRITE setAlgorithmProperty)
53 Q_PROPERTY(QStringList fileExtensions READ getFileExtensions WRITE setFileExtensions)
54 Q_PROPERTY(
bool extsAsSingleOption READ extsAsSingleOption WRITE extsAsSingleOption)
55 Q_PROPERTY(
LiveButtonOpts liveButton READ liveButtonState WRITE liveButtonState)
56 Q_PROPERTY(QString instrumentOverride READ getInstrumentOverride WRITE setInstrumentOverride)
82 bool isForRunFiles()
const;
83 void isForRunFiles(
bool );
84 bool isForDirectory()
const;
85 void isForDirectory(
bool );
86 QString getLabelText()
const;
87 void setLabelText(
const QString &text);
88 void setLabelMinWidth(
int );
89 bool allowMultipleFiles()
const;
90 void allowMultipleFiles(
bool );
91 bool isOptional()
const;
92 void isOptional(
bool );
93 ButtonOpts doButtonOpt()
const;
94 void doButtonOpt(ButtonOpts buttonOpt);
95 bool doMultiEntry()
const;
96 void doMultiEntry(
bool );
97 QString getAlgorithmProperty()
const;
98 void setAlgorithmProperty(
const QString &name);
99 QStringList getFileExtensions()
const;
100 std::vector<std::string> getStringFileExtensions()
const;
101 void setFileExtensions(
const QStringList &extensions);
102 bool extsAsSingleOption()
const;
103 void extsAsSingleOption(
bool value);
104 LiveButtonOpts liveButtonState()
const;
105 void liveButtonState(LiveButtonOpts );
108 void liveButtonSetChecked(
bool );
109 bool liveButtonIsChecked()
const;
110 bool isEmpty()
const;
111 QString getText()
const;
113 bool isValid()
const;
114 bool isSearching()
const;
115 QStringList getFilenames()
const;
116 QString getFirstFilename()
const;
117 int getEntryNum()
const;
118 void setEntryNum(
const int num);
121 QVariant getUserInput()
const override;
123 void setUserInput(
const QVariant &
value)
override;
125 void setText(
const QString &
value);
128 void setFileProblem(
const QString &message);
130 QString getFileProblem();
132 void readSettings(
const QString &group);
134 void saveSettings(
const QString &group);
137 void setNumberOfEntries(
int number);
140 void setLiveAlgorithm(
const std::shared_ptr<Mantid::API::IAlgorithm> &monitorLiveData);
142 QString getInstrumentOverride();
144 void setInstrumentOverride(
const QString &instName);
146 void setReadOnly(
bool readOnly);
152 void setTextValidator(
const QValidator *validator);
153 void setUseNativeWidget(
bool );
154 void setProxyModel(QAbstractProxyModel *proxyModel);
178 void setFileTextWithSearch(
const QString &text);
180 void setFileTextWithoutSearch(
const QString &text);
186 void findFiles(
bool isModified);
187 std::shared_ptr<const Mantid::API::IAlgorithm> stopLiveAlgorithm();
191 void dropEvent(QDropEvent * )
override;
193 void dragEnterEvent(QDragEnterEvent * )
override;
197 QString createFileFilter();
199 QStringList getFileExtensionsFromAlgorithm(
const QString &algName,
const QString &propName);
203 QString openFileDialog();
206 void setEntryNumProblem(
const QString &message);
209 void refreshValidator();
211 void setValidatorDisplay(
bool display);
213 const QString findFilesGetSearchText(QString &searchText);
215 void runFindFiles(
const QString &searchText);
221 void browseClicked();
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
A small helper class to hold a handle to a static thread pool.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Helper class which provides the Collimation Length for SANS instruments.
POD struct to hold details about the parameters of a file search.
POD struct to hold details about the results of a file search.