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 {
34 @author Hideki Ikemoto
36 class ThreadListView : public Kita::ThreadListViewBase
41 ThreadListView( QWidget* parent = 0, const char *name = 0 );
45 QStringList m_prevquery;
46 unsigned m_nextHitIndex;
47 QValueList<KListViewItem *> m_hitList;
49 void insertSearchCombo();
50 QStringList parseSearchQuery( const QString& input );
51 void searchNext( const QStringList& input );
52 void searchAll( const QStringList& query );
55 void slotHideButton( bool on );
58 void slotSearchButton();
61 class ThreadListViewItem : public KListViewItem
64 ThreadListViewItem( QListView* parent ) : KListViewItem( parent ) {};
65 virtual ~ThreadListViewItem() {};
67 virtual int compare( QListViewItem* i, int col, bool ascending ) const;