~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to plugins/georeferencer/qgspointdialog.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 QGSPOINTDIALOG_H
13
 
#define QGSPOINTDIALOG_H
14
 
 
15
 
#include <vector>
16
 
 
17
 
#include <qcursor.h>
18
 
 
19
 
#include <qgsmapcanvas.h>
20
 
 
21
 
#include "qgsrasterlayer.h"
22
 
 
23
 
#include <qgspointdialogbase.uic.h>
24
 
 
25
 
 
26
 
class QgsPointDialog : public QgsPointDialogBase
27
 
{
28
 
Q_OBJECT
29
 
public:
30
 
  QgsPointDialog();
31
 
  QgsPointDialog(QgsRasterLayer* layer, QWidget* parent = 0, 
32
 
                 const char* name = 0, bool modal = FALSE, WFlags fl = 0);
33
 
  ~QgsPointDialog();
34
 
 
35
 
public slots:
36
 
  
37
 
  void handleCanvasClick(QgsPoint& pixelCoords);
38
 
  void addPoint(const QgsPoint& pixelCoords, const QgsPoint& mapCoords);
39
 
  void pbnCancel_clicked();
40
 
  void pbnGenerateWorldFile_clicked();
41
 
  void pbnGenerateAndLoad_clicked();
42
 
  void pbnSelectWorldFile_clicked();
43
 
  void pbnSelectModifiedRaster_clicked();
44
 
  void tbnZoomIn_changed(int);
45
 
  void tbnZoomOut_changed(int);
46
 
  void tbnZoomToLayer_clicked();
47
 
  void tbnPan_changed(int);
48
 
  void tbnAddPoint_changed(int);
49
 
  void tbnDeletePoint_changed(int);
50
 
  void enableRelevantControls(void);
51
 
  
52
 
signals:
53
 
  
54
 
  void loadLayer(QString);
55
 
  
56
 
private:
57
 
 
58
 
  void showCoordDialog(QgsPoint& pixelCoords);
59
 
  void deleteDataPoint(QgsPoint& pixelCoords);
60
 
  bool generateWorldFile();
61
 
  QString guessWorldFileName(const QString& raster);
62
 
  
63
 
  QgsMapCanvas* mCanvas;
64
 
  QCursor* mCursor;
65
 
  QgsRasterLayer* mLayer;
66
 
  
67
 
  std::vector<QgsPoint> mPixelCoords, mMapCoords;
68
 
  std::vector<QString> mAcetateIDs;
69
 
 
70
 
};
71
 
 
72
 
#endif