Mantid
Loading...
Searching...
No Matches
LogValueSelector.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"
12#include "ui_LogValueSelector.h"
13
14namespace MantidQt {
15namespace MantidWidgets {
16
20 Q_OBJECT
21public:
23 LogValueSelector(QWidget *parent);
24
26 QString getLog() const;
27
29 QString getFunctionText() const;
30
32 Mantid::Kernel::Math::StatisticType getFunction() const;
33
35 bool isCheckboxShown() const;
36
38 void setCheckboxShown(bool visible);
39
41 QComboBox *getLogComboBox() const;
42
44 void setEnabled(bool enabled) { this->setEnabled(enabled ? Qt::Checked : Qt::Unchecked); }
45
47 bool isCheckboxTicked() const;
48
49signals:
51 void logOptionsEnabled(bool enabled);
52
53private slots:
55 void setEnabled(int checkstate);
56
57private:
59 void doConnect();
60
62 Ui::LogValueSelector m_ui;
63
65 static const std::map<std::string, Mantid::Kernel::Math::StatisticType> STRING_TO_FUNC;
66};
67
68} // namespace MantidWidgets
69} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
This is the base class all customised widgets that do not wish to be tied to a specific Mantid algori...
Definition: MantidWidget.h:27
LogValueSelector : Select a log name and mean/min/max/first/last.
void setEnabled(bool enabled)
Set enabled/disabled.
Ui::LogValueSelector m_ui
User interface.
static const std::map< std::string, Mantid::Kernel::Math::StatisticType > STRING_TO_FUNC
Converts strings like "Mean" or "Max" to enum values.
void logOptionsEnabled(bool enabled)
Checkbox state has changed.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
StatisticType
Maps a "statistic" to a number.
Definition: Statistics.h:18