UASQuickView.h 912 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef UASQUICKVIEW_H
#define UASQUICKVIEW_H

#include <QWidget>
#include <QTimer>
#include <QLabel>
#include "uas/UASManager.h"
#include "uas/UASInterface.h"
#include "ui_UASQuickView.h"
#include "UASQuickViewItem.h"
class UASQuickView : public QWidget
{
    Q_OBJECT
public:
    UASQuickView(QWidget *parent = 0);
private:
    UASInterface *uas;
    QList<QString> uasPropertyList;
    QMap<QString,double> uasPropertyValueMap;
    QMap<QString,UASQuickViewItem*> uasPropertyToLabelMap;
    QTimer *updateTimer;
22
    Ui::UASQuickView* m_ui;
23
signals:
24

25
public slots:
26
    void valueChanged(const int uasid, const QString& name, const QString& unit, const QVariant value,const quint64 msecs);
27 28 29 30 31 32 33 34
    void actionTriggered(bool checked);
    void updateTimerTick();
    void addUAS(UASInterface* uas);
    void setActiveUAS(UASInterface* uas);
    void valChanged(double val,QString type);
};

#endif // UASQUICKVIEW_H