-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsbookmarkeditordialog.h
68 lines (50 loc) · 2.09 KB
/
qgsbookmarkeditordialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/***************************************************************************
qgsbookmarkeditordialog.h
-------------------------------------
begin : September 2019
copyright : (C) 2019 by Mathieu Pellerin
email : nirvn dot asia at gmail dot com
***************************************************************************/
/***************************************************************************
* *
* 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 QGSBOOKMARKEDITORDIALOG_H
#define QGSBOOKMARKEDITORDIALOG_H
#include "ui_qgsbookmarkeditordialog.h"
#include "qgisapp.h"
#include "qgsbookmarkmanager.h"
#include <QDialog>
class QgsMapCanvas;
/**
* \ingroup app
* \brief a dialog for editing bookmarks.
* \since QGIS 3.10
*/
class APP_EXPORT QgsBookmarkEditorDialog: public QDialog, private Ui::QgsBookmarkEditorDialog
{
Q_OBJECT
public:
enum SaveLocation
{
ApplicationManager = 1, // Bookmark saved in the application bookmark manager
ProjectManager // Bookmark saved in the project bookmark manager
};
/**
* Constructor for QgsBookmarkEditorDialog
*/
QgsBookmarkEditorDialog( QgsBookmark bookmark, bool inProject = false, QWidget *parent = nullptr, QgsMapCanvas *mapCanvas = nullptr );
private slots:
void crsChanged( const QgsCoordinateReferenceSystem &crs );
void onAccepted();
void showHelp();
private:
QgsBookmark mBookmark;
bool mInProject = false;
QgsMapCanvas *mMapCanvas = nullptr;
};
#endif // QGSBOOKMARKEDITORDIALOG_H