UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
CheckboxUi Class Reference

#include <checkbox_ui.hpp>

Inheritance diagram for CheckboxUi:
Inheritance graph
Collaboration diagram for CheckboxUi:
Collaboration graph

Public Member Functions

 CheckboxUi (QAbstractButton *box, Settings *settings, const std::string &opt)
 
- Public Member Functions inherited from CheckableUi
 CheckableUi (Settings *settings, const std::string &opt)
 
virtual ~CheckableUi ()
 
- 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
 
virtual void refresh ()
 
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)
 

Protected Member Functions

void connectSignals () override
 
void updateUiState () override
 
void updateUiState (bool checked) override
 
- Protected Member Functions inherited from CheckableUi
bool getOptValue ()
 
void optChangeCallback (Option &opt, bool suboption) override
 
- Protected Member Functions inherited from WidgetUi
void registerCallback ()
 

Protected Attributes

QAbstractButton * checkbox
 
- 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
 

Additional Inherited Members

- Signals inherited from WidgetUi
void changed ()
 
- Protected Slots inherited from CheckableUi
void boxClicked (bool checked)
 
- Static Protected Member Functions inherited from WidgetUi
static void optChangeCallbackStatic (Option &, bool, void *)
 

Detailed Description

Definition at line 10 of file checkbox_ui.hpp.

Constructor & Destructor Documentation

◆ CheckboxUi()

CheckboxUi::CheckboxUi ( QAbstractButton * box,
Settings * settings,
const std::string & opt )

Definition at line 3 of file checkbox_ui.cpp.

3 :
5 checkbox(box)
6{
9}
CheckableUi(Settings *settings, const std::string &opt)
void connectSignals() override
void updateUiState() override
QAbstractButton * checkbox
std::string opt
Definition widget_ui.hpp:34
Settings * settings
Definition widget_ui.hpp:33

References connectSignals(), and updateUiState().

Here is the call graph for this function:

Member Function Documentation

◆ connectSignals()

void CheckboxUi::connectSignals ( )
overrideprotectedvirtual

Implements CheckableUi.

Definition at line 11 of file checkbox_ui.cpp.

11 {
12 connect(checkbox, &QAbstractButton::clicked, this, &CheckboxUi::boxClicked);
13}
void boxClicked(bool checked)

References CheckableUi::boxClicked(), and checkbox.

Referenced by CheckboxUi().

Here is the call graph for this function:

◆ updateUiState() [1/2]

void CheckboxUi::updateUiState ( )
overrideprotectedvirtual

Implements CheckableUi.

Definition at line 19 of file checkbox_ui.cpp.

19 {
21}
bool getOptValue()

References CheckableUi::getOptValue(), and updateUiState().

Referenced by CheckboxUi(), and updateUiState().

Here is the call graph for this function:

◆ updateUiState() [2/2]

void CheckboxUi::updateUiState ( bool checked)
overrideprotectedvirtual

Implements CheckableUi.

Definition at line 15 of file checkbox_ui.cpp.

15 {
16 checkbox->setChecked(checked);
17}

References checkbox.

Member Data Documentation

◆ checkbox

QAbstractButton* CheckboxUi::checkbox
protected

Definition at line 17 of file checkbox_ui.hpp.

Referenced by connectSignals(), and updateUiState().


The documentation for this class was generated from the following files: