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 ***************************************************************************/
13 #include <QtCore/QList>
14 #include <QtGui/QWidget>
19 class QTreeWidgetItem;
34 * @author Hideki Ikemoto <ikemo@users.sourceforge.jp>
36 class BBSView : public QWidget
39 ListViewItem* m_favorites;
41 QList<Category> getCategoryList(const QString& html) const;
44 KComboBox* searchCombo;
45 QTreeWidget* m_boardList;
46 void contextMenuEvent(QContextMenuEvent* e);
49 QVBoxLayout* bbsViewBaseLayout;
50 QHBoxLayout* layout10;
54 void loadBoard(QTreeWidgetItem* item);
55 void refreshFavoriteBoards();
56 void filter(const QString& str);
57 void slotMenuOpenWithBrowser();
60 explicit BBSView(QWidget *parent);
66 void updateBoardList();
68 void setFont(const QFont& font);
69 virtual void setFocus();
73 bool downloadBoardList();
74 void mousePressEvent(QMouseEvent *e);
75 BBSView(const BBSView&);
76 BBSView& operator=(const BBSView&);
78 KAction* m_openWithBrowserAct;
79 KAction* m_copyUrlAct;
80 KAction* m_copyTitleAndUrlAct;
81 KAction* m_removeFromFavoritesAct;
82 KAction* m_addToFavoritesAct;