mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
Added to send own Shared File as link to Public Chat
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2169 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1600831e16
commit
309e88e6b7
6 changed files with 299 additions and 1 deletions
|
@ -19,18 +19,20 @@
|
|||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
|
||||
#include "rshare.h"
|
||||
#include "SharedFilesDialog.h"
|
||||
#include "settings/AddFileAssociationDialog.h"
|
||||
|
||||
#include "rsiface/rsiface.h"
|
||||
#include "rsiface/rsmsgs.h"
|
||||
#include "rsiface/rspeers.h"
|
||||
#include "rsiface/rsfiles.h"
|
||||
|
||||
#include "util/RsAction.h"
|
||||
#include "msgs/ChanMsgDialog.h"
|
||||
#include "settings/rsharesettings.h"
|
||||
#include "AddLinksDialog.h"
|
||||
#include "SendLinkDialog.h"
|
||||
|
||||
#ifndef RETROSHARE_LINK_ANALYZER
|
||||
#include "RetroShareLinkAnalyzer.h"
|
||||
|
@ -363,6 +365,18 @@ void SharedFilesDialog::sendHtmlLinkTo( )
|
|||
nMsgDialog->show();
|
||||
}
|
||||
|
||||
void SharedFilesDialog::sendLinktoChat()
|
||||
{
|
||||
copyLinkLocal ();
|
||||
|
||||
static SendLinkDialog *slinkDialog = new SendLinkDialog(this);
|
||||
|
||||
slinkDialog->insertHtmlText(QApplication::clipboard()->text().toStdString());
|
||||
|
||||
slinkDialog->show();
|
||||
|
||||
}
|
||||
|
||||
void SharedFilesDialog::sendLinkToCloud()
|
||||
{
|
||||
copyLinkLocal ();
|
||||
|
@ -647,6 +661,9 @@ void SharedFilesDialog::sharedDirTreeWidgetContextMenu( QPoint point )
|
|||
|
||||
sendhtmllinkAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Link (html)" ), this );
|
||||
connect( sendhtmllinkAct , SIGNAL( triggered() ), this, SLOT( sendHtmlLinkTo( ) ) );
|
||||
|
||||
sendchatlinkAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Link to Chat" ), this );
|
||||
connect( sendchatlinkAct , SIGNAL( triggered() ), this, SLOT( sendLinktoChat( ) ) );
|
||||
|
||||
sendlinkCloudAct = new QAction(QIcon(IMAGE_COPYLINK), tr( "Send retroshare Link to Cloud" ), this );
|
||||
connect( sendlinkCloudAct , SIGNAL( triggered() ), this, SLOT( sendLinkToCloud( ) ) );
|
||||
|
@ -676,6 +693,7 @@ void SharedFilesDialog::sharedDirTreeWidgetContextMenu( QPoint point )
|
|||
contextMnu2.addAction( copylinklocalAct);
|
||||
contextMnu2.addAction( sendlinkAct);
|
||||
contextMnu2.addAction( sendhtmllinkAct);
|
||||
contextMnu2.addAction( sendchatlinkAct);
|
||||
contextMnu2.addSeparator();
|
||||
contextMnu2.addAction( sendlinkCloudAct);
|
||||
contextMnu2.addAction( addlinkCloudAct);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue