Scribus
Open source desktop publishing at your fingertips
picturebrowserplugin.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 PICTUREBROWSERPLUGIN_H
8 #define PICTUREBROWSERPLUGIN_H
9 
10 #include "pluginapi.h"
11 #include "scplugin.h"
12 #include "picturebrowser.h"
13 
18 class PLUGIN_API PictureBrowserPlugin : public ScActionPlugin
19 {
20  Q_OBJECT
21 
22  public:
25  virtual ~PictureBrowserPlugin();
26  virtual bool cleanupPlugin();
28  virtual bool run ( ScribusDoc* doc, QString target = QString::null );
29  virtual const QString fullTrName() const;
30  virtual const AboutData* getAboutData() const;
31  virtual void deleteAboutData ( const AboutData* about ) const;
32  virtual void languageChange();
33  virtual void addToMainWindowMenu ( ScribusMainWindow * ) {};
34  virtual void setDoc ( ScribusDoc* doc );
35  virtual void unsetDoc();
36  virtual void changedDoc ( ScribusDoc* doc );
37 
38  public slots:
39  void closePictureBrowser();
40 
41  private:
42  PictureBrowser *pictureBrowser;
43 
44  private slots:
45  //only called on auto delete on close, resets ptr
46  void pictureBrowserClosed();
47 };
48 
49 extern "C" PLUGIN_API int picturebrowser_getPluginAPIVersion();
50 extern "C" PLUGIN_API ScPlugin* picturebrowser_getPlugin();
51 extern "C" PLUGIN_API void picturebrowser_freePlugin ( ScPlugin* plugin );
52 
53 #endif
A plug-in that performs a single action.
Definition: scplugin.h:248
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
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
virtual bool run(ScribusDoc *doc, QString target=QString::null)=0
Run the plug-in's main action.
See scplugin.h and pluginmanager.{cpp,h} for detail on what these methods do. That documentatation is...
Definition: picturebrowserplugin.h:18
virtual void languageChange()=0
Update all user-visible text to reflect current UI language.
the Document Class
Definition: scribusdoc.h:90
virtual void addToMainWindowMenu(ScribusMainWindow *)
Allow plugins to add to a main menu.
Definition: picturebrowserplugin.h:33
ScPlugin provides an interface to ask plugins for information about themselves.
Definition: scplugin.h:103
virtual void setDoc(ScribusDoc *doc)
hooks that plugins can use to detect if the current document was closed etc..
Definition: scplugin.cpp:78
virtual const AboutData * getAboutData() const =0
Return descriptive information about the plug-in.
virtual bool cleanupPlugin()
Deactivates the plugin for unloading / program quit.
Definition: scplugin.h:318