OSDN Git Service

Move the directories
[kita/kita.git] / src / bbstabwidget.cpp
1 /***************************************************************************
2 *   Copyright (C) 2004 by Hideki Ikemoto , (c) 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
11 #include "bbstabwidget.h"
12
13 #include <klocale.h>
14
15 #include "bbsview.h"
16
17 using namespace Kita;
18
19 BBSTabWidget::BBSTabWidget(QWidget* parent) : TabWidgetBase(parent)
20 {
21     BBSView * view = new BBSView(this);
22     addTab(view, i18nc("@title:tab", "Board Name"));
23 }
24
25
26 BBSTabWidget::~BBSTabWidget() {}
27
28
29 /* public slot */
30 void BBSTabWidget::showBoardList()
31 {
32     static_cast<BBSView*>(widget(0))->showBoardList();
33 }
34
35 void BBSTabWidget::updateBoardList()
36 {
37     static_cast<BBSView*>(widget(0))->updateBoardList();
38 }
39
40 /* public slot */
41 void BBSTabWidget::setFont(const QFont& font)
42 {
43     KTabWidget::setFont(font);
44     static_cast<BBSView*>(widget(0))->setFont(font);
45 }
46
47
48 void BBSTabWidget::loadOpened()
49 {
50     static_cast<BBSView*>(widget(0))->loadOpened();
51 }