10#include "MantidQtWidgets/Common/QtPropertyBrowser/qtpropertymanager.h"
11#include "MantidQtWidgets/Common/QtPropertyBrowser/qttreepropertybrowser.h"
19namespace MantidWidgets {
49 this->
setWorkspaceDetails(QString::number(runNumber), instName, boost::optional<QString>{});
90 if (runs.contains(
',') || runs.contains(
'-')) {
159 const boost::optional<QString> &filePath) {
161 m_ui.runs->setInstrumentOverride(instName);
163 QString runs(runNumbers);
164 runs.remove(QRegExp(
"^[0]*"));
166 if (runs.contains(
'-') || runs.contains(
',')) {
177 m_ui.runs->setUserInput(filePath.get());
178 m_ui.runs->setText(runs);
180 m_ui.runs->setFileTextWithSearch(runs);
191 m_ui.txtSimFitLabel->setText(
"0");
217 QVariant ret(QVariant::Map);
218 auto map = ret.toMap();
240 if (
value.canConvert(QVariant::Map)) {
241 const auto map =
value.toMap();
242 if (map.contains(
"Start")) {
245 if (map.contains(
"End")) {
266 if (
m_ui.rbCoAdd->isChecked()) {
303 if (
m_ui.runs->isValid()) {
304 return m_ui.runs->getText();
315 disconnect(
m_ui.runs, SIGNAL(fileInspectionFinished()),
this, SLOT(
unsetBusyState()));
316 this->setCursor(Qt::ArrowCursor);
325 this->setCursor(Qt::WaitCursor);
340 auto safeLabel = label;
341 if (label.indexOf(
".") >= 0) {
342 QFileInfo file(label);
343 safeLabel = file.baseName();
345 auto index = safeLabel.indexOf(
"0");
346 safeLabel = safeLabel.mid(
index);
348 safeLabel = safeLabel.remove(QRegExp(
"^[0]*"));
350 m_ui.txtSimFitLabel->setText(safeLabel);
379 const auto selectedName =
m_ui.cbDataset->currentText();
381 m_ui.cbDataset->blockSignals(
true);
382 m_ui.cbDataset->clear();
383 m_ui.cbDataset->addItems(datasetNames);
384 m_ui.cbDataset->blockSignals(
false);
388 while (i < m_ui.cbDataset->
count()) {
389 if (
m_ui.cbDataset->itemText(i) == selectedName) {
390 m_ui.cbDataset->setCurrentIndex(i);
396 if (i ==
m_ui.cbDataset->count()) {
397 m_ui.cbDataset->setCurrentIndex(0);
401 for (
int i = 0; i <
m_ui.cbDataset->count(); i++) {
403 auto name =
m_ui.cbDataset->itemText(i);
415 const int index =
m_ui.cbDataset->currentIndex();
417 m_ui.cbDataset->setCurrentIndex(
index - 1);
427 const int index =
m_ui.cbDataset->currentIndex();
428 const int maxIndex =
m_ui.cbDataset->count() - 1;
429 if (
index < maxIndex) {
430 m_ui.cbDataset->setCurrentIndex(
index + 1);
441 QMessageBox::question(
this, tr(
"MantidPlot - Overwrite Warning"),
443 QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape);
445 return choice == QMessageBox::Yes;
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
The Logger class is in charge of the publishing messages from the framework through various channels.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Kernel::Logger g_log("ExperimentInfo")
static logger object