116 |
116 |
117 # Attributes for WebKit based browser |
117 # Attributes for WebKit based browser |
118 self.__progressBar = None |
118 self.__progressBar = None |
119 |
119 |
120 self.tabContextMenuIndex = -1 |
120 self.tabContextMenuIndex = -1 |
121 self.tabWidget = E4TabWidget(self, dnd = True) |
121 self.tabWidget = E5TabWidget(self, dnd = True) |
122 self.connect(self.tabWidget, SIGNAL('currentChanged(int)'), |
122 self.connect(self.tabWidget, SIGNAL('currentChanged(int)'), |
123 self.__currentChanged) |
123 self.__currentChanged) |
124 self.tabWidget.setTabContextMenuPolicy(Qt.CustomContextMenu) |
124 self.tabWidget.setTabContextMenuPolicy(Qt.CustomContextMenu) |
125 self.connect(self.tabWidget, |
125 self.connect(self.tabWidget, |
126 SIGNAL('customTabContextMenuRequested(const QPoint &, int)'), |
126 SIGNAL('customTabContextMenuRequested(const QPoint &, int)'), |
334 """<p>This opens a new help window tab.</p>""" |
334 """<p>This opens a new help window tab.</p>""" |
335 )) |
335 )) |
336 self.connect(self.newTabAct, SIGNAL('triggered()'), self.newTab) |
336 self.connect(self.newTabAct, SIGNAL('triggered()'), self.newTab) |
337 self.__actions.append(self.newTabAct) |
337 self.__actions.append(self.newTabAct) |
338 |
338 |
339 self.newAct = E4Action(self.trUtf8('New Window'), |
339 self.newAct = E5Action(self.trUtf8('New Window'), |
340 UI.PixmapCache.getIcon("newWindow.png"), |
340 UI.PixmapCache.getIcon("newWindow.png"), |
341 self.trUtf8('New &Window'), |
341 self.trUtf8('New &Window'), |
342 QKeySequence(self.trUtf8("Ctrl+N","File|New Window")), |
342 QKeySequence(self.trUtf8("Ctrl+N","File|New Window")), |
343 0, self, 'help_file_new_window') |
343 0, self, 'help_file_new_window') |
344 self.newAct.setStatusTip(self.trUtf8('Open a new help browser window')) |
344 self.newAct.setStatusTip(self.trUtf8('Open a new help browser window')) |
347 """<p>This opens a new help browser window.</p>""" |
347 """<p>This opens a new help browser window.</p>""" |
348 )) |
348 )) |
349 self.connect(self.newAct, SIGNAL('triggered()'), self.newWindow) |
349 self.connect(self.newAct, SIGNAL('triggered()'), self.newWindow) |
350 self.__actions.append(self.newAct) |
350 self.__actions.append(self.newAct) |
351 |
351 |
352 self.openAct = E4Action(self.trUtf8('Open File'), |
352 self.openAct = E5Action(self.trUtf8('Open File'), |
353 UI.PixmapCache.getIcon("open.png"), |
353 UI.PixmapCache.getIcon("open.png"), |
354 self.trUtf8('&Open File'), |
354 self.trUtf8('&Open File'), |
355 QKeySequence(self.trUtf8("Ctrl+O","File|Open")), |
355 QKeySequence(self.trUtf8("Ctrl+O","File|Open")), |
356 0, self, 'help_file_open') |
356 0, self, 'help_file_open') |
357 self.openAct.setStatusTip(self.trUtf8('Open a help file for display')) |
357 self.openAct.setStatusTip(self.trUtf8('Open a help file for display')) |
361 """ It pops up a file selection dialog.</p>""" |
361 """ It pops up a file selection dialog.</p>""" |
362 )) |
362 )) |
363 self.connect(self.openAct, SIGNAL('triggered()'), self.__openFile) |
363 self.connect(self.openAct, SIGNAL('triggered()'), self.__openFile) |
364 self.__actions.append(self.openAct) |
364 self.__actions.append(self.openAct) |
365 |
365 |
366 self.openTabAct = E4Action(self.trUtf8('Open File in New Tab'), |
366 self.openTabAct = E5Action(self.trUtf8('Open File in New Tab'), |
367 UI.PixmapCache.getIcon("openNewTab.png"), |
367 UI.PixmapCache.getIcon("openNewTab.png"), |
368 self.trUtf8('Open File in New &Tab'), |
368 self.trUtf8('Open File in New &Tab'), |
369 QKeySequence(self.trUtf8("Shift+Ctrl+O","File|Open in new tab")), |
369 QKeySequence(self.trUtf8("Shift+Ctrl+O","File|Open in new tab")), |
370 0, self, 'help_file_open_tab') |
370 0, self, 'help_file_open_tab') |
371 self.openTabAct.setStatusTip(\ |
371 self.openTabAct.setStatusTip(\ |
376 """ It pops up a file selection dialog.</p>""" |
376 """ It pops up a file selection dialog.</p>""" |
377 )) |
377 )) |
378 self.connect(self.openTabAct, SIGNAL('triggered()'), self.__openFileNewTab) |
378 self.connect(self.openTabAct, SIGNAL('triggered()'), self.__openFileNewTab) |
379 self.__actions.append(self.openTabAct) |
379 self.__actions.append(self.openTabAct) |
380 |
380 |
381 self.saveAsAct = E4Action(self.trUtf8('Save As '), |
381 self.saveAsAct = E5Action(self.trUtf8('Save As '), |
382 UI.PixmapCache.getIcon("fileSaveAs.png"), |
382 UI.PixmapCache.getIcon("fileSaveAs.png"), |
383 self.trUtf8('&Save As...'), |
383 self.trUtf8('&Save As...'), |
384 QKeySequence(self.trUtf8("Shift+Ctrl+S","File|Save As")), |
384 QKeySequence(self.trUtf8("Shift+Ctrl+S","File|Save As")), |
385 0, self, 'help_file_save_as') |
385 0, self, 'help_file_save_as') |
386 self.saveAsAct.setStatusTip(\ |
386 self.saveAsAct.setStatusTip(\ |
391 )) |
391 )) |
392 self.connect(self.saveAsAct, SIGNAL('triggered()'), self.__savePageAs) |
392 self.connect(self.saveAsAct, SIGNAL('triggered()'), self.__savePageAs) |
393 self.__actions.append(self.saveAsAct) |
393 self.__actions.append(self.saveAsAct) |
394 |
394 |
395 bookmarksManager = self.bookmarksManager() |
395 bookmarksManager = self.bookmarksManager() |
396 self.importBookmarksAct = E4Action(self.trUtf8('Import Bookmarks'), |
396 self.importBookmarksAct = E5Action(self.trUtf8('Import Bookmarks'), |
397 self.trUtf8('&Import Bookmarks...'), |
397 self.trUtf8('&Import Bookmarks...'), |
398 0, 0, self, 'help_file_import_bookmarks') |
398 0, 0, self, 'help_file_import_bookmarks') |
399 self.importBookmarksAct.setStatusTip(\ |
399 self.importBookmarksAct.setStatusTip(\ |
400 self.trUtf8('Import bookmarks from other browsers')) |
400 self.trUtf8('Import bookmarks from other browsers')) |
401 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
401 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
404 )) |
404 )) |
405 self.connect(self.importBookmarksAct, SIGNAL('triggered()'), |
405 self.connect(self.importBookmarksAct, SIGNAL('triggered()'), |
406 bookmarksManager.importBookmarks) |
406 bookmarksManager.importBookmarks) |
407 self.__actions.append(self.importBookmarksAct) |
407 self.__actions.append(self.importBookmarksAct) |
408 |
408 |
409 self.exportBookmarksAct = E4Action(self.trUtf8('Export Bookmarks'), |
409 self.exportBookmarksAct = E5Action(self.trUtf8('Export Bookmarks'), |
410 self.trUtf8('&Export Bookmarks...'), |
410 self.trUtf8('&Export Bookmarks...'), |
411 0, 0, self, 'help_file_export_bookmarks') |
411 0, 0, self, 'help_file_export_bookmarks') |
412 self.exportBookmarksAct.setStatusTip(\ |
412 self.exportBookmarksAct.setStatusTip(\ |
413 self.trUtf8('Export the bookmarks into a file')) |
413 self.trUtf8('Export the bookmarks into a file')) |
414 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
414 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
417 )) |
417 )) |
418 self.connect(self.exportBookmarksAct, SIGNAL('triggered()'), |
418 self.connect(self.exportBookmarksAct, SIGNAL('triggered()'), |
419 bookmarksManager.exportBookmarks) |
419 bookmarksManager.exportBookmarks) |
420 self.__actions.append(self.exportBookmarksAct) |
420 self.__actions.append(self.exportBookmarksAct) |
421 |
421 |
422 self.printAct = E4Action(self.trUtf8('Print'), |
422 self.printAct = E5Action(self.trUtf8('Print'), |
423 UI.PixmapCache.getIcon("print.png"), |
423 UI.PixmapCache.getIcon("print.png"), |
424 self.trUtf8('&Print'), |
424 self.trUtf8('&Print'), |
425 QKeySequence(self.trUtf8("Ctrl+P","File|Print")), |
425 QKeySequence(self.trUtf8("Ctrl+P","File|Print")), |
426 0, self, 'help_file_print') |
426 0, self, 'help_file_print') |
427 self.printAct.setStatusTip(self.trUtf8('Print the displayed help')) |
427 self.printAct.setStatusTip(self.trUtf8('Print the displayed help')) |
430 """<p>Print the displayed help text.</p>""" |
430 """<p>Print the displayed help text.</p>""" |
431 )) |
431 )) |
432 self.connect(self.printAct, SIGNAL('triggered()'), self.__printFile) |
432 self.connect(self.printAct, SIGNAL('triggered()'), self.__printFile) |
433 self.__actions.append(self.printAct) |
433 self.__actions.append(self.printAct) |
434 |
434 |
435 self.printPreviewAct = E4Action(self.trUtf8('Print Preview'), |
435 self.printPreviewAct = E5Action(self.trUtf8('Print Preview'), |
436 UI.PixmapCache.getIcon("printPreview.png"), |
436 UI.PixmapCache.getIcon("printPreview.png"), |
437 self.trUtf8('Print Preview'), |
437 self.trUtf8('Print Preview'), |
438 0, 0, self, 'help_file_print_preview') |
438 0, 0, self, 'help_file_print_preview') |
439 self.printPreviewAct.setStatusTip(self.trUtf8( |
439 self.printPreviewAct.setStatusTip(self.trUtf8( |
440 'Print preview of the displayed help')) |
440 'Print preview of the displayed help')) |
444 )) |
444 )) |
445 self.connect(self.printPreviewAct, SIGNAL('triggered()'), |
445 self.connect(self.printPreviewAct, SIGNAL('triggered()'), |
446 self.__printPreviewFile) |
446 self.__printPreviewFile) |
447 self.__actions.append(self.printPreviewAct) |
447 self.__actions.append(self.printPreviewAct) |
448 |
448 |
449 self.closeAct = E4Action(self.trUtf8('Close'), |
449 self.closeAct = E5Action(self.trUtf8('Close'), |
450 UI.PixmapCache.getIcon("close.png"), |
450 UI.PixmapCache.getIcon("close.png"), |
451 self.trUtf8('&Close'), |
451 self.trUtf8('&Close'), |
452 QKeySequence(self.trUtf8("Ctrl+W","File|Close")), |
452 QKeySequence(self.trUtf8("Ctrl+W","File|Close")), |
453 0, self, 'help_file_close') |
453 0, self, 'help_file_close') |
454 self.closeAct.setStatusTip(self.trUtf8('Close the current help window')) |
454 self.closeAct.setStatusTip(self.trUtf8('Close the current help window')) |
457 """<p>Closes the current help window.</p>""" |
457 """<p>Closes the current help window.</p>""" |
458 )) |
458 )) |
459 self.connect(self.closeAct, SIGNAL('triggered()'), self.__close) |
459 self.connect(self.closeAct, SIGNAL('triggered()'), self.__close) |
460 self.__actions.append(self.closeAct) |
460 self.__actions.append(self.closeAct) |
461 |
461 |
462 self.closeAllAct = E4Action(self.trUtf8('Close All'), |
462 self.closeAllAct = E5Action(self.trUtf8('Close All'), |
463 self.trUtf8('Close &All'), |
463 self.trUtf8('Close &All'), |
464 0, 0, self, 'help_file_close_all') |
464 0, 0, self, 'help_file_close_all') |
465 self.closeAllAct.setStatusTip(self.trUtf8('Close all help windows')) |
465 self.closeAllAct.setStatusTip(self.trUtf8('Close all help windows')) |
466 self.closeAllAct.setWhatsThis(self.trUtf8( |
466 self.closeAllAct.setWhatsThis(self.trUtf8( |
467 """<b>Close All</b>""" |
467 """<b>Close All</b>""" |
468 """<p>Closes all help windows except the first one.</p>""" |
468 """<p>Closes all help windows except the first one.</p>""" |
469 )) |
469 )) |
470 self.connect(self.closeAllAct, SIGNAL('triggered()'), self.__closeAll) |
470 self.connect(self.closeAllAct, SIGNAL('triggered()'), self.__closeAll) |
471 self.__actions.append(self.closeAllAct) |
471 self.__actions.append(self.closeAllAct) |
472 |
472 |
473 self.privateBrowsingAct = E4Action(self.trUtf8('Private Browsing'), |
473 self.privateBrowsingAct = E5Action(self.trUtf8('Private Browsing'), |
474 UI.PixmapCache.getIcon("privateBrowsing.png"), |
474 UI.PixmapCache.getIcon("privateBrowsing.png"), |
475 self.trUtf8('Private &Browsing'), |
475 self.trUtf8('Private &Browsing'), |
476 0, 0, self, 'help_file_private_browsing') |
476 0, 0, self, 'help_file_private_browsing') |
477 self.privateBrowsingAct.setStatusTip(self.trUtf8('Private Browsing')) |
477 self.privateBrowsingAct.setStatusTip(self.trUtf8('Private Browsing')) |
478 self.privateBrowsingAct.setWhatsThis(self.trUtf8( |
478 self.privateBrowsingAct.setWhatsThis(self.trUtf8( |
483 self.connect(self.privateBrowsingAct, SIGNAL('triggered()'), |
483 self.connect(self.privateBrowsingAct, SIGNAL('triggered()'), |
484 self.__privateBrowsing) |
484 self.__privateBrowsing) |
485 self.privateBrowsingAct.setCheckable(True) |
485 self.privateBrowsingAct.setCheckable(True) |
486 self.__actions.append(self.privateBrowsingAct) |
486 self.__actions.append(self.privateBrowsingAct) |
487 |
487 |
488 self.exitAct = E4Action(self.trUtf8('Quit'), |
488 self.exitAct = E5Action(self.trUtf8('Quit'), |
489 UI.PixmapCache.getIcon("exit.png"), |
489 UI.PixmapCache.getIcon("exit.png"), |
490 self.trUtf8('&Quit'), |
490 self.trUtf8('&Quit'), |
491 QKeySequence(self.trUtf8("Ctrl+Q","File|Quit")), |
491 QKeySequence(self.trUtf8("Ctrl+Q","File|Quit")), |
492 0, self, 'help_file_quit') |
492 0, self, 'help_file_quit') |
493 self.exitAct.setStatusTip(self.trUtf8('Quit the web browser')) |
493 self.exitAct.setStatusTip(self.trUtf8('Quit the web browser')) |
500 else: |
500 else: |
501 self.connect(self.exitAct, SIGNAL('triggered()'), |
501 self.connect(self.exitAct, SIGNAL('triggered()'), |
502 qApp, SLOT('closeAllWindows()')) |
502 qApp, SLOT('closeAllWindows()')) |
503 self.__actions.append(self.exitAct) |
503 self.__actions.append(self.exitAct) |
504 |
504 |
505 self.backAct = E4Action(self.trUtf8('Backward'), |
505 self.backAct = E5Action(self.trUtf8('Backward'), |
506 UI.PixmapCache.getIcon("back.png"), |
506 UI.PixmapCache.getIcon("back.png"), |
507 self.trUtf8('&Backward'), |
507 self.trUtf8('&Backward'), |
508 QKeySequence(self.trUtf8("Alt+Left","Go|Backward")), |
508 QKeySequence(self.trUtf8("Alt+Left","Go|Backward")), |
509 QKeySequence(self.trUtf8("Backspace","Go|Backward")), |
509 QKeySequence(self.trUtf8("Backspace","Go|Backward")), |
510 self, 'help_go_backward') |
510 self, 'help_go_backward') |
515 """ available, this action is disabled.</p>""" |
515 """ available, this action is disabled.</p>""" |
516 )) |
516 )) |
517 self.connect(self.backAct, SIGNAL('triggered()'), self.__backward) |
517 self.connect(self.backAct, SIGNAL('triggered()'), self.__backward) |
518 self.__actions.append(self.backAct) |
518 self.__actions.append(self.backAct) |
519 |
519 |
520 self.forwardAct = E4Action(self.trUtf8('Forward'), |
520 self.forwardAct = E5Action(self.trUtf8('Forward'), |
521 UI.PixmapCache.getIcon("forward.png"), |
521 UI.PixmapCache.getIcon("forward.png"), |
522 self.trUtf8('&Forward'), |
522 self.trUtf8('&Forward'), |
523 QKeySequence(self.trUtf8("Alt+Right","Go|Forward")), |
523 QKeySequence(self.trUtf8("Alt+Right","Go|Forward")), |
524 QKeySequence(self.trUtf8("Shift+Backspace","Go|Forward")), |
524 QKeySequence(self.trUtf8("Shift+Backspace","Go|Forward")), |
525 self, 'help_go_foreward') |
525 self, 'help_go_foreward') |
530 """ available, this action is disabled.</p>""" |
530 """ available, this action is disabled.</p>""" |
531 )) |
531 )) |
532 self.connect(self.forwardAct, SIGNAL('triggered()'), self.__forward) |
532 self.connect(self.forwardAct, SIGNAL('triggered()'), self.__forward) |
533 self.__actions.append(self.forwardAct) |
533 self.__actions.append(self.forwardAct) |
534 |
534 |
535 self.homeAct = E4Action(self.trUtf8('Home'), |
535 self.homeAct = E5Action(self.trUtf8('Home'), |
536 UI.PixmapCache.getIcon("home.png"), |
536 UI.PixmapCache.getIcon("home.png"), |
537 self.trUtf8('&Home'), |
537 self.trUtf8('&Home'), |
538 QKeySequence(self.trUtf8("Ctrl+Home","Go|Home")), |
538 QKeySequence(self.trUtf8("Ctrl+Home","Go|Home")), |
539 0, self, 'help_go_home') |
539 0, self, 'help_go_home') |
540 self.homeAct.setStatusTip(self.trUtf8('Move to the initial help screen')) |
540 self.homeAct.setStatusTip(self.trUtf8('Move to the initial help screen')) |
543 """<p>Moves to the initial help screen.</p>""" |
543 """<p>Moves to the initial help screen.</p>""" |
544 )) |
544 )) |
545 self.connect(self.homeAct, SIGNAL('triggered()'), self.__home) |
545 self.connect(self.homeAct, SIGNAL('triggered()'), self.__home) |
546 self.__actions.append(self.homeAct) |
546 self.__actions.append(self.homeAct) |
547 |
547 |
548 self.reloadAct = E4Action(self.trUtf8('Reload'), |
548 self.reloadAct = E5Action(self.trUtf8('Reload'), |
549 UI.PixmapCache.getIcon("reload.png"), |
549 UI.PixmapCache.getIcon("reload.png"), |
550 self.trUtf8('&Reload'), |
550 self.trUtf8('&Reload'), |
551 QKeySequence(self.trUtf8("Ctrl+R","Go|Reload")), |
551 QKeySequence(self.trUtf8("Ctrl+R","Go|Reload")), |
552 QKeySequence(self.trUtf8("F5","Go|Reload")), |
552 QKeySequence(self.trUtf8("F5","Go|Reload")), |
553 self, 'help_go_reload') |
553 self, 'help_go_reload') |
557 """<p>Reloads the current help screen.</p>""" |
557 """<p>Reloads the current help screen.</p>""" |
558 )) |
558 )) |
559 self.connect(self.reloadAct, SIGNAL('triggered()'), self.__reload) |
559 self.connect(self.reloadAct, SIGNAL('triggered()'), self.__reload) |
560 self.__actions.append(self.reloadAct) |
560 self.__actions.append(self.reloadAct) |
561 |
561 |
562 self.stopAct = E4Action(self.trUtf8('Stop'), |
562 self.stopAct = E5Action(self.trUtf8('Stop'), |
563 UI.PixmapCache.getIcon("stopLoading.png"), |
563 UI.PixmapCache.getIcon("stopLoading.png"), |
564 self.trUtf8('&Stop'), |
564 self.trUtf8('&Stop'), |
565 QKeySequence(self.trUtf8("Ctrl+.","Go|Stop")), |
565 QKeySequence(self.trUtf8("Ctrl+.","Go|Stop")), |
566 QKeySequence(self.trUtf8("Esc","Go|Stop")), |
566 QKeySequence(self.trUtf8("Esc","Go|Stop")), |
567 self, 'help_go_stop') |
567 self, 'help_go_stop') |
571 """<p>Stops loading of the current tab.</p>""" |
571 """<p>Stops loading of the current tab.</p>""" |
572 )) |
572 )) |
573 self.connect(self.stopAct, SIGNAL('triggered()'), self.__stopLoading) |
573 self.connect(self.stopAct, SIGNAL('triggered()'), self.__stopLoading) |
574 self.__actions.append(self.stopAct) |
574 self.__actions.append(self.stopAct) |
575 |
575 |
576 self.copyAct = E4Action(self.trUtf8('Copy'), |
576 self.copyAct = E5Action(self.trUtf8('Copy'), |
577 UI.PixmapCache.getIcon("editCopy.png"), |
577 UI.PixmapCache.getIcon("editCopy.png"), |
578 self.trUtf8('&Copy'), |
578 self.trUtf8('&Copy'), |
579 QKeySequence(self.trUtf8("Ctrl+C","Edit|Copy")), |
579 QKeySequence(self.trUtf8("Ctrl+C","Edit|Copy")), |
580 0, self, 'help_edit_copy') |
580 0, self, 'help_edit_copy') |
581 self.copyAct.setStatusTip(self.trUtf8('Copy the selected text')) |
581 self.copyAct.setStatusTip(self.trUtf8('Copy the selected text')) |
584 """<p>Copy the selected text to the clipboard.</p>""" |
584 """<p>Copy the selected text to the clipboard.</p>""" |
585 )) |
585 )) |
586 self.connect(self.copyAct, SIGNAL('triggered()'), self.__copy) |
586 self.connect(self.copyAct, SIGNAL('triggered()'), self.__copy) |
587 self.__actions.append(self.copyAct) |
587 self.__actions.append(self.copyAct) |
588 |
588 |
589 self.findAct = E4Action(self.trUtf8('Find...'), |
589 self.findAct = E5Action(self.trUtf8('Find...'), |
590 UI.PixmapCache.getIcon("find.png"), |
590 UI.PixmapCache.getIcon("find.png"), |
591 self.trUtf8('&Find...'), |
591 self.trUtf8('&Find...'), |
592 QKeySequence(self.trUtf8("Ctrl+F","Edit|Find")), |
592 QKeySequence(self.trUtf8("Ctrl+F","Edit|Find")), |
593 0, self, 'help_edit_find') |
593 0, self, 'help_edit_find') |
594 self.findAct.setStatusTip(self.trUtf8('Find text in page')) |
594 self.findAct.setStatusTip(self.trUtf8('Find text in page')) |
597 """<p>Find text in the current page.</p>""" |
597 """<p>Find text in the current page.</p>""" |
598 )) |
598 )) |
599 self.connect(self.findAct, SIGNAL('triggered()'), self.__find) |
599 self.connect(self.findAct, SIGNAL('triggered()'), self.__find) |
600 self.__actions.append(self.findAct) |
600 self.__actions.append(self.findAct) |
601 |
601 |
602 self.findNextAct = E4Action(self.trUtf8('Find next'), |
602 self.findNextAct = E5Action(self.trUtf8('Find next'), |
603 UI.PixmapCache.getIcon("findNext.png"), |
603 UI.PixmapCache.getIcon("findNext.png"), |
604 self.trUtf8('Find &next'), |
604 self.trUtf8('Find &next'), |
605 QKeySequence(self.trUtf8("F3","Edit|Find next")), |
605 QKeySequence(self.trUtf8("F3","Edit|Find next")), |
606 0, self, 'help_edit_find_next') |
606 0, self, 'help_edit_find_next') |
607 self.findNextAct.setStatusTip(self.trUtf8('Find next occurrence of text in page')) |
607 self.findNextAct.setStatusTip(self.trUtf8('Find next occurrence of text in page')) |
611 )) |
611 )) |
612 if not self.initShortcutsOnly: |
612 if not self.initShortcutsOnly: |
613 self.connect(self.findNextAct, SIGNAL('triggered()'), self.findDlg.findNext) |
613 self.connect(self.findNextAct, SIGNAL('triggered()'), self.findDlg.findNext) |
614 self.__actions.append(self.findNextAct) |
614 self.__actions.append(self.findNextAct) |
615 |
615 |
616 self.findPrevAct = E4Action(self.trUtf8('Find previous'), |
616 self.findPrevAct = E5Action(self.trUtf8('Find previous'), |
617 UI.PixmapCache.getIcon("findPrev.png"), |
617 UI.PixmapCache.getIcon("findPrev.png"), |
618 self.trUtf8('Find &previous'), |
618 self.trUtf8('Find &previous'), |
619 QKeySequence(self.trUtf8("Shift+F3","Edit|Find previous")), |
619 QKeySequence(self.trUtf8("Shift+F3","Edit|Find previous")), |
620 0, self, 'help_edit_find_previous') |
620 0, self, 'help_edit_find_previous') |
621 self.findPrevAct.setStatusTip(\ |
621 self.findPrevAct.setStatusTip(\ |
627 if not self.initShortcutsOnly: |
627 if not self.initShortcutsOnly: |
628 self.connect(self.findPrevAct, SIGNAL('triggered()'), |
628 self.connect(self.findPrevAct, SIGNAL('triggered()'), |
629 self.findDlg.findPrevious) |
629 self.findDlg.findPrevious) |
630 self.__actions.append(self.findPrevAct) |
630 self.__actions.append(self.findPrevAct) |
631 |
631 |
632 self.bookmarksManageAct = E4Action(self.trUtf8('Manage Bookmarks'), |
632 self.bookmarksManageAct = E5Action(self.trUtf8('Manage Bookmarks'), |
633 self.trUtf8('&Manage Bookmarks...'), |
633 self.trUtf8('&Manage Bookmarks...'), |
634 QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), |
634 QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), |
635 0, self, 'help_bookmarks_manage') |
635 0, self, 'help_bookmarks_manage') |
636 self.bookmarksManageAct.setStatusTip(self.trUtf8( |
636 self.bookmarksManageAct.setStatusTip(self.trUtf8( |
637 'Open a dialog to manage the bookmarks.')) |
637 'Open a dialog to manage the bookmarks.')) |
641 )) |
641 )) |
642 self.connect(self.bookmarksManageAct, SIGNAL('triggered()'), |
642 self.connect(self.bookmarksManageAct, SIGNAL('triggered()'), |
643 self.__showBookmarksDialog) |
643 self.__showBookmarksDialog) |
644 self.__actions.append(self.bookmarksManageAct) |
644 self.__actions.append(self.bookmarksManageAct) |
645 |
645 |
646 self.bookmarksAddAct = E4Action(self.trUtf8('Add Bookmark'), |
646 self.bookmarksAddAct = E5Action(self.trUtf8('Add Bookmark'), |
647 UI.PixmapCache.getIcon("addBookmark.png"), |
647 UI.PixmapCache.getIcon("addBookmark.png"), |
648 self.trUtf8('Add &Bookmark...'), |
648 self.trUtf8('Add &Bookmark...'), |
649 QKeySequence(self.trUtf8("Ctrl+D", "Help|Add bookmark")), |
649 QKeySequence(self.trUtf8("Ctrl+D", "Help|Add bookmark")), |
650 0, self, 'help_bookmark_add') |
650 0, self, 'help_bookmark_add') |
651 self.bookmarksAddAct.setIconVisibleInMenu(False) |
651 self.bookmarksAddAct.setIconVisibleInMenu(False) |
655 """<p>Open a dialog to add the current URL as a bookmark.</p>""" |
655 """<p>Open a dialog to add the current URL as a bookmark.</p>""" |
656 )) |
656 )) |
657 self.connect(self.bookmarksAddAct, SIGNAL('triggered()'), self.__addBookmark) |
657 self.connect(self.bookmarksAddAct, SIGNAL('triggered()'), self.__addBookmark) |
658 self.__actions.append(self.bookmarksAddAct) |
658 self.__actions.append(self.bookmarksAddAct) |
659 |
659 |
660 self.bookmarksAddFolderAct = E4Action(self.trUtf8('Add Folder'), |
660 self.bookmarksAddFolderAct = E5Action(self.trUtf8('Add Folder'), |
661 self.trUtf8('Add &Folder...'), |
661 self.trUtf8('Add &Folder...'), |
662 0, 0, self, 'help_bookmark_show_all') |
662 0, 0, self, 'help_bookmark_show_all') |
663 self.bookmarksAddFolderAct.setStatusTip(self.trUtf8( |
663 self.bookmarksAddFolderAct.setStatusTip(self.trUtf8( |
664 'Open a dialog to add a new bookmarks folder.')) |
664 'Open a dialog to add a new bookmarks folder.')) |
665 self.bookmarksAddFolderAct.setWhatsThis(self.trUtf8( |
665 self.bookmarksAddFolderAct.setWhatsThis(self.trUtf8( |
668 )) |
668 )) |
669 self.connect(self.bookmarksAddFolderAct, SIGNAL('triggered()'), |
669 self.connect(self.bookmarksAddFolderAct, SIGNAL('triggered()'), |
670 self.__addBookmarkFolder) |
670 self.__addBookmarkFolder) |
671 self.__actions.append(self.bookmarksAddFolderAct) |
671 self.__actions.append(self.bookmarksAddFolderAct) |
672 |
672 |
673 self.bookmarksAllTabsAct = E4Action(self.trUtf8('Bookmark All Tabs'), |
673 self.bookmarksAllTabsAct = E5Action(self.trUtf8('Bookmark All Tabs'), |
674 self.trUtf8('Bookmark All Tabs...'), |
674 self.trUtf8('Bookmark All Tabs...'), |
675 0, 0, self, 'help_bookmark_all_tabs') |
675 0, 0, self, 'help_bookmark_all_tabs') |
676 self.bookmarksAllTabsAct.setStatusTip(self.trUtf8( |
676 self.bookmarksAllTabsAct.setStatusTip(self.trUtf8( |
677 'Bookmark all open tabs.')) |
677 'Bookmark all open tabs.')) |
678 self.bookmarksAllTabsAct.setWhatsThis(self.trUtf8( |
678 self.bookmarksAllTabsAct.setWhatsThis(self.trUtf8( |
682 )) |
682 )) |
683 self.connect(self.bookmarksAllTabsAct, SIGNAL('triggered()'), |
683 self.connect(self.bookmarksAllTabsAct, SIGNAL('triggered()'), |
684 self.__bookmarkAll) |
684 self.__bookmarkAll) |
685 self.__actions.append(self.bookmarksAllTabsAct) |
685 self.__actions.append(self.bookmarksAllTabsAct) |
686 |
686 |
687 self.whatsThisAct = E4Action(self.trUtf8('What\'s This?'), |
687 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), |
688 UI.PixmapCache.getIcon("whatsThis.png"), |
688 UI.PixmapCache.getIcon("whatsThis.png"), |
689 self.trUtf8('&What\'s This?'), |
689 self.trUtf8('&What\'s This?'), |
690 QKeySequence(self.trUtf8("Shift+F1","Help|What's This?'")), |
690 QKeySequence(self.trUtf8("Shift+F1","Help|What's This?'")), |
691 0, self, 'help_help_whats_this') |
691 0, self, 'help_help_whats_this') |
692 self.whatsThisAct.setStatusTip(self.trUtf8('Context sensitive help')) |
692 self.whatsThisAct.setStatusTip(self.trUtf8('Context sensitive help')) |
699 """ in the titlebar.</p>""" |
699 """ in the titlebar.</p>""" |
700 )) |
700 )) |
701 self.connect(self.whatsThisAct, SIGNAL('triggered()'), self.__whatsThis) |
701 self.connect(self.whatsThisAct, SIGNAL('triggered()'), self.__whatsThis) |
702 self.__actions.append(self.whatsThisAct) |
702 self.__actions.append(self.whatsThisAct) |
703 |
703 |
704 self.aboutAct = E4Action(self.trUtf8('About'), |
704 self.aboutAct = E5Action(self.trUtf8('About'), |
705 self.trUtf8('&About'), |
705 self.trUtf8('&About'), |
706 0, 0, self, 'help_help_about') |
706 0, 0, self, 'help_help_about') |
707 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
707 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
708 self.aboutAct.setWhatsThis(self.trUtf8( |
708 self.aboutAct.setWhatsThis(self.trUtf8( |
709 """<b>About</b>""" |
709 """<b>About</b>""" |
710 """<p>Display some information about this software.</p>""" |
710 """<p>Display some information about this software.</p>""" |
711 )) |
711 )) |
712 self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) |
712 self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) |
713 self.__actions.append(self.aboutAct) |
713 self.__actions.append(self.aboutAct) |
714 |
714 |
715 self.aboutQtAct = E4Action(self.trUtf8('About Qt'), |
715 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
716 self.trUtf8('About &Qt'), |
716 self.trUtf8('About &Qt'), |
717 0, 0, self, 'help_help_about_qt') |
717 0, 0, self, 'help_help_about_qt') |
718 self.aboutQtAct.setStatusTip(\ |
718 self.aboutQtAct.setStatusTip(\ |
719 self.trUtf8('Display information about the Qt toolkit')) |
719 self.trUtf8('Display information about the Qt toolkit')) |
720 self.aboutQtAct.setWhatsThis(self.trUtf8( |
720 self.aboutQtAct.setWhatsThis(self.trUtf8( |
722 """<p>Display some information about the Qt toolkit.</p>""" |
722 """<p>Display some information about the Qt toolkit.</p>""" |
723 )) |
723 )) |
724 self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt) |
724 self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt) |
725 self.__actions.append(self.aboutQtAct) |
725 self.__actions.append(self.aboutQtAct) |
726 |
726 |
727 self.zoomInAct = E4Action(self.trUtf8('Zoom in'), |
727 self.zoomInAct = E5Action(self.trUtf8('Zoom in'), |
728 UI.PixmapCache.getIcon("zoomIn.png"), |
728 UI.PixmapCache.getIcon("zoomIn.png"), |
729 self.trUtf8('Zoom &in'), |
729 self.trUtf8('Zoom &in'), |
730 QKeySequence(self.trUtf8("Ctrl++","View|Zoom in")), |
730 QKeySequence(self.trUtf8("Ctrl++","View|Zoom in")), |
731 0, self, 'help_view_zoom_in') |
731 0, self, 'help_view_zoom_in') |
732 self.zoomInAct.setStatusTip(self.trUtf8('Zoom in on the text')) |
732 self.zoomInAct.setStatusTip(self.trUtf8('Zoom in on the text')) |
735 """<p>Zoom in on the text. This makes the text bigger.</p>""" |
735 """<p>Zoom in on the text. This makes the text bigger.</p>""" |
736 )) |
736 )) |
737 self.connect(self.zoomInAct, SIGNAL('triggered()'), self.__zoomIn) |
737 self.connect(self.zoomInAct, SIGNAL('triggered()'), self.__zoomIn) |
738 self.__actions.append(self.zoomInAct) |
738 self.__actions.append(self.zoomInAct) |
739 |
739 |
740 self.zoomOutAct = E4Action(self.trUtf8('Zoom out'), |
740 self.zoomOutAct = E5Action(self.trUtf8('Zoom out'), |
741 UI.PixmapCache.getIcon("zoomOut.png"), |
741 UI.PixmapCache.getIcon("zoomOut.png"), |
742 self.trUtf8('Zoom &out'), |
742 self.trUtf8('Zoom &out'), |
743 QKeySequence(self.trUtf8("Ctrl+-","View|Zoom out")), |
743 QKeySequence(self.trUtf8("Ctrl+-","View|Zoom out")), |
744 0, self, 'help_view_zoom_out') |
744 0, self, 'help_view_zoom_out') |
745 self.zoomOutAct.setStatusTip(self.trUtf8('Zoom out on the text')) |
745 self.zoomOutAct.setStatusTip(self.trUtf8('Zoom out on the text')) |
748 """<p>Zoom out on the text. This makes the text smaller.</p>""" |
748 """<p>Zoom out on the text. This makes the text smaller.</p>""" |
749 )) |
749 )) |
750 self.connect(self.zoomOutAct, SIGNAL('triggered()'), self.__zoomOut) |
750 self.connect(self.zoomOutAct, SIGNAL('triggered()'), self.__zoomOut) |
751 self.__actions.append(self.zoomOutAct) |
751 self.__actions.append(self.zoomOutAct) |
752 |
752 |
753 self.zoomResetAct = E4Action(self.trUtf8('Zoom reset'), |
753 self.zoomResetAct = E5Action(self.trUtf8('Zoom reset'), |
754 UI.PixmapCache.getIcon("zoomReset.png"), |
754 UI.PixmapCache.getIcon("zoomReset.png"), |
755 self.trUtf8('Zoom &reset'), |
755 self.trUtf8('Zoom &reset'), |
756 QKeySequence(self.trUtf8("Ctrl+0","View|Zoom reset")), |
756 QKeySequence(self.trUtf8("Ctrl+0","View|Zoom reset")), |
757 0, self, 'help_view_zoom_reset') |
757 0, self, 'help_view_zoom_reset') |
758 self.zoomResetAct.setStatusTip(self.trUtf8('Reset the zoom of the text')) |
758 self.zoomResetAct.setStatusTip(self.trUtf8('Reset the zoom of the text')) |
763 )) |
763 )) |
764 self.connect(self.zoomResetAct, SIGNAL('triggered()'), self.__zoomReset) |
764 self.connect(self.zoomResetAct, SIGNAL('triggered()'), self.__zoomReset) |
765 self.__actions.append(self.zoomResetAct) |
765 self.__actions.append(self.zoomResetAct) |
766 |
766 |
767 if hasattr(QWebSettings, 'ZoomTextOnly'): |
767 if hasattr(QWebSettings, 'ZoomTextOnly'): |
768 self.zoomTextOnlyAct = E4Action(self.trUtf8('Zoom text only'), |
768 self.zoomTextOnlyAct = E5Action(self.trUtf8('Zoom text only'), |
769 self.trUtf8('Zoom &text only'), |
769 self.trUtf8('Zoom &text only'), |
770 0, 0, self, 'help_view_zoom_text_only') |
770 0, 0, self, 'help_view_zoom_text_only') |
771 self.zoomTextOnlyAct.setCheckable(True) |
771 self.zoomTextOnlyAct.setCheckable(True) |
772 self.zoomTextOnlyAct.setStatusTip(self.trUtf8( |
772 self.zoomTextOnlyAct.setStatusTip(self.trUtf8( |
773 'Zoom text only; pictures remain constant')) |
773 'Zoom text only; pictures remain constant')) |
792 )) |
792 )) |
793 self.connect(self.pageSourceAct, SIGNAL('triggered()'), self.__showPageSource) |
793 self.connect(self.pageSourceAct, SIGNAL('triggered()'), self.__showPageSource) |
794 self.__actions.append(self.pageSourceAct) |
794 self.__actions.append(self.pageSourceAct) |
795 self.addAction(self.pageSourceAct) |
795 self.addAction(self.pageSourceAct) |
796 |
796 |
797 self.fullScreenAct = E4Action(self.trUtf8('Full Screen'), |
797 self.fullScreenAct = E5Action(self.trUtf8('Full Screen'), |
798 UI.PixmapCache.getIcon("windowFullscreen.png"), |
798 UI.PixmapCache.getIcon("windowFullscreen.png"), |
799 self.trUtf8('&Full Screen'), |
799 self.trUtf8('&Full Screen'), |
800 QKeySequence(self.trUtf8('F11')), 0, |
800 QKeySequence(self.trUtf8('F11')), 0, |
801 self, 'help_view_full_scree') |
801 self, 'help_view_full_scree') |
802 self.connect(self.fullScreenAct, SIGNAL('triggered()'), self.__viewFullScreen) |
802 self.connect(self.fullScreenAct, SIGNAL('triggered()'), self.__viewFullScreen) |
803 self.__actions.append(self.fullScreenAct) |
803 self.__actions.append(self.fullScreenAct) |
804 self.addAction(self.fullScreenAct) |
804 self.addAction(self.fullScreenAct) |
805 |
805 |
806 self.nextTabAct = E4Action(self.trUtf8('Show next tab'), |
806 self.nextTabAct = E5Action(self.trUtf8('Show next tab'), |
807 self.trUtf8('Show next tab'), |
807 self.trUtf8('Show next tab'), |
808 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
808 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
809 self, 'help_view_next_tab') |
809 self, 'help_view_next_tab') |
810 self.connect(self.nextTabAct, SIGNAL('triggered()'), self.__nextTab) |
810 self.connect(self.nextTabAct, SIGNAL('triggered()'), self.__nextTab) |
811 self.__actions.append(self.nextTabAct) |
811 self.__actions.append(self.nextTabAct) |
812 self.addAction(self.nextTabAct) |
812 self.addAction(self.nextTabAct) |
813 |
813 |
814 self.prevTabAct = E4Action(self.trUtf8('Show previous tab'), |
814 self.prevTabAct = E5Action(self.trUtf8('Show previous tab'), |
815 self.trUtf8('Show previous tab'), |
815 self.trUtf8('Show previous tab'), |
816 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
816 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
817 self, 'help_view_previous_tab') |
817 self, 'help_view_previous_tab') |
818 self.connect(self.prevTabAct, SIGNAL('triggered()'), self.__prevTab) |
818 self.connect(self.prevTabAct, SIGNAL('triggered()'), self.__prevTab) |
819 self.__actions.append(self.prevTabAct) |
819 self.__actions.append(self.prevTabAct) |
820 self.addAction(self.prevTabAct) |
820 self.addAction(self.prevTabAct) |
821 |
821 |
822 self.switchTabAct = E4Action(self.trUtf8('Switch between tabs'), |
822 self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), |
823 self.trUtf8('Switch between tabs'), |
823 self.trUtf8('Switch between tabs'), |
824 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
824 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
825 self, 'help_switch_tabs') |
825 self, 'help_switch_tabs') |
826 self.connect(self.switchTabAct, SIGNAL('triggered()'), self.__switchTab) |
826 self.connect(self.switchTabAct, SIGNAL('triggered()'), self.__switchTab) |
827 self.__actions.append(self.switchTabAct) |
827 self.__actions.append(self.switchTabAct) |
828 self.addAction(self.switchTabAct) |
828 self.addAction(self.switchTabAct) |
829 |
829 |
830 self.prefAct = E4Action(self.trUtf8('Preferences'), |
830 self.prefAct = E5Action(self.trUtf8('Preferences'), |
831 UI.PixmapCache.getIcon("configure.png"), |
831 UI.PixmapCache.getIcon("configure.png"), |
832 self.trUtf8('&Preferences...'), 0, 0, self, 'help_preferences') |
832 self.trUtf8('&Preferences...'), 0, 0, self, 'help_preferences') |
833 self.prefAct.setStatusTip(self.trUtf8('Set the prefered configuration')) |
833 self.prefAct.setStatusTip(self.trUtf8('Set the prefered configuration')) |
834 self.prefAct.setWhatsThis(self.trUtf8( |
834 self.prefAct.setWhatsThis(self.trUtf8( |
835 """<b>Preferences</b>""" |
835 """<b>Preferences</b>""" |
837 """ with your prefered values.</p>""" |
837 """ with your prefered values.</p>""" |
838 )) |
838 )) |
839 self.connect(self.prefAct, SIGNAL('triggered()'), self.__showPreferences) |
839 self.connect(self.prefAct, SIGNAL('triggered()'), self.__showPreferences) |
840 self.__actions.append(self.prefAct) |
840 self.__actions.append(self.prefAct) |
841 |
841 |
842 self.acceptedLanguagesAct = E4Action(self.trUtf8('Languages'), |
842 self.acceptedLanguagesAct = E5Action(self.trUtf8('Languages'), |
843 UI.PixmapCache.getIcon("flag.png"), |
843 UI.PixmapCache.getIcon("flag.png"), |
844 self.trUtf8('&Languages...'), 0, 0, self, 'help_accepted_languages') |
844 self.trUtf8('&Languages...'), 0, 0, self, 'help_accepted_languages') |
845 self.acceptedLanguagesAct.setStatusTip(self.trUtf8( |
845 self.acceptedLanguagesAct.setStatusTip(self.trUtf8( |
846 'Configure the accepted languages for web pages')) |
846 'Configure the accepted languages for web pages')) |
847 self.acceptedLanguagesAct.setWhatsThis(self.trUtf8( |
847 self.acceptedLanguagesAct.setWhatsThis(self.trUtf8( |
850 )) |
850 )) |
851 self.connect(self.acceptedLanguagesAct, SIGNAL('triggered()'), |
851 self.connect(self.acceptedLanguagesAct, SIGNAL('triggered()'), |
852 self.__showAcceptedLanguages) |
852 self.__showAcceptedLanguages) |
853 self.__actions.append(self.acceptedLanguagesAct) |
853 self.__actions.append(self.acceptedLanguagesAct) |
854 |
854 |
855 self.cookiesAct = E4Action(self.trUtf8('Cookies'), |
855 self.cookiesAct = E5Action(self.trUtf8('Cookies'), |
856 UI.PixmapCache.getIcon("cookie.png"), |
856 UI.PixmapCache.getIcon("cookie.png"), |
857 self.trUtf8('C&ookies...'), 0, 0, self, 'help_cookies') |
857 self.trUtf8('C&ookies...'), 0, 0, self, 'help_cookies') |
858 self.cookiesAct.setStatusTip(self.trUtf8( |
858 self.cookiesAct.setStatusTip(self.trUtf8( |
859 'Configure cookies handling')) |
859 'Configure cookies handling')) |
860 self.cookiesAct.setWhatsThis(self.trUtf8( |
860 self.cookiesAct.setWhatsThis(self.trUtf8( |
863 )) |
863 )) |
864 self.connect(self.cookiesAct, SIGNAL('triggered()'), |
864 self.connect(self.cookiesAct, SIGNAL('triggered()'), |
865 self.__showCookiesConfiguration) |
865 self.__showCookiesConfiguration) |
866 self.__actions.append(self.cookiesAct) |
866 self.__actions.append(self.cookiesAct) |
867 |
867 |
868 self.syncTocAct = E4Action(self.trUtf8('Sync with Table of Contents'), |
868 self.syncTocAct = E5Action(self.trUtf8('Sync with Table of Contents'), |
869 UI.PixmapCache.getIcon("syncToc.png"), |
869 UI.PixmapCache.getIcon("syncToc.png"), |
870 self.trUtf8('Sync with Table of Contents'), |
870 self.trUtf8('Sync with Table of Contents'), |
871 0, 0, self, 'help_sync_toc') |
871 0, 0, self, 'help_sync_toc') |
872 self.syncTocAct.setStatusTip(self.trUtf8( |
872 self.syncTocAct.setStatusTip(self.trUtf8( |
873 'Synchronizes the table of contents with current page')) |
873 'Synchronizes the table of contents with current page')) |
876 """<p>Synchronizes the table of contents with current page.</p>""" |
876 """<p>Synchronizes the table of contents with current page.</p>""" |
877 )) |
877 )) |
878 self.connect(self.syncTocAct, SIGNAL('triggered()'), self.__syncTOC) |
878 self.connect(self.syncTocAct, SIGNAL('triggered()'), self.__syncTOC) |
879 self.__actions.append(self.syncTocAct) |
879 self.__actions.append(self.syncTocAct) |
880 |
880 |
881 self.showTocAct = E4Action(self.trUtf8('Table of Contents'), |
881 self.showTocAct = E5Action(self.trUtf8('Table of Contents'), |
882 self.trUtf8('Table of Contents'), |
882 self.trUtf8('Table of Contents'), |
883 0, 0, self, 'help_show_toc') |
883 0, 0, self, 'help_show_toc') |
884 self.showTocAct.setStatusTip(self.trUtf8( |
884 self.showTocAct.setStatusTip(self.trUtf8( |
885 'Shows the table of contents window')) |
885 'Shows the table of contents window')) |
886 self.showTocAct.setWhatsThis(self.trUtf8( |
886 self.showTocAct.setWhatsThis(self.trUtf8( |
888 """<p>Shows the table of contents window.</p>""" |
888 """<p>Shows the table of contents window.</p>""" |
889 )) |
889 )) |
890 self.connect(self.showTocAct, SIGNAL('triggered()'), self.__showTocWindow) |
890 self.connect(self.showTocAct, SIGNAL('triggered()'), self.__showTocWindow) |
891 self.__actions.append(self.showTocAct) |
891 self.__actions.append(self.showTocAct) |
892 |
892 |
893 self.showIndexAct = E4Action(self.trUtf8('Index'), |
893 self.showIndexAct = E5Action(self.trUtf8('Index'), |
894 self.trUtf8('Index'), |
894 self.trUtf8('Index'), |
895 0, 0, self, 'help_show_index') |
895 0, 0, self, 'help_show_index') |
896 self.showIndexAct.setStatusTip(self.trUtf8( |
896 self.showIndexAct.setStatusTip(self.trUtf8( |
897 'Shows the index window')) |
897 'Shows the index window')) |
898 self.showIndexAct.setWhatsThis(self.trUtf8( |
898 self.showIndexAct.setWhatsThis(self.trUtf8( |
900 """<p>Shows the index window.</p>""" |
900 """<p>Shows the index window.</p>""" |
901 )) |
901 )) |
902 self.connect(self.showIndexAct, SIGNAL('triggered()'), self.__showIndexWindow) |
902 self.connect(self.showIndexAct, SIGNAL('triggered()'), self.__showIndexWindow) |
903 self.__actions.append(self.showIndexAct) |
903 self.__actions.append(self.showIndexAct) |
904 |
904 |
905 self.showSearchAct = E4Action(self.trUtf8('Search'), |
905 self.showSearchAct = E5Action(self.trUtf8('Search'), |
906 self.trUtf8('Search'), |
906 self.trUtf8('Search'), |
907 0, 0, self, 'help_show_search') |
907 0, 0, self, 'help_show_search') |
908 self.showSearchAct.setStatusTip(self.trUtf8( |
908 self.showSearchAct.setStatusTip(self.trUtf8( |
909 'Shows the search window')) |
909 'Shows the search window')) |
910 self.showSearchAct.setWhatsThis(self.trUtf8( |
910 self.showSearchAct.setWhatsThis(self.trUtf8( |
912 """<p>Shows the search window.</p>""" |
912 """<p>Shows the search window.</p>""" |
913 )) |
913 )) |
914 self.connect(self.showSearchAct, SIGNAL('triggered()'), self.__showSearchWindow) |
914 self.connect(self.showSearchAct, SIGNAL('triggered()'), self.__showSearchWindow) |
915 self.__actions.append(self.showSearchAct) |
915 self.__actions.append(self.showSearchAct) |
916 |
916 |
917 self.manageQtHelpDocsAct = E4Action(self.trUtf8('Manage QtHelp Documents'), |
917 self.manageQtHelpDocsAct = E5Action(self.trUtf8('Manage QtHelp Documents'), |
918 self.trUtf8('Manage QtHelp &Documents'), |
918 self.trUtf8('Manage QtHelp &Documents'), |
919 0, 0, self, 'help_qthelp_documents') |
919 0, 0, self, 'help_qthelp_documents') |
920 self.manageQtHelpDocsAct.setStatusTip(self.trUtf8( |
920 self.manageQtHelpDocsAct.setStatusTip(self.trUtf8( |
921 'Shows a dialog to manage the QtHelp documentation set')) |
921 'Shows a dialog to manage the QtHelp documentation set')) |
922 self.manageQtHelpDocsAct.setWhatsThis(self.trUtf8( |
922 self.manageQtHelpDocsAct.setWhatsThis(self.trUtf8( |
925 )) |
925 )) |
926 self.connect(self.manageQtHelpDocsAct, SIGNAL('triggered()'), |
926 self.connect(self.manageQtHelpDocsAct, SIGNAL('triggered()'), |
927 self.__manageQtHelpDocumentation) |
927 self.__manageQtHelpDocumentation) |
928 self.__actions.append(self.manageQtHelpDocsAct) |
928 self.__actions.append(self.manageQtHelpDocsAct) |
929 |
929 |
930 self.manageQtHelpFiltersAct = E4Action(self.trUtf8('Manage QtHelp Filters'), |
930 self.manageQtHelpFiltersAct = E5Action(self.trUtf8('Manage QtHelp Filters'), |
931 self.trUtf8('Manage QtHelp &Filters'), |
931 self.trUtf8('Manage QtHelp &Filters'), |
932 0, 0, self, 'help_qthelp_filters') |
932 0, 0, self, 'help_qthelp_filters') |
933 self.manageQtHelpFiltersAct.setStatusTip(self.trUtf8( |
933 self.manageQtHelpFiltersAct.setStatusTip(self.trUtf8( |
934 'Shows a dialog to manage the QtHelp filters')) |
934 'Shows a dialog to manage the QtHelp filters')) |
935 self.manageQtHelpFiltersAct.setWhatsThis(self.trUtf8( |
935 self.manageQtHelpFiltersAct.setWhatsThis(self.trUtf8( |
938 )) |
938 )) |
939 self.connect(self.manageQtHelpFiltersAct, SIGNAL('triggered()'), |
939 self.connect(self.manageQtHelpFiltersAct, SIGNAL('triggered()'), |
940 self.__manageQtHelpFilters) |
940 self.__manageQtHelpFilters) |
941 self.__actions.append(self.manageQtHelpFiltersAct) |
941 self.__actions.append(self.manageQtHelpFiltersAct) |
942 |
942 |
943 self.reindexDocumentationAct = E4Action(self.trUtf8('Reindex Documentation'), |
943 self.reindexDocumentationAct = E5Action(self.trUtf8('Reindex Documentation'), |
944 self.trUtf8('&Reindex Documentation'), |
944 self.trUtf8('&Reindex Documentation'), |
945 0, 0, self, 'help_qthelp_reindex') |
945 0, 0, self, 'help_qthelp_reindex') |
946 self.reindexDocumentationAct.setStatusTip(self.trUtf8( |
946 self.reindexDocumentationAct.setStatusTip(self.trUtf8( |
947 'Reindexes the documentation set')) |
947 'Reindexes the documentation set')) |
948 self.reindexDocumentationAct.setWhatsThis(self.trUtf8( |
948 self.reindexDocumentationAct.setWhatsThis(self.trUtf8( |
952 if not self.initShortcutsOnly: |
952 if not self.initShortcutsOnly: |
953 self.connect(self.reindexDocumentationAct, SIGNAL('triggered()'), |
953 self.connect(self.reindexDocumentationAct, SIGNAL('triggered()'), |
954 self.__searchEngine.reindexDocumentation) |
954 self.__searchEngine.reindexDocumentation) |
955 self.__actions.append(self.reindexDocumentationAct) |
955 self.__actions.append(self.reindexDocumentationAct) |
956 |
956 |
957 self.clearPrivateDataAct = E4Action(self.trUtf8('Clear private data'), |
957 self.clearPrivateDataAct = E5Action(self.trUtf8('Clear private data'), |
958 self.trUtf8('&Clear private data'), |
958 self.trUtf8('&Clear private data'), |
959 0, 0, |
959 0, 0, |
960 self, 'help_clear_private_data') |
960 self, 'help_clear_private_data') |
961 self.clearPrivateDataAct.setStatusTip(self.trUtf8('Clear private data')) |
961 self.clearPrivateDataAct.setStatusTip(self.trUtf8('Clear private data')) |
962 self.clearPrivateDataAct.setWhatsThis(self.trUtf8( |
962 self.clearPrivateDataAct.setWhatsThis(self.trUtf8( |