62 self.__cancelButton = self.buttonBox.button(QDialogButtonBox.Cancel) |
62 self.__cancelButton = self.buttonBox.button(QDialogButtonBox.Cancel) |
63 |
63 |
64 userDir = self.__pluginManager.getPluginDir("user") |
64 userDir = self.__pluginManager.getPluginDir("user") |
65 if userDir is not None: |
65 if userDir is not None: |
66 self.destinationCombo.addItem(self.trUtf8("User plugins directory"), |
66 self.destinationCombo.addItem(self.trUtf8("User plugins directory"), |
67 QVariant(userDir)) |
67 userDir) |
68 |
68 |
69 globalDir = self.__pluginManager.getPluginDir("global") |
69 globalDir = self.__pluginManager.getPluginDir("global") |
70 if globalDir is not None and os.access(globalDir, os.W_OK): |
70 if globalDir is not None and os.access(globalDir, os.W_OK): |
71 self.destinationCombo.addItem(self.trUtf8("Global plugins directory"), |
71 self.destinationCombo.addItem(self.trUtf8("Global plugins directory"), |
72 QVariant(globalDir)) |
72 globalDir) |
73 |
73 |
74 self.__installedDirs = [] |
74 self.__installedDirs = [] |
75 self.__installedFiles = [] |
75 self.__installedFiles = [] |
76 |
76 |
77 self.__restartNeeded = False |
77 self.__restartNeeded = False |
132 |
132 |
133 msg = self.trUtf8("Plugin ZIP-Archives:\n{0}\n\nDestination:\n{1} ({2})")\ |
133 msg = self.trUtf8("Plugin ZIP-Archives:\n{0}\n\nDestination:\n{1} ({2})")\ |
134 .format("\n".join(self.__createArchivesList()), |
134 .format("\n".join(self.__createArchivesList()), |
135 self.destinationCombo.currentText(), |
135 self.destinationCombo.currentText(), |
136 self.destinationCombo.itemData( |
136 self.destinationCombo.itemData( |
137 self.destinationCombo.currentIndex()).toString() |
137 self.destinationCombo.currentIndex()) |
138 ) |
138 ) |
139 self.summaryEdit.setPlainText(msg) |
139 self.summaryEdit.setPlainText(msg) |
140 |
140 |
141 @pyqtSlot() |
141 @pyqtSlot() |
142 def on_addArchivesButton_clicked(self): |
142 def on_addArchivesButton_clicked(self): |