SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Types | Private Attributes | List of all members
AddPresetDialog Class Reference

#include <addpresetdialog.h>

Inherits QDialog.

Public Member Functions

 AddPresetDialog (const QStringList &groups, const QString &group, QWidget *parent=NULL)
 
 ~AddPresetDialog ()
 
QString group () const
 
QString description () const
 
void setGroup (const QString &group)
 
void setDescription (const QString &description)
 
void showGroupOnly ()
 
void setDialogTitle (const QString &title)
 
void setDescriptionBoxTitle (const QString &title)
 

Private Types

enum  Audio { ATDefault, ATInterface, ATDevice }
 

Private Attributes

Ui::AddPresetDialog * ui
 

Detailed Description

Definition at line 12 of file addpresetdialog.h.

Member Enumeration Documentation

◆ Audio

enum AddPresetDialog::Audio
private
Enumerator
ATDefault 
ATInterface 
ATDevice 

Definition at line 28 of file addpresetdialog.h.

Constructor & Destructor Documentation

◆ AddPresetDialog()

AddPresetDialog::AddPresetDialog ( const QStringList &  groups,
const QString &  group,
QWidget *  parent = NULL 
)
explicit

Definition at line 4 of file addpresetdialog.cpp.

References ui.

4  :
5  QDialog(parent),
6  ui(new Ui::AddPresetDialog)
7 {
8  ui->setupUi(this);
9  ui->group->addItems(groups);
10  ui->group->lineEdit()->setText(group);
11 }
Ui::AddPresetDialog * ui
QString group() const

◆ ~AddPresetDialog()

AddPresetDialog::~AddPresetDialog ( )

Definition at line 13 of file addpresetdialog.cpp.

References ui.

14 {
15  delete ui;
16 }
Ui::AddPresetDialog * ui

Member Function Documentation

◆ description()

QString AddPresetDialog::description ( ) const

Definition at line 23 of file addpresetdialog.cpp.

References ui.

Referenced by MainWindow::on_presetSave_clicked().

24 {
25  return ui->description->text();
26 }
Ui::AddPresetDialog * ui
+ Here is the caller graph for this function:

◆ group()

QString AddPresetDialog::group ( ) const

Definition at line 18 of file addpresetdialog.cpp.

References ui.

Referenced by MainWindow::on_presetSave_clicked().

19 {
20  return ui->group->lineEdit()->text();
21 }
Ui::AddPresetDialog * ui
+ Here is the caller graph for this function:

◆ setDescription()

void AddPresetDialog::setDescription ( const QString &  description)

Definition at line 33 of file addpresetdialog.cpp.

References ui.

Referenced by MainWindow::on_presetEdit_clicked(), and MainWindow::on_presetSave_clicked().

34 {
35  ui->description->setText(description);
36 }
Ui::AddPresetDialog * ui
QString description() const
+ Here is the caller graph for this function:

◆ setDescriptionBoxTitle()

void AddPresetDialog::setDescriptionBoxTitle ( const QString &  title)

Definition at line 49 of file addpresetdialog.cpp.

References ui.

50 {
51  ui->descriptionBox->setTitle(title);
52 }
Ui::AddPresetDialog * ui

◆ setDialogTitle()

void AddPresetDialog::setDialogTitle ( const QString &  title)

Definition at line 44 of file addpresetdialog.cpp.

45 {
46  setWindowTitle(title);
47 }

◆ setGroup()

void AddPresetDialog::setGroup ( const QString &  group)

Definition at line 28 of file addpresetdialog.cpp.

References ui.

29 {
30  ui->group->lineEdit()->setText(group);
31 }
Ui::AddPresetDialog * ui
QString group() const

◆ showGroupOnly()

void AddPresetDialog::showGroupOnly ( )

Definition at line 38 of file addpresetdialog.cpp.

References ui.

Referenced by MainWindow::on_commandEdit_clicked(), and MainWindow::on_presetEdit_clicked().

39 {
40  ui->description->hide();
41  ui->descriptionLabel->hide();
42 }
Ui::AddPresetDialog * ui
+ Here is the caller graph for this function:

Member Data Documentation

◆ ui

Ui::AddPresetDialog* AddPresetDialog::ui
private

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