Marble

BookmarkManagerDialog.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#ifndef MARBLE_BOOKMARKMANAGERDIALOG_H
7#define MARBLE_BOOKMARKMANAGERDIALOG_H
8
9#include "marble_export.h"
10#include "ui_BookmarkManagerDialog.h"
11
12#include <QDialog>
13
14namespace Marble
15{
16
17class GeoDataDocument;
18class GeoDataContainer;
19class MarbleModel;
20class BookmarkManagerDialogPrivate;
21
22class MARBLE_EXPORT BookmarkManagerDialog : public QDialog, private Ui::UiBookmarkManagerDialog
23{
24 Q_OBJECT
25
26public:
27 /** Constructor. The model is used to retrieve the bookmark manager */
28 explicit BookmarkManagerDialog(MarbleModel *model, QWidget *parent = nullptr);
29
30 /** Destructor */
31 ~BookmarkManagerDialog() override;
32
33 void setButtonBoxVisible(bool visible);
34
35private Q_SLOTS:
36 void saveBookmarks();
37
38 void exportBookmarks();
39
40 void importBookmarks();
41
42private:
43 Q_PRIVATE_SLOT(d, void updateButtonState())
44
45 Q_PRIVATE_SLOT(d, void addNewFolder())
46
47 Q_PRIVATE_SLOT(d, void renameFolder())
48
49 Q_PRIVATE_SLOT(d, void deleteFolder())
50
51 Q_PRIVATE_SLOT(d, void editBookmark())
52
53 Q_PRIVATE_SLOT(d, void deleteBookmark())
54
55 Q_PRIVATE_SLOT(d, void handleFolderSelection(const QModelIndex &index))
56
57 Q_PRIVATE_SLOT(d, void discardChanges())
58
59 Q_DISABLE_COPY(BookmarkManagerDialog)
60 BookmarkManagerDialogPrivate *const d;
61 friend class BookmarkManagerDialogPrivate;
62};
63
64}
65#endif
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.