mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 20:42:29 -04:00
* Addition of NewsFeed, ChannelFeed and BlogFeed.
* Added new GUI NewsFeed elements to display information (gui/feeds/*) * modifications to RS interfaces to support NewsFeeds. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@617 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9f024eaee7
commit
07451c5336
43 changed files with 6550 additions and 1303 deletions
|
@ -25,53 +25,36 @@
|
|||
#include "mainpage.h"
|
||||
#include "ui_BlogDialog.h"
|
||||
|
||||
class BlogDialog : public MainPage , private Ui::BlogDialog
|
||||
#include "gui/feeds/FeedHolder.h"
|
||||
class BlogMsgItem;
|
||||
|
||||
|
||||
class BlogDialog : public MainPage, public FeedHolder, private Ui::BlogDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Default Constructor */
|
||||
BlogDialog(QWidget *parent = 0);
|
||||
/** Default Destructor */
|
||||
/** Default Constructor */
|
||||
BlogDialog(QWidget *parent = 0);
|
||||
|
||||
/** Qt Designer generated object */
|
||||
//Ui::BlogDialog ui;
|
||||
|
||||
public slots:
|
||||
void sendBlog();
|
||||
void setFont();
|
||||
void setStatus();
|
||||
/// populates blog service with current information from core
|
||||
void update();
|
||||
/* FeedHolder Functions (for FeedItem functionality) */
|
||||
virtual void deleteFeedItem(QWidget *item, uint32_t type);
|
||||
virtual void openChat(std::string peerId);
|
||||
virtual void openMsg(uint32_t type, std::string grpId, std::string inReplyTo);
|
||||
|
||||
void updateBlogsStatic();
|
||||
|
||||
void showprofile(std::string id);
|
||||
void updateUserList();
|
||||
void updateBlogs();
|
||||
|
||||
private slots:
|
||||
|
||||
/** context popup menus */
|
||||
void peerCustomPopupMenu( QPoint point );
|
||||
|
||||
/* peer ContextMenu Actions */
|
||||
void showuserprofile();
|
||||
void showoneblog();
|
||||
void showallblogs();
|
||||
void updateBlogs();
|
||||
void postBlog();
|
||||
|
||||
private:
|
||||
void addDummyData();
|
||||
|
||||
/// to add usr to usr list: utility function for update
|
||||
void addUser(const std::string& usr);
|
||||
|
||||
/// remove everything from usrlist and blogText box
|
||||
void clear();
|
||||
|
||||
/* Current Font */
|
||||
QFont mCurrentFont;
|
||||
|
||||
/* Font to be used for username (bold) */
|
||||
QFont mUsrFont;
|
||||
QLayout *mLayout;
|
||||
|
||||
std::map<std::string, BlogMsgItem *> mBlogMsgItems;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue