obs-aitum-multistream/config-utils.hpp
2024-07-29 11:43:29 +01:00

29 lines
637 B
C++

#pragma once
#include <QPushButton>
#include <QComboBox>
#include <QFormLayout>
#include <QVBoxLayout>
#include <QWidget>
#include <QGroupBox>
#include <QIcon>
#include <QString>
#include <QToolButton>
#include "obs.h"
class ConfigUtils {
public:
// UI generation
static QPushButton *generateButton(QString buttonText);
static QGroupBox *generateSettingsGroupBox(QString headingText);
static QToolButton *generateMenuButton(QString title, QIcon icon);
static void updateButtonStyles(QPushButton *defaultButton, QPushButton *customButton, int activeIndex);
static QIcon getPlatformIconFromEndpoint(QString endpoint);
};