11 |
11 |
12 import os |
12 import os |
13 |
13 |
14 from PyQt4.QtCore import pyqtSignal |
14 from PyQt4.QtCore import pyqtSignal |
15 |
15 |
16 from Toolbox.SingleApplication import SingleApplicationClient, SingleApplicationServer |
16 from Toolbox.SingleApplication import SingleApplicationClient, \ |
|
17 SingleApplicationServer |
17 |
18 |
18 ########################################################################### |
19 ########################################################################### |
19 # define some module global stuff |
20 # define some module global stuff |
20 ########################################################################### |
21 ########################################################################### |
21 |
22 |
73 |
74 |
74 def __saLoadTranslation(self, fnames): |
75 def __saLoadTranslation(self, fnames): |
75 """ |
76 """ |
76 Private method used to handle the "Load Translation" command. |
77 Private method used to handle the "Load Translation" command. |
77 |
78 |
78 @param fnames filenames of the translations to be loaded (list of strings) |
79 @param fnames filenames of the translations to be loaded |
|
80 (list of strings) |
79 """ |
81 """ |
80 first = True |
82 first = True |
81 for fname in fnames: |
83 for fname in fnames: |
82 self.loadTranslation.emit(fname, first) |
84 self.loadTranslation.emit(fname, first) |
83 first = False |
85 first = False |
84 |
86 |
85 |
87 |
86 class TRSingleApplicationClient(SingleApplicationClient): |
88 class TRSingleApplicationClient(SingleApplicationClient): |
87 """ |
89 """ |
88 Class implementing the single application client of the Translations Previewer. |
90 Class implementing the single application client of the Translations |
|
91 Previewer. |
89 """ |
92 """ |
90 def __init__(self): |
93 def __init__(self): |
91 """ |
94 """ |
92 Constructor |
95 Constructor |
93 """ |
96 """ |