1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
#ifndef KLOG_SETUPPAGES_SETUPPAGEUSERDATA_H
#define KLOG_SETUPPAGES_SETUPPAGEUSERDATA_H
/***************************************************************************
setuppageuserdata.h - description
-------------------
begin : sept 2011
copyright : (C) 2011 by Jaime Robles
email : jaime@robles.es
***************************************************************************/
/*****************************************************************************
* This file is part of KLog. *
* *
* KLog is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* KLog is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with KLog. If not, see <https://www.gnu.org/licenses/>. *
* *
*****************************************************************************/
#include <QtWidgets>
#include "../world.h"
#include "../locator.h"
#include "../dataproxy_sqlite.h"
#include "../utilities.h"
class SetupPageUserDataPage : public QWidget {
Q_OBJECT
public:
SetupPageUserDataPage(DataProxy_SQLite *dp, World *injectedWorld, QWidget *parent=nullptr);
~SetupPageUserDataPage();
void setPrefixes();
QString getMainCallsign();
QString getOperators();
QString getStationLocator();
int getCQz();
int getITUz();
QString getName();
QStringList getAddress();
QString getAddress1();
QString getAddress2();
QString getAddress3();
QString getAddress4();
QString getCity();
QString getZipCode();
QString getProvince();
QString getCountry();
bool setName (const QString &_aux);
bool setAddress1 (const QString &_aux);
bool setAddress2 (const QString &_aux);
bool setAddress3 (const QString &_aux);
bool setAddress4 (const QString &_aux);
bool setAddress (const QStringList _aux);
bool setCity (const QString &_aux);
bool setZipCode (const QString &_aux);
bool setProvince (const QString &_aux);
bool setCountry (const QString &_aux);
bool setMainCallsign(const QString &_qrz);
bool setOperators(const QString &_aux);
bool setStationLocator(const QString &_loc);
bool setCQz(const int _cqz);
bool setITUz(const int _ituz);
QString getRig1();
QString getRig2();
QString getRig3();
QString getAntenna1();
QString getAntenna2();
QString getAntenna3();
QStringList getRigs();
QStringList getAntennas();
double getPower();
bool setRigs(const QStringList _aux);
bool setAntennas(const QStringList _aux);
bool setPower(const float _aux);
bool setRig1 (const QString &_aux);
bool setRig2 (const QString &_aux);
bool setRig3 (const QString &_aux);
bool setAntenna1 (const QString &_aux);
bool setAntenna2 (const QString &_aux);
bool setAntenna3 (const QString &_aux);
void setStationFocus();
void saveSettings();
void loadSettings();
signals:
void mainCallsignSignal (const QString &_p);
void operatorsSignal (const QString &_p);
void enterKey();
private slots:
void slotMyLocatorTextChanged();
void slotOperatorsChanged();
void slotEnterKeyPressed();
void slotQRZTextChanged();
// void slotContestOverLayChanged(int i);
private:
bool checkOperatorsLineQString(const QString &_auxLine);
QTabWidget *tabWidget;
QLineEdit *maincallsignLineEdit; // This is the callsign of the user. Will be suggested as station callsign for new logs
QLineEdit *operatorsLineEdit; //Operators
QLineEdit *cqzLineEdit;
QLineEdit *ituzLineEdit;
QLineEdit *myLocatorLineEdit;
QLabel *myLocatorLabel;
//Personal Tab
QLineEdit *nameLineEdit;
QTextEdit *addressTextEdit;
QLineEdit *address1LineEdit;
QLineEdit *address2LineEdit;
QLineEdit *address3LineEdit;
QLineEdit *address4LineEdit;
QLineEdit *cityLineEdit;
QLineEdit *zipLineEdit;
QLineEdit *provinceLineEdit;
QLineEdit *countryLineEdit;
// Station Tab
QLineEdit *rig1LineEdit;
QLineEdit *rig2LineEdit;
QLineEdit *rig3LineEdit;
QLineEdit *ant1LineEdit;
QLineEdit *ant2LineEdit;
QLineEdit *ant3LineEdit;
//QLineEdit *powerLineEdit;
QDoubleSpinBox *myPowerSpinBox;
QPalette *defaultPalette, *wrongPalette;
QColor redColor;
Locator *locator;
World *world;
DataProxy_SQLite *dataProxy;
//bool operatorsOK;
bool mainCallOK;
bool slotQRZRunning;
Utilities *util;
};
#endif // SETUPPAGEUSERDATA_H
|