diff --git a/plugins/VOIP/gui/AudioPopupChatDialog.cpp b/plugins/VOIP/gui/AudioPopupChatDialog.cpp
index 75afbf264..f78119a51 100644
--- a/plugins/VOIP/gui/AudioPopupChatDialog.cpp
+++ b/plugins/VOIP/gui/AudioPopupChatDialog.cpp
@@ -5,6 +5,9 @@
#include "interface/rsvoip.h"
#include "gui/SoundManager.h"
+#define CALL_START ":/images/call-start-22.png"
+#define CALL_STOP ":/images/call-stop-22.png"
+
AudioPopupChatDialog::AudioPopupChatDialog(QWidget *parent)
: PopupChatDialog(parent)
{
@@ -32,14 +35,14 @@ AudioPopupChatDialog::AudioPopupChatDialog(QWidget *parent)
audioMuteCaptureToggleButton->setMinimumSize(QSize(28,28)) ;
audioMuteCaptureToggleButton->setMaximumSize(QSize(28,28)) ;
audioMuteCaptureToggleButton->setText(QString()) ;
- audioMuteCaptureToggleButton->setToolTip(tr("Deafen yourself"));
+ audioMuteCaptureToggleButton->setToolTip(tr("Start Call"));
QIcon icon2 ;
- icon2.addPixmap(QPixmap(":/images/muted_self.svg")) ;
- icon2.addPixmap(QPixmap(":/images/talking_off.svg"),QIcon::Normal,QIcon::On) ;
- icon2.addPixmap(QPixmap(":/images/talking_off.svg"),QIcon::Disabled,QIcon::On) ;
- icon2.addPixmap(QPixmap(":/images/talking_off.svg"),QIcon::Active,QIcon::On) ;
- icon2.addPixmap(QPixmap(":/images/talking_off.svg"),QIcon::Selected,QIcon::On) ;
+ icon2.addPixmap(QPixmap(":/images/call-start-22.png")) ;
+ icon2.addPixmap(QPixmap(":/images/call-stop-22.png"),QIcon::Normal,QIcon::On) ;
+ icon2.addPixmap(QPixmap(":/images/call-stop-22.png"),QIcon::Disabled,QIcon::On) ;
+ icon2.addPixmap(QPixmap(":/images/call-stop-22.png"),QIcon::Active,QIcon::On) ;
+ icon2.addPixmap(QPixmap(":/images/call-stop-22.png"),QIcon::Selected,QIcon::On) ;
audioMuteCaptureToggleButton->setIcon(icon2) ;
audioMuteCaptureToggleButton->setIconSize(QSize(22,22)) ;
@@ -78,6 +81,7 @@ void AudioPopupChatDialog::toggleAudioMuteCapture()
if (audioMuteCaptureToggleButton->isChecked()) {
//activate audio output
audioListenToggleButton->setChecked(true);
+ audioMuteCaptureToggleButton->setToolTip(tr("Stop Call"));
//activate audio input
if (!inputProcessor) {
@@ -97,20 +101,21 @@ void AudioPopupChatDialog::toggleAudioMuteCapture()
if (inputDevice) {
inputDevice->stop();
}
+ audioMuteCaptureToggleButton->setToolTip(tr("Start Call"));
}
}
void AudioPopupChatDialog::addAudioData(const QString name, QByteArray* array)
{
- if (!audioListenToggleButton->isChecked()) {
+ if (!audioMuteCaptureToggleButton->isChecked()) {
//launch an animation. Don't launch it if already animating
- if (!audioListenToggleButton->graphicsEffect() ||
- (audioListenToggleButton->graphicsEffect()->inherits("QGraphicsOpacityEffect") &&
- ((QGraphicsOpacityEffect*)audioListenToggleButton->graphicsEffect())->opacity() == 1)
+ if (!audioMuteCaptureToggleButton->graphicsEffect() ||
+ (audioMuteCaptureToggleButton->graphicsEffect()->inherits("QGraphicsOpacityEffect") &&
+ ((QGraphicsOpacityEffect*)audioMuteCaptureToggleButton->graphicsEffect())->opacity() == 1)
) {
QGraphicsOpacityEffect *effect = new QGraphicsOpacityEffect(audioListenToggleButton);
- audioListenToggleButton->setGraphicsEffect(effect);
+ audioMuteCaptureToggleButton->setGraphicsEffect(effect);
QPropertyAnimation *anim = new QPropertyAnimation(effect, "opacity");
anim->setStartValue(1);
anim->setKeyValueAt(0.5,0);
@@ -121,6 +126,8 @@ void AudioPopupChatDialog::addAudioData(const QString name, QByteArray* array)
// soundManager->play(VOIP_SOUND_INCOMING_CALL);
+ audioMuteCaptureToggleButton->setToolTip(tr("Answer"));
+
//TODO make a toaster and a sound for the incoming call
return;
}
diff --git a/plugins/VOIP/gui/VOIP_images.qrc b/plugins/VOIP/gui/VOIP_images.qrc
index 71e7ca5ae..c536a73e6 100644
--- a/plugins/VOIP/gui/VOIP_images.qrc
+++ b/plugins/VOIP/gui/VOIP_images.qrc
@@ -5,6 +5,8 @@
images/self_undeafened.svg
images/talking_on.svg
images/talking_off.svg
+ images/call-start-22.png
+ images/call-stop-22.png
diff --git a/plugins/VOIP/gui/images/call-start-22.png b/plugins/VOIP/gui/images/call-start-22.png
new file mode 100644
index 000000000..9a0cf4ca6
Binary files /dev/null and b/plugins/VOIP/gui/images/call-start-22.png differ
diff --git a/plugins/VOIP/gui/images/call-stop-22.png b/plugins/VOIP/gui/images/call-stop-22.png
new file mode 100644
index 000000000..2307fe3e0
Binary files /dev/null and b/plugins/VOIP/gui/images/call-stop-22.png differ
diff --git a/plugins/VOIP/gui/sounds/ring3.wav b/plugins/VOIP/gui/sounds/ring3.wav
new file mode 100644
index 000000000..0860556a1
Binary files /dev/null and b/plugins/VOIP/gui/sounds/ring3.wav differ