1
/* This file is part of the KDE project
2
Copyright (C) 1999,2000 Kurt Granroth <granroth@kde.org>
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
#ifndef __aktion_part_h__
19
#define __aktion_part_h__
21
#include <kparts/browserextension.h>
22
#include <klibloader.h>
27
class AktionBrowserExtension;
31
class AktionFactory : public KLibFactory
36
virtual ~AktionFactory();
38
virtual QObject* create(QObject* parent = 0, const char* name = 0,
39
const char* classname = "QObject",
40
const QStringList &args = QStringList());
42
static KInstance *instance();
43
static KAboutData *aboutData();
46
static KInstance *s_instance;
49
class AktionPart: public KParts::ReadOnlyPart
53
AktionPart(QWidget *parent = 0, const char *name = 0);
54
virtual ~AktionPart();
56
KXAnim *kxanim() const { return widget; }
58
virtual bool closeURL();
61
virtual bool openFile();
73
AktionBrowserExtension *m_extension;
75
KAction *m_playAction;
76
KAction *m_pauseAction;
77
KAction *m_stopAction;
78
KAction *m_forwardAction;
79
KAction *m_backwardAction;
82
class AktionBrowserExtension : public KParts::BrowserExtension
85
friend class AktionPart;
87
AktionBrowserExtension(AktionPart *parent);
88
virtual ~AktionBrowserExtension();