mirror of
https://github.com/Aitum/obs-aitum-multistream.git
synced 2024-11-25 03:33:28 +01:00
WIP + Fix modality for output dialog
This commit is contained in:
parent
f23729f109
commit
05e119702c
@ -168,6 +168,9 @@ OBSBasicSettings::OBSBasicSettings(QMainWindow *parent) : QDialog(parent)
|
||||
connect(addButtonTest, &QPushButton::clicked, [this] {
|
||||
auto outputDialog = new OutputDialog(this);
|
||||
|
||||
outputDialog->setWindowModality(Qt::WindowModal);
|
||||
outputDialog->setModal(true);
|
||||
|
||||
if (outputDialog->exec() == QDialog::Accepted) {
|
||||
// got a result
|
||||
blog(LOG_WARNING, "[Aitum Multistream] output accepted");
|
||||
|
@ -28,3 +28,6 @@ NewVersion="New version (%1) available <a href='https://aitum.tv/download/multi/
|
||||
NoVerticalWarning="The Vertical plugin is not installed, or you are using an older version."
|
||||
SettingsMainCanvasTitle="Main Canvas"
|
||||
SettingsMainCanvasDescription="You can manage your Main Canvas (the default canvas) settings here. \nPlease note that to change your Built-in Output settings, you need to do this from within the normal OBS settings."
|
||||
NewOutputWindowTitle="Aitum Multistream: Add New Output"
|
||||
NewOutputSelectService="Please select the service/site that your new output will use. If your new service isn't listed, please select \"other\"."
|
||||
OtherService="Other Service"
|
||||
|
@ -4,8 +4,11 @@
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QStackedWidget>
|
||||
#include "obs-module.h"
|
||||
|
||||
|
||||
OutputDialog::OutputDialog(QDialog *parent) : QDialog(parent) {
|
||||
setModal(true);
|
||||
stackedWidget = new QStackedWidget;
|
||||
|
||||
// Service selection page
|
||||
@ -23,6 +26,7 @@ OutputDialog::OutputDialog(QDialog *parent) : QDialog(parent) {
|
||||
|
||||
stackedWidget->setCurrentIndex(0);
|
||||
|
||||
setWindowTitle(obs_module_text("NewOutputWindowTitle"));
|
||||
|
||||
auto stackedLayout = new QVBoxLayout;
|
||||
stackedLayout->addWidget(stackedWidget);
|
||||
@ -40,8 +44,23 @@ QWidget *OutputDialog::WizardServicePage() {
|
||||
|
||||
auto pageLayout = new QVBoxLayout;
|
||||
|
||||
auto title = new QLabel(QString("This is my title"));
|
||||
pageLayout->addWidget(title);
|
||||
auto description = new QLabel(QString::fromUtf8(obs_module_text("NewOutputSelectService")));
|
||||
pageLayout->addWidget(description);
|
||||
|
||||
// layout for service selection
|
||||
auto gap = 8;
|
||||
|
||||
auto selectionLayout = new QVBoxLayout;
|
||||
selectionLayout->setSpacing(gap);
|
||||
|
||||
// row 1
|
||||
auto rowOne = new QHBoxLayout;
|
||||
|
||||
|
||||
// row 2
|
||||
|
||||
|
||||
|
||||
|
||||
page->setLayout(pageLayout);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user