OSDN Git Service

b0b6d87e2778ded6f086bfc24bb40791c3eecd10
[kita/kita.git] / kita / src / libkita / signalcollection.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 #ifndef KITASIGNALCOLLECTION_H
11 #define KITASIGNALCOLLECTION_H
12
13 #include <kparts/browserextension.h>
14
15 #include <qobject.h>
16
17 namespace Kita
18 {
19     /**
20     @author Hideki Ikemoto
21     */
22     class SignalCollection : public QObject
23     {
24         Q_OBJECT
25
26         static SignalCollection* instance;
27
28         SignalCollection();
29         ~SignalCollection();
30     public:
31         static SignalCollection* getInstance();
32
33     signals:
34         /*--------------------------------*/
35
36         /* to : KitaMainWindow */
37         void bookmarked( const QString& datURL, bool on );
38         void openURLRequest( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs() );
39         void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
40                                 QString mimetype = QString::null,
41                                 int usr1 = 0, int usr2 = 0,
42                                 const KURL& usrUrl1 = KURL(),
43                                 const KURL& usrUrl2 = KURL(),
44                                 const QString& usrStr1 = QString::null,
45                                 const QString& usrStr2 = QString::null );
46         void setMainURLLine( const KURL& url );
47         void setMainCaption( const QString& captionStr );
48         void setMainStatusbar( const QString& statusStr );
49
50         /*--------------------------------*/
51
52         /* from: KitaDockWidgetBase            */
53         /* to  : KitaHTMLPart                  */
54         /* see also KitaHTMLPart::slotOnURL    */
55         void windowDeactivated();
56         void kitaIsActive();
57
58         /* from: KitaHTMLPart                  */
59         /* to  : KitaDockWidgetBase            */
60         /* see also KitaHTMLPart::slotOnURL    */
61         void isKitaActive();
62
63         /*--------------------------------*/
64
65         /* to : KitaHTMLPart */
66         void redrawHTMLPart( const KURL& url, bool force );
67         void redrawAllHTMLPart( bool force );
68         void setFontOfHTMLPart();
69         void setStyleSheetOfHTMLPart();
70
71         /*--------------------------------*/
72
73         /* from: KitaThreadView::setFocus            */
74         /* emitted when KitaThreadView is activated. */
75         void activateThreadView( const KURL& );
76
77         /* to : KitaThreadTabWidget */
78         void updateThreadTab( const KURL& url );
79         void closeThreadTab( const KURL& url );
80
81         /* to : KitaThreadDock */
82         void showKitaNavi( const KURL& , int , int );
83         void showKitaNaviByID( const KURL& , QString );
84         void showKitaNaviByWord( const KURL& , QString );
85         void showKitaNaviByName( const KURL& , QString );
86         void showKitaNaviResTree( const KURL&, int );
87         void showKitaNaviRevResTree( const KURL&, int );
88         void switchToThread();
89         void switchToKitanavi();
90
91         /*--------------------------------*/
92
93         /* to : FavoriteListView */
94         void favoritesUpdated();
95
96         /* to : KitaSubjectView, FavoriteListView */
97         void updateSubjectTab( const KURL& url );
98
99         /* to: KitaSubjectDock */
100         void switchToSubject();
101
102         /*--------------------------------*/
103
104         /* to: KitaBoardDock */
105         void switchToBoard();
106
107         /*--------------------------------*/
108
109         /* to: KitaImgTabWidget */
110         void redrawImage( const KURL& );
111
112         /* to: KitaImgDock */
113         void switchToImgview();
114
115         /*--------------------------------*/
116
117         /* to : KitaWriteTabWidget */
118         void closeWriteTab( const KURL& url );
119
120         /* to : KitaWriteDock */
121         void showWriteView( const KURL& , const QString& );
122         void createNewThread( const KURL& , const QString&, const QString& );   
123         void switchToWritedock();
124     };
125
126 }
127
128 #endif