Tools/TRSingleApplication.py

changeset 945
8cd4d08fa9f6
parent 896
f855351d5e98
child 1509
c0b5e693b0eb
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
18 ########################################################################### 18 ###########################################################################
19 19
20 SAFile = "eric5_trpreviewer" 20 SAFile = "eric5_trpreviewer"
21 21
22 # define the protocol tokens 22 # define the protocol tokens
23 SALoadForm = '>LoadForm<' 23 SALoadForm = '>LoadForm<'
24 SALoadTranslation = '>LoadTranslation<' 24 SALoadTranslation = '>LoadTranslation<'
25
25 26
26 class TRSingleApplicationServer(SingleApplicationServer): 27 class TRSingleApplicationServer(SingleApplicationServer):
27 """ 28 """
28 Class implementing the single application server embedded within the 29 Class implementing the single application server embedded within the
29 Translations Previewer. 30 Translations Previewer.
30 31
31 @signal loadForm(str) emitted to load a form file 32 @signal loadForm(str) emitted to load a form file
32 @signal loadTranslation(str, bool) emitted to load a translation file 33 @signal loadTranslation(str, bool) emitted to load a translation file
33 """ 34 """
77 first = True 78 first = True
78 for fname in fnames: 79 for fname in fnames:
79 self.loadTranslation.emit(fname, first) 80 self.loadTranslation.emit(fname, first)
80 first = False 81 first = False
81 82
83
82 class TRSingleApplicationClient(SingleApplicationClient): 84 class TRSingleApplicationClient(SingleApplicationClient):
83 """ 85 """
84 Class implementing the single application client of the Translations Previewer. 86 Class implementing the single application client of the Translations Previewer.
85 """ 87 """
86 def __init__(self): 88 def __init__(self):

eric ide

mercurial