summaryrefslogtreecommitdiffstats
path: root/amarok/src/htmlview.h
blob: 0efa20698e1e3ac7e5dcc0abcab557193af264f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// (c) 2005 Christian Muehlhaeuser <chris@chris.de>
// (c) 2006 Seb Ruiz <me@sebruiz.net>
// License: GNU General Public License V2


#ifndef AMAROK_HTMLVIEW_H
#define AMAROK_HTMLVIEW_H

#include <khtml_events.h>
#include <khtml_part.h>
#include <khtmlview.h>

class KAction;
class KTempFile;

class HTMLView : public KHTMLPart
{
    Q_OBJECT
  TQ_OBJECT

    public:
        HTMLView( TQWidget *tqparentWidget = 0, const char *widgetname = 0, const bool DNDEnabled = false, const bool JScriptEnabled = true );
       ~HTMLView();

        static TQString loadStyleSheet();
        static void    openURLRequest(const KURL &url );
        void   set( const TQString& data );
        static void paletteChange();

    private:
        static KTempFile *m_bgGradientImage;
        static KTempFile *m_headerGradientImage;
        static KTempFile *m_shadowGradientImage;
        static int m_instances;

        KAction *m_selectAll;
        KAction *m_copy;

    private slots:
        void enableCopyAction();
        void selectAll();
        void copyText();
};

#endif /* AMAROK_HTMLVIEW_H */