~ea4k/klog/trunk

« back to all changes in this revision

Viewing changes to branches/1.3/setuppages/setupentitydialog.h

  • Committer: jaime
  • Date: 2020-10-03 09:19:54 UTC
  • Revision ID: svn-v4:5834a56a-7829-0410-841d-b57922c102d6::782
KLogĀ 1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SETUPENTITYDIALOG_H
 
2
#define SETUPENTITYDIALOG_H
 
3
/***************************************************************************
 
4
                          SetupEntityDialog.h  -  description
 
5
                             -------------------
 
6
    begin                : sept 2012
 
7
    copyright            : (C) 2012 by Jaime Robles
 
8
    email                : jaime@robles.es
 
9
 ***************************************************************************/
 
10
 
 
11
/*****************************************************************************
 
12
 * This file is part of KLog.                                             *
 
13
 *                                                                           *
 
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.                                    *
 
18
 *                                                                           *
 
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.                           *
 
23
 *                                                                           *
 
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/>.       *
 
26
 *                                                                           *
 
27
 *****************************************************************************/
 
28
 
 
29
//#include <QtWidgets>
 
30
#include <QtWidgets>
 
31
#include <QDialog>
 
32
#include <QPalette>
 
33
 
 
34
 
 
35
class SetupEntityDialog : public QDialog
 
36
{
 
37
    Q_OBJECT
 
38
 
 
39
public:
 
40
    SetupEntityDialog();
 
41
    ~SetupEntityDialog();
 
42
 
 
43
public slots:
 
44
 
 
45
private slots:
 
46
 
 
47
    void slotOkButtonClicked();
 
48
    void slotCancelButtonClicked();
 
49
 
 
50
    void slotCheckEntity();
 
51
    void slotCheckMainprefix();
 
52
    void slotCheckCQz();
 
53
    void slotCheckITUz();
 
54
    void slotCheckContinent();
 
55
    void slotCheckLatitude();
 
56
    void slotCheckLongitude();
 
57
    void slotCheckUTC();
 
58
    void slotCheckARRLid();
 
59
    void slotCheckDeleted();
 
60
    void slotCheckDeletedDate();
 
61
    void slotCheckPrefixes();
 
62
 
 
63
 
 
64
signals:
 
65
    void entityAdded(const QStringList _qs); // entity
 
66
 
 
67
private:
 
68
    QString checkEntity();
 
69
    QString checkMainprefix();
 
70
    QString checkCQz();
 
71
    QString checkITUz();
 
72
    QString checkContinent();
 
73
    QString checkLatitude();
 
74
    QString checkLongitude();
 
75
    QString checkUTC();
 
76
    QString checkARRLid();
 
77
    QString checkDeleted();
 
78
    QString checkDeletedDate();
 
79
    QString checkPrefixes();
 
80
 
 
81
    bool entityBool, mainPrefixBool, cqBool, ituBool, contBool;
 
82
    bool latBool, lonBool, utcBool, arrlidBool, delBool, delDateBool, prefBool;
 
83
 
 
84
    QLineEdit *entityLineEdit, *cqLineEdit, *ituLineEdit;
 
85
    QLineEdit *contLineEdit, *latLineEdit, *lonLineEdit;
 
86
    QLineEdit *utcLineEdit, *mprefLineEdit, *arrlidLineEdit;
 
87
    QLineEdit *deletedLineEdit, *prefLineEdit;
 
88
    QDateEdit *delQDateEdit;
 
89
    QRadioButton *delRbutton;
 
90
 
 
91
    QStringList entityData;
 
92
    //QPalette *paletteOrig, *paletteWrong;
 
93
    //QColor color;
 
94
    QPalette pal, palw;
 
95
 
 
96
};
 
97
 
 
98
 
 
99
#endif // SetupEntityDialog_H