mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 16:21:29 -04:00
Improved GxsGroupDialog for Show / Edit of Groups.
- Added Show/Edit Menu Options for all services. - Fixed up BUTTONBOX_OK bugs. - Tested name changes for all services. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7102 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d9e483c48a
commit
d65bdca1ec
15 changed files with 408 additions and 109 deletions
|
@ -244,18 +244,16 @@ void GxsChannelDialog::channelListCustomPopupMenu( QPoint /*point*/ )
|
|||
contextMnu.addAction( subscribechannelAct );
|
||||
}
|
||||
|
||||
QAction *channeldetailsAct = new QAction(QIcon(":/images/info16.png"), tr( "Show Channel Details" ), &contextMnu);
|
||||
connect( channeldetailsAct , SIGNAL( triggered() ), this, SLOT( showChannelDetails() ) );
|
||||
contextMnu.addAction( channeldetailsAct );
|
||||
|
||||
if (isAdmin)
|
||||
{
|
||||
QAction *editChannelDetailAct = new QAction(QIcon(":/images/edit_16.png"), tr("Edit Channel Details"), &contextMnu);
|
||||
connect( editChannelDetailAct, SIGNAL( triggered() ), this, SLOT( editChannelDetail() ) );
|
||||
contextMnu.addAction( editChannelDetailAct);
|
||||
}
|
||||
else
|
||||
{
|
||||
QAction *channeldetailsAct = new QAction(QIcon(":/images/info16.png"), tr( "Show Channel Details" ), &contextMnu);
|
||||
connect( channeldetailsAct , SIGNAL( triggered() ), this, SLOT( showChannelDetails() ) );
|
||||
contextMnu.addAction( channeldetailsAct );
|
||||
}
|
||||
|
||||
if (isPublisher)
|
||||
{
|
||||
|
@ -372,10 +370,12 @@ void GxsChannelDialog::openChat(std::string /*peerId*/)
|
|||
|
||||
void GxsChannelDialog::editChannelDetail()
|
||||
{
|
||||
#if 0
|
||||
EditChanDetails editUi(this, mChannelId);
|
||||
editUi.exec();
|
||||
#endif
|
||||
if (mChannelId.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
GxsChannelGroupDialog cf(mChannelQueue, rsGxsChannels->getTokenService(), GxsGroupDialog::MODE_EDIT, mChannelId, this);
|
||||
cf.exec ();
|
||||
}
|
||||
|
||||
void GxsChannelDialog::shareKey()
|
||||
|
@ -799,22 +799,15 @@ void GxsChannelDialog::subscribeChannel()
|
|||
|
||||
void GxsChannelDialog::showChannelDetails()
|
||||
{
|
||||
#if 0
|
||||
if (mChannelId.empty()) {
|
||||
return;
|
||||
}
|
||||
if (mChannelId.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!rsChannels) {
|
||||
return;
|
||||
}
|
||||
|
||||
ChannelDetails channelui (this);
|
||||
|
||||
channelui.showDetails(mChannelId);
|
||||
channelui.exec();
|
||||
#endif
|
||||
GxsChannelGroupDialog cf(mChannelQueue, rsGxsChannels->getTokenService(), GxsGroupDialog::MODE_SHOW, mChannelId, this);
|
||||
cf.exec ();
|
||||
}
|
||||
|
||||
|
||||
void GxsChannelDialog::setAllAsReadClicked()
|
||||
{
|
||||
#if 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue