OSDN Git Service

Rename boardmanager.cpp and boardmanager.h
[kita/kita.git] / src / threadlistview.h
1 /***************************************************************************
2 *   Copyright (C) 2003 by Hideki Ikemoto                                  *
3 *   ikemo@wakaba.jp                                                       *
4 *                                                                         *
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
12
13 #include <QtCore/QList>
14
15 #include "ui_threadlistviewbase.h"
16
17 class KAction;
18
19 namespace Kita
20 {
21     class Thread;
22     /**
23     @author Hideki Ikemoto
24     */
25     class ThreadListView : public QWidget, public Ui::ThreadListViewBase
26     {
27         Q_OBJECT
28
29     public:
30         explicit ThreadListView(QWidget* parent = 0);
31         virtual ~ThreadListView();
32
33     protected:
34         QStringList m_prevquery;
35         unsigned m_nextHitIndex;
36         QList<QTableWidgetItem *> m_hitList;
37         KAction* m_deleteLogAct;
38
39         void insertSearchCombo();
40         void searchNext(const QStringList& input);
41         void searchNew(const QStringList& query);
42         void clearSearch();
43         void hideColumn(int col);
44         void showColumn(int col);
45         void contextMenuEvent(QContextMenuEvent* event);
46         virtual void deleteLog(const KUrl& url);
47
48     protected slots:
49         void slotHideButton(bool on);
50         void slotItemClicked(QTableWidgetItem*);
51
52     private slots:
53         void slotSearchButton();
54
55     private:
56         KAction* m_openWithBrowserAct;
57         KAction* m_copyUrlAct;
58         KAction* m_copyTitleAndUrlAct;
59         KAction* m_favoritesAct;
60         KAction* m_propertyAct;
61     };
62 }
63
64 #endif