mirror of
https://github.com/MountCloud/FireDog.git
synced 2026-10-22 07:06:16 +08:00
53 lines
964 B
C++
53 lines
964 B
C++
#ifndef FIREDOGFEATUREINFO_H
|
|
#define FIREDOGFEATUREINFO_H
|
|
|
|
#include <QDialog>
|
|
#include <QRegExpValidator>
|
|
|
|
#include "Qss/Qss.h"
|
|
|
|
#define FEATURE_FORMATE_REG_KEY "[0-9a-zA-Z]{0,}"
|
|
|
|
#define FEATURE_FORMATE_REG_HEX "(([a-fA-F0-9?]{2}[ ]?)|(\\[([0-9a-fA-F]{2}[ ]?-[ ]?[a-fA-F0-9]{2}[ ]?[,]?){1,}\\][ ]?)){0,}"
|
|
|
|
namespace firedog {
|
|
class Feature;
|
|
}
|
|
|
|
namespace Ui {
|
|
class FireDogFeatureInfo;
|
|
}
|
|
|
|
class FireDogFeatureInfo : public QssDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FireDogFeatureInfo(QWidget *parent = nullptr);
|
|
~FireDogFeatureInfo();
|
|
|
|
//ÉèÖÃÌØÕ÷
|
|
bool updateFeature(QStringList existsKeys,firedog::Feature* feature);
|
|
|
|
private slots:
|
|
void slots_radioClick();
|
|
|
|
void slots_save();
|
|
void slots_cancel();
|
|
|
|
private:
|
|
Ui::FireDogFeatureInfo *ui;
|
|
|
|
QValidator* keyValidator = NULL;
|
|
|
|
QValidator* hexValidator = NULL;
|
|
|
|
QStringList existsKeys;
|
|
|
|
void init();
|
|
|
|
bool isOk = false;
|
|
|
|
};
|
|
|
|
#endif // FIREDOGFEATUREINFO_H
|