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

#include <settings_window.hpp>

Inheritance diagram for SettingsWindow:
Inheritance graph
Collaboration diagram for SettingsWindow:
Collaboration graph

Signals

void changed ()
 

Public Member Functions

 SettingsWindow (QWidget *parent=0)
 
void init (SettingsUi *settingsUi)
 

Private Slots

void changeFecPage ()
 
void fecTab ()
 

Private Attributes

Ui::Settings ui
 

Detailed Description

Definition at line 8 of file settings_window.hpp.

Constructor & Destructor Documentation

◆ SettingsWindow()

SettingsWindow::SettingsWindow ( QWidget * parent = 0)

Definition at line 4 of file settings_window.cpp.

4 : QDialog(parent){
5 ui.setupUi(this);
6 ui.basePort->setValidator(new QIntValidator(0, 65535, this));
7 ui.controlPort->setValidator(new QIntValidator(0, 65535, this));
8
9 connect(ui.multSpin, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
10 connect(ui.ldgmMaxLoss, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
11 connect(ui.ldgmC, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
12 connect(ui.ldgmK, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
13 connect(ui.ldgmM, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
14 connect(ui.rsK, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
15 connect(ui.rsN, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
16
17 connect(ui.ldgmSimpCpuRadio, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
18 connect(ui.ldgmSimpGpuRadio, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
19}
const char * parent
Definition settings.cpp:198

References changed(), and ui.

Here is the call graph for this function:

Member Function Documentation

◆ changed

void SettingsWindow::changed ( )
signal

Referenced by SettingsWindow().

◆ changeFecPage

void SettingsWindow::changeFecPage ( )
privateslot

Definition at line 31 of file settings_window.cpp.

31 {
32 if(ui.fecMultRadio->isChecked()){
33 ui.stackedWidget->setCurrentIndex(0);
34 } else if(ui.fecLdgmRadio->isChecked()){
35 ui.stackedWidget->setCurrentIndex(2);
36 } else if(ui.fecRsRadio->isChecked()){
37 ui.stackedWidget->setCurrentIndex(3);
38 }
39}

References ui.

Referenced by init().

◆ fecTab

void SettingsWindow::fecTab ( )
privateslot

Definition at line 41 of file settings_window.cpp.

41 {
42 ui.tabWidget->setCurrentIndex(0);
43}

References ui.

◆ init()

void SettingsWindow::init ( SettingsUi * settingsUi)

Definition at line 21 of file settings_window.cpp.

21 {
22 settingsUi->initSettingsWin(&ui);
23
24 connect(ui.fecNoneRadio, SIGNAL(toggled(bool)), this, SLOT(changeFecPage()));
25 connect(ui.fecMultRadio, SIGNAL(toggled(bool)), this, SLOT(changeFecPage()));
26 connect(ui.fecLdgmRadio, SIGNAL(toggled(bool)), this, SLOT(changeFecPage()));
27 connect(ui.fecRsRadio, SIGNAL(toggled(bool)), this, SLOT(changeFecPage()));
28
29}
void initSettingsWin(Ui::Settings *ui)

References changeFecPage(), SettingsUi::initSettingsWin(), and ui.

Referenced by UltragridWindow::initializeUgOpts().

Here is the call graph for this function:

Member Data Documentation

◆ ui

Ui::Settings SettingsWindow::ui
private

Definition at line 21 of file settings_window.hpp.

Referenced by SettingsWindow(), changeFecPage(), fecTab(), and init().


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