Linecharts.h 784 Bytes
Newer Older
1 2 3 4 5
#ifndef LINECHARTS_H
#define LINECHARTS_H

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

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

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

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

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

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

#endif // LINECHARTS_H