mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Finished most of Comment GUI side.
- Created GxsFeedItem to subclass all potential Gxs feeds. - Modified GxsChannelPostItem & PostedItem to use GxsFeedItem. - Added Posted and Channel Items to Comment Header. - Added Message Title to Comment Tab. - Added MessageBoxes for missing signatures in various places. - Changed Licence from GPL to LGPL for gxs, Posted, gxschannels. - Deleted Old Posted Classes that are no longer needed. - Added Comment Up/Down/Own Vote to CommentTree. - Tweaked FeedHolder fns to support GXS comments. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6225 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1f6d6a4fc2
commit
f1e23599da
55 changed files with 1200 additions and 1746 deletions
|
@ -27,23 +27,17 @@
|
|||
#include "ui_PostedItem.h"
|
||||
|
||||
#include <retroshare/rsposted.h>
|
||||
#include "gui/feeds/FeedHolder.h"
|
||||
#include "gui/gxs/GxsFeedItem.h"
|
||||
|
||||
class RsPostedPost;
|
||||
class PostedItem;
|
||||
|
||||
class PostedHolder
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void showComments(const RsPostedPost& post) = 0;
|
||||
};
|
||||
|
||||
class PostedItem : public QWidget, private Ui::PostedItem
|
||||
class PostedItem : public GxsFeedItem, private Ui::PostedItem
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PostedItem(PostedHolder *parent, const RsPostedPost &post);
|
||||
PostedItem(FeedHolder *parent, uint32_t feedId, const RsGxsGroupId &groupId, const RsGxsMessageId &messageId, bool isHome);
|
||||
PostedItem(FeedHolder *parent, uint32_t feedId, const RsPostedPost &post, bool isHome);
|
||||
|
||||
RsPostedPost getPost() const;
|
||||
void setContent(const RsPostedPost& post);
|
||||
|
@ -56,12 +50,16 @@ private slots:
|
|||
signals:
|
||||
void vote(const RsGxsGrpMsgIdPair& msgId, bool up);
|
||||
|
||||
protected:
|
||||
virtual void loadMessage(const uint32_t &token);
|
||||
|
||||
private:
|
||||
|
||||
void setup();
|
||||
|
||||
uint32_t mType;
|
||||
bool mSelected;
|
||||
|
||||
std::string mThreadId;
|
||||
PostedHolder *mPostHolder;
|
||||
RsPostedPost mPost;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue