mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-23 10:39:46 -05:00
Moving files from the "src/" folder into "src/legacy", "src/macro-core", and "src/utils" was necessary as it was becoming a bit too cluttered.
25 lines
585 B
C++
25 lines
585 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
|
|
// Based on OBS's NameDialog
|
|
class AdvSSNameDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AdvSSNameDialog(QWidget *parent);
|
|
|
|
// Returns true if user clicks OK, false otherwise
|
|
// userTextInput returns string that user typed into dialog
|
|
static bool AskForName(QWidget *parent, const QString &title,
|
|
const QString &text, std::string &userTextInput,
|
|
const QString &placeHolder = QString(""),
|
|
int maxSize = 170, bool clean = true);
|
|
|
|
private:
|
|
QLabel *label;
|
|
QLineEdit *userText;
|
|
};
|