88 _personalInformationManager = None |
88 _personalInformationManager = None |
89 _greaseMonkeyManager = None |
89 _greaseMonkeyManager = None |
90 _notification = None |
90 _notification = None |
91 _featurePermissionManager = None |
91 _featurePermissionManager = None |
92 _flashCookieManager = None |
92 _flashCookieManager = None |
|
93 _zoomManager = None |
93 |
94 |
94 def __init__(self, home, path, parent, name, fromEric=False, |
95 def __init__(self, home, path, parent, name, fromEric=False, |
95 initShortcutsOnly=False, searchWord=None): |
96 initShortcutsOnly=False, searchWord=None): |
96 """ |
97 """ |
97 Constructor |
98 Constructor |
1557 if not self.initShortcutsOnly: |
1558 if not self.initShortcutsOnly: |
1558 self.synchronizationAct.triggered.connect( |
1559 self.synchronizationAct.triggered.connect( |
1559 self.__showSyncDialog) |
1560 self.__showSyncDialog) |
1560 self.__actions.append(self.synchronizationAct) |
1561 self.__actions.append(self.synchronizationAct) |
1561 |
1562 |
|
1563 self.zoomValuesAct = E5Action( |
|
1564 self.tr('Manage Saved Zoom Values'), |
|
1565 UI.PixmapCache.getIcon("zoomReset.png"), |
|
1566 self.tr('Manage Saved Zoom Values...'), |
|
1567 0, 0, |
|
1568 self, 'help_manage_zoom_values') |
|
1569 self.zoomValuesAct.setStatusTip(self.tr( |
|
1570 'Manage the saved zoom values')) |
|
1571 self.zoomValuesAct.setWhatsThis(self.tr( |
|
1572 """<b>Manage Saved Zoom Values...</b>""" |
|
1573 """<p>Opens a dialog to manage the saved zoom values.</p>""" |
|
1574 )) |
|
1575 if not self.initShortcutsOnly: |
|
1576 self.zoomValuesAct.triggered.connect(self.__showZoomValuesDialog) |
|
1577 self.__actions.append(self.zoomValuesAct) |
|
1578 |
1562 self.backAct.setEnabled(False) |
1579 self.backAct.setEnabled(False) |
1563 self.forwardAct.setEnabled(False) |
1580 self.forwardAct.setEnabled(False) |
1564 |
1581 |
1565 # now read the keyboard shortcuts for the actions |
1582 # now read the keyboard shortcuts for the actions |
1566 Shortcuts.readShortcuts(helpViewer=self) |
1583 Shortcuts.readShortcuts(helpViewer=self) |
1680 menu.addAction(self.searchEnginesAct) |
1697 menu.addAction(self.searchEnginesAct) |
1681 menu.addSeparator() |
1698 menu.addSeparator() |
1682 menu.addAction(self.passwordsAct) |
1699 menu.addAction(self.passwordsAct) |
1683 if SSL_AVAILABLE: |
1700 if SSL_AVAILABLE: |
1684 menu.addAction(self.certificatesAct) |
1701 menu.addAction(self.certificatesAct) |
|
1702 menu.addSeparator() |
|
1703 menu.addAction(self.zoomValuesAct) |
1685 menu.addSeparator() |
1704 menu.addSeparator() |
1686 menu.addAction(self.adblockAct) |
1705 menu.addAction(self.adblockAct) |
1687 menu.addAction(self.flashblockAct) |
1706 menu.addAction(self.flashblockAct) |
1688 menu.addSeparator() |
1707 menu.addSeparator() |
1689 self.__settingsMenu = menu |
1708 self.__settingsMenu = menu |
2998 dlg = HelpClearPrivateDataDialog(self) |
3017 dlg = HelpClearPrivateDataDialog(self) |
2999 if dlg.exec_() == QDialog.Accepted: |
3018 if dlg.exec_() == QDialog.Accepted: |
3000 # browsing history, search history, favicons, disk cache, cookies, |
3019 # browsing history, search history, favicons, disk cache, cookies, |
3001 # passwords, web databases, downloads, Flash cookies |
3020 # passwords, web databases, downloads, Flash cookies |
3002 (history, searches, favicons, cache, cookies, |
3021 (history, searches, favicons, cache, cookies, |
3003 passwords, databases, downloads, flashCookies, historyPeriod) = \ |
3022 passwords, databases, downloads, flashCookies, zoomValues, |
3004 dlg.getData() |
3023 historyPeriod) = dlg.getData() |
3005 if history: |
3024 if history: |
3006 self.historyManager().clear(historyPeriod) |
3025 self.historyManager().clear(historyPeriod) |
3007 self.tabWidget.clearClosedTabsList() |
3026 self.tabWidget.clearClosedTabsList() |
3008 if searches: |
3027 if searches: |
3009 self.searchEdit.clear() |
3028 self.searchEdit.clear() |
3039 langCode = language.split("[")[1][:2] |
3058 langCode = language.split("[")[1][:2] |
3040 self.newTab( |
3059 self.newTab( |
3041 "http://www.macromedia.com/support/documentation/" |
3060 "http://www.macromedia.com/support/documentation/" |
3042 "{0}/flashplayer/help/settings_manager07.html".format( |
3061 "{0}/flashplayer/help/settings_manager07.html".format( |
3043 langCode)) |
3062 langCode)) |
|
3063 if zoomValues: |
|
3064 self.zoomManager().clear() |
3044 |
3065 |
3045 def __showEnginesConfigurationDialog(self): |
3066 def __showEnginesConfigurationDialog(self): |
3046 """ |
3067 """ |
3047 Private slot to show the search engines configuration dialog. |
3068 Private slot to show the search engines configuration dialog. |
3048 """ |
3069 """ |
3106 def __showFeaturePermissionDialog(self): |
3127 def __showFeaturePermissionDialog(self): |
3107 """ |
3128 """ |
3108 Private slot to show the feature permission dialog. |
3129 Private slot to show the feature permission dialog. |
3109 """ |
3130 """ |
3110 self.featurePermissionManager().showFeaturePermissionsDialog() |
3131 self.featurePermissionManager().showFeaturePermissionsDialog() |
|
3132 |
|
3133 def __showZoomValuesDialog(self): |
|
3134 """ |
|
3135 Private slot to show the zoom values management dialog. |
|
3136 """ |
|
3137 from .ZoomManager.ZoomValuesDialog import ZoomValuesDialog |
|
3138 |
|
3139 dlg = ZoomValuesDialog(self) |
|
3140 dlg.exec_() |
3111 |
3141 |
3112 def __showNetworkMonitor(self): |
3142 def __showNetworkMonitor(self): |
3113 """ |
3143 """ |
3114 Private slot to show the network monitor dialog. |
3144 Private slot to show the network monitor dialog. |
3115 """ |
3145 """ |
3335 @classmethod |
3365 @classmethod |
3336 def flashCookieManager(cls): |
3366 def flashCookieManager(cls): |
3337 """ |
3367 """ |
3338 Class method to get a reference to the flash cookies manager. |
3368 Class method to get a reference to the flash cookies manager. |
3339 |
3369 |
3340 @return reference to the feature permission manager |
3370 @return reference to the flash cookies manager |
3341 @rtype FlashCookieManager |
3371 @rtype FlashCookieManager |
3342 """ |
3372 """ |
3343 if cls._flashCookieManager is None: |
3373 if cls._flashCookieManager is None: |
3344 from .FlashCookieManager.FlashCookieManager import \ |
3374 from .FlashCookieManager.FlashCookieManager import \ |
3345 FlashCookieManager |
3375 FlashCookieManager |
3346 cls._flashCookieManager = FlashCookieManager() |
3376 cls._flashCookieManager = FlashCookieManager() |
3347 |
3377 |
3348 return cls._flashCookieManager |
3378 return cls._flashCookieManager |
|
3379 |
|
3380 @classmethod |
|
3381 def zoomManager(cls): |
|
3382 """ |
|
3383 Class method to get a reference to the zoom values manager. |
|
3384 |
|
3385 @return reference to the zoom values manager |
|
3386 @rtype ZoomManager |
|
3387 """ |
|
3388 if cls._zoomManager is None: |
|
3389 from .ZoomManager.ZoomManager import ZoomManager |
|
3390 cls._zoomManager = ZoomManager() |
|
3391 |
|
3392 return cls._zoomManager |
3349 |
3393 |
3350 @classmethod |
3394 @classmethod |
3351 def mainWindow(cls): |
3395 def mainWindow(cls): |
3352 """ |
3396 """ |
3353 Class method to get a reference to the main window. |
3397 Class method to get a reference to the main window. |