mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
few changes added to channel gui - list of groups and channels was replaced with a tree view
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1636 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
656380415d
commit
e26829e76a
6 changed files with 361 additions and 138 deletions
|
@ -15,7 +15,7 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
|
@ -25,12 +25,20 @@
|
|||
#include "mainpage.h"
|
||||
#include "ui_ChannelFeed.h"
|
||||
|
||||
#include <QStandardItemModel>
|
||||
|
||||
#include "gui/feeds/FeedHolder.h"
|
||||
|
||||
#define OWN 0
|
||||
#define SUBSCRIBED 1
|
||||
#define POPULAR 2
|
||||
#define OTHER 3
|
||||
|
||||
class ChanGroupItem;
|
||||
class ChanMenuItem;
|
||||
class ChanMsgItem;
|
||||
|
||||
|
||||
class ChannelFeed : public MainPage, public FeedHolder, private Ui::ChannelFeed
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -48,6 +56,8 @@ virtual void openMsg(uint32_t type, std::string grpId, std::string inReplyTo);
|
|||
public slots:
|
||||
|
||||
void selectChannel( std::string );
|
||||
void selectChannel(const QModelIndex &);
|
||||
void toggleSelection(const QModelIndex &);
|
||||
|
||||
private slots:
|
||||
|
||||
|
@ -71,26 +81,28 @@ private:
|
|||
|
||||
void updateChannelMsgs();
|
||||
|
||||
QStandardItemModel *model;
|
||||
|
||||
std::string mChannelId; /* current Channel */
|
||||
|
||||
/* Layout Pointers */
|
||||
QBoxLayout *mGroupLayout;
|
||||
// QBoxLayout *mGroupLayout;
|
||||
QBoxLayout *mMsgLayout;
|
||||
|
||||
/* Group Headers */
|
||||
ChanGroupItem *mGroupOwn;
|
||||
ChanGroupItem *mGroupSub;
|
||||
ChanGroupItem *mGroupPop;
|
||||
ChanGroupItem *mGroupOther;
|
||||
// ChanGroupItem *mGroupOwn;
|
||||
// ChanGroupItem *mGroupSub;
|
||||
// ChanGroupItem *mGroupPop;
|
||||
// ChanGroupItem *mGroupOther;
|
||||
|
||||
/* lists of feedItems */
|
||||
std::list<ChanMenuItem *> mChannelListOwn;
|
||||
std::list<ChanMenuItem *> mChannelListSub;
|
||||
std::list<ChanMenuItem *> mChannelListPop;
|
||||
std::list<ChanMenuItem *> mChannelListOther;
|
||||
// std::list<ChanMenuItem *> mChannelListOwn;
|
||||
// std::list<ChanMenuItem *> mChannelListSub;
|
||||
// std::list<ChanMenuItem *> mChannelListPop;
|
||||
// std::list<ChanMenuItem *> mChannelListOther;
|
||||
|
||||
std::list<ChanMsgItem *> mChanMsgItems;
|
||||
|
||||
|
||||
QFont mChannelFont;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue