Marble

FileViewWidget.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2010 Bastian Holst <bastianholst@gmx.de>
4//
5
6#ifndef MARBLE_FILEVIEWWIDGET_H
7#define MARBLE_FILEVIEWWIDGET_H
8
9// Marble
10#include "marble_export.h"
11
12// Qt
13#include <QWidget>
14
15class QModelIndex;
16
17namespace Marble
18{
19
20class GeoDataPlacemark;
21class GeoDataLatLonBox;
22class MarbleWidget;
23
24class FileViewWidgetPrivate;
25
26class MARBLE_EXPORT FileViewWidget : public QWidget
27{
28 Q_OBJECT
29
30public:
31 explicit FileViewWidget(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
32 ~FileViewWidget() override;
33
34 void setMarbleWidget(MarbleWidget *widget);
35
36Q_SIGNALS:
37 void centerOn(const GeoDataPlacemark &, bool animated);
38 void centerOn(const GeoDataLatLonBox &, bool animated);
39
40private Q_SLOTS:
41 void mapCenterOnTreeViewModel(const QModelIndex &);
42
43private:
44 Q_PRIVATE_SLOT(d, void enableFileViewActions())
45 Q_PRIVATE_SLOT(d, void saveFile())
46 Q_PRIVATE_SLOT(d, void closeFile())
47 Q_PRIVATE_SLOT(d, void contextMenu(const QPoint &))
48 Q_PRIVATE_SLOT(d, void showPlacemarkDialog())
49 Q_DISABLE_COPY(FileViewWidget)
50
51 FileViewWidgetPrivate *const d;
52};
53
54}
55
56#endif
Binds a QML item to a specific geodetic location in screen coordinates.
typedef WindowFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.