17 from .ConfigurationPageBase import ConfigurationPageBase |
17 from .ConfigurationPageBase import ConfigurationPageBase |
18 from .Ui_PluginManagerPage import Ui_PluginManagerPage |
18 from .Ui_PluginManagerPage import Ui_PluginManagerPage |
19 |
19 |
20 import Preferences |
20 import Preferences |
21 import Utilities |
21 import Utilities |
|
22 |
22 |
23 |
23 class PluginManagerPage(ConfigurationPageBase, Ui_PluginManagerPage): |
24 class PluginManagerPage(ConfigurationPageBase, Ui_PluginManagerPage): |
24 """ |
25 """ |
25 Class implementing the Plugin Manager configuration page. |
26 Class implementing the Plugin Manager configuration page. |
26 """ |
27 """ |
42 |
43 |
43 def save(self): |
44 def save(self): |
44 """ |
45 """ |
45 Public slot to save the Viewmanager configuration. |
46 Public slot to save the Viewmanager configuration. |
46 """ |
47 """ |
47 Preferences.setPluginManager("ActivateExternal", |
48 Preferences.setPluginManager("ActivateExternal", |
48 self.activateExternalPluginsCheckBox.isChecked()) |
49 self.activateExternalPluginsCheckBox.isChecked()) |
49 Preferences.setPluginManager("DownloadPath", |
50 Preferences.setPluginManager("DownloadPath", |
50 self.downloadDirEdit.text()) |
51 self.downloadDirEdit.text()) |
51 |
52 |
52 @pyqtSlot() |
53 @pyqtSlot() |
53 def on_downloadDirButton_clicked(self): |
54 def on_downloadDirButton_clicked(self): |
54 """ |
55 """ |
64 dn = Utilities.toNativeSeparators(directory) |
65 dn = Utilities.toNativeSeparators(directory) |
65 while dn.endswith(os.sep): |
66 while dn.endswith(os.sep): |
66 dn = dn[:-1] |
67 dn = dn[:-1] |
67 self.downloadDirEdit.setText(dn) |
68 self.downloadDirEdit.setText(dn) |
68 |
69 |
|
70 |
69 def create(dlg): |
71 def create(dlg): |
70 """ |
72 """ |
71 Module function to create the configuration page. |
73 Module function to create the configuration page. |
72 |
74 |
73 @param dlg reference to the configuration dialog |
75 @param dlg reference to the configuration dialog |