File indexing completed on 2024-04-28 03:50:15

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2011-2012 Florian Eßer <f.esser@rwth-aachen.de>
0004 // SPDX-FileCopyrightText: 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
0005 // SPDX-FileCopyrightText: 2013 Roman Karlstetter <roman.karlstetter@googlemail.com>
0006 //
0007 
0008 #ifndef ELEVATIONPROFILECONTEXTMENU_H
0009 #define ELEVATIONPROFILECONTEXTMENU_H
0010 
0011 #include <QObject>
0012 #include <QSignalMapper>
0013 #include <QMenu>
0014 
0015 
0016 namespace Marble
0017 {
0018 
0019 class ElevationProfileFloatItem;
0020 class ElevationProfileContextMenu : public QObject {
0021     Q_OBJECT
0022 public:
0023     explicit ElevationProfileContextMenu(ElevationProfileFloatItem* floatItem);
0024     QMenu* getMenu();
0025 public Q_SLOTS:
0026     void updateContextMenuEntries();
0027 
0028 private:
0029     QList<QAction*>            m_selectionActions;
0030     ElevationProfileFloatItem* m_floatItem;
0031     QActionGroup*              m_sourceGrp;
0032     QMenu*                     m_contextMenu;
0033     QSignalMapper*             m_trackMapper;
0034 
0035 };
0036 }
0037 #endif