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

#include <actionCheckable_ui.hpp>

Inheritance diagram for ActionCheckableUi:
Inheritance graph
Collaboration diagram for ActionCheckableUi:
Collaboration graph

Public Member Functions

 ActionCheckableUi (QAction *action, 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

QAction * action
 
- 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 actionCheckable_ui.hpp.

Constructor & Destructor Documentation

◆ ActionCheckableUi()

ActionCheckableUi::ActionCheckableUi ( QAction * action,
Settings * settings,
const std::string & opt )

Definition at line 3 of file actionCheckable_ui.cpp.

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

Implements CheckableUi.

Definition at line 11 of file actionCheckable_ui.cpp.

11 {
12 connect(action, &QAction::triggered, this, &ActionCheckableUi::boxClicked);
13}
void boxClicked(bool checked)

References action, and CheckableUi::boxClicked().

Referenced by ActionCheckableUi().

Here is the call graph for this function:

◆ updateUiState() [1/2]

void ActionCheckableUi::updateUiState ( )
overrideprotectedvirtual

Implements CheckableUi.

Definition at line 19 of file actionCheckable_ui.cpp.

19 {
21}
bool getOptValue()

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

Referenced by ActionCheckableUi(), and updateUiState().

Here is the call graph for this function:

◆ updateUiState() [2/2]

void ActionCheckableUi::updateUiState ( bool checked)
overrideprotectedvirtual

Implements CheckableUi.

Definition at line 15 of file actionCheckable_ui.cpp.

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

References action.

Member Data Documentation

◆ action

QAction* ActionCheckableUi::action
protected

Definition at line 17 of file actionCheckable_ui.hpp.

Referenced by connectSignals(), and updateUiState().


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