Skip to content

Commit 52291dd

Browse files
committed
fix new file
1 parent 33a05b6 commit 52291dd

File tree

5 files changed

+2599
-2607
lines changed

5 files changed

+2599
-2607
lines changed

src/lang/fr_FR.qm

-323 Bytes
Binary file not shown.

src/lang/fr_FR.ts

+26-26
Original file line numberDiff line numberDiff line change
@@ -80,82 +80,82 @@ p, li { white-space: pre-wrap; }
8080
<translation>SINON ne peut être utilisé qu&apos;immédiatement après un bloc SI</translation>
8181
</message>
8282
<message>
83-
<location filename="../main.py" line="1332"/>
83+
<location filename="../main.py" line="1325"/>
8484
<source>[k]CONTINUE[/k]</source>
8585
<translation>[k]CONTINUER[/k]</translation>
8686
</message>
8787
<message>
88-
<location filename="../main.py" line="1335"/>
88+
<location filename="../main.py" line="1328"/>
8989
<source>[b]ELSE[/b]</source>
9090
<translation>[b]SINON[/b]</translation>
9191
</message>
9292
<message>
93-
<location filename="../main.py" line="1326"/>
93+
<location filename="../main.py" line="1319"/>
9494
<source>[k]DISPLAY[/k] [c]{val}[/c]</source>
9595
<translation>[k]AFFICHER[/k] [c]{val}[/c]</translation>
9696
</message>
9797
<message>
98-
<location filename="../main.py" line="1338"/>
98+
<location filename="../main.py" line="1331"/>
9999
<source>[b]WHILE[/b] [c]{cond}[/c]</source>
100100
<translation>[b]TANT QUE[/b] [c]{cond}[/c]</translation>
101101
</message>
102102
<message>
103-
<location filename="../main.py" line="1341"/>
103+
<location filename="../main.py" line="1334"/>
104104
<source>[b]IF[/b] [c]{cond}[/c]</source>
105105
<translation>[b]SI[/b] [c]{cond}[/c]</translation>
106106
</message>
107107
<message>
108-
<location filename="../main.py" line="1344"/>
108+
<location filename="../main.py" line="1337"/>
109109
<source>[k]INPUT[/k] [c]{prompt}[/c] [k]TO[/k] [c]{var}[/c]</source>
110110
<translation>[k]LIRE[/k] [c]{prompt}[/c] [k]DANS[/k] [c]{var}[/c]</translation>
111111
</message>
112112
<message>
113-
<location filename="../main.py" line="1369"/>
113+
<location filename="../main.py" line="1362"/>
114114
<source>[k]RETURN[/k] [c]{val}[/c]</source>
115115
<translation>[k]RENVOYER[/k] [c]{val}[/c]</translation>
116116
</message>
117117
<message>
118-
<location filename="../main.py" line="1349"/>
118+
<location filename="../main.py" line="1342"/>
119119
<source>[k]DECLARE[/k] [c]{var}[/c]</source>
120120
<translation>[k]DÉCLARER[/k] [c]{var}[/c]</translation>
121121
</message>
122122
<message>
123-
<location filename="../main.py" line="1355"/>
123+
<location filename="../main.py" line="1348"/>
124124
<source>[k]CALL[/k] [c]{code}[/c]</source>
125125
<translation>[k]APPELER[/k] [c]{code}[/c]</translation>
126126
</message>
127127
<message>
128-
<location filename="../main.py" line="1365"/>
128+
<location filename="../main.py" line="1358"/>
129129
<source>[b]FUNCTION[/b] [c]{func}({args})[/c]</source>
130130
<translation>[b]FONCTION[/b] [c]{func}({args})[/c]</translation>
131131
</message>
132132
<message>
133-
<location filename="../main.py" line="1408"/>
133+
<location filename="../main.py" line="1401"/>
134134
<source>[b]PROGRAM[/b]</source>
135135
<translation>[b]ALGORITHME[/b]</translation>
136136
</message>
137137
<message>
138-
<location filename="../main.py" line="1329"/>
138+
<location filename="../main.py" line="1322"/>
139139
<source>[k]BREAK[/k]</source>
140140
<translation>[k]SORTIR[/k]</translation>
141141
</message>
142142
<message>
143-
<location filename="../main.py" line="1358"/>
143+
<location filename="../main.py" line="1351"/>
144144
<source>[b]FOR[/b] [c]{var}[/c] [b]FROM[/b] [c]{begin}[/c] [b]TO[/b] [c]{end}[/c] {step}</source>
145145
<translation>[b]POUR[/b] [c]{var}[/c] [b]DE[/b] [c]{begin}[/c] [b]À[/b] [c]{end}[/c] {step}</translation>
146146
</message>
147147
<message>
148-
<location filename="../main.py" line="1359"/>
148+
<location filename="../main.py" line="1352"/>
149149
<source>([b]STEP[/b] [c]{step}[/c])</source>
150150
<translation>([b]PAS[/b] [c]{step}[/c])</translation>
151151
</message>
152152
<message>
153-
<location filename="../main.py" line="1411"/>
153+
<location filename="../main.py" line="1404"/>
154154
<source>[i]empty[/i]</source>
155155
<translation>[i]vide[/i]</translation>
156156
</message>
157157
<message>
158-
<location filename="../main.py" line="1373"/>
158+
<location filename="../main.py" line="1366"/>
159159
<source>[k]STOP[/k]</source>
160160
<translation>[k]STOP[/k]</translation>
161161
</message>
@@ -199,27 +199,27 @@ p, li { white-space: pre-wrap; }
199199
<translation>Cible d&apos;affectation invalide (doit être une variable ou un élément de liste) : {name}</translation>
200200
</message>
201201
<message>
202-
<location filename="../main.py" line="1351"/>
202+
<location filename="../main.py" line="1344"/>
203203
<source>[k]VARIABLE[/k] [c]{var}[/c] [k]TAKES VALUE[/k] [c]{value}[/c]</source>
204204
<translation>[k]VARIABLE[/k] [c]{var}[/c] [k]PREND LA VALEUR[/b] [c]{value}[/c]</translation>
205205
</message>
206206
<message>
207-
<location filename="../main.py" line="1379"/>
207+
<location filename="../main.py" line="1372"/>
208208
<source>[k]CLEAR PLOT[/k]</source>
209209
<translation>[k]EFFACER GRAPHIQUE[/k]</translation>
210210
</message>
211211
<message>
212-
<location filename="../main.py" line="1382"/>
212+
<location filename="../main.py" line="1375"/>
213213
<source>[k]DRAW LINE[/k] [c]{color}[/c] [k]FROM[/k] ([c]{start_x}[/c]; [c]{start_y}[/c]) [k]TO[/k] ([c]{end_x}[/c]; [c]{end_y}[/c])</source>
214214
<translation>[k]DESSINER LIGNE[/k] [c]{color}[/c] [k]DE[/k] ([c]{start_x}[/c]; [c]{start_y}[/c]) [k]À[/k] ([c]{end_x}[/c]; [c]{end_y}[/c])</translation>
215215
</message>
216216
<message>
217-
<location filename="../main.py" line="1391"/>
217+
<location filename="../main.py" line="1384"/>
218218
<source>[k]DRAW POINT[/k] [c]{color}[/c] [k]AT[/k] ([c]{x}[/c]; [c]{y}[/c])</source>
219219
<translation>[k]DESSINER POINT[/k] [c]{color}[/c] [k]À[/k] ([c]{x}[/c]; [c]{y}[/c])</translation>
220220
</message>
221221
<message>
222-
<location filename="../main.py" line="1398"/>
222+
<location filename="../main.py" line="1391"/>
223223
<source>[k]SET WINDOW[/k] [i]Xmin=[/i][c]{x_min}[/c] [i]Xmax=[/i][c]{x_max}[/c] [i]Ymin=[/i][c]{y_min}[/c] [i]Ymax=[/i][c]{y_max}[/c] [i]Xgrad=[/i][c]{x_grad}[/c] [i]Ygrad=[/i][c]{y_grad}[/c]</source>
224224
<translation>[k]DÉFINIR REPÈRE[/k] [i]Xmin=[/i][c]{x_min}[/c] [i]Xmax=[/i][c]{x_max}[/c] [i]Ymin=[/i][c]{y_min}[/c] [i]Ymax=[/i][c]{y_max}[/c] [i]Xgrad=[/i][c]{x_grad}[/c] [i]Ygrad=[/i][c]{y_grad}[/c]</translation>
225225
</message>
@@ -1811,17 +1811,17 @@ Toutes les modifications non sauvegardées seront perdues.</translation>
18111811
<translation>fin de l&apos;exécution [{time}]</translation>
18121812
</message>
18131813
<message>
1814-
<location filename="../main.py" line="1631"/>
1814+
<location filename="../main.py" line="1624"/>
18151815
<source>Python file (*.py)</source>
18161816
<translation>Fichier Python (*.py)</translation>
18171817
</message>
18181818
<message>
1819-
<location filename="../main.py" line="1632"/>
1819+
<location filename="../main.py" line="1625"/>
18201820
<source>Turing program (*.tr)</source>
18211821
<translation>Algorithme Turing (*.tr)</translation>
18221822
</message>
18231823
<message>
1824-
<location filename="../main.py" line="1633"/>
1824+
<location filename="../main.py" line="1626"/>
18251825
<source>Algobox file (*.alg)</source>
18261826
<translation>Algorithme Algobox (*.alg)</translation>
18271827
</message>
@@ -1881,7 +1881,7 @@ Toutes les modifications non sauvegardées seront perdues.</translation>
18811881
<translation>Déboguer</translation>
18821882
</message>
18831883
<message>
1884-
<location filename="../main.py" line="1630"/>
1884+
<location filename="../main.py" line="1623"/>
18851885
<source>Program file (*.py *.tr *.alg)</source>
18861886
<translation>Fichier de programme (*.py *.tr *.alg)</translation>
18871887
</message>
@@ -1929,7 +1929,7 @@ Toutes les modifications non sauvegardées seront perdues.</translation>
19291929
<location filename="../main.py" line="734"/>
19301930
<source>Do you really want to create a new file?
19311931
All unsaved changes will be lost.</source>
1932-
<translation>Voulez-vous vraiment créer un nouveau fichier ?
1932+
<translation type="obsolete">Voulez-vous vraiment créer un nouveau fichier ?
19331933
Toutes les modifications non sauvegardées seront perdues.</translation>
19341934
</message>
19351935
<message>

src/main.py

+7-14
Original file line numberDiff line numberDiff line change
@@ -723,20 +723,13 @@ def handler_Open():
723723

724724

725725
def handler_New():
726-
msg = get_themed_box()
727-
msg.setIcon(QMessageBox.Question)
728-
msg.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
729-
msg.setDefaultButton(QMessageBox.No)
730-
msg.setText(translate("MainWindow", "Do you really want to create a new file?\nAll unsaved changes will be lost."))
731-
center_widget(msg, QDesktopWidget().availableGeometry().center())
732-
if msg.exec_() == QMessageBox.Yes:
733-
global current_file
734-
global algo
735-
global code_editor
736-
current_file = None
737-
algo = BlockStmt([])
738-
code_editor.setPlainText("", "", "")
739-
refresh()
726+
global current_file
727+
global algo
728+
global code_editor
729+
current_file = None
730+
algo = BlockStmt([])
731+
code_editor.setPlainText("", "", "")
732+
refresh()
740733

741734

742735
def init_action_handlers():

src/project.pro

-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ SOURCES += \
8686
maths\lib\stats.py \
8787
maths\lib\trig.py \
8888
maths\lib\__init__.py \
89-
maths\lib\__pycache__\rand.py \
9089
maths\nodes\ArrayAccessNode.py \
9190
maths\nodes\AstNode.py \
9291
maths\nodes\BinOpNode.py \

0 commit comments

Comments
 (0)