Marble

TourControlEditWidget.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 TOURCONTROLEDITWIDGET_H
9#define TOURCONTROLEDITWIDGET_H
10
11#include <QWidget>
12#include <QPersistentModelIndex>
13
14class QRadioButton;
15class QToolButton;
16
17namespace Marble
18{
19
20class GeoDataTourControl;
21
22class TourControlEditWidget: public QWidget
23{
25
26public:
27 explicit TourControlEditWidget( const QModelIndex& index, QWidget* parent=nullptr );
28 bool editable() const;
29
31 void editingDone( const QModelIndex& index );
32
33public Q_SLOTS:
34 void setEditable( bool editable );
35
36private Q_SLOTS:
37 void save();
38
39private:
40 GeoDataTourControl* tourControlElement();
42 QRadioButton *m_radio_play;
43 QRadioButton *m_radio_pause;
44 QToolButton *m_button;
45};
46
47} // namespace Marble
48
49#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 Fri Jul 12 2024 11:58:56 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.