mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 02:36:23 -04:00
Added GroupTreeWidget to WikiDialog - enables subscribing to groups. (taken from GxsForums)
Added Orange Warning Message to GXS Window... git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6150 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
61c3afe56d
commit
aac114ba8e
4 changed files with 414 additions and 26 deletions
|
@ -61,6 +61,12 @@ private slots:
|
|||
|
||||
void insertWikiGroups();
|
||||
|
||||
// GroupTreeWidget stuff.
|
||||
void groupListCustomPopupMenu(QPoint point);
|
||||
void subscribeToGroup();
|
||||
void unsubscribeToGroup();
|
||||
void wikiGroupChanged(const QString &groupId);
|
||||
|
||||
private:
|
||||
|
||||
void clearWikiPage();
|
||||
|
@ -72,6 +78,16 @@ bool getSelectedPage(std::string &groupId, std::string &pageId, std::string &or
|
|||
std::string getSelectedPage();
|
||||
std::string getSelectedGroup();
|
||||
|
||||
|
||||
// Using GroupTreeWidget.
|
||||
void wikiSubscribe(bool subscribe);
|
||||
void GroupMetaDataToGroupItemInfo(const RsGroupMetaData &groupInfo, GroupItemInfo &groupItemInfo);
|
||||
void insertGroupsData(const std::list<RsGroupMetaData> &wikiList);
|
||||
|
||||
|
||||
void requestGroupMeta();
|
||||
void loadGroupMeta(const uint32_t &token);
|
||||
|
||||
void requestGroupList();
|
||||
void loadGroupData(const uint32_t &token);
|
||||
|
||||
|
@ -92,6 +108,13 @@ void loadWikiPage(const uint32_t &token);
|
|||
std::string mPageSelected;
|
||||
std::string mModSelected;
|
||||
|
||||
|
||||
QTreeWidgetItem *mYourGroups;
|
||||
QTreeWidgetItem *mSubscribedGroups;
|
||||
QTreeWidgetItem *mPopularGroups;
|
||||
QTreeWidgetItem *mOtherGroups;
|
||||
std::string mGroupId; // From GroupTreeWidget
|
||||
|
||||
/* UI - from Designer */
|
||||
Ui::WikiDialog ui;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue