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

#include <QWidget>
#include <QMap>

#include "WaypointList.h"
#include "UASInterface.h"

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 28 29 30
    // Override from Widget
    virtual void changeEvent(QEvent *e);
    
private slots:
    void _systemDeleted(QObject* uas);
    void _systemCreated(UASInterface* uas);
    void _systemSetActive(UASInterface* uas);
31 32

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

#endif // QGCWAYPOINTLISTMULTI_H