add the konqueror stubs for the WebSideBar module. waits for glue to add

the actual sidebar entry, and then it will be done.

svn path=/trunk/kdebase/konqueror/; revision=213225
This commit is contained in:
George Staikos 2003-03-11 23:07:49 +00:00
parent 27f9b46798
commit 5f289a3f87
3 changed files with 23 additions and 2 deletions

View file

@ -4186,6 +4186,21 @@ void KonqMainWindow::slotOpenURL( const KURL& url )
{
openURL( 0L, url );
}
void KonqMainWindow::slotAddWebSideBar(const KURL& url, const QString& name)
{
if (url.url().isEmpty() && name.isEmpty())
return;
kdDebug(1202) << "Requested to add URL " << url.url() << " [" << name << "] to the sidebar!" << endl;
int rc = KMessageBox::questionYesNo(0L,
i18n("Add new web extension \"%1\" to your sidebar?")
.arg(name.isEmpty() ? name : url.prettyURL()),
i18n("Web Sidebar"));
if (rc == KMessageBox::Yes) {
}
}
void KonqMainWindow::bookmarksIntoCompletion( const KBookmarkGroup& group )
{

View file

@ -457,9 +457,10 @@ protected slots:
virtual bool event( QEvent* );
void slotMoveTabLeft();
void slotMoveTabRight();
void slotMoveTabLeft();
void slotMoveTabRight();
void slotAddWebSideBar(const KURL& url, const QString& name);
protected:
static QString detectNameFilter( QString & url );

View file

@ -390,6 +390,11 @@ void KonqView::connectPart( )
connect( ext, SIGNAL( enableAction( const char *, bool ) ),
this, SLOT( slotEnableAction( const char *, bool ) ) );
connect( ext,
SIGNAL( addWebSideBar(const KURL&, const QString&) ),
m_pMainWindow,
SLOT( slotAddWebSideBar(const KURL&, const QString&) ) );
callExtensionBoolMethod( "setSaveViewPropertiesLocally(bool)", m_pMainWindow->saveViewPropertiesLocally() );
}