mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-04 08:15:38 -05:00
The "core" macro conditions and actions have been extracted out to the "base" plugin. The library now mostly contains functionality which is required across all plugins and (e.g. definitions for macro segments). The goal is to reduce the complexity and cross-dependencies and group the source files in a better way. This should relsove the "library limit of 65535 objects exceeded" build issue occuring in some Windows build environments.
31 lines
679 B
C++
31 lines
679 B
C++
#pragma once
|
|
#include "export-symbol-helper.hpp"
|
|
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
|
|
namespace advss {
|
|
|
|
// 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
|
|
EXPORT 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;
|
|
};
|
|
|
|
} // namespace advss
|