mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 16:21:29 -04:00
- Added comment tabs to GxsGroupFrameDialog
- Switched channels from GxsCommentContainer to new tabbed GxsGroupFrameDialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7350 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
dacc60d28f
commit
2da8acd967
14 changed files with 134 additions and 145 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "GxsChannelGroupDialog.h"
|
||||
#include "GxsChannelPostsWidget.h"
|
||||
#include "gui/channels/ShareKey.h"
|
||||
#include "gui/feeds/GxsChannelPostItem.h"
|
||||
|
||||
/****
|
||||
* #define DEBUG_CHANNEL
|
||||
|
@ -30,7 +31,7 @@
|
|||
|
||||
/** Constructor */
|
||||
GxsChannelDialog::GxsChannelDialog(QWidget *parent)
|
||||
: GxsGroupFrameDialog(rsGxsChannels, parent), GxsServiceDialog(dynamic_cast<GxsCommentContainer *>(parent))
|
||||
: GxsGroupFrameDialog(rsGxsChannels, parent)
|
||||
{
|
||||
//#TODO: add settings like forums
|
||||
setSingleTab(true);
|
||||
|
@ -115,17 +116,7 @@ int GxsChannelDialog::shareKeyType()
|
|||
|
||||
GxsMessageFrameWidget *GxsChannelDialog::createMessageFrameWidget(const RsGxsGroupId &groupId)
|
||||
{
|
||||
GxsChannelPostsWidget *widget = new GxsChannelPostsWidget(groupId);
|
||||
|
||||
//#TODO: find better solution
|
||||
connect(widget, SIGNAL(commentLoad(RsGxsGroupId,RsGxsMessageId,QString)), this, SLOT(loadComment(RsGxsGroupId,RsGxsMessageId,QString)));
|
||||
|
||||
return widget;
|
||||
}
|
||||
|
||||
void GxsChannelDialog::loadComment(const RsGxsGroupId &grpId, const RsGxsMessageId &msgId, const QString &title)
|
||||
{
|
||||
commentLoad(grpId, msgId, title);
|
||||
return new GxsChannelPostsWidget(groupId);
|
||||
}
|
||||
|
||||
void GxsChannelDialog::groupTreeCustomActions(RsGxsGroupId grpId, int subscribeFlags, QList<QAction*> &actions)
|
||||
|
@ -143,6 +134,16 @@ void GxsChannelDialog::groupTreeCustomActions(RsGxsGroupId grpId, int subscribeF
|
|||
}
|
||||
}
|
||||
|
||||
RsGxsCommentService *GxsChannelDialog::getCommentService()
|
||||
{
|
||||
return rsGxsChannels;
|
||||
}
|
||||
|
||||
QWidget *GxsChannelDialog::createCommentHeaderWidget(const RsGxsGroupId &grpId, const RsGxsMessageId &msgId)
|
||||
{
|
||||
return new GxsChannelPostItem(NULL, 0, grpId, msgId, true, true);
|
||||
}
|
||||
|
||||
void GxsChannelDialog::toggleAutoDownload()
|
||||
{
|
||||
RsGxsGroupId grpId = groupId();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue