From 6971e8684718324f641fa0dba9d0fd31bee240f3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 6 Mar 2016 02:02:37 -0800 Subject: [PATCH] Add a simple About page that shows the library build version --- utils/alsoft-config/mainwindow.cpp | 10 ++++++++++ utils/alsoft-config/mainwindow.h | 2 ++ utils/alsoft-config/mainwindow.ui | 12 ++++++++++++ 3 files changed, 24 insertions(+) diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index b94330e1..73494b11 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -292,6 +292,8 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->actionLoad, SIGNAL(triggered()), this, SLOT(loadConfigFromFile())); connect(ui->actionSave_As, SIGNAL(triggered()), this, SLOT(saveConfigAsFile())); + connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAboutPage())); + connect(ui->closeCancelButton, SIGNAL(clicked()), this, SLOT(cancelCloseAction())); connect(ui->applyButton, SIGNAL(clicked()), this, SLOT(saveCurrentConfig())); @@ -427,6 +429,14 @@ void MainWindow::cancelCloseAction() } +void MainWindow::showAboutPage() +{ + QMessageBox::information(this, tr("About"), + tr("OpenAL Soft Configuration Utility.\nBuilt for OpenAL Soft library version ")+(ALSOFT_VERSION ".") + ); +} + + QStringList MainWindow::collectHrtfs() { QStringList ret; diff --git a/utils/alsoft-config/mainwindow.h b/utils/alsoft-config/mainwindow.h index 0ddb9a92..65e6e1b6 100644 --- a/utils/alsoft-config/mainwindow.h +++ b/utils/alsoft-config/mainwindow.h @@ -24,6 +24,8 @@ private slots: void saveConfigAsFile(); void loadConfigFromFile(); + void showAboutPage(); + void enableApplyButton(); void updateResamplerLabel(int num); diff --git a/utils/alsoft-config/mainwindow.ui b/utils/alsoft-config/mainwindow.ui index f6bcc05b..9ed7840a 100644 --- a/utils/alsoft-config/mainwindow.ui +++ b/utils/alsoft-config/mainwindow.ui @@ -1964,7 +1964,14 @@ added by the ALC_EXT_DEDICATED extension. + + + &Help + + + + @@ -2002,6 +2009,11 @@ added by the ALC_EXT_DEDICATED extension. Load Configuration File + + + &About... + + -- 2.11.4.GIT