37 lines
674 B
C++
37 lines
674 B
C++
#ifndef RELAYSETTINGSDIALOG_H
|
|
#define RELAYSETTINGSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QSettings>
|
|
#include <memory>
|
|
#include "../items/item.h"
|
|
|
|
namespace Ui {
|
|
class ItemSettingsDialog;
|
|
}
|
|
|
|
class ItemSettingsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
std::shared_ptr<Item> item_;
|
|
QWidget* itemSpecificWidget_ = nullptr;
|
|
|
|
private:
|
|
void loadActorList();
|
|
|
|
public:
|
|
explicit ItemSettingsDialog(std::shared_ptr<Item> item, QWidget *parent = nullptr);
|
|
~ItemSettingsDialog();
|
|
|
|
private slots:
|
|
|
|
void removeActor();
|
|
void addActor();
|
|
void editActor();
|
|
void changeOverride();
|
|
|
|
private:
|
|
Ui::ItemSettingsDialog *ui;
|
|
};
|
|
|
|
#endif // RELAYSETTINGSDIALOG_H
|