2021-02-27 20:22:57 -08:00
|
|
|
#pragma once
|
2020-04-14 23:13:11 -07:00
|
|
|
|
|
|
|
#include <QAbstractButton>
|
2021-02-27 20:22:57 -08:00
|
|
|
#include <QDialog>
|
2020-04-14 23:13:11 -07:00
|
|
|
#include <QItemSelection>
|
2021-02-27 20:22:57 -08:00
|
|
|
#include <QStringListModel>
|
|
|
|
#include <memory>
|
2020-04-14 23:13:11 -07:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class CVarDialog;
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
class CVarDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CVarDialog(QWidget* parent = nullptr);
|
|
|
|
~CVarDialog() override;
|
|
|
|
|
|
|
|
QString textValue();
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::CVarDialog> m_ui;
|
|
|
|
QStringListModel m_model;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_rejected();
|
|
|
|
void handleSelectionChanged(const QItemSelection& selection);
|
|
|
|
};
|