#ifndef GRIFOTGTFORM_H
#define GRIFOTGTFORM_H

#include <QScrollArea>

class Ads1553MsgQ;

#include "ads_data.h"

namespace Ui {
    class GrifoTgtForm;
}

class GrifoTgtForm : public QScrollArea
{
    Q_OBJECT

public:
    explicit GrifoTgtForm(QWidget *parent = 0);
    ~GrifoTgtForm();

    struct trk_data_t
    {
        AdsLogicData timetag;
        AdsLogicData range;
        AdsLogicData range_meters;

        AdsLogicData id;
    };

    trk_data_t trk[16];

    AdsLogicData hpt_timetag;
    AdsLogicData hpt_id;
    AdsLogicData hpt_range;
    AdsLogicData hpt_range_meters;

    static GrifoTgtForm* instance();

    void processRawTrackMessage(int n, const avb_1553_word_t* msg);

private:
    Ui::GrifoTgtForm *ui;
    static GrifoTgtForm* theInstance;
    class Implementation;
    Implementation& p_;
};

#endif // GRIFOTGTFORM_H
