mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-14 13:18:36 -05:00
Add "Source interact" action
This commit is contained in:
32
plugins/base/utils/source-interaction-step-edit.hpp
Normal file
32
plugins/base/utils/source-interaction-step-edit.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
#include "source-interaction-step.hpp"
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QStackedWidget>
|
||||
#include <QWidget>
|
||||
|
||||
namespace advss {
|
||||
|
||||
class SourceInteractionStepEdit : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
SourceInteractionStepEdit(QWidget *parent,
|
||||
const SourceInteractionStep &step);
|
||||
SourceInteractionStep GetStep() const { return _step; }
|
||||
|
||||
signals:
|
||||
void StepChanged(const SourceInteractionStep &);
|
||||
|
||||
private slots:
|
||||
void TypeChanged(int);
|
||||
void UpdateStep();
|
||||
|
||||
private:
|
||||
void RebuildFields();
|
||||
|
||||
QComboBox *_typeCombo;
|
||||
QStackedWidget *_fields;
|
||||
SourceInteractionStep _step;
|
||||
};
|
||||
|
||||
} // namespace advss
|
||||
Reference in New Issue
Block a user