+2003-12-29 Hideki Ikemoto <ikemo@users.sourceforge.jp>
+
+ * add 'set popup color' pref.
+ * add Ctrl+W shortcut.
+
2003-12-28 Hideki Ikemoto <ikemo@users.sourceforge.jp>
* set the same font as a thread to popup.
new KAction( i18n( "Reload" ), KStdAccel::reload(),
this, SLOT( slotViewReload() ), actionCollection(), "reload" );
+ new KAction( i18n( "Close Current Thread Tab" ), KStdAccel::close(),
+ this, SLOT( windowCloseTab() ),
+ actionCollection(), "close_tab" );
createGUI();
}
m_subjectListAction->setChecked( m_subjectDock->isVisible() );
}
+void KitaMainWindow::windowCloseTab()
+{
+ m_threadView->closeCurrentTab();
+}
+
void KitaMainWindow::optionsPreferences()
{
// popup some sort of preference dialog, here
void windowShowBoardlist();
void windowShowSubjectlist();
void windowMenuAboutToShow();
+ void windowCloseTab();
void slotEditCopy();
void slotEditFind();
void slotViewReload();
static_cast<KitaThreadView *>( currentPage() )->slotReloadButton();
}
+void KitaThreadTabWidget::closeCurrentTab()
+{
+ deleteView( static_cast<KitaThreadView *>( currentPage() ) );
+}
+
KitaThreadTabBar::KitaThreadTabBar( QWidget* parent, const char* name )
: QTabBar( parent, name )
{
~KitaThreadTabWidget();
void focusSearchCombo();
void reloadThread();
+ void closeCurrentTab();
public slots:
void showThread( const Kita::Thread& thread );
<Menu name="window"><text>&Window</text>
<Action name="window_show_board_list" />
<Action name="window_show_subject_list" />
+ <Action name="close_tab" />
</Menu>
</MenuBar>
<ToolBar name="mainToolBar">