Mantid
Loading...
Searching...
No Matches
MuonFitDataSelector.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "DllOption.h"
14#include "ui_MuonFitDataSelector.h"
15
16namespace MantidQt {
17namespace MantidWidgets {
18
26 Q_OBJECT
27
28public:
30 explicit MuonFitDataSelector(QWidget *parent);
32 MuonFitDataSelector(QWidget *parent, int runNumber, const QString &instName);
33 //, size_t numPeriods, const QStringList &groups);
34 // --- MantidWidget methods ---
36 QVariant getUserInput() const override;
38 void setUserInput(const QVariant &value) override;
39 // --- IMuonFitDataSelector methods
41 QStringList getFilenames() const override;
43 double getStartTime() const override;
45 double getEndTime() const override;
47 QStringList getChosenGroups() const override;
49 void setGroupsSelected(const QStringList &groups) { m_chosenGroups = groups; };
50 void setPeriodsSelected(const QStringList &periods) { m_chosenPeriods = periods; };
52 QStringList getPeriodSelections() const override;
54 IMuonFitDataSelector::FitType getFitType() const override;
56 QString getInstrumentName() const override;
58 QString getRuns() const override;
60 QString getSimultaneousFitLabel() const override;
62 void setSimultaneousFitLabel(const QString &label) override;
64 int getDatasetIndex() const override;
66 void setDatasetNames(const QStringList &datasetNames) override;
68 QString getDatasetName() const override;
70 bool askUserWhetherToOverwrite() override;
71
72public slots:
74 void setWorkspaceDetails(const QString &runNumbers, const QString &instName,
75 const boost::optional<QString> &filePath) override;
77 void setStartTime(double start) override;
79 void setEndTime(double end) override;
81 void setStartTimeQuietly(double start) override;
83 void setEndTimeQuietly(double end) override;
85 void userChangedRuns();
87 void fitTypeChanged(bool state);
89 void checkForMultiGroupPeriodSelection();
90 void updateNormalizationFromDropDown(int /*j*/);
91signals:
100 void nameChanged(QString name);
101
102private:
104 void setDefaultValues();
106 void setUpConnections();
108 void setFitType(IMuonFitDataSelector::FitType type);
110 void setBusyState();
112 Ui::MuonFitDataSelector m_ui;
113 double m_startX;
114 double m_endX;
115 QStringList m_chosenGroups;
116 QStringList m_chosenPeriods;
118
119private slots:
121 void unsetBusyState();
123 void setPreviousDataset();
125 void setNextDataset();
126};
127
128} // namespace MantidWidgets
129} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
double value
The value of the point.
Definition: FitMW.cpp:51
std::map< DeltaEMode::Type, std::string > index
Definition: DeltaEMode.cpp:19
This is the base class all customised widgets that do not wish to be tied to a specific Mantid algori...
Definition: MantidWidget.h:27
MuonFitDataSelector : Selects runs, groups, periods for fit.
void workspaceChanged()
Changed the workspace.
Ui::MuonFitDataSelector m_ui
Member - user interface.
void setGroupsSelected(const QStringList &groups)
Set chosen group/period.
void setPeriodsSelected(const QStringList &periods)
void simulLabelChanged()
Simultaneous fit label changed.
void datasetIndexChanged(int index)
Dataset index changed.
void dataPropertiesChanged()
Edited the start or end fields.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...