connect( SearchButton, SIGNAL( clicked() ), SLOT( slotSearchButton() ) );
connect( SearchCombo, SIGNAL( activated(int) ), SLOT( slotSearchButton() ) );
connect( HighLightButton, SIGNAL( toggled(bool) ), SLOT( slotHighLightenButton(bool) ) );
- connect( GobackAnchorButton, SIGNAL( clicked() ), SLOT( gobackAnchor() ) );
+ connect( GobackAnchorButton, SIGNAL( clicked() ), m_threadPart, SLOT( gobackAnchor() ) );
connect( ReloadButton, SIGNAL( clicked() ), SLOT( slotReloadButton() ) );
KParts::BrowserExtension * ext = m_threadPart->browserExtension();
m_threadData.truncate(0);
if ( m_thread.datURL().hasRef() ) {
- if ( ! gotoAnchor( m_thread.datURL().encodedHtmlRef()) )
- gotoAnchor( m_thread.datURL().htmlRef() );
+ if ( ! m_threadPart->gotoAnchor( m_thread.datURL().encodedHtmlRef()) )
+ m_threadPart->gotoAnchor( m_thread.datURL().htmlRef() );
} else {
- gotoAnchor( QString().setNum(m_thread.resNum()) );
+ m_threadPart->gotoAnchor( QString().setNum(m_thread.resNum()) );
}
m_threadPart->clearPosition();
m_threadPart->pushCurrentPosition();
return;
}
- gotoAnchor( QString("highlighten%1").arg( m_threadPart->nextHit() ) );
+ m_threadPart->gotoAnchor( QString("highlighten%1").arg( m_threadPart->nextHit() ) );
}
void KitaThreadView::slotOnURL(const QString& url)
{
emit signalChangeStatusbar(url);
}
-
+/*
bool KitaThreadView::gotoAnchor( const QString &name )
{
return m_threadPart->gotoAnchor( name );
bool KitaThreadView::gobackAnchor()
{
return m_threadPart->gobackAnchor();
-}
+}*/
void KitaThreadView::slotPopupMenu( KXMLGUIClient *client, const QPoint &global, const KURL &url, const QString &mimeType, mode_t mode)
{
KActionCollection * collection = client->actionCollection();
KAction * action;
- action = new KAction( i18n("goback anchor"), SmallIcon("idea"), KShortcut(), this, SLOT( gobackAnchor() ), collection, "goback_anchor" );
+ action = new KAction( i18n("goback anchor"), SmallIcon("idea"), KShortcut(), m_threadPart, SLOT( gobackAnchor() ), collection, "goback_anchor" );
printf(" KitaThreadView::slotPopupMenu() %p\n", action);
emit popupMenu(client, global, url, mimeType, mode);
}
{
printf(" openURLRequest:: orgURL %s\n", url.url().latin1() );
if ( url.url().at(0) == '#' ) {
- gotoAnchor( url.ref() );
+ m_threadPart->gotoAnchor( url.ref() );
return;
}
KURL datURL = filterReadCGI( url );
if ( datURL.host() == m_thread.datURL().host()
&& datURL.path() == m_thread.datURL().path() )
{
- if ( datURL.hasRef() ) gotoAnchor( datURL.ref() );
+ if ( datURL.hasRef() ) m_threadPart->gotoAnchor( datURL.ref() );
return;
}
emit openURLRequest(datURL, args);