Debian Codegraph @

src/phrase.h

raw symbols SCIP
1 /* phrase.h */cxx . . $ `<file>/src/phrase.h`/
2 /* Copyright (C) 2015 Yves Ouvrard
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef PHRASE_Hcxx . . $ `src/phrase.h:19:9`!
19 #define PHRASE_Hcxx . . $ `src/phrase.h:19:9`!
20
21 #include <QList>
22 #include <QObject>
23 #include <QString>
24
25 #include <dialogue.h>cxx . . $ `<file>/src/dialogue.h`/
26 #include <flexfr.h>cxx . . $ `<file>/src/flexfr.h`/
27 #include <handicap.h>cxx . . $ `<file>/src/handicap.h`/
28 #include <motflechi.h>cxx . . $ `<file>/src/motflechi.h`/
29 #include <regle.h>cxx . . $ `<file>/src/regle.h`/
30 #include <requete.h>cxx . . $ `<file>/src/requete.h`/
31 #include <semantique.h>cxx . . $ `<file>/src/semantique.h`/
32
33 class Motcxx . . $ Mot#;
34
35 class Phrasecxx . . $ Phrase#: public QObjectcxx . . $ QObject#
36 {
37
38 Q_OBJECTcxx . . $ Phrase#trUtf8(75d9f1c324b4579d).
39
40 private:
41 QStringListcxx . . $ QStringList# entreMotscxx . . $ Phrase#entreMots.;
42 QStringcxx . . $ QString# _chAdditionscxx . . $ Phrase#_chAdditions.;
43 QStringListcxx . . $ QStringList# _femininscxx . . $ Phrase#_feminins.;
44 QStringcxx . . $ QString# _grcxx . . $ Phrase#_gr.;
45 Flechisseurcxx . . $ Flechisseur#* _flechisseurcxx . . $ Phrase#_flechisseur.;
46 QMapcxx . . $ QMap#<QStringcxx . . $ QString#,Handicapcxx . . $ Handicap#*> _handicapscxx . . $ Phrase#_handicaps.;
47 int _imotcxx . . $ Phrase#_imot.;
48 Lemmatcxx . . $ Lemmat#* _lemmatiseurcxx . . $ Phrase#_lemmatiseur.;
49 QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QStringListcxx . . $ QStringList#> _mapLgrcxx . . $ Phrase#_mapLgr.;
50 QListcxx . . $ QList#<Motcxx . . $ Mot#*> _motscxx . . $ Phrase#_mots.;
51 QStringcxx . . $ QString# _numcxx . . $ Phrase#_num.;
52 int _numReqcxx . . $ Phrase#_numReq.;
53 QStringcxx . . $ QString# _praecxx . . $ Phrase#_prae.;
54 QListcxx . . $ QList#<Reglecxx . . $ Regle#*> _reglescxx . . $ Phrase#_regles.;
55 QStringListcxx . . $ QStringList# _relectcxx . . $ Phrase#_relect.;
56 QStringcxx . . $ QString# _reponsecxx . . $ Phrase#_reponse.;
57 QListcxx . . $ QList#<Requetecxx . . $ Requete#*> _requetescxx . . $ Phrase#_requetes.;
58 QStringcxx . . $ QString# _trcxx . . $ Phrase#_tr.;
59 bool _semcxx . . $ Phrase#_sem. = false;
60 Semantiquecxx . . $ Semantique#* _semantiquecxx . . $ Phrase#_semantique.;
61
62 bool enrcxx . . $ Phrase#enr(c9857a73d68e59ba).();
63 void initFemininscxx . . $ Phrase#initFeminins(49f6e7a06ebc5aa8). ();
64 void initLgrcxx . . $ Phrase#initLgr(49f6e7a06ebc5aa8).();
65 void majAffichagecxx . . $ Phrase#majAffichage(b45ddcbc8423892c).(bool aux=false);
66 bool static sortRcxx . . $ Phrase#sortR(3d5d7579e7a3035d).(Requetecxx . . $ Requete#* ra, Requetecxx . . $ Requete#* rb);
67
68 public:
69 Phrasecxx . . $ Phrase#Phrase(7df51288a9ebd664).(QStringcxx . . $ QString# t=""cxx . . $ QString#QString(85c52e162fed56f9).);
70 bool static accordcxx . . $ Phrase#accord(e3166c3ff4009de6).(MotFlechicxx . . $ MotFlechi#* ma, MotFlechicxx . . $ MotFlechi#* mb, QStringcxx . . $ QString# cgn);
71 void additionscxx . . $ Phrase#additions(49f6e7a06ebc5aa8).();
72 void ajRequetecxx . . $ Phrase#ajRequete(5ff168f30ee2f7cd).(Requetecxx . . $ Requete#* req, bool force=false);
73 void annuleLemmecxx . . $ Phrase#annuleLemme(35725bece9ecf82d).(Motcxx . . $ Mot#* m, Lemmecxx . . $ Lemme#* l);
74 void choixFlechicxx . . $ Phrase#choixFlechi(5cd94d52a586d1f6).(MotFlechicxx . . $ MotFlechi#* mf);
75 void choixReqcxx . . $ Phrase#choixReq(c0d4b4595bf1a2c0).(Requetecxx . . $ Requete#* req);
76 bool compatiblecxx . . $ Phrase#compatible(9fab39907540f4cb).(MotFlechicxx . . $ MotFlechi#* mf, Motcxx . . $ Mot#* m);
77 bool compatiblecxx . . $ Phrase#compatible(508f9dec201d400b).(MotFlechicxx . . $ MotFlechi#* ma, MotFlechicxx . . $ MotFlechi#* mb);
78 bool contiguecxx . . $ Phrase#contigue(c4cbf9f1c30a1709).(Requetecxx . . $ Requete#* req);
79 bool contiguscxx . . $ Phrase#contigus(deb10c435754f384).(Motcxx . . $ Mot# *a, Motcxx . . $ Mot# *b);
80 QStringcxx . . $ QString# droitecxx . . $ Phrase#droite(4b69d4af8615082d).(Motcxx . . $ Mot#* m);
81 void ecoutecxx . . $ Phrase#ecoute(7df51288a9ebd664).(QStringcxx . . $ QString# m);
82 bool estFeminincxx . . $ Phrase#estFeminin(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# n);
83 bool estVbRelativecxx . . $ Phrase#estVbRelative(5bb69c1b47e8e878).(MotFlechicxx . . $ MotFlechi#* mf);
84 bool filtrecxx . . $ Phrase#filtre(c4cbf9f1c30a1709).(Requetecxx . . $ Requete#* req);
85 Flechisseurcxx . . $ Flechisseur#* flechisseurcxx . . $ Phrase#flechisseur(9b71c851f258b291).();
86 QStringcxx . . $ QString# gauchecxx . . $ Phrase#gauche(4b69d4af8615082d).(Motcxx . . $ Mot# *m);
87 QStringcxx . . $ QString# grcxx . . $ Phrase#gr(4365c3963150523e).();
88 QStringcxx . . $ QString# grLucxx . . $ Phrase#grLu(4365c3963150523e).();
89 int handicapcxx . . $ Phrase#handicap(971e302da6524aa8).(MotFlechicxx . . $ MotFlechi#* mf);
90 QListcxx . . $ QList#<Requetecxx . . $ Requete#*> homolexescxx . . $ Phrase#homolexes(209730f322fc997b).(Requetecxx . . $ Requete#* req);
91 QListcxx . . $ QList#<Requetecxx . . $ Requete#*> homonymescxx . . $ Phrase#homonymes(209730f322fc997b).(Requetecxx . . $ Requete#* req);
92 QListcxx . . $ QList#<Requetecxx . . $ Requete#*> homonymescxx . . $ Phrase#homonymes(2335786dbb1513e1).(QStringcxx . . $ QString# id);
93 QStringcxx . . $ QString# htmlLienscxx . . $ Phrase#htmlLiens(4365c3963150523e).();
94 QStringListcxx . . $ QStringList# lgrcxx . . $ Phrase#lgr(1d6c13db251da7fa).(char pos);
95 QStringListcxx . . $ QStringList# lgrcxx . . $ Phrase#lgr(49a40ec6f651fdcf).(char pos, char posO);
96 bool isomorphcxx . . $ Phrase#isomorph(80825a4bb658cac2).(QStringcxx . . $ QString# ma, QStringcxx . . $ QString# mb);
97 void lemmatisecxx . . $ Phrase#lemmatise(49f6e7a06ebc5aa8).();
98 QListcxx . . $ QList#<Requetecxx . . $ Requete#*> lReqSubcxx . . $ Phrase#lReqSub(78af66f1ce2bb9f9).(MotFlechicxx . . $ MotFlechi#* mf, bool closes=false);
99 QListcxx . . $ QList#<Requetecxx . . $ Requete#*> lReqSupcxx . . $ Phrase#lReqSup(78af66f1ce2bb9f9).(MotFlechicxx . . $ MotFlechi#* mf, bool closes=false);
100 Requetecxx . . $ Requete#* montantecxx . . $ Phrase#montante(6fe9a83ecb50a2e9).(Motcxx . . $ Mot#* m);
101 Motcxx . . $ Mot#* motCourantcxx . . $ Phrase#motCourant(f01abd07a51bce96).();
102 Motcxx . . $ Mot#* motNocxx . . $ Phrase#motNo(3ac9fd2a2d8d3d91).(int i);
103 int nbMotscxx . . $ Phrase#nbMots(b126dc7c1de90089).();
104 int nbPonctcxx . . $ Phrase#nbPonct(dbc4b1af1519e01).(QCharcxx . . $ QChar# p, Motcxx . . $ Mot#* ma, Motcxx . . $ Mot#* mb);
105 int nbReglescxx . . $ Phrase#nbRegles(b126dc7c1de90089).();
106 int nbRequetescxx . . $ Phrase#nbRequetes(b126dc7c1de90089).();
107 int nbSupercxx . . $ Phrase#nbSuper(971e302da6524aa8).(MotFlechicxx . . $ MotFlechi#* mf);
108 QStringcxx . . $ QString# numcxx . . $ Phrase#num(4365c3963150523e).();
109 int numNouvReqcxx . . $ Phrase#numNouvReq(b126dc7c1de90089).();
110 void nettoieHomonymescxx . . $ Phrase#nettoieHomonymes(7df51288a9ebd664).(QStringcxx . . $ QString# id);
111 void peupleHandicapcxx . . $ Phrase#peupleHandicap(49f6e7a06ebc5aa8).();
112 void peupleReglescxx . . $ Phrase#peupleRegles(7df51288a9ebd664).(QStringcxx . . $ QString# nf);
113 QListcxx . . $ QList#<Motcxx . . $ Mot#*> porteecxx . . $ Phrase#portee(7c26fe814640a831).(int a, int b);
114 Reglecxx . . $ Regle#* reglecxx . . $ Phrase#regle(e89a7e7853f16863).(int i);
115 Reglecxx . . $ Regle#* reglecxx . . $ Phrase#regle(d63f3c7e35ee9d5).(QStringcxx . . $ QString# id);
116 void reinitcxx . . $ Phrase#reinit(49f6e7a06ebc5aa8).();
117 QListcxx . . $ QList#<Requetecxx . . $ Requete#*> reqCCcxx . . $ Phrase#reqCC(10a6c9482e41b07e).(Motcxx . . $ Mot#* m);
118 Requetecxx . . $ Requete#* requetecxx . . $ Phrase#requete(391460fb6a4cba1d).(int n);
119 Requetecxx . . $ Requete#* requetecxx . . $ Phrase#requete(8743e635b9d574d).(QStringcxx . . $ QString# codeR);
120 QStringcxx . . $ QString# static saisiecxx . . $ Phrase#saisie(1ba22f3269531822). (QStringcxx . . $ QString# l, QStringcxx . . $ QString# s);
121 bool semcxx . . $ Phrase#sem(c9857a73d68e59ba).();
122 Semantiquecxx . . $ Semantique#* semantiquecxx . . $ Phrase#semantique(777f9e71b745aeb4).();
123 void setGrcxx . . $ Phrase#setGr(7df51288a9ebd664).(QStringcxx . . $ QString# t);
124 void setLienscxx . . $ Phrase#setLiens(49f6e7a06ebc5aa8).();
125 QListcxx . . $ QList#<Motcxx . . $ Mot#*> supersDecxx . . $ Phrase#supersDe(657923da06649e7d).(Motcxx . . $ Mot#* m);
126 QStringcxx . . $ QString# trcxx . . $ Phrase#tr(f4d483874300e612).(bool color = true);
127 MotFlechicxx . . $ MotFlechi#* vbRelativecxx . . $ Phrase#vbRelative(848191d10b03e607).(MotFlechicxx . . $ MotFlechi#* mf);
128 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
129 void editTrcxx . . $ Phrase#editTr(7df51288a9ebd664).(QStringcxx . . $ QString# t);
130 void reponducxx . . $ Phrase#repondu(7df51288a9ebd664).(const QStringcxx . . $ QString#);
131 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
132 void traceReqcxx . . $ Phrase#traceReq(49f6e7a06ebc5aa8).();
133 };
134
135 namespace Chainescxx . . $ Chaines/ {
136
137 const QStringcxx . . $ QString# titrePraelectorcxx . . $ Chaines/titrePraelector. =
138 "<h2 style=\"font-family:serif;\"><center>&#x2619; <a href=\"-aux\">PRAELECTOR</a> &#x2767;</center></h2>"cxx . . $ QString#QString(85c52e162fed56f9).;
139
140 const QStringcxx . . $ QString# menucxx . . $ Chaines/menu. = QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(5ac70cc0fa2a874e).
141 ("<a href=\"-par\">paramètres</a><br/>"
142 "<a href=\"-corpus\">choisir une phrase</a><br/>"
143 "<a href=\"-enr\">choisir une phrase enregistrée</a><br/>"
144 "<a href=\"-nouvPhr\">Saisir une phrase</a><br/>"
145 "<a href=\"-clav\">clavier</a> (touche '/')<br/>"
146 "taille <a href=\"-zoom\">+</a>&nbsp;<a href=\"-dezoom\">-</a>&nbsp;"
147 "<a href=\"-quitter\">quitter</a>");
148
149 const QStringcxx . . $ QString# affichagecxx . . $ Chaines/affichage. = QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(5ac70cc0fa2a874e).
150 ("%1<hr/>%2<hr/>"
151 "<a href=\"-pprec\">phr. précédente</a>&nbsp;<a href=\"-psuiv\">suivante</a><br/>"
152 "<a href=\"-reinit\">réinitialiser</a>&nbsp;<a href=\"-init\">annuler</a><br/>"
153 "mot <a href=\"-prec\">précédent</a> <a href=\"-suiv\">suivant</a>&nbsp;"
154 "<a href=\"-trace\">enregistrer</a>"
155 "<hr/>%3"
156 "<hr/><strong>Morphologies et traductions du mot</strong><br/>\n%4"
157 "<hr/><strong>Liens syntaxiques</strong><br/>%5\n"
158 "<hr/><strong>état de la traduction</strong><br/>\n"
159 "<span style=\"color:darkred;\">%6</span>"
160 "<hr/>%7<br/><a href=\"-sem\">enrichissement de la base sémantique </a>");
161
162 const QStringcxx . . $ QString# documentationcxx . . $ Chaines/documentation. = QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(5ac70cc0fa2a874e).
163 ("<div>On peut piloter Praelector à la souris, mais en saisissant "
164 "le caractère /, L'interface affiche en rouge des caractères "
165 "qui, saisis au clavier, activent le lien qui les suit.<br/>"
166 "Les liens <em>Reculer</em> et <em>Avancer</em> permettent "
167 "de se déplacer dans la phrase. Il est conseillé de faire "
168 "le plus de choix possibles avant de passer au mot suivant."
169 "On peut se déplacer de plusieurs mots en utilisant les "
170 "caractères de soulignement qui précèdent chaque mot déjà "
171 "lu. Parmi les choix, <ul>"
172 "<li> choix du déterminant ou du sujet ;"
173 "<li> choix ou édition de la traduction ; "
174 "<li> Rejet de la morphologie proposéë, ou validation "
175 "comme seule morphologie possible.</ul>"
176 "À partir du deuxième mot de la phrase, tous les "
177 "liens syntaxiques possibles sont proposés. On peut "
178 "rejeter ceux qui paraissent impossibles ou incorrects, "
179 "et valider ceux qu'on accepte. Souvent, plusieurs "
180 "liens concurrents sont possibles. Pour choisir, il "
181 "faut examiner avec soin la fonction des liens proposés, plus "
182 "que leur traduction, qui est souvent approximative. Des liens "
183 "permettent de choisir la traduction d'un mot, ou de l'éditer."
184 "L'état de la traduction est affiché au bas de la fenêtre.<br/>"
185 "Praelector est développé par Yves Ouvrard, et placé sous licence GPL."
186 "<em>Macte!</em></div>");
187
188 const QStringcxx . . $ QString# affInitcxx . . $ Chaines/affInit. = QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(5ac70cc0fa2a874e).
189 ("Saisis ci-dessous la phrase à lire");
190
191 const QStringcxx . . $ QString# ajTrEntreecxx . . $ Chaines/ajTrEntree. = QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(5ac70cc0fa2a874e).
192 ("Pour ajouter une entrée :\n "
193 "lemme;modèle;r1;r2;indMorph:tr1(comm.)[comm.],tr2;tr3\n"
194 "Pas d'espace avant les deux points ; le modèle peut être "
195 "donné par un numéro, ou par un mot du même modèle.\n");
196
197 /* déterminants */
198 const QStringListcxx . . $ QStringList# detMScxx . . $ Chaines/detMS. = QStringListcxx . . $ QStringList#QStringList(ced63f7c635d850d). () <<cxx . . $ QStringList#`operator<<`(85116071a693d053)."le"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "un"cxx . . $ QString#QString(85c52e162fed56f9).;
199 const QStringListcxx . . $ QStringList# detFScxx . . $ Chaines/detFS. = QStringListcxx . . $ QStringList#QStringList(ced63f7c635d850d). () <<cxx . . $ QStringList#`operator<<`(85116071a693d053)."la"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "une"cxx . . $ QString#QString(85c52e162fed56f9).;
200 const QStringListcxx . . $ QStringList# detPcxx . . $ Chaines/detP. = QStringListcxx . . $ QStringList#QStringList(ced63f7c635d850d). () <<cxx . . $ QStringList#`operator<<`(85116071a693d053)."les"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "des"cxx . . $ QString#QString(85c52e162fed56f9).;
201
202 }
203
204 #endif