Debian Codegraph @

src/mainwindow.h

raw symbols SCIP
1 /* mainwindow.h */
2
3 /* Copyright (C) 2015 Yves Ouvrard
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17
18 #ifndef MAINWINDOW_H
19 #define MAINWINDOW_H
20
21 #include <QApplication>
22 #include <QMainWindow>
23 #include <QTextBrowser>
24 #include <QVBoxLayout>
25 #include <QWidget>
26
27 #include <QUrl>
28 #include <phrase.h>
29
30
31
32 class Editeur : public QTextBrowser
33 {
34 Q_OBJECT
35
36 public:
37 Editeur(QWidget *parent = Q_NULLPTR);
38 void emet(QUrl url);
39 };
40
41 class Raccourcis : public QObject
42 {
43 Q_OBJECT
44
45 private:
46 QString alpha;
47 QString alpha2;
48 QString wxyz;
49 QString a;
50 QString a2;
51 QString z;
52 public:
53 Raccourcis();
54 void reinit();
55 QString racc(QString url);
56 };
57
58 class MainWindow : public QMainWindow
59 {
60 Q_OBJECT
61
62 private:
63 QWidget *centralWidget;
64 QVBoxLayout *verticalLayout;
65 Editeur* textBrowser;
66
67 public:
68 explicit MainWindow(QWidget *parent = 0);
69 ~MainWindow();
70
71 private:
72 //QString alphabet;
73 //QString alpha2;
74 //QStringList clesL;
75 bool clavier;
76 QFont font;
77 QString _fCorpus;
78 QFile fTrace;
79 int ienr;
80 QStringList lenr;
81 QStringList lurl;
82 int _nbphr;
83 Phrase* phrase;
84 QStringList _phrases;
85 QString prefixe;
86 QString texte;
87 QString texteT; // texte avec reccourcis
88 QStringList trace;
89 QMap<QString,QUrl> urls;
90 QString wxyz;
91 Raccourcis* raccourcis;
92
93 void ajTouches();
94 void ajTrace(QString cmd);
95 QString catalogue(QString rep);
96 void clav();
97 QString choixPhr(QString cmd);
98 void enr();
99 void lisSettings();
100 bool relect;
101 void setFTrace(QString nf);
102 void surligne();
103
104 protected:
105 void keyPressEvent(QKeyEvent *ev);
106
107 private slots:
108 void calcul (QUrl url);
109 void closeEvent(QCloseEvent* event);
110 void parle (QString m);
111 void traceMf(QString t);
112 };
113
114 #endif // MAINWINDOW_H