Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
shapeplugin.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
#ifndef SHAPEPLUG_H
8
#define SHAPEPLUG_H
9
10
#include <QMap>
11
#include <QPointer>
12
13
#include "scconfig.h"
14
#include "scplugin.h"
15
#include "pluginapi.h"
16
#include "shapepalette.h"
17
18
class
ScrAction
;
19
class
ScribusMainWindow
;
20
21
class
PLUGIN_API
ShapePlugin
:
public
ScPersistentPlugin
22
{
23
Q_OBJECT
24
25
public
:
26
// Standard plugin implementation
27
ShapePlugin
();
28
virtual
~
ShapePlugin
();
29
virtual
bool
initPlugin
();
30
virtual
bool
cleanupPlugin
();
31
virtual
const
QString
fullTrName
()
const
;
32
virtual
const
AboutData
*
getAboutData
()
const
;
33
virtual
void
deleteAboutData(
const
AboutData
* about)
const
;
34
virtual
void
languageChange
();
35
virtual
void
addToMainWindowMenu
(
ScribusMainWindow
*);
36
ShapePalette
* sc_palette;
37
38
protected
:
39
QMap<QString, QPointer<ScrAction> > m_actions;
40
};
41
42
extern
"C"
PLUGIN_API
int
shapeplugin_getPluginAPIVersion();
43
extern
"C"
PLUGIN_API
ScPlugin
* shapeplugin_getPlugin();
44
extern
"C"
PLUGIN_API
void
shapeplugin_freePlugin(
ScPlugin
* plugin);
45
46
#endif
ScPersistentPlugin::cleanupPlugin
virtual bool cleanupPlugin()=0
Deactivates the plugin for unloading / program quit.
ScPlugin::fullTrName
virtual const QString fullTrName() const =0
Plug-in's human-readable, translated name.
ScPlugin
Abstract super class for all Scribus plug-ins.
Definition:
scplugin.h:90
ScPlugin::addToMainWindowMenu
virtual void addToMainWindowMenu(ScribusMainWindow *)=0
Allow plugins to add to a main menu.
ScribusMainWindow
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition:
scribus.h:123
ScPlugin::languageChange
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
ScPersistentPlugin::initPlugin
virtual bool initPlugin()=0
Initialize the plugin.
ScPlugin::AboutData
ScPlugin provides an interface to ask plugins for information about themselves.
Definition:
scplugin.h:103
ScPersistentPlugin
A plug-in that is resident for the lifetime of the app.
Definition:
scplugin.h:454
ScrAction
Definition:
scraction.h:33
ShapePalette
Definition:
shapepalette.h:87
ScPlugin::getAboutData
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
ShapePlugin
Definition:
shapeplugin.h:21
scribus
plugins
shapes
shapeplugin.h
Generated on Tue Sep 29 2015 09:15:08 for Scribus by
1.8.9.1