mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-12 01:06:46 -04:00
27 lines
482 B
C++
27 lines
482 B
C++
#pragma once
|
|
|
|
#include <obs.hpp>
|
|
|
|
#include <QWidget>
|
|
|
|
class SourceToolbar : public QWidget {
|
|
Q_OBJECT
|
|
|
|
OBSWeakSource weakSource;
|
|
|
|
protected:
|
|
OBSProperties props;
|
|
OBSDataAutoRelease oldData;
|
|
|
|
void SaveOldProperties(obs_source_t *source);
|
|
void SetUndoProperties(obs_source_t *source, bool repeatable = false);
|
|
|
|
public:
|
|
SourceToolbar(QWidget *parent, OBSSource source);
|
|
|
|
OBSSource GetSource() { return OBSGetStrongRef(weakSource); }
|
|
|
|
public slots:
|
|
virtual void Update() {}
|
|
};
|