Linecharts.h 732 Bytes
Newer Older
1
#pragma once
2 3 4

#include <QStackedWidget>
#include <QMap>
lm's avatar
lm committed
5
#include <QVector>
6 7

#include "LinechartWidget.h"
8
#include "Vehicle.h"
Don Gagne's avatar
Don Gagne committed
9 10
#include "MultiVehicleDockWidget.h"
#include "MAVLinkDecoder.h"
11

Don Gagne's avatar
Don Gagne committed
12
class Linecharts : public MultiVehicleDockWidget
13
{
14
    Q_OBJECT
15
public:
Don Gagne's avatar
Don Gagne committed
16
    explicit Linecharts(const QString& title, QAction* action, MAVLinkDecoder* decoder, QWidget *parent = 0);
17 18

signals:
19 20
    /** @brief This signal is emitted once a logfile has been finished writing */
    void logfileWritten(QString fileName);
LM's avatar
LM committed
21
    void visibilityChanged(bool visible);
22 23

protected:
Don Gagne's avatar
Don Gagne committed
24 25
    // Override from MultiVehicleDockWidget
    virtual QWidget* _newVehicleWidget(Vehicle* vehicle, QWidget* parent);
LM's avatar
LM committed
26

Don Gagne's avatar
Don Gagne committed
27 28
private:
    MAVLinkDecoder* _mavlinkDecoder;
29 30
};