UASQuickView.h 916 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#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;
protected:
    Ui::Form ui;
signals:
    
public slots:
27
    void valueChanged(const int uasid, const QString& name, const QString& unit, const QVariant value,const quint64 msecs);
28 29 30 31 32 33 34 35
    void actionTriggered(bool checked);
    void updateTimerTick();
    void addUAS(UASInterface* uas);
    void setActiveUAS(UASInterface* uas);
    void valChanged(double val,QString type);
};

#endif // UASQUICKVIEW_H