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>
16 #include <kparts/browserextension.h>
18 enum ThreadListViewRows {
39 QString labelName; // for header's label
40 QString itemName; // for header's popupItem
41 QString keyName; // for KConfig's key
49 @author Hideki Ikemoto
51 class ThreadListView : public Kita::ThreadListViewBase
56 ThreadListView( QWidget* parent = 0, const char *name = 0 );
60 static struct Col_Attr s_colAttr[];
61 QStringList m_prevquery;
62 unsigned m_nextHitIndex;
63 QValueList<KListViewItem *> m_hitList;
65 void insertSearchCombo();
66 QStringList parseSearchQuery( const QString& input );
67 void searchNext( const QStringList& input );
68 void searchAll( const QStringList& query );
71 void slotHideButton( bool on );
72 void slotMouseButtonClicked( int, QListViewItem* );
75 void slotSearchButton();
78 void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
79 QString mimetype = QString::null,
80 int usr1 = 0, int usr2 = 0,
81 const KURL& usrUrl1 = KURL(),
82 const KURL& usrUrl2 = KURL(),
83 const QString& usrStr1 = QString::null,
84 const QString& usrStr2 = QString::null );
85 void bookmarked( const QString& datURL, bool on );
88 class ThreadListViewItem : public KListViewItem
91 ThreadListViewItem( QListView* parent ) : KListViewItem( parent ) {};
92 virtual ~ThreadListViewItem() {};
94 virtual int compare( QListViewItem* i, int col, bool ascending ) const;