return static_cast<DOM::Element>( 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()
{
}
-
-/* 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 */
{
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;