1731 |
1731 |
1732 self.backAct.setEnabled(False) |
1732 self.backAct.setEnabled(False) |
1733 self.forwardAct.setEnabled(False) |
1733 self.forwardAct.setEnabled(False) |
1734 |
1734 |
1735 # now read the keyboard shortcuts for the actions |
1735 # now read the keyboard shortcuts for the actions |
1736 # TODO: change this to webBrowser |
1736 # TODO: shortcuts: change this to webBrowser |
1737 Shortcuts.readShortcuts(helpViewer=self) |
1737 Shortcuts.readShortcuts(helpViewer=self) |
1738 |
1738 |
1739 def getActions(self): |
1739 def getActions(self): |
1740 """ |
1740 """ |
1741 Public method to get a list of all actions. |
1741 Public method to get a list of all actions. |
2731 self.setLoadingActions(cb.isLoading()) |
2731 self.setLoadingActions(cb.isLoading()) |
2732 |
2732 |
2733 # set value of zoom widget |
2733 # set value of zoom widget |
2734 self.__zoomWidget.setValue(cb.zoomValue()) |
2734 self.__zoomWidget.setValue(cb.zoomValue()) |
2735 |
2735 |
2736 # TODO: Preferences dialog |
|
2737 def __showPreferences(self): |
2736 def __showPreferences(self): |
2738 """ |
2737 """ |
2739 Private slot to set the preferences. |
2738 Private slot to set the preferences. |
2740 """ |
2739 """ |
2741 # TODO: Preferences |
2740 from Preferences.ConfigurationDialog import ConfigurationDialog |
2742 ## from Preferences.ConfigurationDialog import ConfigurationDialog |
2741 dlg = ConfigurationDialog( |
2743 ## dlg = ConfigurationDialog( |
2742 self, 'Configuration', True, fromEric=self.__fromEric, |
2744 ## self, 'Configuration', True, fromEric=self.__fromEric, |
2743 displayMode=ConfigurationDialog.WebBrowserMode) |
2745 ## displayMode=ConfigurationDialog.WebBrowserMode) |
2744 dlg.preferencesChanged.connect(self.preferencesChanged) |
2746 ## dlg.preferencesChanged.connect(self.preferencesChanged) |
2745 dlg.masterPasswordChanged.connect(self.masterPasswordChanged) |
2747 ## dlg.masterPasswordChanged.connect(self.masterPasswordChanged) |
2746 dlg.show() |
2748 ## dlg.show() |
2747 if self.__lastConfigurationPageName: |
2749 ## if self.__lastConfigurationPageName: |
2748 dlg.showConfigurationPageByName(self.__lastConfigurationPageName) |
2750 ## dlg.showConfigurationPageByName(self.__lastConfigurationPageName) |
2749 else: |
2751 ## else: |
2750 dlg.showConfigurationPageByName("empty") |
2752 ## dlg.showConfigurationPageByName("empty") |
2751 dlg.exec_() |
2753 ## dlg.exec_() |
2752 QApplication.processEvents() |
2754 ## QApplication.processEvents() |
2753 if dlg.result() == QDialog.Accepted: |
2755 ## if dlg.result() == QDialog.Accepted: |
2754 dlg.setPreferences() |
2756 ## dlg.setPreferences() |
2755 Preferences.syncPreferences() |
2757 ## Preferences.syncPreferences() |
2756 self.preferencesChanged() |
2758 ## self.preferencesChanged() |
2757 self.__lastConfigurationPageName = dlg.getConfigurationPageName() |
2759 ## self.__lastConfigurationPageName = dlg.getConfigurationPageName() |
|
2760 |
2758 |
2761 def preferencesChanged(self): |
2759 def preferencesChanged(self): |
2762 """ |
2760 """ |
2763 Public slot to handle a change of preferences. |
2761 Public slot to handle a change of preferences. |
2764 """ |
2762 """ |