Marble

FlyToEditWidget.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Mihail Ivchenko <ematirov@gmail.com>
4// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
5// SPDX-FileCopyrightText: 2014 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
6//
7
8#ifndef FLYTOEDITWIDGET_H
9#define FLYTOEDITWIDGET_H
10
11#include <QPersistentModelIndex>
12#include <QWidget>
13
14#include "GeoDataCoordinates.h"
15
16class QDoubleSpinBox;
17class QToolButton;
18class QComboBox;
19
20namespace Marble
21{
22
23class GeoDataFlyTo;
24class MarbleWidget;
25
26class FlyToEditWidget : public QWidget
27{
29
30public:
31 FlyToEditWidget(const QModelIndex &index, MarbleWidget *widget, QWidget *parent = nullptr);
32 bool editable() const;
33
35 void editingDone(const QModelIndex &index);
36
37public Q_SLOTS:
38 void setEditable(bool editable);
39
40 /** We disable editing of wait duration for first flyto in playlist. */
41 void setFirstFlyTo(const QPersistentModelIndex &index);
42
43private Q_SLOTS:
44 void save();
45 void updateCoordinates();
46
47private:
48 GeoDataFlyTo *flyToElement();
49 MarbleWidget *m_widget;
51 QDoubleSpinBox *m_durationSpin;
52 QComboBox *m_modeCombo;
53 GeoDataCoordinates m_coord;
54 QToolButton *m_button;
55};
56
57} // namespace Marble
58
59#endif
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.