33 self.setObjectName("PluginManagerPage") |
33 self.setObjectName("PluginManagerPage") |
34 |
34 |
35 self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit) |
35 self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit) |
36 |
36 |
37 # set initial values |
37 # set initial values |
38 self.activateExternalPluginsCheckBox.setChecked(\ |
38 self.activateExternalPluginsCheckBox.setChecked( |
39 Preferences.getPluginManager("ActivateExternal")) |
39 Preferences.getPluginManager("ActivateExternal")) |
40 self.downloadDirEdit.setText(\ |
40 self.downloadDirEdit.setText( |
41 Preferences.getPluginManager("DownloadPath")) |
41 Preferences.getPluginManager("DownloadPath")) |
42 |
42 |
43 def save(self): |
43 def save(self): |
44 """ |
44 """ |
45 Public slot to save the Viewmanager configuration. |
45 Public slot to save the Viewmanager configuration. |
52 @pyqtSlot() |
52 @pyqtSlot() |
53 def on_downloadDirButton_clicked(self): |
53 def on_downloadDirButton_clicked(self): |
54 """ |
54 """ |
55 Private slot to handle the directory selection via dialog. |
55 Private slot to handle the directory selection via dialog. |
56 """ |
56 """ |
57 directory = QFileDialog.getExistingDirectory(\ |
57 directory = QFileDialog.getExistingDirectory( |
58 self, |
58 self, |
59 self.trUtf8("Select plugins download directory"), |
59 self.trUtf8("Select plugins download directory"), |
60 self.downloadDirEdit.text(), |
60 self.downloadDirEdit.text(), |
61 QFileDialog.Options(QFileDialog.ShowDirsOnly)) |
61 QFileDialog.Options(QFileDialog.ShowDirsOnly)) |
62 |
62 |