-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
197 lines (127 loc) · 3.96 KB
/
mainwindow.h
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDialog>
#include <QLabel>
#include "gcalc.h"
#include "calwindow.h"
#include "httpdownload.h"
#include "headdialog.h"
#include <QPrinter>
#include <QPrintDialog>
#include <QPainter>
#include <QPrintPreviewDialog>
#include <QEventLoop>
#include <QSettings>
extern QString phrase;
extern QString labeltext,tmpstring;
extern int year,dd,mm,ns,d2,m2,y2,filter,hmempos;
extern bool single_r_on,francis_on,satanic_on,jewish_on,sumerian_on,rev_sumerian_on;
extern vector<int> primes;
extern QString filesource;
extern int zerodays[8][250],linenumbers;
extern QString hmem[10];
extern QString appgroup;
extern bool nightmode;
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
//class CalWindow;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
// QEventLoop loop;
public slots:
void handleAnchorClicked(const QUrl &url);
void handleSourceChanged(const QUrl &url);
QVariant loadsettings(QString settings);
void savesettings(QString settings, QVariant attr);
private slots:
void on_actionDate_Search_triggered();
void on_actionNew_Phrase_triggered();
void on_actionNew_Date_triggered();
void on_actionSearch_History_txt_triggered();
void on_actionSet_Year_triggered();
void on_action_Analyze_triggered();
void on_action_Eu_date_toggled(bool arg1);
void on_actionDate_Details_triggered();
void on_lineEdit_returnPressed();
void on_action_Word_details_triggered();
void on_actionList_Ciphers_triggered();
void on_actionList_Primenumbers_triggered();
void on_actionList_Triangular_numbers_triggered();
void on_actionCompare_phrase_to_history_triggered();
void on_action_Second_date_triggered();
void shorthelp();
void welcome();
void on_actionC_ompare_date_to_History_txt_triggered();
void on_actionHelp_triggered();
void on_actionSolar_Eclipses_triggered();
void on_actionCompare_SolarE_to_history_triggered();
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_actionAbout_triggered();
void on_action_Add_remove_ciphers_triggered();
void on_actionList_Solar_Eclipses_triggered();
void keymem(QString memstr);
void on_actionPhrase_ranking_triggered();
void on_action_Font_triggered();
void on_action_Print_triggered();
void doPrint(QPrinter * printer);
void on_actionList_History_triggered();
void on_actionCalendar_triggered();
void writetmpfile(QString html);
void SieveOfEratosthenes(vector<int> &primes);
void updatestatusbar();
void show_news(const QString& source);
void on_action_News_headlines_exp_triggered();
void on_actionNightmode_triggered(bool checked);
void on_actionSwap_dates_triggered();
void on_actionSave_as_triggered();
void savelog(QString line, QString filename);
void on_actionLine_numbers_in_view_toggled(bool arg1);
void on_actionSelect_history_file_triggered();
private:
Ui::MainWindow *ui;
bool eudate=true;
CalWindow *Calwindow;
HttpDownload *Httpdownload;
headDialog *headdialog;
void calc(QString calcstr);
protected:
//void changeEvent(QEvent *e);
bool eventFilter(QObject *obj, QEvent *event);
};
//#endif // MAINWINDOW_H
namespace Ui {class inputDialog;}
class inputDialog : public QDialog
{
Q_OBJECT
public:
explicit inputDialog(QWidget *parent = nullptr);
~inputDialog();
bool eudate;
private slots:
void displaydialog();
void on_lineEdit_returnPressed();
void on_buttonBox_accepted();
private:
Ui::inputDialog *ui;
};
namespace Ui {class selectDialog;}
class selectDialog : public QDialog
{
Q_OBJECT
public:
explicit selectDialog(QWidget *parent = nullptr);
~selectDialog();
private slots:
void displaydialog();
void on_pushButton_clicked();
private:
Ui::selectDialog *ui;
};
#endif // MAINWINDOW_H