SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <arginfogui.h>
Inherits QWidget.
Public Types | |
enum | ArgInfoType { ArgInfoBinary, ArgInfoContinuous, ArgInfoDiscrete } |
enum | ArgInfoValueType { ArgInfoValueBool, ArgInfoValueInt, ArgInfoValueFloat, ArgInfoValueString } |
Signals | |
void | valueChanged () |
Public Member Functions | |
ArgInfoGUI (ArgInfoType type, ArgInfoValueType valueType, QWidget *parent=0) | |
~ArgInfoGUI () | |
void | setLabel (const QString &text) |
void | setToolTip (const QString &text) |
void | setUnits (const QString &units) |
ArgInfoType | getType () const |
ArgInfoValueType | getValueType () const |
void | setRange (double min, double max) |
bool | getBoolValue () const |
void | setBoolValue (bool value) |
void | addBoolValue (const QString &text, bool value) |
int | getIntValue () const |
void | setIntValue (int value) |
void | addIntValue (const QString &text, int value) |
double | getFloatValue () const |
void | setFloatValue (double value) |
void | addFloatValue (const QString &text, double value) |
const QString & | getStringValue () const |
void | setStringValue (const QString &value) |
void | addStringValue (const QString &text, const QString &value) |
Private Slots | |
void | on_argCheck_toggled (bool checked) |
void | on_argEdit_editingFinished () |
void | on_argCombo_currentIndexChanged (int index) |
Private Member Functions | |
int | setIntegerValue (int value) |
double | setDoubleValue (double value) |
void | updateUIFromBool () |
void | updateUIFromInt () |
void | updateUIFromFloat () |
void | updateUIFromString () |
Private Attributes | |
Ui::ArgInfoGUI * | ui |
ArgInfoType | m_type |
ArgInfoValueType | m_valueType |
bool | m_boolValue |
int | m_intValue |
double | m_floatValue |
QString | m_stringValue |
bool | m_hasRange |
double | m_minValue |
double | m_maxValue |
Definition at line 30 of file arginfogui.h.
Enumerator | |
---|---|
ArgInfoBinary | |
ArgInfoContinuous | |
ArgInfoDiscrete |
Definition at line 34 of file arginfogui.h.
Enumerator | |
---|---|
ArgInfoValueBool | |
ArgInfoValueInt | |
ArgInfoValueFloat | |
ArgInfoValueString |
Definition at line 41 of file arginfogui.h.
|
explicit |
Definition at line 24 of file arginfogui.cpp.
References ArgInfoBinary, ArgInfoContinuous, ArgInfoDiscrete, ArgInfoValueFloat, ArgInfoValueInt, m_type, m_valueType, and ui.
ArgInfoGUI::~ArgInfoGUI | ( | ) |
Definition at line 67 of file arginfogui.cpp.
References ui.
void ArgInfoGUI::addBoolValue | ( | const QString & | text, |
bool | value | ||
) |
Definition at line 124 of file arginfogui.cpp.
References ArgInfoDiscrete, m_type, and ui.
void ArgInfoGUI::addFloatValue | ( | const QString & | text, |
double | value | ||
) |
Definition at line 186 of file arginfogui.cpp.
References ArgInfoDiscrete, m_type, setDoubleValue(), and ui.
Referenced by SoapySDRInputGui::createArgumentsControl(), and SoapySDROutputGui::createArgumentsControl().
void ArgInfoGUI::addIntValue | ( | const QString & | text, |
int | value | ||
) |
Definition at line 155 of file arginfogui.cpp.
References ArgInfoDiscrete, m_type, setIntegerValue(), and ui.
Referenced by SoapySDRInputGui::createArgumentsControl(), and SoapySDROutputGui::createArgumentsControl().
void ArgInfoGUI::addStringValue | ( | const QString & | text, |
const QString & | value | ||
) |
Definition at line 219 of file arginfogui.cpp.
References ArgInfoDiscrete, m_type, and ui.
Referenced by SoapySDRInputGui::createArgumentsControl(), and SoapySDROutputGui::createArgumentsControl().
|
inline |
Definition at line 60 of file arginfogui.h.
Referenced by DynamicArgSettingGUI::getValue(), and DynamicArgSettingGUI::processValueChanged().
|
inline |
Definition at line 68 of file arginfogui.h.
Referenced by DynamicArgSettingGUI::getValue(), and DynamicArgSettingGUI::processValueChanged().
|
inline |
Definition at line 64 of file arginfogui.h.
Referenced by DynamicArgSettingGUI::getValue(), and DynamicArgSettingGUI::processValueChanged().
|
inline |
Definition at line 72 of file arginfogui.h.
Referenced by DynamicArgSettingGUI::getValue(), and DynamicArgSettingGUI::processValueChanged().
|
inline |
Definition at line 56 of file arginfogui.h.
|
inline |
Definition at line 57 of file arginfogui.h.
References leansdr::max(), and leansdr::min().
Referenced by DynamicArgSettingGUI::getValue(), and DynamicArgSettingGUI::processValueChanged().
|
privateslot |
Definition at line 373 of file arginfogui.cpp.
References setBoolValue(), and valueChanged().
|
privateslot |
Definition at line 385 of file arginfogui.cpp.
References setBoolValue(), setFloatValue(), setIntValue(), setStringValue(), ui, and valueChanged().
|
privateslot |
Definition at line 379 of file arginfogui.cpp.
References setStringValue(), ui, and valueChanged().
void ArgInfoGUI::setBoolValue | ( | bool | value | ) |
Definition at line 100 of file arginfogui.cpp.
References ArgInfoValueBool, ArgInfoValueFloat, ArgInfoValueInt, ArgInfoValueString, m_boolValue, m_floatValue, m_intValue, m_stringValue, m_valueType, setDoubleValue(), setIntegerValue(), updateUIFromBool(), updateUIFromFloat(), updateUIFromInt(), and updateUIFromString().
Referenced by on_argCheck_toggled(), on_argCombo_currentIndexChanged(), and DynamicArgSettingGUI::setValue().
|
private |
Definition at line 235 of file arginfogui.cpp.
References m_hasRange, and m_maxValue.
Referenced by addFloatValue(), setBoolValue(), setFloatValue(), setIntValue(), and setStringValue().
void ArgInfoGUI::setFloatValue | ( | double | value | ) |
Definition at line 162 of file arginfogui.cpp.
References ArgInfoValueBool, ArgInfoValueFloat, ArgInfoValueInt, ArgInfoValueString, m_boolValue, m_floatValue, m_intValue, m_stringValue, m_valueType, setDoubleValue(), setIntegerValue(), updateUIFromBool(), updateUIFromFloat(), updateUIFromInt(), and updateUIFromString().
Referenced by on_argCombo_currentIndexChanged(), and DynamicArgSettingGUI::setValue().
|
private |
Definition at line 226 of file arginfogui.cpp.
References m_hasRange, and m_maxValue.
Referenced by addIntValue(), setBoolValue(), setFloatValue(), setIntValue(), and setStringValue().
void ArgInfoGUI::setIntValue | ( | int | value | ) |
Definition at line 131 of file arginfogui.cpp.
References ArgInfoValueBool, ArgInfoValueFloat, ArgInfoValueInt, ArgInfoValueString, m_boolValue, m_floatValue, m_intValue, m_stringValue, m_valueType, setDoubleValue(), setIntegerValue(), updateUIFromBool(), updateUIFromFloat(), updateUIFromInt(), and updateUIFromString().
Referenced by on_argCombo_currentIndexChanged(), and DynamicArgSettingGUI::setValue().
void ArgInfoGUI::setLabel | ( | const QString & | text | ) |
Definition at line 79 of file arginfogui.cpp.
References ui.
Referenced by SoapySDRInputGui::createArgumentsControl(), and SoapySDROutputGui::createArgumentsControl().
void ArgInfoGUI::setRange | ( | double | min, |
double | max | ||
) |
Definition at line 72 of file arginfogui.cpp.
References m_hasRange, m_maxValue, m_minValue, leansdr::max(), and leansdr::min().
Referenced by SoapySDRInputGui::createArgumentsControl(), and SoapySDROutputGui::createArgumentsControl().
void ArgInfoGUI::setStringValue | ( | const QString & | value | ) |
Definition at line 193 of file arginfogui.cpp.
References ArgInfoValueBool, ArgInfoValueFloat, ArgInfoValueInt, ArgInfoValueString, m_boolValue, m_floatValue, m_intValue, m_stringValue, m_valueType, setDoubleValue(), setIntegerValue(), updateUIFromBool(), updateUIFromFloat(), updateUIFromInt(), and updateUIFromString().
Referenced by on_argCombo_currentIndexChanged(), on_argEdit_editingFinished(), and DynamicArgSettingGUI::setValue().
void ArgInfoGUI::setToolTip | ( | const QString & | text | ) |
Definition at line 84 of file arginfogui.cpp.
References ArgInfoBinary, ArgInfoContinuous, ArgInfoDiscrete, m_type, and ui.
Referenced by SoapySDRInputGui::createArgumentsControl(), and SoapySDROutputGui::createArgumentsControl().
void ArgInfoGUI::setUnits | ( | const QString & | units | ) |
Definition at line 95 of file arginfogui.cpp.
References ui.
Referenced by SoapySDRInputGui::createArgumentsControl(), and SoapySDROutputGui::createArgumentsControl().
|
private |
Definition at line 244 of file arginfogui.cpp.
References ArgInfoBinary, ArgInfoContinuous, ArgInfoDiscrete, m_boolValue, m_type, and ui.
Referenced by setBoolValue(), setFloatValue(), setIntValue(), and setStringValue().
|
private |
Definition at line 304 of file arginfogui.cpp.
References arg(), ArgInfoBinary, ArgInfoContinuous, ArgInfoDiscrete, i, m_floatValue, m_type, and ui.
Referenced by setBoolValue(), setFloatValue(), setIntValue(), and setStringValue().
|
private |
Definition at line 269 of file arginfogui.cpp.
References arg(), ArgInfoBinary, ArgInfoContinuous, ArgInfoDiscrete, i, m_intValue, m_type, and ui.
Referenced by setBoolValue(), setFloatValue(), setIntValue(), and setStringValue().
|
private |
Definition at line 339 of file arginfogui.cpp.
References ArgInfoBinary, ArgInfoContinuous, ArgInfoDiscrete, i, m_stringValue, m_type, and ui.
Referenced by setBoolValue(), setFloatValue(), setIntValue(), and setStringValue().
|
signal |
Referenced by on_argCheck_toggled(), on_argCombo_currentIndexChanged(), and on_argEdit_editingFinished().
|
private |
Definition at line 95 of file arginfogui.h.
Referenced by setBoolValue(), setFloatValue(), setIntValue(), setStringValue(), and updateUIFromBool().
|
private |
Definition at line 97 of file arginfogui.h.
Referenced by setBoolValue(), setFloatValue(), setIntValue(), setStringValue(), and updateUIFromFloat().
|
private |
Definition at line 99 of file arginfogui.h.
Referenced by setDoubleValue(), setIntegerValue(), and setRange().
|
private |
Definition at line 96 of file arginfogui.h.
Referenced by setBoolValue(), setFloatValue(), setIntValue(), setStringValue(), and updateUIFromInt().
|
private |
Definition at line 101 of file arginfogui.h.
Referenced by setDoubleValue(), setIntegerValue(), and setRange().
|
private |
Definition at line 100 of file arginfogui.h.
Referenced by setRange().
|
private |
Definition at line 98 of file arginfogui.h.
Referenced by setBoolValue(), setFloatValue(), setIntValue(), setStringValue(), and updateUIFromString().
|
private |
Definition at line 93 of file arginfogui.h.
Referenced by addBoolValue(), addFloatValue(), addIntValue(), addStringValue(), ArgInfoGUI(), setToolTip(), updateUIFromBool(), updateUIFromFloat(), updateUIFromInt(), and updateUIFromString().
|
private |
Definition at line 94 of file arginfogui.h.
Referenced by ArgInfoGUI(), setBoolValue(), setFloatValue(), setIntValue(), and setStringValue().
|
private |
Definition at line 92 of file arginfogui.h.
Referenced by addBoolValue(), addFloatValue(), addIntValue(), addStringValue(), ArgInfoGUI(), on_argCombo_currentIndexChanged(), on_argEdit_editingFinished(), setLabel(), setToolTip(), setUnits(), updateUIFromBool(), updateUIFromFloat(), updateUIFromInt(), updateUIFromString(), and ~ArgInfoGUI().