|
@@ -9,7 +9,9 @@ class QFormLayout;
|
|
class OBSPropertiesView;
|
|
class OBSPropertiesView;
|
|
class QLabel;
|
|
class QLabel;
|
|
|
|
|
|
-typedef void (*PropertiesUpdateCallback)(void *obj, obs_data_t *settings);
|
|
|
|
|
|
+typedef obs_properties_t *(*PropertiesReloadCallback)(void *obj);
|
|
|
|
+typedef void (*PropertiesUpdateCallback)(void *obj,
|
|
|
|
+ obs_data_t *settings);
|
|
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
|
@@ -57,6 +59,7 @@ private:
|
|
properties_t properties;
|
|
properties_t properties;
|
|
OBSData settings;
|
|
OBSData settings;
|
|
void *obj;
|
|
void *obj;
|
|
|
|
+ PropertiesReloadCallback reloadCallback;
|
|
PropertiesUpdateCallback callback;
|
|
PropertiesUpdateCallback callback;
|
|
int minSize;
|
|
int minSize;
|
|
std::vector<std::unique_ptr<WidgetInfo>> children;
|
|
std::vector<std::unique_ptr<WidgetInfo>> children;
|
|
@@ -81,14 +84,15 @@ private:
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
|
|
|
|
public slots:
|
|
public slots:
|
|
|
|
+ void ReloadProperties();
|
|
void RefreshProperties();
|
|
void RefreshProperties();
|
|
|
|
|
|
signals:
|
|
signals:
|
|
void PropertiesResized();
|
|
void PropertiesResized();
|
|
|
|
|
|
public:
|
|
public:
|
|
- OBSPropertiesView(OBSData settings,
|
|
|
|
- obs_properties_t *properties,
|
|
|
|
- void *obj, PropertiesUpdateCallback callback,
|
|
|
|
|
|
+ OBSPropertiesView(OBSData settings, void *obj,
|
|
|
|
+ PropertiesReloadCallback reloadCallback,
|
|
|
|
+ PropertiesUpdateCallback callback,
|
|
int minSize = 0);
|
|
int minSize = 0);
|
|
};
|
|
};
|