393 self.openTabAct = E5Action(self.trUtf8('Open File in New Tab'), |
393 self.openTabAct = E5Action(self.trUtf8('Open File in New Tab'), |
394 UI.PixmapCache.getIcon("openNewTab.png"), |
394 UI.PixmapCache.getIcon("openNewTab.png"), |
395 self.trUtf8('Open File in New &Tab'), |
395 self.trUtf8('Open File in New &Tab'), |
396 QKeySequence(self.trUtf8("Shift+Ctrl+O","File|Open in new tab")), |
396 QKeySequence(self.trUtf8("Shift+Ctrl+O","File|Open in new tab")), |
397 0, self, 'help_file_open_tab') |
397 0, self, 'help_file_open_tab') |
398 self.openTabAct.setStatusTip(\ |
398 self.openTabAct.setStatusTip( |
399 self.trUtf8('Open a help file for display in a new tab')) |
399 self.trUtf8('Open a help file for display in a new tab')) |
400 self.openTabAct.setWhatsThis(self.trUtf8( |
400 self.openTabAct.setWhatsThis(self.trUtf8( |
401 """<b>Open File in New Tab</b>""" |
401 """<b>Open File in New Tab</b>""" |
402 """<p>This opens a new help file for display in a new tab.""" |
402 """<p>This opens a new help file for display in a new tab.""" |
403 """ It pops up a file selection dialog.</p>""" |
403 """ It pops up a file selection dialog.</p>""" |
408 self.saveAsAct = E5Action(self.trUtf8('Save As '), |
408 self.saveAsAct = E5Action(self.trUtf8('Save As '), |
409 UI.PixmapCache.getIcon("fileSaveAs.png"), |
409 UI.PixmapCache.getIcon("fileSaveAs.png"), |
410 self.trUtf8('&Save As...'), |
410 self.trUtf8('&Save As...'), |
411 QKeySequence(self.trUtf8("Shift+Ctrl+S","File|Save As")), |
411 QKeySequence(self.trUtf8("Shift+Ctrl+S","File|Save As")), |
412 0, self, 'help_file_save_as') |
412 0, self, 'help_file_save_as') |
413 self.saveAsAct.setStatusTip(\ |
413 self.saveAsAct.setStatusTip( |
414 self.trUtf8('Save the current page to disk')) |
414 self.trUtf8('Save the current page to disk')) |
415 self.saveAsAct.setWhatsThis(self.trUtf8( |
415 self.saveAsAct.setWhatsThis(self.trUtf8( |
416 """<b>Save As...</b>""" |
416 """<b>Save As...</b>""" |
417 """<p>Saves the current page to disk.</p>""" |
417 """<p>Saves the current page to disk.</p>""" |
418 )) |
418 )) |
421 |
421 |
422 bookmarksManager = self.bookmarksManager() |
422 bookmarksManager = self.bookmarksManager() |
423 self.importBookmarksAct = E5Action(self.trUtf8('Import Bookmarks'), |
423 self.importBookmarksAct = E5Action(self.trUtf8('Import Bookmarks'), |
424 self.trUtf8('&Import Bookmarks...'), |
424 self.trUtf8('&Import Bookmarks...'), |
425 0, 0, self, 'help_file_import_bookmarks') |
425 0, 0, self, 'help_file_import_bookmarks') |
426 self.importBookmarksAct.setStatusTip(\ |
426 self.importBookmarksAct.setStatusTip( |
427 self.trUtf8('Import bookmarks from other browsers')) |
427 self.trUtf8('Import bookmarks from other browsers')) |
428 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
428 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
429 """<b>Import Bookmarks</b>""" |
429 """<b>Import Bookmarks</b>""" |
430 """<p>Import bookmarks from other browsers.</p>""" |
430 """<p>Import bookmarks from other browsers.</p>""" |
431 )) |
431 )) |
433 self.__actions.append(self.importBookmarksAct) |
433 self.__actions.append(self.importBookmarksAct) |
434 |
434 |
435 self.exportBookmarksAct = E5Action(self.trUtf8('Export Bookmarks'), |
435 self.exportBookmarksAct = E5Action(self.trUtf8('Export Bookmarks'), |
436 self.trUtf8('&Export Bookmarks...'), |
436 self.trUtf8('&Export Bookmarks...'), |
437 0, 0, self, 'help_file_export_bookmarks') |
437 0, 0, self, 'help_file_export_bookmarks') |
438 self.exportBookmarksAct.setStatusTip(\ |
438 self.exportBookmarksAct.setStatusTip( |
439 self.trUtf8('Export the bookmarks into a file')) |
439 self.trUtf8('Export the bookmarks into a file')) |
440 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
440 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
441 """<b>Export Bookmarks</b>""" |
441 """<b>Export Bookmarks</b>""" |
442 """<p>Export the bookmarks into a file.</p>""" |
442 """<p>Export the bookmarks into a file.</p>""" |
443 )) |
443 )) |
650 self.findPrevAct = E5Action(self.trUtf8('Find previous'), |
650 self.findPrevAct = E5Action(self.trUtf8('Find previous'), |
651 UI.PixmapCache.getIcon("findPrev.png"), |
651 UI.PixmapCache.getIcon("findPrev.png"), |
652 self.trUtf8('Find &previous'), |
652 self.trUtf8('Find &previous'), |
653 QKeySequence(self.trUtf8("Shift+F3","Edit|Find previous")), |
653 QKeySequence(self.trUtf8("Shift+F3","Edit|Find previous")), |
654 0, self, 'help_edit_find_previous') |
654 0, self, 'help_edit_find_previous') |
655 self.findPrevAct.setStatusTip(\ |
655 self.findPrevAct.setStatusTip( |
656 self.trUtf8('Find previous occurrence of text in page')) |
656 self.trUtf8('Find previous occurrence of text in page')) |
657 self.findPrevAct.setWhatsThis(self.trUtf8( |
657 self.findPrevAct.setWhatsThis(self.trUtf8( |
658 """<b>Find previous</b>""" |
658 """<b>Find previous</b>""" |
659 """<p>Find the previous occurrence of text in the current page.</p>""" |
659 """<p>Find the previous occurrence of text in the current page.</p>""" |
660 )) |
660 )) |
743 self.__actions.append(self.aboutAct) |
743 self.__actions.append(self.aboutAct) |
744 |
744 |
745 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
745 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
746 self.trUtf8('About &Qt'), |
746 self.trUtf8('About &Qt'), |
747 0, 0, self, 'help_help_about_qt') |
747 0, 0, self, 'help_help_about_qt') |
748 self.aboutQtAct.setStatusTip(\ |
748 self.aboutQtAct.setStatusTip( |
749 self.trUtf8('Display information about the Qt toolkit')) |
749 self.trUtf8('Display information about the Qt toolkit')) |
750 self.aboutQtAct.setWhatsThis(self.trUtf8( |
750 self.aboutQtAct.setWhatsThis(self.trUtf8( |
751 """<b>About Qt</b>""" |
751 """<b>About Qt</b>""" |
752 """<p>Display some information about the Qt toolkit.</p>""" |
752 """<p>Display some information about the Qt toolkit.</p>""" |
753 )) |
753 )) |
1569 |
1569 |
1570 def __openFile(self): |
1570 def __openFile(self): |
1571 """ |
1571 """ |
1572 Private slot called to open a file. |
1572 Private slot called to open a file. |
1573 """ |
1573 """ |
1574 fn = QFileDialog.getOpenFileName(\ |
1574 fn = QFileDialog.getOpenFileName( |
1575 self, |
1575 self, |
1576 self.trUtf8("Open File"), |
1576 self.trUtf8("Open File"), |
1577 "", |
1577 "", |
1578 self.trUtf8("Help Files (*.html *.htm);;" |
1578 self.trUtf8("Help Files (*.html *.htm);;" |
1579 "PDF Files (*.pdf);;" |
1579 "PDF Files (*.pdf);;" |
1589 |
1589 |
1590 def __openFileNewTab(self): |
1590 def __openFileNewTab(self): |
1591 """ |
1591 """ |
1592 Private slot called to open a file in a new tab. |
1592 Private slot called to open a file in a new tab. |
1593 """ |
1593 """ |
1594 fn = QFileDialog.getOpenFileName(\ |
1594 fn = QFileDialog.getOpenFileName( |
1595 self, |
1595 self, |
1596 self.trUtf8("Open File"), |
1596 self.trUtf8("Open File"), |
1597 "", |
1597 "", |
1598 self.trUtf8("Help Files (*.html *.htm);;" |
1598 self.trUtf8("Help Files (*.html *.htm);;" |
1599 "PDF Files (*.pdf);;" |
1599 "PDF Files (*.pdf);;" |