![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <settings.hpp>

Classes | |
| class | Callback |
Public Types | |
| enum | OptType { StringOpt , BoolOpt , SilentOpt } |
Public Member Functions | |
| Option (Settings *settings, const std::string &name="", OptType type=OptType::StringOpt, const std::string ¶m="", const std::string &defaultValue="", bool enabled=true) | |
| virtual | ~Option () |
| void | addOnChangeCallback (Callback callback) |
| void | addSuboption (Option *sub, const std::string &limit="") |
| void | changed () |
| virtual std::string | getLaunchOption () const |
| std::string | getName () const |
| std::string | getParam () const |
| Settings * | getSettings () |
| std::string | getSubVals () const |
| OptType | getType () const |
| std::string | getValue () const |
| bool | isEnabled () const |
| void | removeOnChangeCallback (const Callback &callback) |
| virtual void | setDefaultValue (const std::string &val) |
| void | setEnabled (bool enable, bool suppressCallback=false) |
| void | setParam (const std::string &p) |
| void | setType (OptType type) |
| virtual void | setValue (const std::string &val, bool suppressCallback=false) |
Static Protected Member Functions | |
| static void | suboptionChanged (Option &opt, bool suboption, void *opaque) |
Protected Attributes | |
| std::string | defaultValue |
| bool | enabled |
| std::string | name |
| std::vector< Callback > | onChangeCallbacks |
| std::string | param |
| Settings * | settings |
| std::vector< std::pair< std::string, Option * > > | suboptions |
| OptType | type |
| std::string | value |
Definition at line 12 of file settings.hpp.
| enum Option::OptType |
| Enumerator | |
|---|---|
| StringOpt | |
| BoolOpt | |
| SilentOpt | |
Definition at line 28 of file settings.hpp.
|
inline |
Definition at line 34 of file settings.hpp.
|
inlinevirtual |
Definition at line 48 of file settings.hpp.
| void Option::addOnChangeCallback | ( | Callback | callback | ) |
Definition at line 107 of file settings.cpp.
References callback, and onChangeCallbacks.
Referenced by Settings::Settings(), SettingsUi::addCallbacks(), addSuboption(), WidgetUi::registerCustomCallback(), and UltragridWindow::setupPreviewCallbacks().
| void Option::addSuboption | ( | Option * | sub, |
| const std::string & | limit = "" ) |
Definition at line 96 of file settings.cpp.
References addOnChangeCallback(), limit, suboptionChanged(), and suboptions.
Referenced by Settings::addOption().

| void Option::changed | ( | ) |
Definition at line 60 of file settings.cpp.
References callback, and onChangeCallbacks.
Referenced by setEnabled(), and setValue().
|
virtual |
Definition at line 46 of file settings.cpp.
References BoolOpt, enabled, getSubVals(), param, SilentOpt, type, and value.
Referenced by Settings::getLaunchParams(), and Settings::getPreviewParams().

| std::string Option::getName | ( | ) | const |
Definition at line 22 of file settings.cpp.
References name.
Referenced by CheckableUi::optChangeCallback(), RadioButtonUi::optChangeCallback(), and TextOptUi::optChangeCallback().
| std::string Option::getParam | ( | ) | const |
Definition at line 30 of file settings.cpp.
References param.
Referenced by fec_builder_callback(), Settings::getLaunchParams(), and Settings::getPreviewParams().
| Settings * Option::getSettings | ( | ) |
Definition at line 129 of file settings.cpp.
References settings.
Referenced by audioCompressionCallback(), fec_auto_callback(), fec_builder_callback(), and videoCompressBitrateCallback().
| std::string Option::getSubVals | ( | ) | const |
Definition at line 34 of file settings.cpp.
References suboptions, and value.
Referenced by getLaunchOption().
|
inline |
| std::string Option::getValue | ( | ) | const |
Definition at line 26 of file settings.cpp.
References value.
Referenced by audioCompressionCallback(), conditionsSatisfied(), fec_auto_callback(), fec_builder_callback(), Settings::getControlPort(), TextOptUi::getOptValue(), Settings::isAdvancedMode(), RadioButtonUi::optChangeCallback(), TextOptUi::optChangeCallback(), ComboBoxUi::selectOption(), RadioButtonUi::updateUiState(), and videoCompressBitrateCallback().
|
inline |
Definition at line 61 of file settings.hpp.
References enabled.
Referenced by fec_auto_callback(), fec_builder_callback(), CheckableUi::getOptValue(), CheckableUi::optChangeCallback(), and vuMeterCallback().
| void Option::removeOnChangeCallback | ( | const Callback & | callback | ) |
Definition at line 111 of file settings.cpp.
References callback, name, and onChangeCallbacks.
Referenced by WidgetUi::~WidgetUi().
|
virtual |
Definition at line 86 of file settings.cpp.
References defaultValue, and val.
Referenced by Settings::addOption().
| void Option::setEnabled | ( | bool | enable, |
| bool | suppressCallback = false ) |
Definition at line 90 of file settings.cpp.
References changed(), and enabled.
Referenced by Settings::addOption(), and audioCompressionCallback().

|
inline |
Definition at line 59 of file settings.hpp.
References param.
Referenced by Settings::addOption().
|
inline |
|
virtual |
Definition at line 73 of file settings.cpp.
References BoolOpt, changed(), enabled, type, val, and value.
Referenced by Settings::addOption(), CheckableUi::boxClicked(), RadioButtonUi::btnClicked(), UltragridWindow::checkPreview(), fec_auto_callback(), fec_builder_callback(), ComboBoxUi::itemSelected(), UltragridWindow::loadSettingsFile(), and TextOptUi::textEdited().

|
staticprotected |
Definition at line 66 of file settings.cpp.
References callback, and onChangeCallbacks.
Referenced by addSuboption().
|
protected |
Definition at line 77 of file settings.hpp.
Referenced by setDefaultValue().
|
protected |
Definition at line 79 of file settings.hpp.
Referenced by fec_builder_callback(), getLaunchOption(), isEnabled(), setEnabled(), and setValue().
|
protected |
Definition at line 74 of file settings.hpp.
Referenced by getName(), and removeOnChangeCallback().
|
protected |
Definition at line 85 of file settings.hpp.
Referenced by addOnChangeCallback(), changed(), removeOnChangeCallback(), and suboptionChanged().
|
protected |
Definition at line 75 of file settings.hpp.
Referenced by getLaunchOption(), getParam(), and setParam().
|
protected |
Definition at line 88 of file settings.hpp.
Referenced by fec_auto_callback(), fec_builder_callback(), and getSettings().
|
protected |
Definition at line 86 of file settings.hpp.
Referenced by addSuboption(), and getSubVals().
|
protected |
Definition at line 81 of file settings.hpp.
Referenced by fec_builder_callback(), getLaunchOption(), getType(), setType(), and setValue().
|
protected |
Definition at line 76 of file settings.hpp.
Referenced by getLaunchOption(), getSubVals(), getValue(), and setValue().