#include "threadtabwidget.h"
#include "threadview.h"
+#include "htmlpart.h"
#include "libkita/kita_misc.h"
#include "libkita/parsemisc.h"
case KITANAVI_SHOWRES:
for ( int i = QMAX( 1, startnum - margin ); i <= QMIN( totalNum, endnum + margin ); i++ ) {
- if ( i == startnum ) view->domAppendBelt( "belt1" );
+ if ( i == startnum ) view->getPart()->insertBeltNode( "belt1" );
str = Kita::DatManager::getDat( datURL , i );
view->domAppendData( str, i, i );
- if ( i == endnum ) view->domAppendBelt( "belt2" );
+ if ( i == endnum ) view->getPart()->insertBeltNode( "belt2" );
}
if ( startnum == endnum ) headstr = QString( "No. %1" ).arg( startnum );
else headstr = QString( "No. %1 - %2" ).arg( startnum ).arg( endnum );
/*---------------------*/
/* set data & parse it */
-/*---------------------*/ /* public */
+/* public */
void KitaThreadView::domAppendData( QString& , int bufnum , int )
{
m_threadPart->showResponses( bufnum, bufnum );
}
/* public */
-void KitaThreadView::domAppendBelt( QString idstr )
-{
- m_threadPart->insertBeltNode( idstr );
-}
-
-/* public */
void KitaThreadView::domSetInnerHTML( const QString& html )
{
m_threadPart->setInnerHTML( html );
int getViewMode() { return m_viewmode; }
/* for preview and KitaNavi */
+ KitaHTMLPart* getPart() { return m_threadPart; }
void domAppendData( QString& str, int bufnum, int num );
- void domAppendBelt( QString idstr );
void domSetInnerHTML( const QString& html );
void domApplyChange( QString lbstr, QString hstr, QString fstr, QString anchor, QString cmbstr );