~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/plugins/georeferencer/mapcoordsdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
#include <qgspoint.h>
16
16
 
 
17
class QgsMapCanvas;
 
18
class QgsMapTool;
 
19
 
17
20
#include <ui_mapcoordsdialogbase.h>
18
21
#include <QDialog>
19
22
class MapCoordsDialog : public QDialog, private Ui::MapCoordsDialogBase
20
23
{
21
 
Q_OBJECT
22
 
public:
23
 
  MapCoordsDialog();
24
 
  MapCoordsDialog(const QgsPoint& pixelCoords,
25
 
                  QWidget* parent = 0, Qt::WFlags fl = 0);
26
 
  ~MapCoordsDialog();
27
 
  
28
 
public slots:
29
 
  
30
 
  void on_buttonOk_clicked();
31
 
  void on_buttonCancel_clicked(); 
32
 
  
33
 
private:
34
 
  
35
 
  QgsPoint mPixelCoords;
36
 
 
37
 
signals:
38
 
 
39
 
  void pointAdded(const QgsPoint& pixelCoords, const QgsPoint& mapCoords);
 
24
    Q_OBJECT
 
25
  public:
 
26
    MapCoordsDialog();
 
27
    MapCoordsDialog( const QgsPoint& pixelCoords, QgsMapCanvas* qgisCanvas,
 
28
                     QWidget* parent = 0, Qt::WFlags fl = 0 );
 
29
    ~MapCoordsDialog();
 
30
 
 
31
  public slots:
 
32
 
 
33
    void accept();
 
34
 
 
35
    void on_btnPointFromCanvas_clicked();
 
36
 
 
37
    void maybeSetXY( const QgsPoint &, Qt::MouseButton );
 
38
    void updateOK();
 
39
 
 
40
  private:
 
41
 
 
42
    QgsPoint mPixelCoords;
 
43
 
 
44
    QgsMapTool* mToolEmitPoint;
 
45
    QgsMapTool* mPrevMapTool;
 
46
 
 
47
    QgsMapCanvas* mQgisCanvas;
 
48
 
 
49
  signals:
 
50
 
 
51
    void pointAdded( const QgsPoint& pixelCoords, const QgsPoint& mapCoords );
40
52
 
41
53
};
42
54