1
/***************************************************************************
2
* Copyright (C) 2003 by Tim Sutton *
5
* This is a plugin generated from the QGIS plugin template *
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
19
#include <qgsmapcanvas.h>
21
#include "qgsrasterlayer.h"
23
#include <qgspointdialogbase.uic.h>
26
class QgsPointDialog : public QgsPointDialogBase
31
QgsPointDialog(QgsRasterLayer* layer, QWidget* parent = 0,
32
const char* name = 0, bool modal = FALSE, WFlags fl = 0);
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);
54
void loadLayer(QString);
58
void showCoordDialog(QgsPoint& pixelCoords);
59
void deleteDataPoint(QgsPoint& pixelCoords);
60
bool generateWorldFile();
61
QString guessWorldFileName(const QString& raster);
63
QgsMapCanvas* mCanvas;
65
QgsRasterLayer* mLayer;
67
std::vector<QgsPoint> mPixelCoords, mMapCoords;
68
std::vector<QString> mAcetateIDs;