Commit d817a0b9 authored by David Faure's avatar David Faure
Browse files

Remove KonqBrowserInterface, was only used by KHTML

parent 4aac5351
......@@ -66,7 +66,6 @@ set(konqueror_KDEINIT_SRCS
konqsessiondlg.cpp
konqfactory.cpp
konqcombo.cpp
konqbrowseriface.cpp
delayedinitializer.cpp
konqanimatedlogo.cpp
konqmainwindow.cpp
......
/* This file is part of the KDE project
Copyright (C) 2001 Simon Hausmann <hausmann@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "konqbrowseriface.h"
#include "konqview.h"
KonqBrowserInterface::KonqBrowserInterface(KonqView *view)
: KParts::BrowserInterface(view)
{
m_view = view;
}
uint KonqBrowserInterface::historyLength() const
{
return m_view->historyLength();
}
void KonqBrowserInterface::goHistory(int steps)
{
m_view->goHistory(steps);
}
/* This file is part of the KDE project
Copyright (C) 2001 Simon Hausmann <hausmann@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __konq_browseriface_h__
#define __konq_browseriface_h__
#include <kparts/browserinterface.h>
class KonqView;
class KonqBrowserInterface : public KParts::BrowserInterface
{
Q_OBJECT
Q_PROPERTY(uint historyLength READ historyLength)
public:
explicit KonqBrowserInterface(KonqView *view);
uint historyLength() const;
public Q_SLOTS:
void goHistory(int);
private:
KonqView *m_view;
};
#endif
......@@ -27,7 +27,6 @@
#include <konq_events.h>
#include "konqviewmanager.h"
#include "konqtabs.h"
#include "konqbrowseriface.h"
#include "konqhistorymanager.h"
#include "konqpixmapprovider.h"
......@@ -108,7 +107,6 @@ KonqView::KonqView(KonqViewFactory &viewFactory,
m_bDisableScrolling = false;
m_bGotIconURL = false;
m_bPopupMenuEnabled = true;
m_browserIface = new KonqBrowserInterface(this);
m_bFollowActive = false;
m_bBuiltinView = false;
m_bURLDropHandling = false;
......@@ -388,8 +386,6 @@ void KonqView::connectPart()
KParts::BrowserExtension *ext = browserExtension();
if (ext) {
ext->setBrowserInterface(m_browserIface);
connect(ext, SIGNAL(openUrlRequestDelayed(QUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)),
m_pMainWindow, SLOT(slotOpenURLRequest(QUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)));
......@@ -782,17 +778,6 @@ void KonqView::updateHistoryEntry(bool saveLocationBarURL)
current->pageReferrer = m_pageReferrer;
}
void KonqView::goHistory(int steps)
{
// This is called by KonqBrowserInterface
if (m_pMainWindow->currentView() == this) {
m_pMainWindow->viewManager()->setActivePart(part());
}
// Delay the go() call (we need to return to the caller first)
m_pMainWindow->slotGoHistoryActivated(steps);
}
void KonqView::go(int steps)
{
if (!steps) { // [WildFox] i bet there are sites on the net with stupid devs who do that :)
......
......@@ -38,7 +38,6 @@
class KonqRun;
class KonqFrame;
class KonqBrowserInterface;
namespace KParts
{
class BrowserExtension;
......@@ -475,8 +474,6 @@ public:
QString dbusObjectPath();
QString partObjectPath();
void goHistory(int steps);
// Set the KGlobal active componentData(the one used by KBugReport)
void setActiveComponent();
......@@ -659,7 +656,6 @@ private:
QString m_caption;
QString m_tempFile;
QString m_dbusObjectPath;
KonqBrowserInterface *m_browserIface;
int m_randID;
#ifdef KActivities_FOUND
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment