2024-07-26 15:18:09 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QComboBox>
|
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QString>
|
2024-07-29 12:43:29 +02:00
|
|
|
#include <QToolButton>
|
2024-07-26 15:18:09 +02:00
|
|
|
#include "obs.h"
|
|
|
|
|
|
|
|
class ConfigUtils {
|
|
|
|
public:
|
2024-07-29 12:43:29 +02:00
|
|
|
// UI generation
|
2024-07-26 15:18:09 +02:00
|
|
|
static QPushButton *generateButton(QString buttonText);
|
2024-07-29 12:43:29 +02:00
|
|
|
static QGroupBox *generateSettingsGroupBox(QString headingText);
|
|
|
|
static QToolButton *generateMenuButton(QString title, QIcon icon);
|
2024-07-31 15:02:47 +02:00
|
|
|
|
|
|
|
static QIcon generateEmojiQIcon(QString emoji);
|
2024-07-26 15:18:09 +02:00
|
|
|
|
2024-07-29 16:46:37 +02:00
|
|
|
static void updateButtonStyles(QPushButton *defaultButton, QPushButton *customButton, int activeIndex);
|
2024-07-26 15:18:09 +02:00
|
|
|
|
|
|
|
static QIcon getPlatformIconFromEndpoint(QString endpoint);
|
|
|
|
};
|