mirror of
https://github.com/FAUSheppy/speech-server-client-qt
synced 2025-12-06 00:41:35 +01:00
implement server settings window (readonly)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "about.h"
|
||||
#include "mainwindow.h"
|
||||
#include "notificationwidget.h"
|
||||
#include "serverconfig.h"
|
||||
#include "settings.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include <QCoreApplication>
|
||||
@@ -80,6 +81,7 @@ MainWindow::MainWindow(QWidget *parent):QMainWindow(parent), ui(new Ui::MainWind
|
||||
timer->start(1000);
|
||||
|
||||
/* add handler for menu configuration */
|
||||
ui->menuKonfiguration->addAction("Spracherkennung", this, SLOT(openSpeechConfigWindow()) );
|
||||
ui->menuKonfiguration->addAction("Konfiguration", this, SLOT(openConfigurationWindow()) );
|
||||
ui->menuKonfiguration->addAction("Über diese Software", this, SLOT(openAboutWindow()) );
|
||||
|
||||
@@ -87,6 +89,12 @@ MainWindow::MainWindow(QWidget *parent):QMainWindow(parent), ui(new Ui::MainWind
|
||||
this->setWindowTitle(WINDOW_TITLE);
|
||||
}
|
||||
|
||||
void MainWindow::openSpeechConfigWindow(){
|
||||
ServerConfig *serverConfig = new ServerConfig(this, mySettings);
|
||||
serverConfig->setAttribute(Qt::WA_DeleteOnClose);
|
||||
serverConfig->show();
|
||||
}
|
||||
|
||||
void MainWindow::openConfigurationWindow(){
|
||||
Settings *settingsWindow = new Settings();
|
||||
settingsWindow->selectSettings(this->mySettings);
|
||||
|
||||
Reference in New Issue
Block a user