/* Libre Media Server Audio - An Open source Media Server for arts and performing. (c) Criptomart - Santiago NoreƱa 2012-2024 https://git.criptomart.net/libremediaserver This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include "libremediaserver-audio-gui.h" libreMediaServerAudioUi::libreMediaServerAudioUi(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); this->setWindowTitle(VERSION); m_aw = new AudioWidget(this); setCentralWidget(m_aw); m_dmxWidget = new dmxWidget(this); QDockWidget *topWidget = new QDockWidget(tr("Master"), this); topWidget->setAllowedAreas(Qt::TopDockWidgetArea); topWidget->setWidget(m_dmxWidget); topWidget->setContentsMargins(0, 0, 0, 0); addDockWidget(Qt::TopDockWidgetArea, topWidget); connect(ui.actionLaunch_OLA_Setup, SIGNAL(triggered()), this, SLOT(olasetup())); this->setContentsMargins(3, 3, 3, 3); this->setStyleSheet( "color: white;" "background-color: #4f4048;" "selection-color: blue;" "selection-background-color: green" ); } libreMediaServerAudioUi::~libreMediaServerAudioUi() { } void libreMediaServerAudioUi::olasetup() { QWebView *view = new QWebView(); view->load(QUrl("http://localhost:9090/ola.html")); view->show(); }