mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-24 06:48:24 -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.
38 lines
782 B
C++
38 lines
782 B
C++
#pragma once
|
|
#include "resizing-text-edit.hpp"
|
|
|
|
#include <QDialog>
|
|
#include <QMessageBox>
|
|
#include <optional>
|
|
|
|
namespace advss {
|
|
|
|
bool CloseAllInputDialogs();
|
|
|
|
class NonModalMessageDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
enum class Type { INFO, QUESTION, INPUT };
|
|
|
|
NonModalMessageDialog(const QString &message, Type);
|
|
NonModalMessageDialog(const QString &message, bool question);
|
|
QMessageBox::StandardButton ShowMessage();
|
|
std::optional<std::string> GetInput();
|
|
Type GetType() const { return _type; }
|
|
void SetInput(const QString &);
|
|
|
|
private slots:
|
|
void YesClicked();
|
|
void NoClicked();
|
|
void InputChanged();
|
|
|
|
private:
|
|
const Type _type;
|
|
QString _input = "";
|
|
ResizingPlainTextEdit *_inputEdit = nullptr;
|
|
QMessageBox::StandardButton _answer;
|
|
};
|
|
|
|
} // namespace advss
|