Diff
Modified: freeswitch/trunk/fscomm/FSComm.pro (16204 => 16205)
--- freeswitch/trunk/fscomm/FSComm.pro 2010-01-07 23:29:06 UTC (rev 16204)
+++ freeswitch/trunk/fscomm/FSComm.pro 2010-01-08 00:12:54 UTC (rev 16205)
@@ -40,7 +40,8 @@
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 \
Modified: freeswitch/trunk/fscomm/mainwindow.cpp (16204 => 16205)
--- freeswitch/trunk/fscomm/mainwindow.cpp 2010-01-07 23:29:06 UTC (rev 16204)
+++ freeswitch/trunk/fscomm/mainwindow.cpp 2010-01-08 00:12:54 UTC (rev 16205)
@@ -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 @@
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 @@
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));
+}
Modified: freeswitch/trunk/fscomm/mainwindow.h (16204 => 16205)
--- freeswitch/trunk/fscomm/mainwindow.h 2010-01-07 23:29:06 UTC (rev 16204)
+++ freeswitch/trunk/fscomm/mainwindow.h 2010-01-08 00:12:54 UTC (rev 16205)
@@ -43,6 +43,7 @@
class MainWindow;
}
+
class MainWindow : public QMainWindow {
Q_OBJECT
public:
@@ -56,6 +57,7 @@
void dtmfDialed(QString);
private slots:
+ void showAbout();
void prefTriggered();
void coreLoadingError(QString);
void gwStateChanged(QString, int);
Modified: freeswitch/trunk/fscomm/mainwindow.ui (16204 => 16205)
--- freeswitch/trunk/fscomm/mainwindow.ui 2010-01-07 23:29:06 UTC (rev 16204)
+++ freeswitch/trunk/fscomm/mainwindow.ui 2010-01-08 00:12:54 UTC (rev 16205)
@@ -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/>
Modified: freeswitch/trunk/fscomm/preferences/accountdialog.cpp (16204 => 16205)
--- freeswitch/trunk/fscomm/preferences/accountdialog.cpp 2010-01-07 23:29:06 UTC (rev 16204)
+++ freeswitch/trunk/fscomm/preferences/accountdialog.cpp 2010-01-08 00:12:54 UTC (rev 16205)
@@ -13,6 +13,11 @@
delete ui;
}
+void AccountDialog::writeConfig()
+{
+
+}
+
void AccountDialog::changeEvent(QEvent *e)
{
QDialog::changeEvent(e);
Modified: freeswitch/trunk/fscomm/preferences/accountdialog.h (16204 => 16205)
--- freeswitch/trunk/fscomm/preferences/accountdialog.h 2010-01-07 23:29:06 UTC (rev 16204)
+++ freeswitch/trunk/fscomm/preferences/accountdialog.h 2010-01-08 00:12:54 UTC (rev 16205)
@@ -13,6 +13,9 @@
AccountDialog(QWidget *parent = 0);
~AccountDialog();
+private slots:
+ void writeConfig();
+
protected:
void changeEvent(QEvent *e);