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:
parent
857a8926d2
commit
c52c8ba226
|
@ -40,7 +40,8 @@ HEADERS += mainwindow.h \
|
|||
preferences/accountdialog.h
|
||||
FORMS += mainwindow.ui \
|
||||
preferences/prefdialog.ui \
|
||||
preferences/accountdialog.ui
|
||||
preferences/accountdialog.ui \
|
||||
../aboutdialog.ui
|
||||
RESOURCES += resources.qrc
|
||||
OTHER_FILES += conf/portaudio.conf.xml \
|
||||
conf/event_socket.conf.xml \
|
||||
|
|
|
@ -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ão Mesquita <jmesquita@freeswitch.org>"
|
||||
"<p>FsComm is a softphone based on libfreeswitch."
|
||||
"<p>The FreeSWITCH™ images and name are trademark of"
|
||||
" Anthony Minessale II, primary author of FreeSWITCH™."
|
||||
"<p>Compiled FSComm version: %1"
|
||||
"<p>%2").arg(SWITCH_VERSION_FULL, result));
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ namespace Ui {
|
|||
class MainWindow;
|
||||
}
|
||||
|
||||
|
||||
class MainWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
@ -56,6 +57,7 @@ signals:
|
|||
void dtmfDialed(QString);
|
||||
|
||||
private slots:
|
||||
void showAbout();
|
||||
void prefTriggered();
|
||||
void coreLoadingError(QString);
|
||||
void gwStateChanged(QString, int);
|
||||
|
|
|
@ -322,7 +322,14 @@
|
|||
<addaction name="separator"/>
|
||||
<addaction name="action_Exit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuHelp">
|
||||
<property name="title">
|
||||
<string>Help</string>
|
||||
</property>
|
||||
<addaction name="actionAbout"/>
|
||||
</widget>
|
||||
<addaction name="menu_File"/>
|
||||
<addaction name="menuHelp"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mainToolBar">
|
||||
<attribute name="toolBarArea">
|
||||
|
@ -343,6 +350,11 @@
|
|||
<string>&Exit</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAbout">
|
||||
<property name="text">
|
||||
<string>About</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
|
|
|
@ -13,6 +13,11 @@ AccountDialog::~AccountDialog()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
void AccountDialog::writeConfig()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void AccountDialog::changeEvent(QEvent *e)
|
||||
{
|
||||
QDialog::changeEvent(e);
|
||||
|
|
|
@ -13,6 +13,9 @@ public:
|
|||
AccountDialog(QWidget *parent = 0);
|
||||
~AccountDialog();
|
||||
|
||||
private slots:
|
||||
void writeConfig();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
|
||||
|
|
Loading…
Reference in New Issue