OSDN Git Service

b79453308560eb94cf251c7d3fa259504c6a1d13
[kita/kita.git] / kita / src / board / boardtabwidget.h
1 /***************************************************************************
2 *   Copyright (C) 2004 by Kita Developers                                 *
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 #ifndef KITABOARDTABWIDGET_H
12 #define KITABOARDTABWIDGET_H
13
14 #include "kitaui/tabwidgetbase.h"
15
16 #include "favoritelistview.h"
17 #include "boardview.h"
18
19 /**
20 @author Hideki Ikemoto
21 */
22 class KitaBoardTabWidget : public KitaTabWidgetBase
23 {
24     Q_OBJECT
25
26 public:
27     KitaBoardTabWidget( QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
28     ~KitaBoardTabWidget();
29
30 public slots:
31     void loadBoard( const KURL& );
32
33 private:
34     KitaBoardView* createView( QString label );
35     KitaBoardView* findView( const KURL& boardURL );
36     KitaBoardView* isSubjectView( QWidget* w );
37
38 protected:
39     virtual void deleteWidget( QWidget* w );
40
41
42     /* tab actions */
43
44 private:
45     void setupActions();
46
47 public slots:
48     void slotReloadButton();
49     void slotFocusSearchCombo();
50     void slotShowOldLogs( int idx = -1 );
51 };
52
53 /*--------------------------------------------------*/
54
55 class SubjectTabBar : public KTabBar
56 {
57     Q_OBJECT
58
59 public:
60     SubjectTabBar( QWidget* parent = 0, const char* name = 0 );
61     ~SubjectTabBar();
62
63 public slots:
64     virtual void showPopupMenu( int idx, const QPoint& global );
65
66 };
67
68
69 /*--------------------------------------------------*/
70
71
72 class KitaBoardDock : public KitaDockWidgetBase
73 {
74
75     Q_OBJECT
76     KitaBoardTabWidget* m_boardTab;
77 public:
78     KitaBoardDock( KDockManager* dockManager,
79                      const char* name,
80                      const QPixmap &pixmap,
81                      QWidget* parent = 0L,
82                      const QString& strCaption = QString::null,
83                      const QString& strTabPageLabel = QString::fromLatin1( " " ),
84                      WFlags f = 0 );
85     ~KitaBoardDock();
86 };
87
88
89
90 #endif