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 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732
|
#ifndef KLOG_MAINWINDOW_H
#define KLOG_MAINWINDOW_H
/***************************************************************************
mainwindow.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 <QPrinter>
#include <QPrintDialog>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QtAlgorithms>
#include <QDesktopServices>
#include <QUrl>
#include "setupdialog.h"
#include "aboutdialog.h"
#include "tipsdialog.h"
#include "world.h"
#include "filemanager.h"
//#include "fileawardmanager.h"
#include "dataproxy_sqlite.h"
//#include "locator.h"
#include "dxcluster/dxcluster.h"
#include "dxcluster/dxspot.h"
//#include "dxcluster/dxclusterassistant.h"
#include "frequency.h"
#include "awards.h"
#include "inputwidgets/mainwindowsattab.h"
#include "inputwidgets/mainwindowmydatatab.h"
#include "inputwidgets/mainwindowinputcomment.h"
#include "inputwidgets/mainwindowinputothers.h"
#include "inputwidgets/mainwindowinputeqsl.h"
#include "inputwidgets/mainwindowinputqsl.h"
#include "inputwidgets/mainwindowinputqso.h"
#include "mainqsoentrywidget.h"
#include "elogclublog.h"
#include "utilities.h"
#include "downloadcty.h"
#include "dxccstatuswidget.h"
#include "awardswidget.h"
#include "softwareupdate.h"
#include "logwindow.h"
#include "searchwidget.h"
#include "infowidget.h"
#include "showerrordialog.h"
#include "udpserver.h"
#include "statisticswidget.h"
#include "updatesatsdata.h"
#include "hamlibclass.h"
#include "elogqrzlog.h"
#include "lotwutilities.h"
#include "eqslutilities.h"
#include "widgets/adiflotwexportwidget.h"
#include "widgets/showadifimportwidget.h"
#include "widgets/map/mapwindowwidget.h"
#include "widgets/showkloglogwidget.h"
#include "qso.h"
#include "klogdefinitions.h"
#include <memory>
#include <memory>
class QTimer;
class QDateTime;
class QPushButton;
class QLineEdit;
class QComboBox;
class QTimeEdit;
class QDateEdit;
//class QStatusBar;
class QMenuBar;
class QMenu;
class QMessageBox;
class QTextEdit;
class QProgressDialog;
//class QPoint;
class QGroupBox;
class QTabWidget;
class QFrame;
class QTableView;
class QLabel;
/*
enum
{
Log_Id = 0,
Log_Name = 1,
Log_BandId = 2,
Log_ModeId = 3,
Log_DateId = 4,
Log_TimeId = 5
};
enum
{
DX = 0,
NoContest = 0,
CQ_WW_SSB = 1,
CQ_WW_CW = 2,
CQ_WPX_SSB = 3,
CQ_WPX_CW = 4,
CQ_WPX_RTTY = 5
};
*/
//enum ExportMode {ModeLotW, ModeADIF};
class MainWindow : public QMainWindow
{
Q_OBJECT
friend class tst_MainWindow;
public:
MainWindow(DataProxy_SQLite *dp, World *injectedWorld);
~MainWindow();
void checkIfNewVersion();
void recommendBackupIfNeeded();
void init();
//void setPkgVersion(const QString &_pkgVersion);
//void showNotWar();
private slots:
//void slotQueryErrorManagement(QString functionFailed, QString errorCodeS, QString nativeError, QString failedQuery);
//void slotTest(); // Slot for testing purposes only
void slotOpenWiki();
//void slotAWAImport();
void slotClearNoMorErrorShown();
void slotQueryErrorManagement(QString functionFailed, QString errorCodeS, QString nativeError, QString queryFailed);
void slotQRZReturnPressed();
//void slotQRZSpacePressed();
void slotQRZTextChanged(QString _qrz);
//void slotSRXTextChanged();
//void slotSTXTextChanged();
void slotUpdateLocator(QString _loc);
KLOG_DEPRECATED void slotLocatorTextChanged(const QString &_loc);
//void slotMyLocatorTextChanged();
void slotFreqTXChanged(const double _fr);
void slotFreqRXChanged(const double _fr);
void slotFreqTXChangedFromSat(const double _fr);
//void slotSplitCLicked();
//void slotSearchBoxTextChanged();
//void slotCloseStats(bool _vis);
void slotSearchToolNeededQSLToSend();
void slotToolSearchRequestedQSLToSend();
void slotToolSearchNeededQSLPendingToReceive();
void slotToolSearchNeededQSLRequested();
void slotToolLoTWMarkAllQueuedThisLog();
void slotToolLoTWMarkAllQueued();
void slotToolLoTWMarkAllYesThisLog();
void slotToolLoTWMarkAllYes();
void slotLoTWDownloadedFileProcess(const QString &_fn);
void slotClubLogLogUpload();
void sloteQSLLogUpload();
void slotElogEQSLModifyCurrentLog();
void slotOKButtonClicked();
void slotClearButtonClicked(const QString &_func);
void slotBandChanged (const QString &_b);
void slotModeChanged (const QString &_m);
void slotValidBandsReceived(const QStringList &_b);
void slotRefreshDXCCWidget();
void slotLogWinShow();
void slotLogRefresh();
void slotQSODelete(const int _id);
void slotQSOsDelete(QList<int> _qsos);
void slotQSOsExportToADIF(QList<int> _qsos);
void slotQRZcomUpload(QList<int> _qsos);
void slotQRZCOMLogUpload();
void slotElogQRZCOMDisable(const bool _b);
void slotShowAwards();
void slotUpdateStatusBar(const QString &statusm);
void setMainWindowTitle();
void slotSetup(const int _page=0);
void slotADIFExport();
void slotLoTWExport();
void slotLoTWDownload();
void slotLoTWFullDownload();
void slotADIFExportSelection(const QString &_call, QList<int> _qsos, ExportMode _eM);
void slotADIFExportClose();
void slotADIFExportAll();
void slotADIFImport();
void slotRQSLExport();
void slotReceiveQSOListToShowFromFile(QStringList _qs);
void slotTimeOutInfoBars(); // Clears the infoLabels when the timeout emits the signal
void slotSetPropModeFromOther(const QString &_p);
void slotSetPropModeFromSat(const QString &_p, bool _keep);
void slotFillEmptyDXCCInTheLog();
void slotUpdateCTYDAT();
void slotUpdateSATSDAT();
void slotShowStats();
void slotWorldReload(const bool _b);
void slotExitFromSlotDialog(const int exitID);
void slotSetupDialogFinished (const int _s);
void exitQuestion();
void fillQSOData();
bool slotOpenKLogFolder();
void slotFilePrint();
void slotFileClose();
void slotHelpAboutAction();
void slotHelpCheckUpdatesAction();
void slotAboutQt();
void slotTipsAction();
void slotDebugAction();
// MainQSOEntryWidget
void slotShowInfoLabel(const QString &_m);
void slotAwardsWidgetSetLog();
void slotAwardsWidgetSetYear();
void slotManualMode(bool _enable);
// MyDataTab
void slotMyLocatorTextChanged(const QString &_loc);
// logpanel
//void slotRighButtonFromLog( const QPoint& pos);
void slotDoubleClickLog( const int _qsoID);
//void slotDoubleClickLog( const QModelIndex & index);
//SEARCH
void slotShowSearchWidget(); // The SearchWidget request being shown
//SEARCH
// CLUSTER
void slotAnalyzeDxClusterSignal(const DXSpot &_spot);
void slotDXClusterSpotArrived(const DXSpot &_spot);
// CLUSTER
//CLUBLOG
void slotElogClubLogShowMessage(const QString &_s);
void slotElogClubLogProcessAnswer(const int _i, const int _qID);
void slotElogClubLogDisable(const bool _b);
void slotElogClubLogFileUploaded (QNetworkReply::NetworkError _error, QList<int> _qsos);
void slotElogClubLogModifyCurrentLog();
//CLUBLOG
// EQSL
void slotElogEQSLFileUploaded (QNetworkReply::NetworkError _error, QList<int> _qsos);
// EQSL
void slotShowSoftUpdateResults(const bool _b); // Software Update: Receives the signal to see if it is needed or not to update
// EQSL
// QRZCOM
void slotElogQRZCOMShowMessage(const QString &_s);
void slotElogQRZCOMFoundData(const QString &_t, const QString & _d);
void slotElogQRZCOMCheckThisCall();
void slotElogQRZCOMAutoCheck();
//void slotElogQRZCOMAutoCheckFromSetup(const bool _s);
void slotElogQRZCOMModifyCurrentLog();
void slotElogQRZCOMLogUploaded (QNetworkReply::NetworkError _error, QList<int> _qsos);
// QRZCOM
//SATELLITE
//void slotSatBandTXComboBoxChanged(const QString &_q);
void slotDefineNewBands (const QStringList _bands);
//HAMLIB
void slotHamlibTXFreqChanged(const double _f);
void slotHamlibModeChanged(const QString &_m);
//void slotHamlibModeNotADIF();
// PST Rotator
//void slotRotatorShow();
// WORLD MAP
void slotShowMap();
//DXCCWIDGET
//void slotShowQSOFromDXCCWidget(const int _q);
void slotShowQSOsFromDXCCWidget(QList<int> _qsos);
// DXCLUSTER ASSISTANT
//void slotShowDXClusterAssistant();
//UDP Server (WXJT-x)
void slotWSJXstatusFromUDPServer(const int _type, const QString &_dxcall, const double _freq, const QString &_mode,
const QString &_report, const QString &_de_call, const QString &_de_grid,
const QString &_dx_grid, const QString &_sub_mode);
void slotQSOReceived(const QSO &_qso);
void slotCaptureDebugLogs(const QString &_func, const QString &_msg, DebugLogLevel _level);
//void slotTakeOverFocus(int _id);
void slotTakeOverFocusToQSOTabWidget();
void slotTakeOverFocusToMainQSOInput();
void slotNewLogLevel(DebugLogLevel l);
void slotQSO_SetMode(const QString _submode);
void slotDarkModeChanged(const bool _dm);
private:
//void setWidgetsOrder();
void setDarkMode(const bool _dm);
void init_variables(); // Refactored from init()
void checkDebugFile(); // Refactored from init()
void checkExistingData(); // Refactored from init()
void readSettingsFile(); // Refactored from init()
void checkVersions(); // Refactored from init()
void checkHomeDir(); // Refactored from init()
bool showWSJTXDuplicatedMSG(const QSO &_qso); //Shows an error if the QSO received from WSJTX is dupe.
void startServices();
void backupCurrentQSO();
void restoreCurrentQSO(const bool restoreConfig);
void showMessageToEnableTheOnlineService(const OnLineProvider _service);
void cleanQRZCOMreceivedDataFromUI();
void saveWindowsSize();
void setWindowSize(const QSize &_size);
bool maybeSave();
void setCleaning(const bool _c);
bool setHamlib(const bool _b);
bool setUDPServer(const bool _b);
bool askToAddQSOReceived(const QSO &_qso); // Shows a message with the data of the QSO
void logEvent(const QString &_func, const QString &_msg, DebugLogLevel _level);
void setLogLevel(const DebugLogLevel _sev);
//void fileExportLoTW(const QString &_st, const QString &_grid, const QDate &_startDate, const QDate &_endDate);
void fileExportLoTW2(const QString &_call, QList<int> _qsos);
//void fileExportClubLog(const QString &_st, const QDate &_startDate, const QDate &_endDate);
void fileExportClubLog2(const QString &_call, QList<int> _qsos);
//void fileExportEQSL(const QString &_st, const QDate &_startDate, const QDate &_endDate);
void fileExportEQSL2(const QString &_call, QList<int> _qsos);
//void fileExportADIF(const QString &_st, const QString &_grid, const QDate &_startDate, const QDate &_endDate);
void fileExportADIF2(const QString &_call, QList<int> _qsos);
void setColors (const QColor &_newOne, const QColor &_needed, const QColor &_worked, const QColor &_confirmed, const QColor &_default);
bool callTQSL(const QString &_filename, const QString &_call);
void showNumberOfSavedQSO(const QString &_fn, const int _n);
//QString getCallToUseForLoTWExportUpload();
UpdateSatsData *updateSatsData;
//UPDATE CTY.DAT
DownLoadCTY *downloadcty;
HamLibClass *hamlib;
//QSO qso; // QSO that is being managed in one specific moment
QSO *backupQSO; // QSO that has been backed up to send another QSO to the UI
QSO qsoInUI; // The QSO tat is shown in the UI for a given time
//QSO *modifyingQSO;
bool hamlibActive;
bool hamlibChangingMode;
bool hamlibModeNotADIFSupported;
//bool sendQSLByDefault;
bool deleteAlwaysAdiFile;
MapWindowWidget *mapWindow;
// PST Rotator
//PSTRotatorSupport *pstRotator;
//bool usePSTRotator;
//RotatorWidget *rotatorWidget;
//</UPDATE CTY.DAT>
void createStatusBar();
void createUI();
void createUIDX();
void reconfigureDXMarathonUI(const bool _dxM);
//void createDXClusterUI();
void clearBandLabels();
void createMenusCommon();
void createActionsCommon();
bool readQSOFromUI(); // Adds the data in the UI to the qso instance (calling getQSODataFromUI)
void getQSODataFromUI(); // Calls to the different widgets for QSO data and fills qso instance
void sendQSOToUI(const QSO &_qso); // Shows the content of a QSO in the UI
//QString readDataFromUI(); // Reads the QSO data from the UI and returns the SQL Query
//QString readDataFromUIDX();
//QString readDataFromUIDXModifying();
void actionsJustAfterAddingOneQSO();
//void clearForNextQSO();
void clearUIDX(bool _full = false); //full= false leaves the "keep this data"; full = true clears everything
//void checkIfWorkedB4(const QString &_qrz);
//bool checkContest();
void showStatusOfDXCC(EntityStatus _entityStatus);
void showDXMarathonNeeded(const int _dxcc, const int _cqz, const int _year, const int _log);
bool createConnection();
void openSetup(const int _page=0);
//void readConfigData();
//void saveSettings();
bool loadSettings();
bool applySettings();
void selectTheLog(const int _i); // Receives a log number from loadSettings and setups all about the logN
void defineStationCallsign();
QString findStationCallsignToUse(); // Used to select the station Callsign used
QString selectStationCallsign();
void checkIfNewBandOrMode();
void selectDefaultBand();
void selectDefaultMode();
void readActiveBands (const QStringList actives);
void readActiveModes (const QStringList actives);
bool checkIfNewMode(const QString &_mode);
void addNewValidMode(const QString &_mode);
void setModeFromFreq();
void qsoToEdit (const int _qso);
void setModifying(const bool _m);
void clearIfNotCompleted(); // Refactored from completeWithPreviousQSO
void completeWithPreviousQSO(const QString &_call);
bool checkValidCallBeforeAddingToLog(const QString &_call); // Asks the user if call is not valid
int checkDXCCBeforeAddingToLog(const int dxcc_Call, const int dxcc_qso); // Asks the user if DXCC if unsure
//void showAwards();
//void showDXMarathon(const int _year);
void updateQSLRecAndSent();
//double checkFreqRanges(double _f);
//void setRSTToMode(const QString &_m);
// CLUSTER
void clusterSpotToLog(const QString &_call, Frequency _fr);
QStringList dxclusterServersList;
//QString dxclusterServerToConnect;
//int dxclusterServerPort;
bool dxclusterSendSpotsToMap;
// CLUSTER
//LOTW
AdifLoTWExportWidget *adifLoTWExportWidget;
//LOTW
ShowAdifImportWidget *showAdifImportWidget;
QWidget *mainWidget;
//QWidget *dxClusterTabWidget;//, *searchTabWidget;
World *world;
FileManager *filemanager;
//FileAwardManager *fileAwardManager;
//Locator *locator;
Awards awards;
Utilities *util;
//SetupPageMisc *miscPage;
//WorldEditorWidget *worldEditor;
//HelpHelpDialog *helpHelpDialog;
//HelpAboutDialog *helpAboutDialog;
AboutDialog *aboutDialog;
TipsDialog *tipsDialog;
ShowKLogLogWidget * showKLogLogWidget;
StatisticsWidget *statsWidget;
std::unique_ptr<DXCCStatusWidget> dxccStatusWidget; // Defined like this to send the same award instance
std::unique_ptr<DXClusterWidget> dxClusterWidget; // Defined like this to send the same award instance
std::unique_ptr<SearchWidget> searchWidget; // Defined like this to send the same award instance
std::unique_ptr<LogWindow> logWindow; // Defined like this to send the same award instance
//DXClusterWidget *dxClusterWidget;
//DXCCStatusWidget *dxccStatusWidget;
QLabel *logLabel;
//LogModel *logModel;
//LogWindow *logWindow;
UDPServer *UDPLogServer;
ShowErrorDialog *showErrorDialog;
// <UI>
QFrame *dxUpLeftInputFrame;//, *dxUpRightOutputFrame;
QString statusBarMessage;
QTabWidget *dxBottonTab, *dxUpLeftTab, *dxUpRightTab;
QMenu *fileMenu;
QMenu *toolMenu;
QMenu *qslToolMenu;
QMenu *lotwToolMenu;
QMenu *clublogToolMenu;
QMenu *eQSLToolMenu;
QMenu *QRZCOMToolMenu;
//QMenu *lotwMarkAllAsQueuedMenu;
//QMenu *lotwMarkAllInThisLogAsQueuedMenu;
QMenu *viewMenu;
//QMenu *setupMenu;
QMenu *helpMenu;
//QAction *TestAct; // Action for testing purposes only
QAction *awardAddAct;
QAction *klogFolderAct;
//QAction *openAct;
//QAction *saveAct;
QAction *exitAct;
QAction *printLogAct;
QAction *addAct;
QAction *editAct;
QAction *removeAct;
QAction *logWinAct;
QAction *setupAct;
QAction *helpAct;
QAction *aboutAct;
QAction *tipsAct;
QAction *debugAct;
QAction *aboutQtAct;
QAction *updateAct;
QAction *scoreWinAct;
QAction *scoreeWinAct;
QAction *ADIFExport;
QAction *ADIFExportAll;
QAction *ADIFImport;
//QAction *LoTWExport;
QAction *LoTWImport;
QAction *ReqQSLExport;
QAction *CabrilloExport;
QAction *fillQsoAct;
QAction *fillDXCCAct;
QAction *findQSO2QSLAct;
QAction *findRequestedQSLAct;
QAction *findQSLPendingToReceiveAct;
QAction *findQSLDXRequestedAct;
QAction *lotwMarkSentQueuedThisLogAct;
QAction *lotwMarkSentQueuedAct;
QAction *lotwMarkSentYesThisLogAct;
QAction *lotwMarkSentYesAct;
QAction *lotwCallTQSL;
QAction *lotwUpdateFromLoTWAct;
QAction *lotwFullDownloadFromLoTWAct;
QAction *clublogLogUploadAct;
QAction *clublogLogModifyCurrentLogAct;
QAction *eqslUploadAct;
QAction *eqslLogModifyCurrentLogAct;
QAction *QRZCOMCheckThisCallAct;
QAction *QRZCOMAutoCheckAct;
QAction *QRZCOMLogUploadAct;
QAction *QRZCOMLogModifyCurrentLogAct;
QAction *downloadCTYAct;
QAction *downloadSATSAct;
QAction *showStatsAct;
//QAction *showRotatorAct;
//QAction *showDXCCSummaryAct;
QAction *loggWinAct;
/*
QAction *delQSOFromLogAct;
QAction *qsoToEditFromLogAct;
QAction *qslSentViaBureauFromLogAct;
QAction *qslSentViaDirectFromLogAct;
QAction *qslRecViaBureauFromLogAct;
QAction *qslRecViaDirectFromLogAct;
*/
QAction *qslSentRequestedAct;
QAction *qslRecRequestedAct;
QAction *showMapAct;
//QAction *dxClusterAssistantAct;
QStringList bands;
QStringList modes;
QStringList entitiesList, propModeList;
// UI DX
//QLabel *entitySecLabel, *iotaAwardLabel, *entityNameLabel, *propModeLabel; //entityPrimLabel
QLabel *infoLabel1, *infoLabel2, *dxMarathonLabelN, *dxMarathonTopScoreLabelN;
QString lotwTQSLpath;
bool checkNewVersions, reportInfo; // Selected in the Setup->Misc to check if new versions and report info back to KLog's servers
bool logEvents; // Should KLog log the events for debugging
DebugLogLevel logLevel; // Manages as syslog, the severity of the application debug log (7 means debug, 0 emergency)
bool txFreqBeingChanged, updatingBands; //rxFreqBeingChanged // When the freqs is being modified it is defined to true to prevent other automated to change.
bool txFreqBeingAutoChanged, rxFreqBeingAutoChanged; // This is defined to true when freq is being changed by the Sat tab to prevent a loop.
bool qslingNeeded;
bool noMoreErrorShown; // If true, the errors shown in slotQueryErrorManagement will not be shown anymore in that KLog execution
bool noMoreModeErrorShown; // If true, the non-valid modes received from WSJT-x will not be showed to the user
bool wsjtxAutoLog; // If true, logged QSO are automatically logged into the log when sent from WSJTX
bool manualMode; // If true, hamlib and WSJTX are not updatind the interface
MainWindowSatTab *satTabWidget;
MainWindowMyDataTab *myDataTabWidget;
MainWindowInputComment *commentTabWidget;
MainWindowInputOthers *othersTabWidget;
MainWindowInputEQSL *eQSLTabWidget;
MainWindowInputQSL *QSLTabWidget;
MainWindowInputQSO *QSOTabWidget;
MainQSOEntryWidget *mainQSOEntryWidget;
AwardsWidget *awardsWidget;
//SearchWidget *searchWidget;
InfoWidget *infoWidget;
//AdvancedSearchWidget *advancedSearchWidget;
bool keepSatPage;
// UI DX
SetupDialog *setupDialog;
// <CLUSTER>
bool dxClusterShowHF, dxClusterShowVHF, dxClusterShowWARC, dxClusterShowWorked, dxClusterShowConfirmed, dxClusterShowAnn, dxClusterShowWWV, dxClusterShowWCY;
// </CLUSTER>
// DXClusterAssistant *dxClusterAssistant;
// </UI>
int infoTimeout; // timeout that temporary info will stay in the infobars
QTimer *timer, *timerInfoBars;
std::unique_ptr<QDateTime> dateTime;
bool yearChangedDuringModification;
QString infoLabel1T, infoLabel2T;
QString ctyDatFile, defaultADIFLogFile;
QString softwareVersion, pkgVersion;
bool itIsANewversion;
int dupeSlotInSeconds;
QString lotwSentDefault, qrzcomSentDefault, clublogSentDefault, eqslSentDefault;
QString stx, srx;
QPalette palRed, palBlack; // To paint Text in red or black(normal)
bool alwaysADIF, needToSave, useDefaultLogFileName, upAndRunning, qrzSmallModDontCalculate, imperialSystem, sendQSLWhenRec, manageDxMarathon, completeWithPrevious, completedWithPreviousQTH, completedWithPreviousLocator, completedWithPreviousName, completedWithPreviousIOTA, completedWithPreviousQSLVia;
// bool realTime, UTCTime;
bool cleaning;
bool manageMode; // If true, the DXCC and awards will take the mode into consideration to decide if needed or worked. False implies only band is taken into account
// Station Setup
bool configured, modify;
bool needToEnd; // Just to control if the software needs to end.
bool qrzAutoChanging; //To remove the data coming from QRZ.com only when data is coming.
QString mainQRZ, stationCallsign, operatorQRZ, dxLocator;
int my_CQz, my_ITUz;
int defaultMode, defaultBand, currentMode, currentModeShown, currentBand, currentBandShown;
int currentEntity, previousEntity;
bool InValidCharsInPrevCall;
int currentLog; // This is to be able to manage multiple logs without showing
// them all at the same time.
int modifyingQSOid; // When modifying, the QSO is saved here.
int selectedYear;
bool readingTheUI; // While reading the data from UI after QSO intro or modificationthis is true
// Station Setup
QColor defaultColor;
QColor neededColor;
QColor workedColor;
QColor confirmedColor;
QColor newOneColor;
QSize windowSize;
//<CLUBLOG>
bool clublogActive, clublogRealTime, eQSLActive; //clublogUseStationCallSign,
eLogClubLog *elogClublog;
int clublogAnswer;
QStringList clublogPrevQSO;
//</CLUBLOG>
// QRZ.com
bool qrzcomActive;
bool qrzcomSubscriber;
eLogQrzLog *elogQRZcom;
// QRz.com - END
// Contest
//int points, qsoPoints, multipliers, qsoMultiplier;
//QString contestMode;
//Contest *contest;
// Contest
DataProxy_SQLite *dataProxy;
SoftwareUpdate *softUpdate;
bool callingUpdate;
bool UDPServerStart;
// LOTWUTILITIES
LoTWUtilities *lotwUtilities;
bool lotwActive;
//eQSLUtilities
eQSLUtilities *eqslUtilities;
//LOGVIEW
//QString bandOld, modeOld;
//LOGVIEW
signals:
void queryError(QString functionFailed, QString errorCodeS, QString nativeError, QString failedQuery); // To alert about any failed query execution
protected:
void keyPressEvent(QKeyEvent *event) override;
void closeEvent(QCloseEvent *event) override;
void showEvent(QShowEvent *event) override;
};
#endif
|