diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 10 | ||||
-rw-r--r-- | utils/alsoft-config/mainwindow.h | 2 | ||||
-rw-r--r-- | utils/alsoft-config/mainwindow.ui | 12 |
3 files changed, 24 insertions, 0 deletions
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.</string> <addaction name="separator"/> <addaction name="actionQuit"/> </widget> + <widget class="QMenu" name="menuHelp"> + <property name="title"> + <string>&Help</string> + </property> + <addaction name="actionAbout"/> + </widget> <addaction name="menuFile"/> + <addaction name="menuHelp"/> </widget> <action name="actionQuit"> <property name="icon"> @@ -2002,6 +2009,11 @@ added by the ALC_EXT_DEDICATED extension.</string> <string>Load Configuration File</string> </property> </action> + <action name="actionAbout"> + <property name="text"> + <string>&About...</string> + </property> + </action> </widget> <layoutdefault spacing="6" margin="11"/> <resources/> |