blob: 272ad4c9ec534501282610fcd007cd96a572f83c (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/* ============================================================
* File : plugin.h
* Authors: KIPI team developers (see AUTHORS files for details)
*
* Date : 2004-02
* Description :
*
* Copyright 2004 by the KIPI team
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU Library General
* Public License as published by the Free Software Foundation;
* either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* ============================================================ */
#ifndef KIPI_PLUGIN_H
#define KIPI_PLUGIN_H
// TQt includes.
#include <tqobject.h>
// KDE includes.
#include <kaction.h>
// Lib KIPI includes.
#include "libkipi/interface.h"
#include "libkipi/libkipi_export.h"
class KInstance;
/** @namespace KIPI */
namespace KIPI
{
enum Category
{
IMAGESPLUGIN = 0,
EFFECTSPLUGIN,
TOOLSPLUGIN,
IMPORTPLUGIN,
EXPORTPLUGIN,
BATCHPLUGIN,
COLLECTIONSPLUGIN
};
class LIBKIPI_EXPORT Plugin : public TQObject
{
public:
Plugin( KInstance* instance, TQObject *parent, const char* name);
virtual ~Plugin();
virtual void setup( TQWidget* widget ) = 0;
KActionPtrList actions( TQWidget* parent = 0 );
KActionCollection* actionCollection( TQWidget* parent = 0 );
virtual Category category( KAction* action ) const = 0;
protected:
void addAction( KAction* action );
private:
struct Private;
Private* d;
};
}
#endif // KIPI_PLUGIN_H
|