Add an about dialog so we can know versions that are being used.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16205 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
João Mesquita
2010-01-08 00:12:54 +00:00
parent 857a8926d2
commit c52c8ba226
6 changed files with 41 additions and 1 deletions

View File

@@ -31,6 +31,7 @@
#include <QMessageBox>
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <switch_version.h>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
@@ -88,6 +89,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->listCalls, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(callListDoubleClick(QListWidgetItem*)));
connect(ui->action_Preferences, SIGNAL(triggered()), this, SLOT(prefTriggered()));
connect(ui->action_Exit, SIGNAL(triggered()), this, SLOT(close()));
connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAbout()));
}
MainWindow::~MainWindow()
@@ -332,3 +334,18 @@ void MainWindow::changeEvent(QEvent *e)
break;
}
}
void MainWindow::showAbout()
{
QString result;
g_FSHost.sendCmd("version", "", &result);
QMessageBox::about(this, tr("About FSComm"),
tr("<h2>FSComm</h2>"
"<p>Author: Jo&atilde;o Mesquita &lt;jmesquita@freeswitch.org>"
"<p>FsComm is a softphone based on libfreeswitch."
"<p>The FreeSWITCH&trade; images and name are trademark of"
" Anthony Minessale II, primary author of FreeSWITCH&trade;."
"<p>Compiled FSComm version: %1"
"<p>%2").arg(SWITCH_VERSION_FULL, result));
}