Preferences/ProgramsDialog.py

branch
5_0_x
changeset 395
b272cad19676
parent 310
8f325b6b14ce
child 426
161992758137
child 792
a13346916170
equal deleted inserted replaced
391:68e4164b709d 395:b272cad19676
18 18
19 from .Ui_ProgramsDialog import Ui_ProgramsDialog 19 from .Ui_ProgramsDialog import Ui_ProgramsDialog
20 20
21 import Preferences 21 import Preferences
22 import Utilities 22 import Utilities
23
24 from eric5config import getConfig
23 25
24 class ProgramsDialog(QDialog, Ui_ProgramsDialog): 26 class ProgramsDialog(QDialog, Ui_ProgramsDialog):
25 """ 27 """
26 Class implementing the Programs page. 28 Class implementing the Programs page.
27 """ 29 """
135 '-version', 'Ruby Resource Compiler', -1) 137 '-version', 'Ruby Resource Compiler', -1)
136 138
137 # 5. do the Eric5 programs 139 # 5. do the Eric5 programs
138 # 5a. Translation Previewer 140 # 5a. Translation Previewer
139 self.__createProgramEntry(self.trUtf8("Eric5 Translation Previewer"), 141 self.__createProgramEntry(self.trUtf8("Eric5 Translation Previewer"),
140 Utilities.isWindowsPlatform() and "eric5-trpreviewer.bat" or "eric5-trpreviewer", 142 Utilities.isWindowsPlatform() and \
143 os.path.join(getConfig("bindir"), "eric5-trpreviewer.bat") or \
144 "eric5-trpreviewer",
141 '--version', 'Eric5', -3) 145 '--version', 'Eric5', -3)
142 # 5b. Forms Previewer 146 # 5b. Forms Previewer
143 self.__createProgramEntry(self.trUtf8("Eric5 Forms Previewer"), 147 self.__createProgramEntry(self.trUtf8("Eric5 Forms Previewer"),
144 Utilities.isWindowsPlatform() and "eric5-uipreviewer.bat" or "eric5-uipreviewer", 148 Utilities.isWindowsPlatform() and \
149 os.path.join(getConfig("bindir"), "eric5-uipreviewer.bat") or \
150 "eric5-uipreviewer",
145 '--version', 'Eric5', -3) 151 '--version', 'Eric5', -3)
146 152
147 # 6. do the CORBA programs 153 # 6. do the CORBA programs
148 # 6a. omniORB 154 # 6a. omniORB
149 exe = Preferences.getCorba("omniidl") 155 exe = Preferences.getCorba("omniidl")

eric ide

mercurial