12 |
12 |
13 from .Ui_IdlCompilerOptionsDialog import Ui_IdlCompilerOptionsDialog |
13 from .Ui_IdlCompilerOptionsDialog import Ui_IdlCompilerOptionsDialog |
14 |
14 |
15 import UI.PixmapCache |
15 import UI.PixmapCache |
16 |
16 |
17 from E5Gui import E5PathPickerDialog |
17 from E5Gui import EricPathPickerDialog |
18 from E5Gui.E5PathPicker import E5PathPickerModes |
18 from E5Gui.EricPathPicker import EricPathPickerModes |
19 |
19 |
20 from .IdlCompilerDefineNameDialog import IdlCompilerDefineNameDialog |
20 from .IdlCompilerDefineNameDialog import IdlCompilerDefineNameDialog |
21 |
21 |
22 |
22 |
23 class IdlCompilerOptionsDialog(QDialog, Ui_IdlCompilerOptionsDialog): |
23 class IdlCompilerOptionsDialog(QDialog, Ui_IdlCompilerOptionsDialog): |
132 """ |
132 """ |
133 Private slot to add an 'Include Directory'. |
133 Private slot to add an 'Include Directory'. |
134 """ |
134 """ |
135 defaultDirectory = (self.__project.getProjectPath() if self.__project |
135 defaultDirectory = (self.__project.getProjectPath() if self.__project |
136 else "") |
136 else "") |
137 path, ok = E5PathPickerDialog.getPath( |
137 path, ok = EricPathPickerDialog.getPath( |
138 self, |
138 self, |
139 self.tr("Include Directory"), |
139 self.tr("Include Directory"), |
140 self.tr("Select Include Directory"), |
140 self.tr("Select Include Directory"), |
141 E5PathPickerModes.DIRECTORY_SHOW_FILES_MODE, |
141 EricPathPickerModes.DIRECTORY_SHOW_FILES_MODE, |
142 defaultDirectory=defaultDirectory |
142 defaultDirectory=defaultDirectory |
143 ) |
143 ) |
144 if ok and path: |
144 if ok and path: |
145 if self.__project: |
145 if self.__project: |
146 path = self.__project.getRelativeUniversalPath(path) |
146 path = self.__project.getRelativeUniversalPath(path) |
169 path = self.__project.getAbsoluteUniversalPath(itm.text()) |
169 path = self.__project.getAbsoluteUniversalPath(itm.text()) |
170 defaultDirectory = self.__project.getProjectPath() |
170 defaultDirectory = self.__project.getProjectPath() |
171 else: |
171 else: |
172 path = itm.text() |
172 path = itm.text() |
173 defaultDirectory = "" |
173 defaultDirectory = "" |
174 path, ok = E5PathPickerDialog.getPath( |
174 path, ok = EricPathPickerDialog.getPath( |
175 self, |
175 self, |
176 self.tr("Include Directory"), |
176 self.tr("Include Directory"), |
177 self.tr("Select Include Directory"), |
177 self.tr("Select Include Directory"), |
178 E5PathPickerModes.DIRECTORY_SHOW_FILES_MODE, |
178 EricPathPickerModes.DIRECTORY_SHOW_FILES_MODE, |
179 path=path, |
179 path=path, |
180 defaultDirectory=defaultDirectory |
180 defaultDirectory=defaultDirectory |
181 ) |
181 ) |
182 if ok and path: |
182 if ok and path: |
183 if self.__project: |
183 if self.__project: |