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