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
|
preferences/accountdialog.h
|
||||||
FORMS += mainwindow.ui \
|
FORMS += mainwindow.ui \
|
||||||
preferences/prefdialog.ui \
|
preferences/prefdialog.ui \
|
||||||
preferences/accountdialog.ui
|
preferences/accountdialog.ui \
|
||||||
|
../aboutdialog.ui
|
||||||
RESOURCES += resources.qrc
|
RESOURCES += resources.qrc
|
||||||
OTHER_FILES += conf/portaudio.conf.xml \
|
OTHER_FILES += conf/portaudio.conf.xml \
|
||||||
conf/event_socket.conf.xml \
|
conf/event_socket.conf.xml \
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "ui_mainwindow.h"
|
#include "ui_mainwindow.h"
|
||||||
|
#include <switch_version.h>
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent) :
|
MainWindow::MainWindow(QWidget *parent) :
|
||||||
QMainWindow(parent),
|
QMainWindow(parent),
|
||||||
|
@ -88,6 +89,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
connect(ui->listCalls, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(callListDoubleClick(QListWidgetItem*)));
|
connect(ui->listCalls, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(callListDoubleClick(QListWidgetItem*)));
|
||||||
connect(ui->action_Preferences, SIGNAL(triggered()), this, SLOT(prefTriggered()));
|
connect(ui->action_Preferences, SIGNAL(triggered()), this, SLOT(prefTriggered()));
|
||||||
connect(ui->action_Exit, SIGNAL(triggered()), this, SLOT(close()));
|
connect(ui->action_Exit, SIGNAL(triggered()), this, SLOT(close()));
|
||||||
|
connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAbout()));
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
@ -332,3 +334,18 @@ void MainWindow::changeEvent(QEvent *e)
|
||||||
break;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class MainWindow : public QMainWindow {
|
class MainWindow : public QMainWindow {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
@ -56,6 +57,7 @@ signals:
|
||||||
void dtmfDialed(QString);
|
void dtmfDialed(QString);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void showAbout();
|
||||||
void prefTriggered();
|
void prefTriggered();
|
||||||
void coreLoadingError(QString);
|
void coreLoadingError(QString);
|
||||||
void gwStateChanged(QString, int);
|
void gwStateChanged(QString, int);
|
||||||
|
|
|
@ -322,7 +322,14 @@
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="action_Exit"/>
|
<addaction name="action_Exit"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QMenu" name="menuHelp">
|
||||||
|
<property name="title">
|
||||||
|
<string>Help</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionAbout"/>
|
||||||
|
</widget>
|
||||||
<addaction name="menu_File"/>
|
<addaction name="menu_File"/>
|
||||||
|
<addaction name="menuHelp"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QToolBar" name="mainToolBar">
|
<widget class="QToolBar" name="mainToolBar">
|
||||||
<attribute name="toolBarArea">
|
<attribute name="toolBarArea">
|
||||||
|
@ -343,6 +350,11 @@
|
||||||
<string>&Exit</string>
|
<string>&Exit</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionAbout">
|
||||||
|
<property name="text">
|
||||||
|
<string>About</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
|
|
@ -13,6 +13,11 @@ AccountDialog::~AccountDialog()
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AccountDialog::writeConfig()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void AccountDialog::changeEvent(QEvent *e)
|
void AccountDialog::changeEvent(QEvent *e)
|
||||||
{
|
{
|
||||||
QDialog::changeEvent(e);
|
QDialog::changeEvent(e);
|
||||||
|
|
|
@ -13,6 +13,9 @@ public:
|
||||||
AccountDialog(QWidget *parent = 0);
|
AccountDialog(QWidget *parent = 0);
|
||||||
~AccountDialog();
|
~AccountDialog();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void writeConfig();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent(QEvent *e);
|
void changeEvent(QEvent *e);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue