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 Slots | Private Attributes | List of all members
MyPositionDialog Class Reference

#include <mypositiondialog.h>

Inherits QDialog.

+ Collaboration diagram for MyPositionDialog:

Public Member Functions

 MyPositionDialog (MainSettings &mainSettings, QWidget *parent=0)
 
 ~MyPositionDialog ()
 

Private Slots

void accept ()
 

Private Attributes

Ui::MyPositionDialog * ui
 
MainSettingsm_mainSettings
 

Detailed Description

Definition at line 33 of file mypositiondialog.h.

Constructor & Destructor Documentation

◆ MyPositionDialog()

MyPositionDialog::MyPositionDialog ( MainSettings mainSettings,
QWidget *  parent = 0 
)
explicit

Definition at line 26 of file mypositiondialog.cpp.

References MainSettings::getLatitude(), MainSettings::getLongitude(), m_mainSettings, and ui.

26  :
27  QDialog(parent),
28  ui(new Ui::MyPositionDialog),
29  m_mainSettings(mainSettings)
30 {
31  ui->setupUi(this);
32  ui->latitudeSpinBox->setValue(m_mainSettings.getLatitude());
33  ui->longitudeSpinBox->setValue(m_mainSettings.getLongitude());
34 }
float getLatitude() const
Definition: mainsettings.h:55
MainSettings & m_mainSettings
float getLongitude() const
Definition: mainsettings.h:56
Ui::MyPositionDialog * ui
+ Here is the call graph for this function:

◆ ~MyPositionDialog()

MyPositionDialog::~MyPositionDialog ( )

Definition at line 36 of file mypositiondialog.cpp.

References ui.

37 {
38  delete ui;
39 }
Ui::MyPositionDialog * ui

Member Function Documentation

◆ accept

void MyPositionDialog::accept ( )
privateslot

Definition at line 41 of file mypositiondialog.cpp.

References m_mainSettings, MainSettings::setLatitude(), MainSettings::setLongitude(), and ui.

42 {
43  m_mainSettings.setLatitude(ui->latitudeSpinBox->value());
44  m_mainSettings.setLongitude(ui->longitudeSpinBox->value());
45  QDialog::accept();
46 }
void setLongitude(float longitude)
Definition: mainsettings.h:54
MainSettings & m_mainSettings
Ui::MyPositionDialog * ui
void setLatitude(float latitude)
Definition: mainsettings.h:53
+ Here is the call graph for this function:

Member Data Documentation

◆ m_mainSettings

MainSettings& MyPositionDialog::m_mainSettings
private

Definition at line 42 of file mypositiondialog.h.

Referenced by accept(), and MyPositionDialog().

◆ ui

Ui::MyPositionDialog* MyPositionDialog::ui
private

Definition at line 41 of file mypositiondialog.h.

Referenced by accept(), MyPositionDialog(), and ~MyPositionDialog().


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