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


Public Member Functions | |
| ComboBoxUi (QComboBox *box, Settings *settings, const std::string &opt, std::function< std::vector< SettingItem >()> itemBuilder) | |
| void | refresh () override |
Public Member Functions inherited from WidgetUi | |
| WidgetUi (const WidgetUi &)=delete | |
| WidgetUi (Settings *settings, const std::string &opt) | |
| WidgetUi (WidgetUi &&)=delete | |
| virtual | ~WidgetUi () |
| WidgetUi & | operator= (const WidgetUi &)=delete |
| WidgetUi & | operator= (WidgetUi &&)=delete |
| void | registerCallback (const std::string &option) |
| void | registerCustomCallback (const std::string &option, Option::Callback callback, std::unique_ptr< ExtraCallbackData > &&extraDataPtr=nullptr) |
| void | setOpt (const std::string &opt) |
Private Slots | |
| void | itemSelected (int index) |
Private Member Functions | |
| void | connectSignals () override |
| void | optChangeCallback (Option &opt, bool suboption) override |
| void | selectOption () |
| void | updateUiItems () |
| void | updateUiState () override |
Private Attributes | |
| QComboBox * | box |
| bool | ignoreCallback |
| std::function< std::vector< SettingItem >()> | itemBuilder |
| std::vector< SettingItem > | items |
Additional Inherited Members | |
Signals inherited from WidgetUi | |
| void | changed () |
Protected Member Functions inherited from WidgetUi | |
| void | registerCallback () |
Static Protected Member Functions inherited from WidgetUi | |
| static void | optChangeCallbackStatic (Option &, bool, void *) |
Protected Attributes inherited from WidgetUi | |
| std::vector< std::unique_ptr< ExtraCallbackData > > | extraData |
| std::string | opt |
| std::vector< std::pair< std::string, Option::Callback > > | registeredCallbacks |
| Settings * | settings |
Definition at line 28 of file combobox_ui.hpp.
| ComboBoxUi::ComboBoxUi | ( | QComboBox * | box, |
| Settings * | settings, | ||
| const std::string & | opt, | ||
| std::function< std::vector< SettingItem >()> | itemBuilder ) |
Definition at line 4 of file combobox_ui.cpp.
References connectSignals(), refresh(), and WidgetUi::registerCallback().

|
overrideprivatevirtual |
Implements WidgetUi.
Definition at line 18 of file combobox_ui.cpp.
References box, and itemSelected().
Referenced by ComboBoxUi().

|
privateslot |
Definition at line 116 of file combobox_ui.cpp.
References box, WidgetUi::changed(), Settings::getOption(), ignoreCallback, WidgetUi::settings, and Option::setValue().
Referenced by connectSignals(), and selectOption().

|
overrideprivatevirtual |
Implements WidgetUi.
Definition at line 91 of file combobox_ui.cpp.
References ignoreCallback, WidgetUi::opt, selectOption(), and updateUiItems().

|
overridevirtual |
Reimplemented from WidgetUi.
Definition at line 23 of file combobox_ui.cpp.
References itemBuilder, items, WidgetUi::opt, WidgetUi::registerCallback(), selectOption(), and updateUiItems().
Referenced by ComboBoxUi().

|
private |
Definition at line 66 of file combobox_ui.cpp.
References box, Settings::getOption(), Option::getValue(), itemSelected(), and WidgetUi::settings.
Referenced by optChangeCallback(), refresh(), and updateUiState().

|
private |
Definition at line 105 of file combobox_ui.cpp.
References box, conditionsSatisfied(), items, and WidgetUi::settings.
Referenced by optChangeCallback(), and refresh().

|
overrideprivatevirtual |
Implements WidgetUi.
Definition at line 101 of file combobox_ui.cpp.
References selectOption().

|
private |
Definition at line 40 of file combobox_ui.hpp.
Referenced by connectSignals(), itemSelected(), selectOption(), and updateUiItems().
|
private |
Definition at line 42 of file combobox_ui.hpp.
Referenced by itemSelected(), and optChangeCallback().
|
private |
Definition at line 41 of file combobox_ui.hpp.
Referenced by refresh().
|
private |
Definition at line 44 of file combobox_ui.hpp.
Referenced by refresh(), and updateUiItems().