2019-01-26 23:22:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-08-26 00:50:17 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2019-01-26 23:22:16 +00:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QStringListModel>
|
|
|
|
|
|
|
|
class QAbstractButton;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ArgumentEditor;
|
2020-04-15 06:13:11 +00:00
|
|
|
} // namespace Ui
|
2019-01-26 23:22:16 +00:00
|
|
|
|
|
|
|
class ArgumentEditor : public QDialog {
|
|
|
|
Q_OBJECT
|
2019-08-26 00:50:17 +00:00
|
|
|
|
|
|
|
std::unique_ptr<Ui::ArgumentEditor> m_ui;
|
2019-01-26 23:22:16 +00:00
|
|
|
QStringListModel m_model;
|
2020-04-15 06:13:11 +00:00
|
|
|
|
2019-01-26 23:22:16 +00:00
|
|
|
public:
|
2019-08-26 00:50:17 +00:00
|
|
|
explicit ArgumentEditor(QWidget* parent = nullptr);
|
2019-08-30 07:40:25 +00:00
|
|
|
~ArgumentEditor() override;
|
2019-01-26 23:22:16 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_addButton_clicked();
|
2020-04-15 06:13:11 +00:00
|
|
|
void on_addCvarButton_clicked();
|
2019-01-26 23:22:16 +00:00
|
|
|
void on_editButton_clicked();
|
|
|
|
void on_deleteButton_clicked();
|
|
|
|
void on_buttonBox_clicked(QAbstractButton*);
|
|
|
|
};
|