1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : image plugins interface for image editor.
9
* Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
10
* Copyright (C) 2006-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
12
* This program is free software; you can redistribute it
13
* and/or modify it under the terms of the GNU General
14
* Public License as published by the Free Software Foundation;
15
* either version 2, or (at your option)
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* ============================================================ */
30
#include <QtCore/QObject>
34
#include <kxmlguiclient.h>
38
#include "digikam_export.h"
47
class DIGIKAM_EXPORT ImagePlugin : public QObject, public KXMLGUIClient
53
explicit ImagePlugin(QObject* const parent, const char* name = 0);
54
virtual ~ImagePlugin();
56
virtual void setEnabledSelectionActions(bool enable);
57
virtual void setEnabledActions(bool enable);
59
void loadTool(EditorTool* const tool);
61
QString actionCategory() const;
65
/** Used to set actions category into KDE config shortcuts dialog for Image EditorTool.
66
* One plugin can host more than one tool with more than one action shortcuts.
67
* Define a category, will group actions by plugin name in shortcuts list.
69
void setActionCategory(const QString& name);
77
class ImagePluginPriv;
78
ImagePluginPriv* const d;
83
#endif /* IMAGEPLUGIN_H */