mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 14:30:43 -04:00
Reworked MessageComposer
- Added To, Cc, Bcc and Recommend friends - Added group support - Show state of the friends in real time - Save state of the window in profile - Translated into german Added "Message group" to PeersDialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3541 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
baac505c15
commit
627b0ca54a
16 changed files with 2361 additions and 1447 deletions
|
@ -406,6 +406,10 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
|
|||
{
|
||||
bool standard = c->data(COLUMN_DATA, ROLE_STANDARD).toBool();
|
||||
|
||||
contextMnu.addAction(QIcon(IMAGE_MSG), tr("Message group"), this, SLOT(msgfriend()));
|
||||
|
||||
contextMnu.addSeparator();
|
||||
|
||||
action = contextMnu.addAction(QIcon(IMAGE_EDIT), tr("Edit group"), this, SLOT(editGroup()));
|
||||
action->setDisabled(standard);
|
||||
|
||||
|
@ -420,13 +424,13 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
|
|||
contextMnu.addAction(QIcon(IMAGE_MSG), tr("Message Friend"), this, SLOT(msgfriend()));
|
||||
|
||||
contextMnu.addSeparator();
|
||||
|
||||
|
||||
contextMnu.addAction(QIcon(IMAGE_FRIENDINFO), tr("Friend Details"), this, SLOT(configurefriend()));
|
||||
// contextMnu.addAction(QIcon(IMAGE_PEERINFO), tr("Profile View"), this, SLOT(viewprofile()));
|
||||
// action = contextMnu.addAction(QIcon(IMAGE_EXPORTFRIEND), tr("Export Friend"), this, SLOT(exportfriend()));
|
||||
|
||||
if (type == TYPE_GPG) {
|
||||
contextMnu.addAction(QIcon(IMAGE_EXPORTFRIEND), tr("Recomend this Friend to..."), this, SLOT(recommendfriend()));
|
||||
contextMnu.addAction(QIcon(IMAGE_EXPORTFRIEND), tr("Recommend this Friend to..."), this, SLOT(recommendfriend()));
|
||||
}
|
||||
|
||||
contextMnu.addAction(QIcon(IMAGE_CONNECT), tr("Connect To Friend"), this, SLOT(connectfriend()));
|
||||
|
@ -1129,7 +1133,7 @@ void PeersDialog::msgfriend()
|
|||
return;
|
||||
|
||||
std::string id = peer->data(COLUMN_DATA, ROLE_ID).toString().toStdString();
|
||||
MessageComposer::msgFriend(id);
|
||||
MessageComposer::msgFriend(id, (peer->type() == TYPE_GROUP));
|
||||
}
|
||||
|
||||
void PeersDialog::recommendfriend()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue