|
Lines 2726-2740
Link Here
|
| 2726 |
openURL( 0L, popupItems.getFirst()->url() ); |
2726 |
openURL( 0L, popupItems.getFirst()->url() ); |
| 2727 |
} |
2727 |
} |
| 2728 |
|
2728 |
|
|
|
2729 |
void KonqMainWindow::slotPopupNewTabAtFront() |
| 2730 |
{ |
| 2731 |
KConfig *config = KGlobal::config(); |
| 2732 |
KConfigGroupSaver cs( config, TQString::fromLatin1("FMSettings") ); |
| 2733 |
bool openAfterCurrentPage = config->readBoolEntry( "OpenAfterCurrentPage", false ); |
| 2734 |
popupNewTab(true, openAfterCurrentPage); |
| 2735 |
} |
| 2736 |
|
| 2729 |
void KonqMainWindow::slotPopupNewTab() |
2737 |
void KonqMainWindow::slotPopupNewTab() |
| 2730 |
{ |
2738 |
{ |
| 2731 |
bool openAfterCurrentPage = KonqSettings::openAfterCurrentPage(); |
2739 |
bool openAfterCurrentPage = KonqSettings::openAfterCurrentPage(); |
| 2732 |
bool newTabsInFront = KonqSettings::newTabsInFront(); |
2740 |
bool newTabsInFront = KonqSettings::newTabsInFront(); |
| 2733 |
|
2741 |
|
| 2734 |
if (KApplication::keyboardMouseState() & TQt::ShiftButton) |
2742 |
if (KApplication::keyboardMouseState() & ShiftButton) |
| 2735 |
newTabsInFront = !newTabsInFront; |
2743 |
newTabsInFront = !newTabsInFront; |
| 2736 |
|
2744 |
|
| 2737 |
popupNewTab(newTabsInFront, openAfterCurrentPage); |
2745 |
popupNewTab(false, openAfterCurrentPage); |
| 2738 |
} |
2746 |
} |
| 2739 |
|
2747 |
|
| 2740 |
void KonqMainWindow::slotPopupNewTabRight() |
2748 |
void KonqMainWindow::slotPopupNewTabRight() |
|
Lines 2754-2770
Link Here
|
| 2754 |
KFileItemListIterator it ( popupItems ); |
2762 |
KFileItemListIterator it ( popupItems ); |
| 2755 |
KonqOpenURLRequest req; |
2763 |
KonqOpenURLRequest req; |
| 2756 |
req.newTab = true; |
2764 |
req.newTab = true; |
| 2757 |
req.newTabInFront = false; |
2765 |
req.newTabInFront = infront; |
| 2758 |
req.openAfterCurrentPage = openAfterCurrentPage; |
2766 |
req.openAfterCurrentPage = openAfterCurrentPage; |
| 2759 |
req.args = popupUrlArgs; |
2767 |
req.args = popupUrlArgs; |
| 2760 |
|
2768 |
|
| 2761 |
for ( ; it.current(); ++it ) |
2769 |
for ( ; it.current(); ++it ) |
| 2762 |
{ |
2770 |
{ |
| 2763 |
if ( infront && it.atLast() ) |
2771 |
openURL( 0L, (*it)->url(), QString::null, req ); |
| 2764 |
{ |
|
|
| 2765 |
req.newTabInFront = true; |
| 2766 |
} |
| 2767 |
openURL( 0L, (*it)->url(), TQString::null, req ); |
| 2768 |
} |
2772 |
} |
| 2769 |
} |
2773 |
} |
| 2770 |
|
2774 |
|
|
Lines 3926-3932
Link Here
|
| 3926 |
reloadShortcut.append(KKey(CTRL + Key_R)); |
3930 |
reloadShortcut.append(KKey(CTRL + Key_R)); |
| 3927 |
m_paReload = new KAction( i18n( "&Reload" ), "reload", reloadShortcut, TQT_TQOBJECT(this), TQT_SLOT( slotReload() ), actionCollection(), "reload" ); |
3931 |
m_paReload = new KAction( i18n( "&Reload" ), "reload", reloadShortcut, TQT_TQOBJECT(this), TQT_SLOT( slotReload() ), actionCollection(), "reload" ); |
| 3928 |
m_paReloadAllTabs = new KAction( i18n( "&Reload All Tabs" ), "reload_all_tabs", SHIFT+Key_F5, TQT_TQOBJECT(this), TQT_SLOT( slotReloadAllTabs() ), actionCollection(), "reload_all_tabs" ); |
3932 |
m_paReloadAllTabs = new KAction( i18n( "&Reload All Tabs" ), "reload_all_tabs", SHIFT+Key_F5, TQT_TQOBJECT(this), TQT_SLOT( slotReloadAllTabs() ), actionCollection(), "reload_all_tabs" ); |
| 3929 |
|
3933 |
|
| 3930 |
m_paReloadStop = new KAction( i18n( "&Reload/Stop" ), "reload", 0, TQT_TQOBJECT(this), TQT_SLOT( slotReloadStop() ), actionCollection(), "reload_stop" ); |
3934 |
m_paReloadStop = new KAction( i18n( "&Reload/Stop" ), "reload", 0, TQT_TQOBJECT(this), TQT_SLOT( slotReloadStop() ), actionCollection(), "reload_stop" ); |
| 3931 |
|
3935 |
|
| 3932 |
m_paUndo = KStdAction::undo( KonqUndoManager::self(), TQT_SLOT( undo() ), actionCollection(), "undo" ); |
3936 |
m_paUndo = KStdAction::undo( KonqUndoManager::self(), TQT_SLOT( undo() ), actionCollection(), "undo" ); |
|
Lines 4782-4789
Link Here
|
| 4782 |
else |
4786 |
else |
| 4783 |
tab_new_x = "tab_new_bg" ; |
4787 |
tab_new_x = "tab_new_bg" ; |
| 4784 |
|
4788 |
|
| 4785 |
actNewTab = new KAction( i18n( "Open in &New Tab" ), tab_new_x, 0, TQT_TQOBJECT(this), TQT_SLOT( slotPopupNewTab() ), konqyMenuClient->actionCollection(), "openintab" ); |
4789 |
KAction *actNewTab = new KAction( i18n( "Open in &Background Tab" ), "tab_new_bg", 0, TQT_TQOBJECT(this), TQT_SLOT( slotPopupNewTab() ), actionCollection(), "openintab" ); |
| 4786 |
actNewTab->setToolTip( i18n( "Open the document in a new tab" ) ); |
4790 |
actNewTab->setStatusText( i18n( "Open the document in a new background tab" ) ); |
|
|
4791 |
KAction *actNewTabFront = new KAction( i18n( "Open in &New Tab" ), "tab_new", 0, TQT_TQOBJECT(this), TQT_SLOT( slotPopupNewTabAtFront() ), actionCollection(), "openintabfront" ); |
| 4792 |
actNewTabFront->setStatusText( i18n( "Open the document in a new foreground tab" ) ); |
| 4793 |
actNewTab = new KAction( i18n( "Open in &Background Tab" ), tab_new_x, 0, TQT_TQOBJECT(this), TQT_SLOT( slotPopupNewTab() ), konqyMenuClient->actionCollection(), "openintab" ); |
| 4794 |
actNewTabFront = new KAction( i18n( "Open in &New Tab" ), tab_new_x, 0, TQT_TQOBJECT(this), TQT_SLOT( slotPopupNewTabAtFront() ), konqyMenuClient->actionCollection(), "openintabfront" ); |
| 4795 |
actNewTab->setToolTip( i18n( "Open the document in a new background tab" ) ); |
| 4796 |
actNewTabFront->setToolTip( i18n( "Open the document in a new foreground tab" ) ); |
| 4787 |
doTabHandling = true; |
4797 |
doTabHandling = true; |
| 4788 |
} |
4798 |
} |
| 4789 |
|
4799 |
|