7 Module implementing the Viewmanager configuration page. |
7 Module implementing the Viewmanager configuration page. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import pyqtSlot |
10 from PyQt6.QtCore import pyqtSlot |
11 |
11 |
12 from E5Gui.E5Application import e5App |
12 from E5Gui.EricApplication import ericApp |
13 |
13 |
14 from .ConfigurationPageBase import ConfigurationPageBase |
14 from .ConfigurationPageBase import ConfigurationPageBase |
15 from .Ui_ViewmanagerPage import Ui_ViewmanagerPage |
15 from .Ui_ViewmanagerPage import Ui_ViewmanagerPage |
16 |
16 |
17 import Preferences |
17 import Preferences |
28 super().__init__() |
28 super().__init__() |
29 self.setupUi(self) |
29 self.setupUi(self) |
30 self.setObjectName("ViewmanagerPage") |
30 self.setObjectName("ViewmanagerPage") |
31 |
31 |
32 # set initial values |
32 # set initial values |
33 self.pluginManager = e5App().getObject("PluginManager") |
33 self.pluginManager = ericApp().getObject("PluginManager") |
34 self.viewmanagers = self.pluginManager.getPluginDisplayStrings( |
34 self.viewmanagers = self.pluginManager.getPluginDisplayStrings( |
35 "viewmanager") |
35 "viewmanager") |
36 self.windowComboBox.clear() |
36 self.windowComboBox.clear() |
37 currentVm = Preferences.getViewManager() |
37 currentVm = Preferences.getViewManager() |
38 |
38 |