2004-05-05 09:25:07 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2003 by Tim Sutton *
|
|
|
|
* tim@linfiniti.com *
|
|
|
|
* *
|
|
|
|
* This is a plugin generated from the QGIS plugin template *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
#ifndef PLUGINGUI_H
|
|
|
|
#define PLUGINGUI_H
|
|
|
|
|
|
|
|
#include <pluginguibase.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
@author Tim Sutton
|
|
|
|
*/
|
|
|
|
class PluginGui : public PluginGuiBase
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PluginGui();
|
|
|
|
PluginGui( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
|
|
|
|
~PluginGui();
|
|
|
|
void pbnOK_clicked();
|
2004-05-05 10:03:44 +00:00
|
|
|
void pbnCancel_clicked();
|
2004-05-05 09:25:07 +00:00
|
|
|
|
|
|
|
private:
|
2004-05-10 22:45:22 +00:00
|
|
|
void rotatePixmap(int theRotationInt);
|
2004-05-12 18:03:45 +00:00
|
|
|
void paintEvent( QPaintEvent * );//overloads qwidget
|
|
|
|
void resizeEvent(QResizeEvent *); //overloads qwidget
|
2004-05-05 09:25:07 +00:00
|
|
|
signals:
|
2004-05-10 22:45:22 +00:00
|
|
|
//void drawRasterLayer(QString);
|
|
|
|
//void drawVectorrLayer(QString,QString,QString);
|
|
|
|
void rotationChanged(int);
|
2004-05-13 23:22:01 +00:00
|
|
|
void changePlacement(QString);
|
2004-05-16 21:04:46 +00:00
|
|
|
// enable NorthArrow
|
|
|
|
void enableNorthArrow(bool);
|
|
|
|
|
2004-05-10 22:45:22 +00:00
|
|
|
public slots:
|
|
|
|
void setRotation(int);
|
2004-05-15 22:56:40 +00:00
|
|
|
void setPlacement(QString thePlacementQString);
|
2004-05-16 21:30:40 +00:00
|
|
|
void setEnabled(bool);
|
2004-05-15 22:56:40 +00:00
|
|
|
|
2004-05-10 22:45:22 +00:00
|
|
|
private slots:
|
|
|
|
//overides function byt the same name created in .ui
|
2004-05-12 06:11:47 +00:00
|
|
|
void spinSize_valueChanged( int theInt);
|
2004-05-10 22:45:22 +00:00
|
|
|
//overides function byt the same name created in .ui
|
2004-05-13 23:22:01 +00:00
|
|
|
void sliderRotation_valueChanged( int theInt);
|
2004-05-05 09:25:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|