Mantid
|
LogValueSelector : Select a log name and mean/min/max/first/last. More...
#include <LogValueSelector.h>
Signals | |
void | logOptionsEnabled (bool enabled) |
Checkbox state has changed. More... | |
Signals inherited from MantidQt::API::MantidWidget | |
void | runAsPythonScript (const QString &code, bool) |
Public Member Functions | |
Mantid::Kernel::Math::StatisticType | getFunction () const |
Get selected function enum value. More... | |
QString | getFunctionText () const |
Get selected function text. More... | |
QString | getLog () const |
Get selected log text. More... | |
QComboBox * | getLogComboBox () const |
Get a pointer to log combo box. More... | |
bool | isCheckboxShown () const |
Whether checkbox is shown or not. More... | |
bool | isCheckboxTicked () const |
Whether checkbox is ticked or not. More... | |
LogValueSelector (QWidget *parent) | |
Constructor. More... | |
void | setCheckboxShown (bool visible) |
Control whether checkbox is shown. More... | |
void | setEnabled (bool enabled) |
Set enabled/disabled. More... | |
Public Member Functions inherited from MantidQt::API::MantidWidget | |
virtual QVariant | getUserInput () const |
Returns a QVariant containing what the widget classes as user input so that input can be returned through a common interface. More... | |
virtual void | setUserInput (const QVariant &value) |
Sets a value on a mantid widget through a common interface. More... | |
Private Slots | |
void | setEnabled (int checkstate) |
Set enabled/disabled. More... | |
Private Member Functions | |
void | doConnect () |
Set up connections. More... | |
Private Attributes | |
Ui::LogValueSelector | m_ui |
User interface. More... | |
Static Private Attributes | |
static const std::map< std::string, Mantid::Kernel::Math::StatisticType > | STRING_TO_FUNC |
Converts strings like "Mean" or "Max" to enum values. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MantidQt::API::MantidWidget | |
MantidWidget (QWidget *parent=nullptr) | |
Default constructor. More... | |
QString | runPythonCode (const QString &code, bool no_output=false) |
Run python code that is passed to it and, optionally, return anything it wrote to standard output as a string. More... | |
LogValueSelector : Select a log name and mean/min/max/first/last.
Definition at line 19 of file LogValueSelector.h.
MantidQt::MantidWidgets::LogValueSelector::LogValueSelector | ( | QWidget * | parent | ) |
Constructor.
Constructor for the widget.
parent | :: [input] Parent dialog for the widget |
Definition at line 24 of file LogValueSelector.cpp.
References doConnect(), m_ui, and setEnabled().
|
private |
Set up connections.
Set up signal/slot connections.
Definition at line 35 of file LogValueSelector.cpp.
References m_ui, and setEnabled().
Referenced by LogValueSelector().
StatisticType MantidQt::MantidWidgets::LogValueSelector::getFunction | ( | ) | const |
Get selected function enum value.
Get selected function.
Definition at line 53 of file LogValueSelector.cpp.
References getFunctionText(), and STRING_TO_FUNC.
QString MantidQt::MantidWidgets::LogValueSelector::getFunctionText | ( | ) | const |
Get selected function text.
Definition at line 47 of file LogValueSelector.cpp.
References m_ui.
Referenced by getFunction().
QString MantidQt::MantidWidgets::LogValueSelector::getLog | ( | ) | const |
Get selected log text.
Definition at line 41 of file LogValueSelector.cpp.
References m_ui.
QComboBox * MantidQt::MantidWidgets::LogValueSelector::getLogComboBox | ( | ) | const |
Get a pointer to log combo box.
Definition at line 74 of file LogValueSelector.cpp.
References m_ui.
bool MantidQt::MantidWidgets::LogValueSelector::isCheckboxShown | ( | ) | const |
Whether checkbox is shown or not.
Definition at line 62 of file LogValueSelector.cpp.
References m_ui.
bool MantidQt::MantidWidgets::LogValueSelector::isCheckboxTicked | ( | ) | const |
Whether checkbox is ticked or not.
Returns whether checkbox is ticked or not.
Definition at line 91 of file LogValueSelector.cpp.
References m_ui.
|
signal |
Checkbox state has changed.
Referenced by setEnabled().
void MantidQt::MantidWidgets::LogValueSelector::setCheckboxShown | ( | bool | visible | ) |
Control whether checkbox is shown.
visible | :: [input] Whether checkbox should be visible |
Definition at line 68 of file LogValueSelector.cpp.
References m_ui.
|
inline |
Set enabled/disabled.
Definition at line 44 of file LogValueSelector.h.
References setEnabled().
Referenced by setEnabled().
|
privateslot |
Set enabled/disabled.
Slot: set enabled/disabled.
checkstate | :: [input] State of checkbox |
Definition at line 80 of file LogValueSelector.cpp.
References logOptionsEnabled(), and m_ui.
Referenced by doConnect(), and LogValueSelector().
|
private |
User interface.
Definition at line 62 of file LogValueSelector.h.
Referenced by doConnect(), getFunctionText(), getLog(), getLogComboBox(), isCheckboxShown(), isCheckboxTicked(), LogValueSelector(), setCheckboxShown(), and setEnabled().
|
staticprivate |
Converts strings like "Mean" or "Max" to enum values.
Definition at line 65 of file LogValueSelector.h.
Referenced by getFunction().