QGCWaypointListMulti.h 769 Bytes
Newer Older
1 2 3 4 5 6 7
#ifndef QGCWAYPOINTLISTMULTI_H
#define QGCWAYPOINTLISTMULTI_H

#include <QWidget>
#include <QMap>

#include "WaypointList.h"
8
#include "MultiVehicleManager.h"
9

10 11 12
namespace Ui
{
class QGCWaypointListMulti;
13 14 15 16 17 18 19 20 21 22 23
}

class QGCWaypointListMulti : public QWidget
{
    Q_OBJECT

public:
    explicit QGCWaypointListMulti(QWidget *parent = 0);
    ~QGCWaypointListMulti();

protected:
24 25 26 27
    // Override from Widget
    virtual void changeEvent(QEvent *e);
    
private slots:
28 29 30
    void _vehicleRemoved(Vehicle* vehicle);
    void _vehicleAdded(Vehicle* vehicle);
    void _activeVehicleChanged(Vehicle* vehicle);
31 32

private:
33 34 35 36
    
    static void*                _offlineUAS;
    QMap<void*, WaypointList*>  _lists;
    Ui::QGCWaypointListMulti*   _ui;
37 38 39
};

#endif // QGCWAYPOINTLISTMULTI_H