Marble

TourControlEditWidget.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2013 Mihail Ivchenko <[email protected]>
4 // SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <[email protected]>
5 // SPDX-FileCopyrightText: 2014 Illya Kovalevskyy <[email protected]>
6 //
7 
8 #ifndef TOURCONTROLEDITWIDGET_H
9 #define TOURCONTROLEDITWIDGET_H
10 
11 #include <QWidget>
12 #include <QPersistentModelIndex>
13 
14 class QRadioButton;
15 class QToolButton;
16 
17 namespace Marble
18 {
19 
20 class GeoDataTourControl;
21 
22 class TourControlEditWidget: public QWidget
23 {
24  Q_OBJECT
25 
26 public:
27  explicit TourControlEditWidget( const QModelIndex& index, QWidget* parent=nullptr );
28  bool editable() const;
29 
30 Q_SIGNALS:
31  void editingDone( const QModelIndex& index );
32 
33 public Q_SLOTS:
34  void setEditable( bool editable );
35 
36 private Q_SLOTS:
37  void save();
38 
39 private:
40  GeoDataTourControl* tourControlElement();
41  QPersistentModelIndex m_index;
42  QRadioButton *m_radio_play;
43  QRadioButton *m_radio_pause;
44  QToolButton *m_button;
45 };
46 
47 } // namespace Marble
48 
49 #endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
Binds a QML item to a specific geodetic location in screen coordinates.
Q_SIGNALSQ_SIGNALS
QAction * save(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.