From 58e59d1181ebed63ce4698fce5ea7a96aab6c355 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 28 Jan 2016 20:19:44 -0500 Subject: [PATCH] added sounds to chat lobbies (patch fromManuel Davis) --- retroshare-gui/src/gui/chat/ChatWidget.cpp | 7 +++++++ retroshare-gui/src/gui/chat/ChatWidget.h | 1 + retroshare-gui/src/gui/chat/ChatWidget.ui | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index 494610e06..7c149a4b5 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -127,6 +127,7 @@ ChatWidget::ChatWidget(QWidget *parent) : connect(ui->actionChooseColor, SIGNAL(triggered()), this, SLOT(chooseColor())); connect(ui->actionResetFont, SIGNAL(triggered()), this, SLOT(resetFont())); connect(ui->actionQuote, SIGNAL(triggered()), this, SLOT(quote())); + connect(ui->actionDropPlacemark, SIGNAL(triggered()), this, SLOT(dropPlacemark())); connect(ui->actionSave_image, SIGNAL(triggered()), this, SLOT(saveImage())); connect(ui->hashBox, SIGNAL(fileHashingFinished(QList)), this, SLOT(fileHashingFinished(QList))); @@ -979,6 +980,7 @@ void ChatWidget::contextMenuTextBrowser(QPoint point) contextMnu->addSeparator(); contextMnu->addAction(ui->actionClearChatHistory); contextMnu->addAction(ui->actionQuote); + contextMnu->addAction(ui->actionDropPlacemark); QTextCursor cursor = ui->textBrowser->cursorForPosition(point); if(ImageUtil::checkImage(cursor)) @@ -1698,6 +1700,11 @@ void ChatWidget::quote() } } +void ChatWidget::dropPlacemark() +{ + ui->textBrowser->append("----------"); +} + void ChatWidget::saveImage() { QPoint point = ui->actionSave_image->data().toPoint(); diff --git a/retroshare-gui/src/gui/chat/ChatWidget.h b/retroshare-gui/src/gui/chat/ChatWidget.h index 1b3c518e8..1aa2d9e4a 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.h +++ b/retroshare-gui/src/gui/chat/ChatWidget.h @@ -186,6 +186,7 @@ private slots: bool fileSaveAs(); void quote(); + void dropPlacemark(); void saveImage(); private: diff --git a/retroshare-gui/src/gui/chat/ChatWidget.ui b/retroshare-gui/src/gui/chat/ChatWidget.ui index 05e2c9240..c2f4e2504 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.ui +++ b/retroshare-gui/src/gui/chat/ChatWidget.ui @@ -1052,6 +1052,14 @@ border-image: url(:/images/closepressed.png) Quotes the selected text + + + Drop Placemark + + + Insert horizontal rule + +