2020-08-04 23:33:14 +08:00
|
|
|
|
#ifndef MF_TRAILERDECODERDIALOG_H
|
|
|
|
|
#define MF_TRAILERDECODERDIALOG_H
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
#include <QValidator>
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
#include <QButtonGroup>
|
|
|
|
|
#include <QTableWidget>
|
2020-08-06 11:19:56 +08:00
|
|
|
|
#include "../module/mifare.h"
|
2020-08-04 23:33:14 +08:00
|
|
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
|
{
|
|
|
|
|
class MF_trailerDecoderDialog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class MF_trailerDecoderDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit MF_trailerDecoderDialog(QWidget *parent = nullptr);
|
|
|
|
|
~MF_trailerDecoderDialog();
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
2020-08-06 14:53:49 +08:00
|
|
|
|
void on_accessBitsEdit_textChanged(const QString &arg1);
|
2020-08-04 23:33:14 +08:00
|
|
|
|
|
|
|
|
|
void on_blockSizeChanged(int id, bool st);
|
2020-08-06 14:53:49 +08:00
|
|
|
|
|
|
|
|
|
void on_boxChanged(const QString &arg1);
|
2020-08-04 23:33:14 +08:00
|
|
|
|
private:
|
|
|
|
|
Ui::MF_trailerDecoderDialog *ui;
|
|
|
|
|
QRegularExpressionValidator* validator;
|
|
|
|
|
QButtonGroup* sizeGroup;
|
2020-08-06 11:19:56 +08:00
|
|
|
|
void setTableItem(QTableWidget *widget, int row, int column, Mifare::AccessType accessType);
|
2020-08-05 00:45:54 +08:00
|
|
|
|
|
2020-08-04 23:33:14 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // MF_TRAILERDECODERDIALOG_H
|