mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 13:57:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
#include <vector>
|
||||
|
||||
class QDialog;
|
||||
class QLineEdit;
|
||||
class QListWidgetItem;
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
|
||||
class ScriptPickerDialog : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum CompletedState
|
||||
{
|
||||
Abandoned,
|
||||
Completed
|
||||
};
|
||||
|
||||
void runModal(QWidget* parent, QString suggestedName, CompletedState* state, QString* newName);
|
||||
|
||||
private:
|
||||
QDialog* dialog;
|
||||
QLineEdit* nameEdit;
|
||||
|
||||
CompletedState* picked;
|
||||
QString* newName;
|
||||
std::vector<QString> usedNames;
|
||||
|
||||
private Q_SLOTS:
|
||||
void acceptLineEditValue();
|
||||
};
|
||||
Reference in New Issue
Block a user