mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-10-18 06:28:44 -05:00
39 lines
629 B
C++
39 lines
629 B
C++
#pragma once
|
|
#include "export-symbol-helper.hpp"
|
|
|
|
#include <functional>
|
|
#include <QStringList>
|
|
#include <QWidget>
|
|
#include <string>
|
|
|
|
class QComboBox;
|
|
|
|
namespace advss {
|
|
|
|
enum class ValueInputType {
|
|
File,
|
|
Folder,
|
|
Scene,
|
|
Source,
|
|
String,
|
|
Variable,
|
|
Selection,
|
|
};
|
|
|
|
void PopulateValueInputTypeSelection(QComboBox *list);
|
|
|
|
class ValueInputWidget : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ValueInputWidget(ValueInputType type, const std::string &defaultValue,
|
|
const QStringList &options = {},
|
|
QWidget *parent = nullptr);
|
|
std::string Value() const;
|
|
|
|
private:
|
|
std::function<std::string()> _getValue;
|
|
};
|
|
|
|
} // namespace advss
|