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.
sdrgui
gui
mypositiondialog.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 F4EXB //
3
// written by Edouard Griffiths //
4
// //
5
// OpenGL interface modernization. //
6
// See: http://doc.qt.io/qt-5/qopenglshaderprogram.html //
7
// //
8
// This program is free software; you can redistribute it and/or modify //
9
// it under the terms of the GNU General Public License as published by //
10
// the Free Software Foundation as version 3 of the License, or //
11
// (at your option) any later version. //
12
// //
13
// This program is distributed in the hope that it will be useful, //
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
16
// GNU General Public License V3 for more details. //
17
// //
18
// You should have received a copy of the GNU General Public License //
19
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
21
22
#include "
gui/mypositiondialog.h
"
23
#include "ui_myposdialog.h"
24
25
26
MyPositionDialog::MyPositionDialog
(
MainSettings
& mainSettings, QWidget* parent) :
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
}
35
36
MyPositionDialog::~MyPositionDialog
()
37
{
38
delete
ui
;
39
}
40
41
void
MyPositionDialog::accept
()
42
{
43
m_mainSettings
.
setLatitude
(
ui
->latitudeSpinBox->value());
44
m_mainSettings
.
setLongitude
(
ui
->longitudeSpinBox->value());
45
QDialog::accept();
46
}
MyPositionDialog::~MyPositionDialog
~MyPositionDialog()
Definition:
mypositiondialog.cpp:36
MainSettings::getLatitude
float getLatitude() const
Definition:
mainsettings.h:55
MyPositionDialog
Definition:
mypositiondialog.h:33
Ui
Definition:
chanalyzergui.h:38
MyPositionDialog::accept
void accept()
Definition:
mypositiondialog.cpp:41
MainSettings::setLongitude
void setLongitude(float longitude)
Definition:
mainsettings.h:54
MyPositionDialog::m_mainSettings
MainSettings & m_mainSettings
Definition:
mypositiondialog.h:42
MainSettings::getLongitude
float getLongitude() const
Definition:
mainsettings.h:56
MyPositionDialog::ui
Ui::MyPositionDialog * ui
Definition:
mypositiondialog.h:41
MyPositionDialog::MyPositionDialog
MyPositionDialog(MainSettings &mainSettings, QWidget *parent=0)
Definition:
mypositiondialog.cpp:26
mypositiondialog.h
MainSettings::setLatitude
void setLatitude(float latitude)
Definition:
mainsettings.h:53
MainSettings
Definition:
mainsettings.h:14
Generated on Fri Aug 2 2019 17:56:34 for SDRAngel by
1.8.13