#ifndef EDITTAGDIALOG_H
#define EDITTAGDIALOG_H

#include <QDialog>
#include "../src/qhexedit.h"
#include "../src/bytepattern.h"
namespace Ui {
class EditTagDialog;
}

class EditTagDialog : public QDialog
{
    Q_OBJECT

public:
    explicit EditTagDialog(BytePattern * bytePtr,QWidget *parent = nullptr);
    void colorGen();
    void loadTag(int row);
    ~EditTagDialog();
    BytePattern * bytePattern;

private slots:
    void on_colorButton_clicked();

    void on_applyButton_clicked();
signals:
    void tagReady();
private:
    Ui::EditTagDialog *ui;
    QHexEdit * hexEdit;
    int editedTagIdx;
};

#endif // EDITTAGDIALOG_H
