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 \
#include <QMessageBox>
#include "mainwindow.h"
#include "ui_mainwindow.h"
+#include <switch_version.h>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(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()
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));
+}
class MainWindow;
}
+
class MainWindow : public QMainWindow {
Q_OBJECT
public:
void dtmfDialed(QString);
private slots:
+ void showAbout();
void prefTriggered();
void coreLoadingError(QString);
void gwStateChanged(QString, int);
<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">
<string>&Exit</string>
</property>
</action>
+ <action name="actionAbout">
+ <property name="text">
+ <string>About</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>