-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathand1.h
executable file
·105 lines (69 loc) · 1.52 KB
/
and1.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
#ifndef AND1_H
#define AND1_H
#include<includes.h>
#include <globalish.h>
#include <verse.h>
namespace Ui {
class and1;
}
class and1 : public QMainWindow
{
Q_OBJECT
public:
Ui::and1 *ui;
explicit and1(QWidget *parent = 0);
~and1();
static and1* getInstance()
{
if(instance == null){
instance = new and1();
}
return instance;
}
//
bool event(QEvent *event);
//mezza risoluzione asse x
int aresx;
//mezza risoluzione asse y
int aresy;
//libro scelto
int id_book;
//capitolo scelto
int id_chapter;
//Ritorna alla home
void home();
private slots:
//void on_view_linkClicked(const QUrl &arg1);
void on_main_view_linkClicked(const QUrl &arg1);
void on_popup_view_linkClicked(const QUrl &arg1);
void on_book_name_linkActivated(const QString &link);
void on_homizzah_linkActivated(const QString &link);
void on_options_clicked();
void on_opt_salva_clicked();
private:
void init_text();
void capitolibox(QString libro);
globalish* g;
verse* v;
static and1* instance;
//Il css
QString head;
//Il css versetti
QString css_versetti;
//La home
QString home_html;
// Una stringa per fare gli swap al volo ecc ecc
QString str,str2;
QSqlDatabase testo;
QFile file;
};
class KeyPressEater : public QObject
{
Q_OBJECT
private:
public:
and1* w;
protected:
bool eventFilter(QObject *obj, QEvent *event);
};
#endif // AND1_H