1 /***************************************************************************
2 * Copyright (C) 2003 by Hideki Ikemoto *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
10 #ifndef KITATHREADLISTVIEW_H
11 #define KITATHREADLISTVIEW_H
13 #include "threadlistviewbase.h"
15 #include <klistview.h>
17 enum ThreadListViewRows {
35 @author Hideki Ikemoto
37 class ThreadListView : public Kita::ThreadListViewBase
42 ThreadListView( QWidget* parent = 0, const char *name = 0 );
46 QStringList m_prevquery;
47 unsigned m_nextHitIndex;
48 QValueList<KListViewItem *> m_hitList;
50 void insertSearchCombo();
51 QStringList parseSearchQuery( const QString& input );
52 void searchNext( const QStringList& input );
53 void searchAll( const QStringList& query );
56 void slotHideButton( bool on );
57 void slotMouseButtonClicked( int, QListViewItem* );
60 void slotSearchButton();
64 * @param datURL ɽ¼¨¤¹¤ë¥¹¥ì¤Îdat¤ÎURL
66 void showThreadRequested( const QString& datURL, bool withNewTab );
67 void bookmarked( const QString& datURL, bool on );
70 class ThreadListViewItem : public KListViewItem
73 ThreadListViewItem( QListView* parent ) : KListViewItem( parent ) {};
74 virtual ~ThreadListViewItem() {};
76 virtual int compare( QListViewItem* i, int col, bool ascending ) const;