2024-01-09 22:03:07 +00:00
|
|
|
#ifndef CUSTOMATTRIBUTESDIALOG_H
|
|
|
|
#define CUSTOMATTRIBUTESDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QAbstractButton>
|
|
|
|
|
|
|
|
#include "customattributestable.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class CustomAttributesDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CustomAttributesDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CustomAttributesDialog(CustomAttributesTable *parent);
|
|
|
|
~CustomAttributesDialog();
|
|
|
|
|
2024-01-11 20:56:01 +00:00
|
|
|
void setInput(const QString &key, QJsonValue value, bool setDefault);
|
|
|
|
|
2024-01-09 22:03:07 +00:00
|
|
|
private:
|
|
|
|
Ui::CustomAttributesDialog *ui;
|
|
|
|
CustomAttributesTable *const table;
|
|
|
|
|
|
|
|
void addNewAttribute();
|
2024-01-10 20:59:27 +00:00
|
|
|
bool verifyInput();
|
|
|
|
QVariant getValue() const;
|
2024-01-09 22:03:07 +00:00
|
|
|
void setNameEditHighlight(bool highlight);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // CUSTOMATTRIBUTESDIALOG_H
|