1 /***************************************************************************
2 * Copyright (C) 2004 by Kita Developers *
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 KITABOARDVIEW_H
11 #define KITABOARDVIEW_H
15 #include "threadlistview.h"
17 class QTreeWidgetItem;
27 * @author Hideki Ikemoto <ikemo@users.sourceforge.jp>
29 class BoardView : public ThreadListView
33 BoardTabWidget* m_parent;
36 explicit BoardView(BoardTabWidget* parent);
38 const KUrl boardUrl();
39 void toggleShowOldLogs();
42 virtual void setFocus();
43 void slotFocusSearchCombo();
45 void loadBoard(const KUrl& url, bool online = true);
46 void setFont(const QFont& font);
47 void slotUpdateSubject(const KUrl& url);
51 int m_unreadNum, m_readNum, m_newNum;
53 bool m_enableSizeChange;
55 void updateKindLabel();
56 void deleteLog(const KUrl& url);
58 void updateRow(int row, const KUrl& datUrl,
59 const QDateTime& current, int id, int order);
60 void saveHeaderOnOff();
61 void loadHeaderOnOff();
63 void setAutoResize(bool flag);
64 BoardView(const BoardView&);
65 BoardView& operator=(const BoardView&);
68 void slotCloseButton();
69 void slotSizeChange(int section, int oldSize, int newSize);
72 void loadBoardCompleted(const KUrl&);