1 /***************************************************************************
2 * Copyright (C) 2003 by Hideki Ikemoto *
3 * ikemo@users.sourceforge.jp *
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 KITATHREADVIEW_H
11 #define KITATHREADVIEW_H
13 #include <QtGui/QWidget>
16 #include <dom/html_base.h>
27 /* mode , m_viewmode uses them. */
40 class ThreadTabWidget;
45 * @author Hideki Ikemoto <ikemo@users.sourceforge.jp>
48 class ThreadView : public QWidget
52 ThreadTabWidget* m_parent;
55 ThreadView(ThreadTabWidget* parent);
57 const KUrl threadUrl() const;
58 const KUrl datUrl() const;
59 const QString selectedText() const;
61 void setup(const KUrl& datUrl, int mode);
62 void showStatusBar(const QString& information);
63 int getViewMode() { return m_viewmode; }
66 virtual void setFocus();
68 void showThread(const KUrl& datUrl, int num);
69 void setFont(const QFont& font);
70 void slotReloadButton(int jumpNum = 0);
71 void slotStopLoading();
72 void focusSearchCombo();
73 void slotDeleteButtonClicked();
74 void slotSearchNext();
75 void slotSearchPrev();
76 void slotGobackAnchor();
77 void slotGotoHeader();
78 void slotGotoFooter();
81 void slotDOMNodeActivated(const DOM::Node& node);
84 void insertSearchCombo();
85 void setSubjectLabel(const QString& boardName,
86 const QString& threadName, const QString& boardUrl);
89 ThreadView(const ThreadView&);
90 ThreadView& operator=(const ThreadView&);
94 HTMLPart* m_threadPart;
100 QToolButton* writeButton;
101 KComboBox* searchCombo;
102 QToolButton* highLightButton;
103 QToolButton* bookmarkButton;
104 QToolButton* reloadButton;
105 KComboBox* gotoCombo;
106 QToolButton* deleteButton;
107 QToolButton* closeButton;
109 QVBoxLayout* threadViewBaseLayout;
110 QHBoxLayout* layout2;
111 QSpacerItem* spacer2;
114 void slotSearchButton();
115 void slotBookmarkButtonClicked(bool on);
116 void slotWriteButtonClicked(const QString& resstr = QString());
117 void slotComboActivated(int index);
118 void slotUpdateInfo();
119 void slotSearchPrivate(bool rev);
120 void slotCloseButton();
123 void showThreadCompleted(); /* to ThreadPart */