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:
alexandrut 2009-09-12 10:55:40 +00:00
parent 656380415d
commit e26829e76a
6 changed files with 361 additions and 138 deletions

View file

@ -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;
};