Add a new Channel Page in settings (Patch from Phenom)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7355 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-05-08 17:17:48 +00:00
parent 78f3ab21fd
commit 097ba1655d
9 changed files with 196 additions and 24 deletions

View file

@ -24,6 +24,8 @@
#include "GxsChannelPostsWidget.h"
#include "gui/channels/ShareKey.h"
#include "gui/feeds/GxsChannelPostItem.h"
#include "gui/settings/rsharesettings.h"
#include "gui/notifyqt.h"
/****
* #define DEBUG_CHANNEL
@ -33,14 +35,20 @@
GxsChannelDialog::GxsChannelDialog(QWidget *parent)
: GxsGroupFrameDialog(rsGxsChannels, parent)
{
//#TODO: add settings like forums
setSingleTab(true);
connect(NotifyQt::getInstance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
settingsChanged();
}
GxsChannelDialog::~GxsChannelDialog()
{
}
//UserNotify *GxsChannelDialog::getUserNotify(QObject *parent)
//{
// return new ChannelUserNotify(parent);
//}
QString GxsChannelDialog::text(TextType type)
{
switch (type) {
@ -94,10 +102,10 @@ QString GxsChannelDialog::icon(IconType type)
return "";
}
//UserNotify *GxsChannelDialog::getUserNotify(QObject *parent)
//{
// return new ChannelUserNotify(parent);
//}
void GxsChannelDialog::settingsChanged()
{
setSingleTab(!Settings->getChannelOpenAllInNewTab());
}
GxsGroupDialog *GxsChannelDialog::createNewGroupDialog(TokenQueue *tokenQueue)
{