Skip to content
Snippets Groups Projects
Linecharts.h 1.01 KiB
Newer Older
  • Learn to ignore specific revisions
  • #ifndef LINECHARTS_H
    #define LINECHARTS_H
    
    #include <QStackedWidget>
    #include <QMap>
    
    lm's avatar
    lm committed
    #include <QVector>
    
    
    #include "LinechartWidget.h"
    #include "UASInterface.h"
    
    class Linecharts : public QStackedWidget
    {
    
    public:
        explicit Linecharts(QWidget *parent = 0);
    
    signals:
    
        /** @brief This signal is emitted once a logfile has been finished writing */
        void logfileWritten(QString fileName);
    
    LM's avatar
    LM committed
        void visibilityChanged(bool visible);
    
    
    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);
    
    lm's avatar
    lm committed
        /** @brief Add a new generic message source (not a system) */
        void addSource(QObject* obj);
    
        QMap<int, LinechartWidget*> plots;
    
    lm's avatar
    lm committed
        QVector<QObject*> genericSources;
    
        void showEvent(QShowEvent* event);
    
        /** @brief Stop updating widget */
        void hideEvent(QHideEvent* event);