Remove unused modalwait.

Julien LepillerSat Aug 24 21:42:47+0200 2019

34d0d55

Remove unused modalwait.

offlate/locales/offlate_en.ts

3939
        </translation>
4040
    </message>
4141
    <message>
42-
        <location filename="../ui/editor.py" line="371"/>
42+
        <location filename="../ui/editor.py" line="365"/>
4343
        <source>Exit</source>
4444
        <translation>Exit</translation>
4545
    </message>
4646
    <message>
47-
        <location filename="../ui/editor.py" line="373"/>
47+
        <location filename="../ui/editor.py" line="367"/>
4848
        <source>Exit application</source>
4949
        <translation>Exit application</translation>
5050
    </message>
5151
    <message>
52-
        <location filename="../ui/editor.py" line="376"/>
52+
        <location filename="../ui/editor.py" line="370"/>
5353
        <source>Save</source>
5454
        <translation>Save</translation>
5555
    </message>
5656
    <message>
57-
        <location filename="../ui/editor.py" line="378"/>
57+
        <location filename="../ui/editor.py" line="372"/>
5858
        <source>Save current project</source>
5959
        <translation>Save current project</translation>
6060
    </message>
6161
    <message>
62-
        <location filename="../ui/editor.py" line="381"/>
62+
        <location filename="../ui/editor.py" line="375"/>
6363
        <source>New</source>
6464
        <translation>New</translation>
6565
    </message>
6666
    <message>
67-
        <location filename="../ui/editor.py" line="383"/>
67+
        <location filename="../ui/editor.py" line="377"/>
6868
        <source>New project</source>
6969
        <translation>New project</translation>
7070
    </message>
7171
    <message>
72-
        <location filename="../ui/editor.py" line="386"/>
72+
        <location filename="../ui/editor.py" line="380"/>
7373
        <source>Manage Projects</source>
7474
        <translation>Manage Projects</translation>
7575
    </message>
7676
    <message>
77-
        <location filename="../ui/editor.py" line="389"/>
77+
        <location filename="../ui/editor.py" line="383"/>
7878
        <source>Open project manager</source>
7979
        <translation>Open project manager</translation>
8080
    </message>
8181
    <message>
82-
        <location filename="../ui/editor.py" line="392"/>
82+
        <location filename="../ui/editor.py" line="386"/>
8383
        <source>Update</source>
8484
        <translation>Update</translation>
8585
    </message>
8686
    <message>
87-
        <location filename="../ui/editor.py" line="394"/>
87+
        <location filename="../ui/editor.py" line="388"/>
8888
        <source>Get modifications from upstream</source>
8989
        <translation>Get modifications from upstream</translation>
9090
    </message>
9191
    <message>
92-
        <location filename="../ui/editor.py" line="397"/>
92+
        <location filename="../ui/editor.py" line="391"/>
9393
        <source>Close</source>
9494
        <translation>Close</translation>
9595
    </message>
9696
    <message>
97-
        <location filename="../ui/editor.py" line="398"/>
97+
        <location filename="../ui/editor.py" line="392"/>
9898
        <source>Close current project</source>
9999
        <translation>Close current project</translation>
100100
    </message>
101101
    <message>
102-
        <location filename="../ui/editor.py" line="401"/>
102+
        <location filename="../ui/editor.py" line="395"/>
103103
        <source>Send</source>
104104
        <translation>Send</translation>
105105
    </message>
106106
    <message>
107-
        <location filename="../ui/editor.py" line="403"/>
107+
        <location filename="../ui/editor.py" line="397"/>
108108
        <source>Send modifications upstream</source>
109109
        <translation>Send modifications upstream</translation>
110110
    </message>
111111
    <message>
112-
        <location filename="../ui/editor.py" line="406"/>
112+
        <location filename="../ui/editor.py" line="400"/>
113113
        <source>Settings</source>
114114
        <translation>Settings</translation>
115115
    </message>
116116
    <message>
117-
        <location filename="../ui/editor.py" line="408"/>
117+
        <location filename="../ui/editor.py" line="402"/>
118118
        <source>Set parameters</source>
119119
        <translation>Set parameters</translation>
120120
    </message>
121121
    <message>
122-
        <location filename="../ui/editor.py" line="411"/>
122+
        <location filename="../ui/editor.py" line="405"/>
123123
        <source>Show Translated</source>
124124
        <translation>Show Translated</translation>
125125
    </message>
126126
    <message>
127-
        <location filename="../ui/editor.py" line="414"/>
127+
        <location filename="../ui/editor.py" line="408"/>
128128
        <source>Show Fuzzy</source>
129129
        <translation>Show Fuzzy</translation>
130130
    </message>
131131
    <message>
132-
        <location filename="../ui/editor.py" line="417"/>
132+
        <location filename="../ui/editor.py" line="411"/>
133133
        <source>Show Empty Translation</source>
134134
        <translation>Show Empty Translation</translation>
135135
    </message>
136136
    <message>
137-
        <location filename="../ui/editor.py" line="420"/>
137+
        <location filename="../ui/editor.py" line="414"/>
138138
        <source>Use a monospace font</source>
139139
        <translation>Use a monospace font</translation>
140140
    </message>
141141
    <message>
142-
        <location filename="../ui/editor.py" line="445"/>
142+
        <location filename="../ui/editor.py" line="439"/>
143143
        <source>Open</source>
144144
        <translation>Open</translation>
145145
    </message>
146146
    <message>
147-
        <location filename="../ui/editor.py" line="449"/>
147+
        <location filename="../ui/editor.py" line="443"/>
148148
        <source>&amp;File</source>
149149
        <translation>&amp;File</translation>
150150
    </message>
151151
    <message>
152-
        <location filename="../ui/editor.py" line="457"/>
152+
        <location filename="../ui/editor.py" line="451"/>
153153
        <source>&amp;Project</source>
154154
        <translation>&amp;Project</translation>
155155
    </message>
156156
    <message>
157-
        <location filename="../ui/editor.py" line="464"/>
157+
        <location filename="../ui/editor.py" line="458"/>
158158
        <source>&amp;Edit</source>
159159
        <translation>&amp;Edit</translation>
160160
    </message>
161161
    <message>
162-
        <location filename="../ui/editor.py" line="467"/>
162+
        <location filename="../ui/editor.py" line="461"/>
163163
        <source>&amp;View</source>
164164
        <translation>&amp;View</translation>
165165
    </message>

192192
    <message>
193193
        <location filename="../ui/manager.py" line="37"/>
194194
        <source>Please wait&#xe2;&#x80;&#xa6;</source>
195-
        <translation>Please wait???</translation>
195+
        <translation type="obsolete">Please wait???</translation>
196196
    </message>
197197
</context>
198198
<context>

269269
<context>
270270
    <name>ProjectManagerWidget</name>
271271
    <message>
272-
        <location filename="../ui/manager.py" line="86"/>
272+
        <location filename="../ui/manager.py" line="81"/>
273273
        <source>Open</source>
274274
        <translation>Open</translation>
275275
    </message>
276276
    <message>
277-
        <location filename="../ui/manager.py" line="87"/>
277+
        <location filename="../ui/manager.py" line="82"/>
278278
        <source>Edit</source>
279279
        <translation>Edit</translation>
280280
    </message>
281281
    <message>
282-
        <location filename="../ui/manager.py" line="88"/>
282+
        <location filename="../ui/manager.py" line="83"/>
283283
        <source>Remove</source>
284284
        <translation>Remove</translation>
285285
    </message>
286286
    <message>
287-
        <location filename="../ui/manager.py" line="96"/>
287+
        <location filename="../ui/manager.py" line="91"/>
288288
        <source>New Project</source>
289289
        <translation>New Project</translation>
290290
    </message>
291291
    <message>
292-
        <location filename="../ui/manager.py" line="97"/>
292+
        <location filename="../ui/manager.py" line="92"/>
293293
        <source>Settings</source>
294294
        <translation>Settings</translation>
295295
    </message>
296296
    <message>
297-
        <location filename="../ui/manager.py" line="98"/>
297+
        <location filename="../ui/manager.py" line="93"/>
298298
        <source>About Offlate</source>
299299
        <translation>About Offlate</translation>
300300
    </message>
301301
    <message>
302-
        <location filename="../ui/manager.py" line="99"/>
302+
        <location filename="../ui/manager.py" line="94"/>
303303
        <source>Exit</source>
304304
        <translation>Exit</translation>
305305
    </message>
306306
    <message>
307-
        <location filename="../ui/manager.py" line="176"/>
307+
        <location filename="../ui/manager.py" line="171"/>
308308
        <source>Fetching project {}...</source>
309309
        <translation>Fetching project {}???</translation>
310310
    </message>

312312
<context>
313313
    <name>ProjectManagerWindow</name>
314314
    <message>
315-
        <location filename="../ui/manager.py" line="59"/>
315+
        <location filename="../ui/manager.py" line="49"/>
316316
        <source>Offlate Project Manager</source>
317317
        <translation>Offlate Project Manager</translation>
318318
    </message>

offlate/locales/offlate_fr.ts

4141
        </translation>
4242
    </message>
4343
    <message>
44-
        <location filename="../ui/editor.py" line="371"/>
44+
        <location filename="../ui/editor.py" line="365"/>
4545
        <source>Exit</source>
4646
        <translation>Quitter</translation>
4747
    </message>
4848
    <message>
49-
        <location filename="../ui/editor.py" line="373"/>
49+
        <location filename="../ui/editor.py" line="367"/>
5050
        <source>Exit application</source>
5151
        <translation>Quitter l&apos;application</translation>
5252
    </message>
5353
    <message>
54-
        <location filename="../ui/editor.py" line="376"/>
54+
        <location filename="../ui/editor.py" line="370"/>
5555
        <source>Save</source>
5656
        <translation>Sauvegarder</translation>
5757
    </message>
5858
    <message>
59-
        <location filename="../ui/editor.py" line="378"/>
59+
        <location filename="../ui/editor.py" line="372"/>
6060
        <source>Save current project</source>
6161
        <translation>Sauvegarder le projet actuel</translation>
6262
    </message>
6363
    <message>
64-
        <location filename="../ui/editor.py" line="381"/>
64+
        <location filename="../ui/editor.py" line="375"/>
6565
        <source>New</source>
6666
        <translation>Nouveau</translation>
6767
    </message>
6868
    <message>
69-
        <location filename="../ui/editor.py" line="383"/>
69+
        <location filename="../ui/editor.py" line="377"/>
7070
        <source>New project</source>
7171
        <translation>Nouveau projet</translation>
7272
    </message>
7373
    <message>
74-
        <location filename="../ui/editor.py" line="386"/>
74+
        <location filename="../ui/editor.py" line="380"/>
7575
        <source>Manage Projects</source>
7676
        <translation>G??rer les projets</translation>
7777
    </message>
7878
    <message>
79-
        <location filename="../ui/editor.py" line="389"/>
79+
        <location filename="../ui/editor.py" line="383"/>
8080
        <source>Open project manager</source>
8181
        <translation>Ouvrir le gestionnaire de projets</translation>
8282
    </message>
8383
    <message>
84-
        <location filename="../ui/editor.py" line="392"/>
84+
        <location filename="../ui/editor.py" line="386"/>
8585
        <source>Update</source>
8686
        <translation>Mettre ?? jour</translation>
8787
    </message>
8888
    <message>
89-
        <location filename="../ui/editor.py" line="394"/>
89+
        <location filename="../ui/editor.py" line="388"/>
9090
        <source>Get modifications from upstream</source>
9191
        <translation>R??cup??rer les modifications en amont</translation>
9292
    </message>
9393
    <message>
94-
        <location filename="../ui/editor.py" line="397"/>
94+
        <location filename="../ui/editor.py" line="391"/>
9595
        <source>Close</source>
9696
        <translation>Fermer</translation>
9797
    </message>
9898
    <message>
99-
        <location filename="../ui/editor.py" line="398"/>
99+
        <location filename="../ui/editor.py" line="392"/>
100100
        <source>Close current project</source>
101101
        <translation>Fermer le projet actuel</translation>
102102
    </message>
103103
    <message>
104-
        <location filename="../ui/editor.py" line="401"/>
104+
        <location filename="../ui/editor.py" line="395"/>
105105
        <source>Send</source>
106106
        <translation>Envoyer</translation>
107107
    </message>
108108
    <message>
109-
        <location filename="../ui/editor.py" line="403"/>
109+
        <location filename="../ui/editor.py" line="397"/>
110110
        <source>Send modifications upstream</source>
111111
        <translation>Envoyer les modifications en amont</translation>
112112
    </message>
113113
    <message>
114-
        <location filename="../ui/editor.py" line="406"/>
114+
        <location filename="../ui/editor.py" line="400"/>
115115
        <source>Settings</source>
116116
        <translation>Param??tres</translation>
117117
    </message>
118118
    <message>
119-
        <location filename="../ui/editor.py" line="408"/>
119+
        <location filename="../ui/editor.py" line="402"/>
120120
        <source>Set parameters</source>
121121
        <translation>Configurer les param??tres</translation>
122122
    </message>
123123
    <message>
124-
        <location filename="../ui/editor.py" line="411"/>
124+
        <location filename="../ui/editor.py" line="405"/>
125125
        <source>Show Translated</source>
126126
        <translation>Montrer les cha??nes traduites</translation>
127127
    </message>
128128
    <message>
129-
        <location filename="../ui/editor.py" line="414"/>
129+
        <location filename="../ui/editor.py" line="408"/>
130130
        <source>Show Fuzzy</source>
131131
        <translation>Montrer les traductions floues</translation>
132132
    </message>
133133
    <message>
134-
        <location filename="../ui/editor.py" line="417"/>
134+
        <location filename="../ui/editor.py" line="411"/>
135135
        <source>Show Empty Translation</source>
136136
        <translation>Montrer les traductions vides</translation>
137137
    </message>
138138
    <message>
139-
        <location filename="../ui/editor.py" line="420"/>
139+
        <location filename="../ui/editor.py" line="414"/>
140140
        <source>Use a monospace font</source>
141141
        <translation>Utiliser une police ?? chasse fixe</translation>
142142
    </message>
143143
    <message>
144-
        <location filename="../ui/editor.py" line="445"/>
144+
        <location filename="../ui/editor.py" line="439"/>
145145
        <source>Open</source>
146146
        <translation>Ouvrir</translation>
147147
    </message>
148148
    <message>
149-
        <location filename="../ui/editor.py" line="449"/>
149+
        <location filename="../ui/editor.py" line="443"/>
150150
        <source>&amp;File</source>
151151
        <translation>&amp;Fichier</translation>
152152
    </message>
153153
    <message>
154-
        <location filename="../ui/editor.py" line="457"/>
154+
        <location filename="../ui/editor.py" line="451"/>
155155
        <source>&amp;Project</source>
156156
        <translation>&amp;Projet</translation>
157157
    </message>
158158
    <message>
159-
        <location filename="../ui/editor.py" line="464"/>
159+
        <location filename="../ui/editor.py" line="458"/>
160160
        <source>&amp;Edit</source>
161161
        <translation>&amp;??dition</translation>
162162
    </message>
163163
    <message>
164-
        <location filename="../ui/editor.py" line="467"/>
164+
        <location filename="../ui/editor.py" line="461"/>
165165
        <source>&amp;View</source>
166166
        <translation>&amp;Affichage</translation>
167167
    </message>

194194
    <message>
195195
        <location filename="../ui/manager.py" line="37"/>
196196
        <source>Please wait&#xe2;&#x80;&#xa6;</source>
197-
        <translation>Patientez??????</translation>
197+
        <translation type="obsolete">Patientez??????</translation>
198198
    </message>
199199
</context>
200200
<context>

271271
<context>
272272
    <name>ProjectManagerWidget</name>
273273
    <message>
274-
        <location filename="../ui/manager.py" line="86"/>
274+
        <location filename="../ui/manager.py" line="81"/>
275275
        <source>Open</source>
276276
        <translation>Ouvrir</translation>
277277
    </message>
278278
    <message>
279-
        <location filename="../ui/manager.py" line="87"/>
279+
        <location filename="../ui/manager.py" line="82"/>
280280
        <source>Edit</source>
281281
        <translation>Modifier</translation>
282282
    </message>
283283
    <message>
284-
        <location filename="../ui/manager.py" line="88"/>
284+
        <location filename="../ui/manager.py" line="83"/>
285285
        <source>Remove</source>
286286
        <translation>Supprimer</translation>
287287
    </message>
288288
    <message>
289-
        <location filename="../ui/manager.py" line="96"/>
289+
        <location filename="../ui/manager.py" line="91"/>
290290
        <source>New Project</source>
291291
        <translation>Nouveau projet</translation>
292292
    </message>
293293
    <message>
294-
        <location filename="../ui/manager.py" line="97"/>
294+
        <location filename="../ui/manager.py" line="92"/>
295295
        <source>Settings</source>
296296
        <translation>Param??tres</translation>
297297
    </message>
298298
    <message>
299-
        <location filename="../ui/manager.py" line="98"/>
299+
        <location filename="../ui/manager.py" line="93"/>
300300
        <source>About Offlate</source>
301301
        <translation>?? propos d&apos;Offlate</translation>
302302
    </message>
303303
    <message>
304-
        <location filename="../ui/manager.py" line="99"/>
304+
        <location filename="../ui/manager.py" line="94"/>
305305
        <source>Exit</source>
306306
        <translation>Quitter</translation>
307307
    </message>
308308
    <message>
309-
        <location filename="../ui/manager.py" line="176"/>
309+
        <location filename="../ui/manager.py" line="171"/>
310310
        <source>Fetching project {}...</source>
311311
        <translation>R??cup??ration du projet {}???</translation>
312312
    </message>

314314
<context>
315315
    <name>ProjectManagerWindow</name>
316316
    <message>
317-
        <location filename="../ui/manager.py" line="59"/>
317+
        <location filename="../ui/manager.py" line="49"/>
318318
        <source>Offlate Project Manager</source>
319319
        <translation>Gestionnaire de projets d&apos;Offlate</translation>
320320
    </message>

offlate/ui/manager.py

2929
3030
from ..manager import ProjectManager
3131
32-
class ModalWait(QDialog):
33-
    def __init__(self, parent = None):
34-
        super().__init__(parent)
35-
        box = QVBoxLayout()
36-
        txt = QLabel()
37-
        txt.setText(self.tr("Please wait???"))
38-
        box.addWidget(txt)
39-
        self.setLayout(box)
40-
        self.setModal(True)
41-
4232
class ProjectManagerWindow(QMainWindow):
4333
    _instance = None
4434