2003-12-23 Hideki Ikemoto <ikemo@users.sourceforge.jp>
+ * 'open board with tab' implemented.
* add Ctrl+F shortcut.
* add F5 shortcut.
connect( m_boardView, SIGNAL( clicked( const Kita::Board* ) ),
m_subjectView, SLOT( loadBoard( const Kita::Board* ) ) );
+ connect( m_boardView, SIGNAL( openBoardRequested( const Kita::Board*, bool ) ),
+ m_subjectView, SLOT( loadBoardWithNewTab( const Kita::Board* ) ) );
+
connect( m_subjectView, SIGNAL( signalShowThread( const Kita::Thread& ) ),
m_threadView, SLOT( showThread( const Kita::Thread& ) ) );
KRun::runURL( url, "text/html" );
break;
case 1:
-// emit signalShowThreadWithNewTab( thread );
+ emit openBoardRequested( Kita::Board::getByURL( url.url() ), true );
break;
default:
break;
signals:
void clicked( const Kita::Board* board );
+ void openBoardRequested( const Kita::Board* board, bool withNewTab = false );
};
#endif
{
}
+// FIXME: loadBoardWithNewTab¤È¤Þ¤È¤á¤ë¤³¤È
void KitaSubjectTabWidget::loadBoard( const Kita::Board* board )
{
m_latestView->loadBoard( board );
setTabLabel( m_latestView, board->name() );
}
+// FIXME: loadBoard¤È¤Þ¤È¤á¤ë¤³¤È
+void KitaSubjectTabWidget::loadBoardWithNewTab( const Kita::Board* board )
+{
+ KitaSubjectView* view = new KitaSubjectView( this );
+ addTab( view, board->name() );
+ m_latestView = view;
+ m_latestView->loadBoard( board );
+ connectSignals( view );
+ showPage( m_latestView );
+}
+
void KitaSubjectTabWidget::updateThread( const Kita::Thread& thread )
{
for( int i=0; i<count(); i++ ) {
public slots:
void loadBoard( const Kita::Board* );
+ void loadBoardWithNewTab( const Kita::Board* );
void updateThread( const Kita::Thread& );
private: