93 ## _syncManager = None |
93 ## _syncManager = None |
94 ## _speedDial = None |
94 ## _speedDial = None |
95 ## _personalInformationManager = None |
95 ## _personalInformationManager = None |
96 ## _greaseMonkeyManager = None |
96 ## _greaseMonkeyManager = None |
97 _notification = None |
97 _notification = None |
98 ## _featurePermissionManager = None |
98 _featurePermissionManager = None |
99 ## _flashCookieManager = None |
99 ## _flashCookieManager = None |
100 |
100 |
101 def __init__(self, home, path, parent, name, fromEric=False, |
101 def __init__(self, home, path, parent, name, fromEric=False, |
102 initShortcutsOnly=False, searchWord=None, |
102 initShortcutsOnly=False, searchWord=None, |
103 private=False): |
103 private=False): |
1365 if not self.__initShortcutsOnly: |
1365 if not self.__initShortcutsOnly: |
1366 self.editMessageFilterAct.triggered.connect( |
1366 self.editMessageFilterAct.triggered.connect( |
1367 E5ErrorMessage.editMessageFilters) |
1367 E5ErrorMessage.editMessageFilters) |
1368 self.__actions.append(self.editMessageFilterAct) |
1368 self.__actions.append(self.editMessageFilterAct) |
1369 |
1369 |
1370 # TODO: Feature Permission |
1370 self.featurePermissionAct = E5Action( |
1371 ## self.featurePermissionAct = E5Action( |
1371 self.tr('Edit HTML5 Feature Permissions'), |
1372 ## self.tr('Edit HTML5 Feature Permissions'), |
1372 UI.PixmapCache.getIcon("featurePermission.png"), |
1373 ## UI.PixmapCache.getIcon("featurePermission.png"), |
1373 self.tr('Edit HTML5 Feature Permissions...'), 0, 0, self, |
1374 ## self.tr('Edit HTML5 Feature Permissions...'), 0, 0, self, |
1374 'webbrowser_edit_feature_permissions') |
1375 ## 'webbrowser_edit_feature_permissions') |
1375 self.featurePermissionAct.setStatusTip(self.tr( |
1376 ## self.featurePermissionAct.setStatusTip(self.tr( |
1376 'Edit the remembered HTML5 feature permissions')) |
1377 ## 'Edit the remembered HTML5 feature permissions')) |
1377 self.featurePermissionAct.setWhatsThis(self.tr( |
1378 ## self.featurePermissionAct.setWhatsThis(self.tr( |
1378 """<b>Edit HTML5 Feature Permissions</b>""" |
1379 ## """<b>Edit HTML5 Feature Permissions</b>""" |
1379 """<p>Opens a dialog to edit the remembered HTML5""" |
1380 ## """<p>Opens a dialog to edit the remembered HTML5""" |
1380 """ feature permissions.</p>""" |
1381 ## """ feature permissions.</p>""" |
1381 )) |
1382 ## )) |
1382 if not self.__initShortcutsOnly: |
1383 ## if not self.__initShortcutsOnly: |
1383 self.featurePermissionAct.triggered.connect( |
1384 ## self.featurePermissionAct.triggered.connect( |
1384 self.__showFeaturePermissionDialog) |
1385 ## self.__showFeaturePermissionDialog) |
1385 self.__actions.append(self.featurePermissionAct) |
1386 ## self.__actions.append(self.featurePermissionAct) |
|
1387 |
1386 |
1388 # TODO: re-enable once Qt 5.6 is available |
1387 # TODO: re-enable once Qt 5.6 is available |
1389 ## if WebBrowserWindow.UseQtHelp or self.__initShortcutsOnly: |
1388 ## if WebBrowserWindow.UseQtHelp or self.__initShortcutsOnly: |
1390 ## self.syncTocAct = E5Action( |
1389 ## self.syncTocAct = E5Action( |
1391 ## self.tr('Sync with Table of Contents'), |
1390 ## self.tr('Sync with Table of Contents'), |
1856 ## menu.addAction(self.cookiesAct) |
1855 ## menu.addAction(self.cookiesAct) |
1857 ## menu.addAction(self.flashCookiesAct) |
1856 ## menu.addAction(self.flashCookiesAct) |
1858 ## menu.addAction(self.offlineStorageAct) |
1857 ## menu.addAction(self.offlineStorageAct) |
1859 ## menu.addAction(self.personalDataAct) |
1858 ## menu.addAction(self.personalDataAct) |
1860 ## menu.addAction(self.greaseMonkeyAct) |
1859 ## menu.addAction(self.greaseMonkeyAct) |
1861 ## menu.addAction(self.featurePermissionAct) |
1860 menu.addAction(self.featurePermissionAct) |
1862 ## menu.addSeparator() |
1861 ## menu.addSeparator() |
1863 menu.addAction(self.editMessageFilterAct) |
1862 menu.addAction(self.editMessageFilterAct) |
1864 menu.addSeparator() |
1863 menu.addSeparator() |
1865 menu.addAction(self.searchEnginesAct) |
1864 menu.addAction(self.searchEnginesAct) |
1866 ## menu.addSeparator() |
1865 ## menu.addSeparator() |
1996 ## settingstb.addAction(self.cookiesAct) |
1995 ## settingstb.addAction(self.cookiesAct) |
1997 ## settingstb.addAction(self.flashCookiesAct) |
1996 ## settingstb.addAction(self.flashCookiesAct) |
1998 ## settingstb.addAction(self.offlineStorageAct) |
1997 ## settingstb.addAction(self.offlineStorageAct) |
1999 ## settingstb.addAction(self.personalDataAct) |
1998 ## settingstb.addAction(self.personalDataAct) |
2000 ## settingstb.addAction(self.greaseMonkeyAct) |
1999 ## settingstb.addAction(self.greaseMonkeyAct) |
2001 ## settingstb.addAction(self.featurePermissionAct) |
2000 settingstb.addAction(self.featurePermissionAct) |
2002 |
2001 |
2003 ## toolstb = self.addToolBar(self.tr("Tools")) |
2002 ## toolstb = self.addToolBar(self.tr("Tools")) |
2004 ## toolstb.setObjectName("ToolsToolBar") |
2003 ## toolstb.setObjectName("ToolsToolBar") |
2005 ## toolstb.setIconSize(UI.Config.ToolBarIconSize) |
2004 ## toolstb.setIconSize(UI.Config.ToolBarIconSize) |
2006 ## toolstb.addAction(self.feedsManagerAct) |
2005 ## toolstb.addAction(self.feedsManagerAct) |
3399 ## """ |
3398 ## """ |
3400 ## Private slot to show the GreaseMonkey scripts configuration dialog. |
3399 ## Private slot to show the GreaseMonkey scripts configuration dialog. |
3401 ## """ |
3400 ## """ |
3402 ## self.greaseMonkeyManager().showConfigurationDialog() |
3401 ## self.greaseMonkeyManager().showConfigurationDialog() |
3403 ## |
3402 ## |
3404 ## def __showFeaturePermissionDialog(self): |
3403 def __showFeaturePermissionDialog(self): |
3405 ## """ |
3404 """ |
3406 ## Private slot to show the feature permission dialog. |
3405 Private slot to show the feature permission dialog. |
3407 ## """ |
3406 """ |
3408 ## self.featurePermissionManager().showFeaturePermissionsDialog() |
3407 self.featurePermissionManager().showFeaturePermissionsDialog() |
3409 ## |
3408 |
3410 def __showZoomValuesDialog(self): |
3409 def __showZoomValuesDialog(self): |
3411 """ |
3410 """ |
3412 Private slot to show the zoom values management dialog. |
3411 Private slot to show the zoom values management dialog. |
3413 """ |
3412 """ |
3414 from .ZoomManager.ZoomValuesDialog import ZoomValuesDialog |
3413 from .ZoomManager.ZoomValuesDialog import ZoomValuesDialog |
3586 ## from .GreaseMonkey.GreaseMonkeyManager import GreaseMonkeyManager |
3585 ## from .GreaseMonkey.GreaseMonkeyManager import GreaseMonkeyManager |
3587 ## cls._greaseMonkeyManager = GreaseMonkeyManager() |
3586 ## cls._greaseMonkeyManager = GreaseMonkeyManager() |
3588 ## |
3587 ## |
3589 ## return cls._greaseMonkeyManager |
3588 ## return cls._greaseMonkeyManager |
3590 ## |
3589 ## |
3591 ## @classmethod |
3590 @classmethod |
3592 ## def featurePermissionManager(cls): |
3591 def featurePermissionManager(cls): |
3593 ## """ |
3592 """ |
3594 ## Class method to get a reference to the feature permission manager. |
3593 Class method to get a reference to the feature permission manager. |
3595 ## |
3594 |
3596 ## @return reference to the feature permission manager |
3595 @return reference to the feature permission manager |
3597 ## @rtype FeaturePermissionManager |
3596 @rtype FeaturePermissionManager |
3598 ## """ |
3597 """ |
3599 ## if cls._featurePermissionManager is None: |
3598 if cls._featurePermissionManager is None: |
3600 ## from .FeaturePermissions.FeaturePermissionManager import \ |
3599 from .FeaturePermissions.FeaturePermissionManager import \ |
3601 ## FeaturePermissionManager |
3600 FeaturePermissionManager |
3602 ## cls._featurePermissionManager = FeaturePermissionManager() |
3601 cls._featurePermissionManager = FeaturePermissionManager() |
3603 ## |
3602 |
3604 ## return cls._featurePermissionManager |
3603 return cls._featurePermissionManager |
3605 ## |
3604 |
3606 ## @classmethod |
3605 ## @classmethod |
3607 ## def flashCookieManager(cls): |
3606 ## def flashCookieManager(cls): |
3608 ## """ |
3607 ## """ |
3609 ## Class method to get a reference to the flash cookies manager. |
3608 ## Class method to get a reference to the flash cookies manager. |
3610 ## |
3609 ## |