Enabled Post to Forum for ForumNewItem

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2985 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-23 23:02:15 +00:00
parent c3e1a71279
commit b4a4ce07af
3 changed files with 21 additions and 6 deletions

View File

@ -24,6 +24,7 @@
#include "FeedHolder.h"
#include "rsiface/rsforums.h"
#include "gui/forums/CreateForumMsg.h"
#include <iostream>
@ -49,7 +50,7 @@ ForumNewItem::ForumNewItem(FeedHolder *parent, uint32_t feedId, std::string foru
/* specific ones */
connect( subscribeButton, SIGNAL( clicked( void ) ), this, SLOT( subscribeForum ( void ) ) );
// To Cheeky to post on a brand new forum....
//connect( postButton, SIGNAL( clicked( void ) ), this, SLOT( postToForum ( void ) ) );
connect( postButton, SIGNAL( clicked( void ) ), this, SLOT( postToForum ( void ) ) );
small();
updateItemStatic();
@ -79,12 +80,12 @@ void ForumNewItem::updateItemStatic()
if (fi.subscribeFlags & RS_DISTRIB_SUBSCRIBED)
{
subscribeButton->setEnabled(false);
//postButton->setEnabled(true);
postButton->setEnabled(true);
}
else
{
subscribeButton->setEnabled(true);
//postButton->setEnabled(false);
postButton->setEnabled(false);
}
@ -209,6 +210,8 @@ void ForumNewItem::postToForum()
if (mParent)
{
//mParent->openMsg(FEEDHOLDER_MSG_FORUM, mForumId, "");
CreateForumMsg *cfm = new CreateForumMsg(mForumId, "");
cfm->show();
}
}

View File

@ -157,6 +157,17 @@ border-radius: 10px}</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="postButton">
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../images.qrc">
<normaloff>:/images/mail_new.png</normaloff>:/images/mail_new.png</iconset>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation">
@ -211,7 +222,7 @@ border-radius: 10px}</string>
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Forum Description</string>
</property>
@ -285,6 +296,7 @@ border-radius: 10px}</string>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections/>
</ui>