enabled Paste Links Full for Forum Posts, fixed Turkish translation

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2605 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-03-23 00:02:51 +00:00
parent 594defb1bd
commit beec507b1c
4 changed files with 18 additions and 11 deletions

View file

@ -91,11 +91,13 @@ void CreateForumMsg::forumMessageCostumPopupMenu( QPoint point )
pasteLinkAct = new QAction(QIcon(":/images/pasterslink.png"), tr( "Paste retroshare Link" ), this );
connect( pasteLinkAct , SIGNAL( triggered() ), this, SLOT( pasteLink() ) );
//pasteLinkAct->setShortcut(QKeySequence::Paste);
pasteLinkFullAct = new QAction(QIcon(":/images/pasterslink.png"), tr( "Paste retroshare Link Full" ), this );
connect( pasteLinkFullAct , SIGNAL( triggered() ), this, SLOT( pasteLinkFull() ) );
contextMnu->clear();
contextMnu->addAction( pasteLinkAct);
contextMnu->addAction( pasteLinkFullAct);
QMouseEvent *mevent = new QMouseEvent( QEvent::MouseButtonPress, point, Qt::RightButton, Qt::RightButton, Qt::NoModifier );
contextMnu->exec( mevent->globalPos() );
@ -421,3 +423,8 @@ void CreateForumMsg::pasteLink()
ui.forumMessage->insertHtml(RSLinkClipboard::toHtml()) ;
}
void CreateForumMsg::pasteLinkFull()
{
ui.forumMessage->insertHtml(RSLinkClipboard::toHtmlFull()) ;
}

View file

@ -51,7 +51,7 @@ private slots:
void createMsg();
void cancelMsg();
void pasteLink();
void pasteLinkFull();
void smileyWidgetForums();
void addSmileys();
@ -65,6 +65,7 @@ private:
/** Defines the actions for the context menu */
QAction* pasteLinkAct;
QAction* pasteLinkFullAct;
std::string mForumId;
std::string mParentId;