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 KITASIGNALCOLLECTION_H
11 #define KITASIGNALCOLLECTION_H
13 #include <kparts/browserextension.h>
20 @author Hideki Ikemoto
22 class SignalCollection : public QObject
26 static SignalCollection* instance;
31 static SignalCollection* getInstance();
34 /*--------------------------------*/
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 );
50 /*--------------------------------*/
52 /* from: KitaDockWidgetBase */
53 /* to : KitaHTMLPart */
54 /* see also KitaHTMLPart::slotOnURL */
55 void windowDeactivated();
58 /* from: KitaHTMLPart */
59 /* to : KitaDockWidgetBase */
60 /* see also KitaHTMLPart::slotOnURL */
63 /*--------------------------------*/
65 /* to : KitaHTMLPart */
66 void redrawHTMLPart( const KURL& url, bool force );
67 void redrawAllHTMLPart( bool force );
68 void setFontOfHTMLPart();
69 void setStyleSheetOfHTMLPart();
71 /*--------------------------------*/
73 /* from: KitaThreadView::setFocus */
74 /* emitted when KitaThreadView is activated. */
75 void activateThreadView( const KURL& );
77 /* to : KitaThreadTabWidget */
78 void updateThreadTab( const KURL& url );
79 void closeThreadTab( const KURL& url );
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();
91 /*--------------------------------*/
93 /* to : FavoriteListView */
94 void favoritesUpdated();
96 /* to : KitaSubjectView, FavoriteListView */
97 void updateSubjectTab( const KURL& url );
99 /* to: KitaSubjectDock */
100 void switchToSubject();
102 /*--------------------------------*/
104 /* to: KitaBoardDock */
105 void switchToBoard();
107 /*--------------------------------*/
109 /* to: KitaImgTabWidget */
110 void redrawImage( const KURL& );
112 /* to: KitaImgDock */
113 void switchToImgview();
115 /*--------------------------------*/
117 /* to : KitaWriteTabWidget */
118 void closeWriteTab( const KURL& url );
120 /* to : KitaWriteDock */
121 void showWriteView( const KURL& , const QString& );
122 void createNewThread( const KURL& , const QString&, const QString& );
123 void switchToWritedock();