1
#ifndef SETUPPAGESATSNEW_H
2
#define SETUPPAGESATSNEW_H
3
/***************************************************************************
4
setuppagesatsnew.h - description
7
copyright : (C) 2018 by Jaime Robles
8
email : jaime@robles.es
9
***************************************************************************/
11
/*****************************************************************************
12
* This file is part of KLog. *
14
* KLog is free software: you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation, either version 3 of the License, or *
17
* (at your option) any later version. *
19
* KLog is distributed in the hope that it will be useful, *
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22
* GNU General Public License for more details. *
24
* You should have received a copy of the GNU General Public License *
25
* along with KLog. If not, see <https://www.gnu.org/licenses/>. *
27
*****************************************************************************/
29
// This class implements the Dialog to add a new satellite
31
#include "dataproxy_sqlite.h"
37
//TODO: Read the data when the user clicks the OK button
38
//TODO: Fill the data from the list of sats when the user wants to edit a sat
40
class SetupPageSatsNew : public QDialog
45
SetupPageSatsNew(DataProxy_SQLite *dp, QWidget *parent = nullptr);
47
void setEditing(const bool b);
49
void setShortName(const QString st);
50
void setName(const QString st);
51
void setUpLink(const QString st);
52
void setDownLink(const QString st);
53
void setModes(const QString st);
59
void slotOKButtonClicked();
60
void slotCancelButtonClicked();
62
void slotShortNameTextChanged();
63
void slotNameTextChanged();
64
void slotUpLinkTextChanged();
65
void slotDownLinkTextChanged();
66
void slotModesTextChanged();
69
void newSatData(const QStringList _qs); //
70
void cancelled(const bool _c); // Cancel button is clicked
74
//bool isThereAnyNotManagedSat();
77
bool isItAFreq(const QString _st);
79
//void fillWithType(const int _n);
80
//void updateAllCats();
86
DataProxy_SQLite *dataProxy;
88
QLineEdit *shortNameLineEdit, *nameLineEdit;
89
QLineEdit *uplinkLineEdit, *downlinkLineEdit;
90
QLineEdit *modesLineEdit;
92
QLabel *shortNameLabel, *nameLabel;
93
QLabel *uplinkLabel, *downlinkLabel;
97
QString shortName, name, uplink, downlink, modes;
98
bool hasShortName, hasName, hasUplink, hasDownlink, hasModes;
100
QPushButton *okButton, *cancelButton;
107
#endif // SETUPPAGESATSNEW_H