From 035325ae5cdc7b579a9b9f85cd0eb1b89af57be9 Mon Sep 17 00:00:00 2001 From: ikemo Date: Mon, 11 Jun 2007 15:39:11 +0000 Subject: [PATCH] remove unused. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1945 56b19765-1e22-0410-a548-a0f45d66c51a --- kita/src/thread/htmlpart.cpp | 153 +------------------------------------------ kita/src/thread/htmlpart.h | 6 -- 2 files changed, 1 insertion(+), 158 deletions(-) diff --git a/kita/src/thread/htmlpart.cpp b/kita/src/thread/htmlpart.cpp index 83978b4..3f6d8d8 100644 --- a/kita/src/thread/htmlpart.cpp +++ b/kita/src/thread/htmlpart.cpp @@ -631,45 +631,6 @@ QString KitaHTMLPart::getCurrentIDofNode() return static_cast( node ).getAttribute( "id" ).string(); } - -/*---------------------------------------------------------------*/ -/*---------------------------------------------------------------*/ -/* Tugi100, Mae100 etc. */ - - -/* public slot */ -void KitaHTMLPart::slotClickTugi100() -{ - if ( !m_domtree ) return ; - if ( m_mode != HTMLPART_MODE_MAINPART ) return ; - - int bottom = m_domtree->getBottomResNumber(); - int readNum = Kita::DatManager::getReadNum( m_datURL ); - - if ( readNum != bottom ) { - showResponses( bottom + 1, bottom + 100 ); - updateScreen( TRUE, TRUE ); - } -} - - - -/* public slot */ -void KitaHTMLPart::slotClickNokori() -{ - if ( !m_domtree ) return ; - if ( m_mode != HTMLPART_MODE_MAINPART ) return ; - - int bottom = m_domtree->getBottomResNumber(); - int readNum = Kita::DatManager::getReadNum( m_datURL ); - - if ( readNum != bottom ) { - showResponses( bottom + 1, readNum ); - updateScreen( TRUE, TRUE ); - } -} - - /* public slot */ void KitaHTMLPart::slotClickGotoFooter() { @@ -692,94 +653,6 @@ void KitaHTMLPart::slotClickGotoFooter() } - -/* public slot */ -void KitaHTMLPart::slotClickMae100() -{ - if ( !m_domtree ) return ; - if ( m_mode != HTMLPART_MODE_MAINPART ) return ; - - int top = m_domtree->getTopResNumber(); - int bottom = m_domtree->getBottomResNumber(); - - if ( top != 1 ) { - m_domtree->appendTemplate( 0 ); - showResponses( top - 100, bottom ); - updateScreen( TRUE, TRUE ); - - gotoAnchor( QString().setNum( top ), FALSE ); - } -} - - - -/* public slot */ -void KitaHTMLPart::slotClickMaeZenbu() -{ - if ( !m_domtree ) return ; - if ( m_mode != HTMLPART_MODE_MAINPART ) return ; - - int top = m_domtree->getTopResNumber(); - int bottom = m_domtree->getBottomResNumber(); - - if ( top != 1 ) { - showResponses( 1, bottom ); - updateScreen( TRUE, TRUE ); - - gotoAnchor( QString().setNum( top ), FALSE ); - } -} - - -/* public slot */ -void KitaHTMLPart::slotClickTmpNext100() -{ - if ( !m_domtree ) return ; - if ( m_mode != HTMLPART_MODE_MAINPART ) return ; - - int top = m_domtree->getTopResNumber(); - int bottom = m_domtree->getBottomResNumber(); - int tmpnum = m_domtree->getTemplateNumber(); - - if ( tmpnum < top ) { - m_domtree->appendTemplate( tmpnum + 100 ); - showResponses( top, bottom ); - updateScreen( TRUE, TRUE ); - - gotoAnchor( QString().setNum( tmpnum ), FALSE ); - } -} - - -/* public slot */ -void KitaHTMLPart::slotClickShowAll() -{ - if ( !m_domtree ) return ; - if ( m_mode != HTMLPART_MODE_MAINPART ) return ; - - int top = m_domtree->getTopResNumber(); - int bottom = m_domtree->getBottomResNumber(); - int readNum = Kita::DatManager::getReadNum( m_datURL ); - - if ( top != 1 || bottom != readNum ) { - - QCursor qc; qc.setShape( Qt::WaitCursor ); - QApplication::setOverrideCursor( qc ); - - showResponses( 1, readNum ); - updateScreen( TRUE, FALSE ); - - QApplication::restoreOverrideCursor(); - - gotoAnchor( "header", FALSE ); - } -} - - - - - - /*---------------------------------------------------------------*/ /*---------------------------------------------------------------*/ /* search */ @@ -1575,33 +1448,9 @@ bool KitaHTMLPart::showNext100Etc( const QString& refstr ) { if ( m_mode != HTMLPART_MODE_MAINPART ) return FALSE; - if ( refstr.left( 7 ) == "tugi100" ) { - slotClickTugi100(); - return TRUE; - - } else if ( refstr.left( 6 ) == "nokori" ) { - slotClickNokori(); - return TRUE; - - } else if ( refstr.left( 7 ) == "tosaigo" ) { + if ( refstr.left( 7 ) == "tosaigo" ) { slotClickGotoFooter(); return TRUE; - - } else if ( refstr.left( 6 ) == "mae100" ) { - slotClickMae100(); - return TRUE; - - } else if ( refstr.left( 8 ) == "maezenbu" ) { - slotClickMaeZenbu(); - return TRUE; - - } else if ( refstr.left( 6 ) == "tmp100" ) { - slotClickTmpNext100(); - return TRUE; - - } else if ( refstr.left( 5 ) == "zenbu" ) { - slotClickShowAll(); - return TRUE; } return FALSE; diff --git a/kita/src/thread/htmlpart.h b/kita/src/thread/htmlpart.h index 6ae4e91..f530c75 100644 --- a/kita/src/thread/htmlpart.h +++ b/kita/src/thread/htmlpart.h @@ -125,13 +125,7 @@ public slots: void slotGobackAnchor(); /* Tugi100, Mae100 etc. */ - void slotClickTugi100(); - void slotClickNokori(); void slotClickGotoFooter(); - void slotClickMae100(); - void slotClickMaeZenbu(); - void slotClickTmpNext100(); - void slotClickShowAll(); /* res popup */ void slotDeletePopup(); -- 2.11.0