1
/***************************************************************************
6
copyright : (C) 2004 by Tim Sutton
7
email : tim@linfiniti.com
9
***************************************************************************/
11
/***************************************************************************
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
18
***************************************************************************/
19
/* $Id: plugin.h,v 1.13 2004/11/21 00:45:07 timlinux Exp $ */
22
#include "../qgisplugin.h"
23
#include "../../src/qgisapp.h"
27
#include <qsimplerichtext.h>
31
* \brief OpenModeller plugin for QGIS
34
class Plugin:public QObject, public QgisPlugin
38
* Constructor for a plugin. The QgisApp and QgisIface pointers are passed by
39
* QGIS when it attempts to instantiate the plugin.
40
* @param qgis Pointer to the QgisApp object
41
* @param qI Pointer to the QgisIface object.
43
Plugin(QgisApp * , QgisIface * );
46
void writeEntry(QString theScope, QString theProperty, QVariant theValue);
50
//!set values on the gui when a project is read or the gui first loaded
52
//! Show the dialog box
54
void renderLabel(QPainter *);
55
//! Refresh the map display using the mapcanvas exported via the plugin interface
59
//! show the help document
61
//! change the copyright font
63
//! change the copyright text
64
void setLabel(QString);
65
//! change the copyright font colour
66
void setColor(QColor);
67
//! set copyright label placement
68
void setPlacement(QString);
69
//! set copyright label enabled
75
//! This is the font that will be used for the copyright label
77
//! This is the string that will be used for the copyright label
78
QString mLabelQString;
79
//! This is the colour for the copyright label
81
//! Placement of the copyright label
83
//! Copyright label enabled
87
//! Id of the plugin's menu. Used for unloading
89
//! Pointer to our menu
90
QMenuBar *menuBarPointer;
91
//! Pionter to QGIS main application object
92
QgisApp *qgisMainWindowPointer;
93
//! Pointer to the QGIS interface object
94
QgisIface *qGisInterface;
95
//! Pointer to the QAction object used in the menu and toolbar
96
QAction *myQActionPointer;