{
if ( m_boardTab ) delete m_boardTab;
}
-
-
-/* setup & create KitaBoardDock */ /* public */
-KitaBoardTabWidget* KitaBoardDock::setup()
-{
- /* create KitaNaviTabWidget */
- m_boardTab = new KitaBoardTabWidget( this, "Subject" );
- setWidget( m_boardTab );
-
- Kita::SignalCollection* signalCollection = Kita::SignalCollection::getInstance();
- connect( signalCollection, SIGNAL( switchToSubject() ),
- SLOT( slotShowDock() ) );
-
- return m_boardTab;
-}
-
-/* public slot */
-void KitaBoardDock::slotLoadBoard( const KURL& boardURL, bool withNewTab )
-{
- slotShowDock();
-
- if ( m_boardTab ) m_boardTab->loadBoard( boardURL, withNewTab );
-}
const QString& strTabPageLabel = QString::fromLatin1( " " ),
WFlags f = 0 );
~KitaBoardDock();
-
- KitaBoardTabWidget* setup();
-
-public slots:
- void slotLoadBoard( const KURL& boardURL, bool withNewTab );
};
/* if usr1 == 1, open the board with new tab. */
if ( mimetype == "kita_open_2chboard" ) {
bool withNewTab = ( usr1 == 1 );
- m_boardDock->slotLoadBoard( url, withNewTab );
+ m_boardTab->loadBoard( url, withNewTab );
return ;
}
/* Subject View */
m_boardDock = new KitaBoardDock( manager(), "subject", 0L, 0L, i18n( "subject" ), i18n( "subject" ) );
- m_boardTab = m_boardDock->setup();
+ m_boardTab = new KitaBoardTabWidget( this, "Subject" );
+ m_boardDock->setWidget( m_boardTab );
connect( m_boardDock, SIGNAL( checkToggleAction( bool ) ), SLOT( slotCheckSubjectToggleAction( bool ) ) );
/* Board View */