OSDN Git Service

Move the directories
[kita/kita.git] / src / threadtabwidget.h
1 /***************************************************************************
2 *   Copyright (C) 2003 by Hideki Ikemoto, 2004 by 421                     *
3 *   ikemo@users.sourceforge.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 KITATHREADTABWIDGET_H
11 #define KITATHREADTABWIDGET_H
12
13 #include "kitaui/tabwidgetbase.h"
14
15 namespace Kita {
16     class ThreadView;
17
18     class ThreadTabWidget : public TabWidgetBase
19     {
20         Q_OBJECT
21
22     public:
23         explicit ThreadTabWidget(QWidget* parent = 0);
24         ~ThreadTabWidget();
25
26     public slots:
27         void slotShowMainThread(const KUrl& datUrl);
28         void slotCloseThreadTab(const KUrl& url);
29         void slotUpdateThreadTab(const KUrl& url);
30
31     private:
32         ThreadView* createView(const QString& label);
33         ThreadView* findMainView(const KUrl& url);
34         ThreadView* isThreadView(QWidget* w);
35
36     private slots:
37         void slotFontChanged();
38
39
40     protected:
41         virtual void deleteWidget(QWidget* w);
42
43
44         /*------------------------------------*/
45         /* ThreadView actions */
46
47     private:
48         void setupActions();
49         void contextMenuEvent(QContextMenuEvent* e);
50
51         QList<QAction*> m_actionList;
52
53     public slots:
54         void slotCopyText();
55         void slotFocusSearchCombo();
56         void slotSearchNext();
57         void slotSearchPrev();
58         void slotGobackAnchor();
59         void slotGotoHeader();
60         void slotGotoFooter();
61         void slotReloadButton();
62         void slotStopLoading();
63         void slotDeleteButtonClicked();
64     };
65 }
66
67 #endif