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

#include <groupBox_ui.hpp>

Inheritance diagram for GroupBoxUi:
Inheritance graph
Collaboration diagram for GroupBoxUi:
Collaboration graph

Public Member Functions

 GroupBoxUi (QGroupBox *groupBox, 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

QGroupBox * groupBox
 
- 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 groupBox_ui.hpp.

Constructor & Destructor Documentation

◆ GroupBoxUi()

GroupBoxUi::GroupBoxUi ( QGroupBox * groupBox,
Settings * settings,
const std::string & opt )

Definition at line 3 of file groupBox_ui.cpp.

3 :
6{
9}
CheckableUi(Settings *settings, const std::string &opt)
QGroupBox * groupBox
void connectSignals() override
void updateUiState() override
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 GroupBoxUi::connectSignals ( )
overrideprotectedvirtual

Implements CheckableUi.

Definition at line 11 of file groupBox_ui.cpp.

11 {
12 connect(groupBox, &QGroupBox::clicked, this, &GroupBoxUi::boxClicked);
13}
void boxClicked(bool checked)

References CheckableUi::boxClicked(), and groupBox.

Referenced by GroupBoxUi().

Here is the call graph for this function:

◆ updateUiState() [1/2]

void GroupBoxUi::updateUiState ( )
overrideprotectedvirtual

Implements CheckableUi.

Definition at line 19 of file groupBox_ui.cpp.

19 {
21}
bool getOptValue()

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

Referenced by GroupBoxUi(), and updateUiState().

Here is the call graph for this function:

◆ updateUiState() [2/2]

void GroupBoxUi::updateUiState ( bool checked)
overrideprotectedvirtual

Implements CheckableUi.

Definition at line 15 of file groupBox_ui.cpp.

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

References groupBox.

Member Data Documentation

◆ groupBox

QGroupBox* GroupBoxUi::groupBox
protected

Definition at line 16 of file groupBox_ui.hpp.

Referenced by connectSignals(), and updateUiState().


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