Scribus
Open source desktop publishing at your fingertips
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
virtual bool cleanupPlugin()=0
Deactivates the plugin for unloading / program quit.
virtual const QString fullTrName() const =0
Plug-in's human-readable, translated name.
Abstract super class for all Scribus plug-ins.
Definition: scplugin.h:90
virtual void addToMainWindowMenu(ScribusMainWindow *)=0
Allow plugins to add to a main menu.
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
virtual bool initPlugin()=0
Initialize the plugin.
ScPlugin provides an interface to ask plugins for information about themselves.
Definition: scplugin.h:103
A plug-in that is resident for the lifetime of the app.
Definition: scplugin.h:454
Definition: scraction.h:33
Definition: shapepalette.h:87
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
Definition: shapeplugin.h:21