91 ## _downloadManager = None |
91 ## _downloadManager = None |
92 ## _feedsManager = None |
92 ## _feedsManager = None |
93 ## _userAgentsManager = None |
93 ## _userAgentsManager = None |
94 ## _syncManager = None |
94 ## _syncManager = None |
95 ## _speedDial = None |
95 ## _speedDial = None |
96 ## _personalInformationManager = None |
96 _personalInformationManager = None |
97 ## _greaseMonkeyManager = None |
97 ## _greaseMonkeyManager = None |
98 _notification = None |
98 _notification = None |
99 _featurePermissionManager = None |
99 _featurePermissionManager = None |
100 _flashCookieManager = None |
100 _flashCookieManager = None |
101 |
101 |
1312 ## if not self.__initShortcutsOnly: |
1312 ## if not self.__initShortcutsOnly: |
1313 ## self.offlineStorageAct.triggered.connect( |
1313 ## self.offlineStorageAct.triggered.connect( |
1314 ## self.__showOfflineStorageConfiguration) |
1314 ## self.__showOfflineStorageConfiguration) |
1315 ## self.__actions.append(self.offlineStorageAct) |
1315 ## self.__actions.append(self.offlineStorageAct) |
1316 |
1316 |
1317 # TODO: PIM |
1317 self.personalDataAct = E5Action( |
1318 ## self.personalDataAct = E5Action( |
1318 self.tr('Personal Information'), |
1319 ## self.tr('Personal Information'), |
1319 UI.PixmapCache.getIcon("pim.png"), |
1320 ## UI.PixmapCache.getIcon("pim.png"), |
1320 self.tr('Personal Information...'), |
1321 ## self.tr('Personal Information...'), |
1321 0, 0, |
1322 ## 0, 0, |
1322 self, 'webbrowser_personal_information') |
1323 ## self, 'webbrowser_personal_information') |
1323 self.personalDataAct.setStatusTip(self.tr( |
1324 ## self.personalDataAct.setStatusTip(self.tr( |
1324 'Configure personal information for completing form fields')) |
1325 ## 'Configure personal information for completing form fields')) |
1325 self.personalDataAct.setWhatsThis(self.tr( |
1326 ## self.personalDataAct.setWhatsThis(self.tr( |
1326 """<b>Personal Information...</b>""" |
1327 ## """<b>Personal Information...</b>""" |
1327 """<p>Opens a dialog to configure the personal information""" |
1328 ## """<p>Opens a dialog to configure the personal information""" |
1328 """ used for completing form fields.</p>""" |
1329 ## """ used for completing form fields.</p>""" |
1329 )) |
1330 ## )) |
1330 if not self.__initShortcutsOnly: |
1331 ## if not self.__initShortcutsOnly: |
1331 self.personalDataAct.triggered.connect( |
1332 ## self.personalDataAct.triggered.connect( |
1332 self.__showPersonalInformationDialog) |
1333 ## self.__showPersonalInformationDialog) |
1333 self.__actions.append(self.personalDataAct) |
1334 ## self.__actions.append(self.personalDataAct) |
|
1335 |
1334 |
1336 # TODO: GreaseMonkey |
1335 # TODO: GreaseMonkey |
1337 ## self.greaseMonkeyAct = E5Action( |
1336 ## self.greaseMonkeyAct = E5Action( |
1338 ## self.tr('GreaseMonkey Scripts'), |
1337 ## self.tr('GreaseMonkey Scripts'), |
1339 ## UI.PixmapCache.getIcon("greaseMonkey.png"), |
1338 ## UI.PixmapCache.getIcon("greaseMonkey.png"), |
1855 menu.addAction(self.prefAct) |
1854 menu.addAction(self.prefAct) |
1856 ## menu.addAction(self.acceptedLanguagesAct) |
1855 ## menu.addAction(self.acceptedLanguagesAct) |
1857 ## menu.addAction(self.cookiesAct) |
1856 ## menu.addAction(self.cookiesAct) |
1858 menu.addAction(self.flashCookiesAct) |
1857 menu.addAction(self.flashCookiesAct) |
1859 ## menu.addAction(self.offlineStorageAct) |
1858 ## menu.addAction(self.offlineStorageAct) |
1860 ## menu.addAction(self.personalDataAct) |
1859 menu.addAction(self.personalDataAct) |
1861 ## menu.addAction(self.greaseMonkeyAct) |
1860 ## menu.addAction(self.greaseMonkeyAct) |
1862 menu.addAction(self.featurePermissionAct) |
1861 menu.addAction(self.featurePermissionAct) |
1863 ## menu.addSeparator() |
1862 ## menu.addSeparator() |
1864 menu.addAction(self.editMessageFilterAct) |
1863 menu.addAction(self.editMessageFilterAct) |
1865 menu.addSeparator() |
1864 menu.addSeparator() |
1995 settingstb.addAction(self.prefAct) |
1994 settingstb.addAction(self.prefAct) |
1996 ## settingstb.addAction(self.acceptedLanguagesAct) |
1995 ## settingstb.addAction(self.acceptedLanguagesAct) |
1997 ## settingstb.addAction(self.cookiesAct) |
1996 ## settingstb.addAction(self.cookiesAct) |
1998 settingstb.addAction(self.flashCookiesAct) |
1997 settingstb.addAction(self.flashCookiesAct) |
1999 ## settingstb.addAction(self.offlineStorageAct) |
1998 ## settingstb.addAction(self.offlineStorageAct) |
2000 ## settingstb.addAction(self.personalDataAct) |
1999 settingstb.addAction(self.personalDataAct) |
2001 ## settingstb.addAction(self.greaseMonkeyAct) |
2000 ## settingstb.addAction(self.greaseMonkeyAct) |
2002 settingstb.addAction(self.featurePermissionAct) |
2001 settingstb.addAction(self.featurePermissionAct) |
2003 |
2002 |
2004 ## toolstb = self.addToolBar(self.tr("Tools")) |
2003 ## toolstb = self.addToolBar(self.tr("Tools")) |
2005 ## toolstb.setObjectName("ToolsToolBar") |
2004 ## toolstb.setObjectName("ToolsToolBar") |
3374 ## Private slot to open the ClickToFlash whitelist configuration dialog. |
3373 ## Private slot to open the ClickToFlash whitelist configuration dialog. |
3375 ## """ |
3374 ## """ |
3376 ## from .HelpBrowserWV import HelpWebPage |
3375 ## from .HelpBrowserWV import HelpWebPage |
3377 ## HelpWebPage.webPluginFactory().plugin("ClickToFlash").configure() |
3376 ## HelpWebPage.webPluginFactory().plugin("ClickToFlash").configure() |
3378 ## |
3377 ## |
3379 ## def __showPersonalInformationDialog(self): |
3378 def __showPersonalInformationDialog(self): |
3380 ## """ |
3379 """ |
3381 ## Private slot to show the Personal Information configuration dialog. |
3380 Private slot to show the Personal Information configuration dialog. |
3382 ## """ |
3381 """ |
3383 ## self.personalInformationManager().showConfigurationDialog() |
3382 self.personalInformationManager().showConfigurationDialog() |
3384 ## |
3383 |
3385 ## def __showGreaseMonkeyConfigDialog(self): |
3384 ## def __showGreaseMonkeyConfigDialog(self): |
3386 ## """ |
3385 ## """ |
3387 ## Private slot to show the GreaseMonkey scripts configuration dialog. |
3386 ## Private slot to show the GreaseMonkey scripts configuration dialog. |
3388 ## """ |
3387 ## """ |
3389 ## self.greaseMonkeyManager().showConfigurationDialog() |
3388 ## self.greaseMonkeyManager().showConfigurationDialog() |
3545 ## from .Download.DownloadManager import DownloadManager |
3544 ## from .Download.DownloadManager import DownloadManager |
3546 ## cls._downloadManager = DownloadManager() |
3545 ## cls._downloadManager = DownloadManager() |
3547 ## |
3546 ## |
3548 ## return cls._downloadManager |
3547 ## return cls._downloadManager |
3549 ## |
3548 ## |
3550 ## @classmethod |
3549 @classmethod |
3551 ## def personalInformationManager(cls): |
3550 def personalInformationManager(cls): |
3552 ## """ |
3551 """ |
3553 ## Class method to get a reference to the personal information manager. |
3552 Class method to get a reference to the personal information manager. |
3554 ## |
3553 |
3555 ## @return reference to the personal information manager |
3554 @return reference to the personal information manager |
3556 ## (PersonalInformationManager) |
3555 (PersonalInformationManager) |
3557 ## """ |
3556 """ |
3558 ## if cls._personalInformationManager is None: |
3557 if cls._personalInformationManager is None: |
3559 ## from .PersonalInformationManager.PersonalInformationManager \ |
3558 from .PersonalInformationManager.PersonalInformationManager \ |
3560 ## import PersonalInformationManager |
3559 import PersonalInformationManager |
3561 ## cls._personalInformationManager = PersonalInformationManager() |
3560 cls._personalInformationManager = PersonalInformationManager() |
3562 ## |
3561 |
3563 ## return cls._personalInformationManager |
3562 return cls._personalInformationManager |
3564 ## |
3563 |
3565 ## @classmethod |
3564 ## @classmethod |
3566 ## def greaseMonkeyManager(cls): |
3565 ## def greaseMonkeyManager(cls): |
3567 ## """ |
3566 ## """ |
3568 ## Class method to get a reference to the GreaseMonkey manager. |
3567 ## Class method to get a reference to the GreaseMonkey manager. |
3569 ## |
3568 ## |