mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
added edit channel info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3061 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
458eb34fb6
commit
ef56b199b8
@ -32,6 +32,7 @@
|
|||||||
#include "gui/channels/CreateChannel.h"
|
#include "gui/channels/CreateChannel.h"
|
||||||
#include "gui/channels/ChannelDetails.h"
|
#include "gui/channels/ChannelDetails.h"
|
||||||
#include "gui/channels/CreateChannelMsg.h"
|
#include "gui/channels/CreateChannelMsg.h"
|
||||||
|
#include "gui/channels/EditChanDetails.h"
|
||||||
|
|
||||||
#include "gui/ChanGroupDelegate.h"
|
#include "gui/ChanGroupDelegate.h"
|
||||||
|
|
||||||
@ -151,7 +152,16 @@ void ChannelFeed::channelListCustomPopupMenu( QPoint point )
|
|||||||
restoreKeysAct = new QAction(QIcon(":/images/settings16.png"), tr("Restore Publish Rights for Channel" ), this );
|
restoreKeysAct = new QAction(QIcon(":/images/settings16.png"), tr("Restore Publish Rights for Channel" ), this );
|
||||||
connect( restoreKeysAct , SIGNAL( triggered() ), this, SLOT( restoreChannelKeys() ) );
|
connect( restoreKeysAct , SIGNAL( triggered() ), this, SLOT( restoreChannelKeys() ) );
|
||||||
|
|
||||||
if (ci.channelFlags & RS_DISTRIB_PUBLISH)
|
editChannelDetailAct = new QAction(QIcon(":/images/settings16.png"), tr("Edit Channel Details"), this);
|
||||||
|
connect( editChannelDetailAct, SIGNAL( triggered() ), this, SLOT( editChannelDetail() ) );
|
||||||
|
|
||||||
|
if(ci.channelFlags & (RS_DISTRIB_PUBLISH | RS_DISTRIB_ADMIN)){
|
||||||
|
contextMnu.addAction( postchannelAct );
|
||||||
|
contextMnu.addSeparator();
|
||||||
|
contextMnu.addAction( channeldetailsAct );
|
||||||
|
contextMnu.addAction( editChannelDetailAct);
|
||||||
|
}
|
||||||
|
else if (ci.channelFlags & RS_DISTRIB_PUBLISH)
|
||||||
{
|
{
|
||||||
contextMnu.addAction( postchannelAct );
|
contextMnu.addAction( postchannelAct );
|
||||||
contextMnu.addSeparator();
|
contextMnu.addSeparator();
|
||||||
@ -215,6 +225,14 @@ void ChannelFeed::openChat(std::string peerId)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ChannelFeed::editChannelDetail(){
|
||||||
|
|
||||||
|
EditChanDetails editUi(this, 0, mChannelId);
|
||||||
|
editUi.exec();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
void ChannelFeed::createMsg()
|
void ChannelFeed::createMsg()
|
||||||
{
|
{
|
||||||
if (mChannelId == "")
|
if (mChannelId == "")
|
||||||
|
@ -72,6 +72,7 @@ private slots:
|
|||||||
|
|
||||||
void showChannelDetails();
|
void showChannelDetails();
|
||||||
void restoreChannelKeys();
|
void restoreChannelKeys();
|
||||||
|
void editChannelDetail();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
@ -100,6 +101,7 @@ private:
|
|||||||
QAction* unsubscribechannelAct;
|
QAction* unsubscribechannelAct;
|
||||||
QAction* channeldetailsAct;
|
QAction* channeldetailsAct;
|
||||||
QAction* restoreKeysAct;
|
QAction* restoreKeysAct;
|
||||||
|
QAction* editChannelDetailAct;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user