Linecharts.h 828 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef LINECHARTS_H
#define LINECHARTS_H

#include <QStackedWidget>
#include <QMap>

#include "LinechartWidget.h"
#include "UASInterface.h"

class Linecharts : public QStackedWidget
{
Q_OBJECT
public:
    explicit Linecharts(QWidget *parent = 0);

signals:
17 18
    /** @brief This signal is emitted once a logfile has been finished writing */
    void logfileWritten(QString fileName);
19 20 21 22 23 24 25 26 27 28

public slots:
    /** @brief Select plot for one system */
    void selectSystem(int systemid);
    /** @brief Add a new system to the list of plots */
    void addSystem(UASInterface* uas);

protected:
    QMap<int, LinechartWidget*> plots;
    bool active;
29
    /** @brief Start updating widget */
30
    void showEvent(QShowEvent* event);
31 32
    /** @brief Stop updating widget */
    void hideEvent(QHideEvent* event);
33

34 35 36
};

#endif // LINECHARTS_H