mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-22 10:04:53 -05:00
35 lines
730 B
C++
35 lines
730 B
C++
#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 *table);
|
|
~CustomAttributesDialog();
|
|
|
|
private:
|
|
Ui::CustomAttributesDialog *ui;
|
|
CustomAttributesTable *const m_table;
|
|
|
|
void setInputType(int inputType);
|
|
void onNameChanged(const QString &);
|
|
bool validateName(bool allowEmpty = false);
|
|
void clickedButton(QAbstractButton *button);
|
|
void addNewAttribute();
|
|
QVariant getValue() const;
|
|
};
|
|
|
|
|
|
#endif // CUSTOMATTRIBUTESDIALOG_H
|