30namespace MantidWidgets {
84 bool canMerge(
const Interval & )
const;
93 std::set<int> getIntSet()
const;
98 bool contains(
const Interval & )
const;
101 std::string toStdString()
const;
103 QString toQString()
const;
107 void init(
int ,
int );
125 int totalIntervalLength()
const;
129 std::string toStdString(
int numOfIntervals = 6)
const;
133 QString toQString(
int numOfIntervals = 6)
const;
136 void addInterval(
int single);
140 void addInterval(
int start,
int end);
142 void addIntervals(QString );
153 std::set<int> getIntSet()
const;
158 bool contains(
const Interval & )
const;
166 static bool isParsable(
const QString & );
171 static bool isParsable(
const QString & ,
const IntervalList & );
194 State validate(QString & ,
int & )
const override;
219 void setError(
const QString &
error);
268 const bool showWaterfallOption =
false,
const bool showTiledOption =
false,
269 const bool isAdvanced =
false);
278 bool is1DPlotSelected()
const;
280 bool isWaterfallPlotSelected()
const;
282 bool plotRequested();
284 bool plotAllRequested();
286 bool validatePlotOptions();
288 bool isTiledPlotSelected()
const;
290 bool isSurfacePlotSelected()
const;
292 bool isContourPlotSelected()
const;
294 bool isErrorBarsSelected()
const;
298 void editedWsField();
300 void editedSpectraField();
302 void onLogSelected(
const QString &logName);
304 void onPlotOptionChanged(
const QString &logName);
310 void initWorkspaceBox();
312 void initSpectraBox();
314 void initOptionsBoxes();
318 void populateLogComboBox();
322 bool isSuitableForContourOrSurfacePlot()
const;
324 bool isSuitableForLogValues(
const QString &plotOption)
const;
326 const QString getAxisName()
const;
328 const QString getLogName()
const;
330 const std::set<double> getCustomLogValues()
const;
332 void showPlotOptionsError(
const QString &message);
334 int getPlotIndex()
const;
337 void checkForSpectraAxes();
341 void generateWsIndexIntervals();
344 void generateSpectraNumIntervals();
347 bool usingSpectraNumbers()
const;
362 QLabel *m_wsMessage, *m_spectraMessage, *m_orMessage, *m_plotOptionLabel, *m_logLabel, *
m_customLogLabel,
366 QVBoxLayout *m_outer, *m_wsBox, *m_spectraBox, *
m_logBox, *m_optionsBox;
379 bool m_usingWsIndexChoice =
false, m_usingSprectraNumChoice =
false;
388 const bool showWaterfallOption =
false,
const bool showPlotAll =
true,
389 const bool showTiledOption =
false,
const bool isAdvanced =
false);
397 bool is1DPlotSelected()
const;
399 bool isWaterfallPlotSelected()
const;
401 bool isTiledPlotSelected()
const;
403 bool isSurfacePlotSelected()
const;
405 bool isContourPlotSelected()
const;
407 bool isErrorBarsSelected()
const;
417 void init(
bool isAdvanced);
#define EXPORT_OPT_MANTIDQT_COMMON
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)