OSDN Git Service

d949caaedcabc6d5bc1c8530dbaa7e76ef6ee794
[kita/kita.git] / kita / src / respopup.h
1 /***************************************************************************
2 *   Copyright (C) 2007 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 KITARESPOPUP_H
11 #define KITARESPOPUP_H
12
13 #include <QtGui/QFrame>
14
15 #include <kurl.h>
16
17 class KHTMLView;
18
19
20 namespace Kita
21 {
22     class HTMLPart;
23
24     class ResPopup : public QFrame
25     {
26         Q_OBJECT
27
28         HTMLPart* m_htmlPart;
29         KUrl m_url;
30
31
32     public:
33         ResPopup(KHTMLView* view, const KUrl& datUrl);
34         ~ResPopup();
35         void setText(const QString& str);
36         void adjustSize();
37         void adjustPos(const QPoint& point);
38         void moveMouseAbove();
39
40     private:
41         void showImage(const KUrl& url);
42         ResPopup(const ResPopup&);
43         ResPopup& operator=(const ResPopup&);
44
45     signals:
46         void hideChildPopup();
47     };
48 }
49
50 #endif