~ubuntu-branches/ubuntu/hardy/qgis/hardy

« back to all changes in this revision

Viewing changes to src/plugins/north_arrow/plugingui.h

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2003 by Tim Sutton                                      *
 
3
 *   tim@linfiniti.com                                                     *
 
4
 *                                                                         *
 
5
 *   This is a plugin generated from the QGIS plugin template              *
 
6
 *                                                                         *
 
7
 *   This program is free software; you can redistribute it and/or modify  *
 
8
 *   it under the terms of the GNU General Public License as published by  *
 
9
 *   the Free Software Foundation; either version 2 of the License, or     *
 
10
 *   (at your option) any later version.                                   *
 
11
 ***************************************************************************/
 
12
#ifndef QGSNORTHARROWPLUGINGUI_H
 
13
#define QGSNORTHARROWPLUGINGUI_H
 
14
 
 
15
#include <ui_pluginguibase.h>
 
16
 
 
17
/**
 
18
@author Tim Sutton
 
19
*/
 
20
class QgsNorthArrowPluginGui : public QDialog, private Ui::QgsNorthArrowPluginGuiBase
 
21
{
 
22
Q_OBJECT
 
23
public:
 
24
    QgsNorthArrowPluginGui();
 
25
    QgsNorthArrowPluginGui( QWidget* parent = 0, Qt::WFlags fl = 0 );
 
26
    ~QgsNorthArrowPluginGui();
 
27
 
 
28
public slots:
 
29
    void on_pbnOK_clicked();
 
30
    void on_pbnCancel_clicked();
 
31
 
 
32
private:
 
33
    void rotatePixmap(int theRotationInt);
 
34
    //    void paintEvent( QPaintEvent * );//overloads qwidget
 
35
    void resizeEvent(QResizeEvent *); //overloads qwidget
 
36
signals:
 
37
   //void drawRasterLayer(QString);
 
38
   //void drawVectorrLayer(QString,QString,QString);
 
39
   void rotationChanged(int);
 
40
   void changePlacement(int);
 
41
   // enable NorthArrow
 
42
   void enableNorthArrow(bool);
 
43
   void enableAutomatic(bool);
 
44
   void needToRefresh();
 
45
 
 
46
public slots:
 
47
    void setRotation(int);
 
48
    void setPlacementLabels(QStringList&);
 
49
    void setPlacement(int);
 
50
    void setEnabled(bool);
 
51
    void setAutomatic(bool);
 
52
    void setAutomaticDisabled();
 
53
 
 
54
private slots:
 
55
    void on_spinAngle_valueChanged( int theInt);
 
56
    void on_sliderRotation_valueChanged( int theInt);
 
57
};
 
58
 
 
59
#endif