dlgjtagprom.h 984 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
#ifndef DLGJTAGPROM_H
#define DLGJTAGPROM_H

#include <QWidget>
#include "dlgjtag.h"
#include "dlgjtag_def.h"

namespace Ui {
class DlgJtagProm;
}

class DlgJtag;

class DlgJtagProm : public QWidget
{
    Q_OBJECT

public:
    explicit DlgJtagProm(DlgJtag *parent, int prom, PromSettings *prs);
    ~DlgJtagProm();
    void    SetPromChainNo(int id);
    int     GetPromChainNo();


signals:
    void    OVerify(int prom, int dev);
    void    OProgram(int prom, int dev);
    void    OReset(int dev);

public slots:
    void    ITWRow(int ChainNo);

private slots:
    void on_SelectFile_clicked();
    void on_Verify_clicked();
    void on_ResetFpga_clicked();
    void on_Program_clicked();

private:
    Ui::DlgJtagProm *ui;
    int             _Prom;
//    int             _PromChainNo;
    DlgJtag         *_Parent;
    PromSettings    *_PromSettings;

    QString         GetFileInfo(QString datei);
};

#endif // DLGJTAGPROM_H