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