108 else: |
108 else: |
109 self.addInstalledApiFileButton.setEnabled(False) |
109 self.addInstalledApiFileButton.setEnabled(False) |
110 |
110 |
111 self.addPluginApiFileButton.setEnabled( |
111 self.addPluginApiFileButton.setEnabled( |
112 len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage)) |
112 len(self.pluginManager.getPluginApiFiles(self.currentApiLanguage)) |
113 > 0) |
113 > 0) |
114 |
114 |
115 def __editorGetApisFromApiList(self): |
115 def __editorGetApisFromApiList(self): |
116 """ |
116 """ |
117 Private slot to retrieve the api filenames from the list. |
117 Private slot to retrieve the api filenames from the list. |
118 |
118 |
177 installedAPIFilesShort, |
177 installedAPIFilesShort, |
178 0, False) |
178 0, False) |
179 if ok: |
179 if ok: |
180 self.apiList.addItem(Utilities.toNativeSeparators( |
180 self.apiList.addItem(Utilities.toNativeSeparators( |
181 QFileInfo(QDir(installedAPIFilesPath), file) |
181 QFileInfo(QDir(installedAPIFilesPath), file) |
182 .absoluteFilePath())) |
182 .absoluteFilePath())) |
183 else: |
183 else: |
184 E5MessageBox.warning( |
184 E5MessageBox.warning( |
185 self, |
185 self, |
186 self.trUtf8("Add from installed APIs"), |
186 self.trUtf8("Add from installed APIs"), |
187 self.trUtf8("""There are no APIs installed yet.""" |
187 self.trUtf8("""There are no APIs installed yet.""" |