281 ## self.__searchWindow.linkActivated.connect( |
281 ## self.__searchWindow.linkActivated.connect( |
282 ## self.__linkActivated) |
282 ## self.__linkActivated) |
283 ## self.__searchWindow.escapePressed.connect( |
283 ## self.__searchWindow.escapePressed.connect( |
284 ## self.__activateCurrentBrowser) |
284 ## self.__activateCurrentBrowser) |
285 |
285 |
286 state = Preferences.getHelp("WebBrowserState") |
286 state = Preferences.getWebBrowser("WebBrowserState") |
287 self.restoreState(state) |
287 self.restoreState(state) |
288 |
288 |
289 ## self.__initHelpDb() |
289 ## self.__initHelpDb() |
290 |
290 |
291 ## self.__virusTotal = VirusTotalAPI(self) |
291 ## self.__virusTotal = VirusTotalAPI(self) |
1760 ## menu.addSeparator() |
1760 ## menu.addSeparator() |
1761 ## menu.addAction(self.toolsMonitorAct) |
1761 ## menu.addAction(self.toolsMonitorAct) |
1762 |
1762 |
1763 menu = mb.addMenu(self.tr("&Window")) |
1763 menu = mb.addMenu(self.tr("&Window")) |
1764 menu.setTearOffEnabled(True) |
1764 menu.setTearOffEnabled(True) |
1765 menu.addAction(self.showDownloadManagerAct) |
1765 ## menu.addAction(self.showDownloadManagerAct) |
1766 ## if WebBrowserWindow.UseQtHelp: |
1766 ## if WebBrowserWindow.UseQtHelp: |
1767 ## menu.addSeparator() |
1767 ## menu.addSeparator() |
1768 ## menu.addAction(self.showTocAct) |
1768 ## menu.addAction(self.showTocAct) |
1769 ## menu.addAction(self.showIndexAct) |
1769 ## menu.addAction(self.showIndexAct) |
1770 ## menu.addAction(self.showSearchAct) |
1770 ## menu.addAction(self.showSearchAct) |
1771 |
1771 ## |
1772 mb.addSeparator() |
1772 ## mb.addSeparator() |
1773 |
1773 |
1774 menu = mb.addMenu(self.tr('&Help')) |
1774 menu = mb.addMenu(self.tr('&Help')) |
1775 menu.setTearOffEnabled(True) |
1775 menu.setTearOffEnabled(True) |
1776 menu.addAction(self.aboutAct) |
1776 menu.addAction(self.aboutAct) |
1777 menu.addAction(self.aboutQtAct) |
1777 menu.addAction(self.aboutQtAct) |
2428 ## self.setWindowState(self.windowState() | Qt.WindowFullScreen) |
2428 ## self.setWindowState(self.windowState() | Qt.WindowFullScreen) |
2429 ## self.menuBar().hide() |
2429 ## self.menuBar().hide() |
2430 ## self.fullScreenAct.setIcon( |
2430 ## self.fullScreenAct.setIcon( |
2431 ## UI.PixmapCache.getIcon("windowRestore.png")) |
2431 ## UI.PixmapCache.getIcon("windowRestore.png")) |
2432 ## self.fullScreenAct.setIconText(self.tr('Restore Window')) |
2432 ## self.fullScreenAct.setIconText(self.tr('Restore Window')) |
2433 ## |
2433 |
2434 ## def __isFullScreen(self): |
2434 def __isFullScreen(self): |
2435 ## """ |
2435 """ |
2436 ## Private method to determine, if the window is in full screen mode. |
2436 Private method to determine, if the window is in full screen mode. |
2437 ## |
2437 |
2438 ## @return flag indicating full screen mode (boolean) |
2438 @return flag indicating full screen mode (boolean) |
2439 ## """ |
2439 """ |
2440 ## return self.windowState() & Qt.WindowFullScreen |
2440 return self.windowState() & Qt.WindowFullScreen |
2441 |
2441 |
2442 def __copy(self): |
2442 def __copy(self): |
2443 """ |
2443 """ |
2444 Private slot called to handle the copy action. |
2444 Private slot called to handle the copy action. |
2445 """ |
2445 """ |