- Added settings page for Posted.

- Added new base class for GroupFrame settings for settings pages.
- Moved usage of GroupFrame settings (forum, channel and posted) to base class.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7468 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-07-24 14:54:23 +00:00
parent 0bcc8697ef
commit 42e579a294
22 changed files with 377 additions and 122 deletions

View file

@ -23,7 +23,6 @@
#include "GxsForumGroupDialog.h"
#include "GxsForumThreadWidget.h"
#include "GxsForumUserNotify.h"
#include "gui/settings/rsharesettings.h"
#include "gui/notifyqt.h"
#include "gui/channels/ShareKey.h"
@ -31,9 +30,6 @@
GxsForumsDialog::GxsForumsDialog(QWidget *parent)
: GxsGroupFrameDialog(rsGxsForums, parent)
{
connect(NotifyQt::getInstance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
settingsChanged();
}
GxsForumsDialog::~GxsForumsDialog()
@ -74,11 +70,6 @@ QString GxsForumsDialog::text(TextType type)
return "";
}
RetroShareLink::enumType GxsForumsDialog::getLinkType()
{
return RetroShareLink::TYPE_FORUM;
}
QString GxsForumsDialog::icon(IconType type)
{
switch (type) {
@ -101,12 +92,6 @@ QString GxsForumsDialog::icon(IconType type)
return "";
}
void GxsForumsDialog::settingsChanged()
{
setSingleTab(!Settings->getForumOpenAllInNewTab());
setHideTabBarWithOneTab(Settings->getForumHideTabBarWithOneTab());
}
GxsGroupDialog *GxsForumsDialog::createNewGroupDialog(TokenQueue *tokenQueue)
{
return new GxsForumGroupDialog(tokenQueue, this);