From 5c56857a99797e6bdebb3756db347a9e739679f2 Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 18 Nov 2007 02:24:03 +0000 Subject: [PATCH] -redesign the Compose New Message Dialog, again little bit more userfriendly. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@257 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/msgs/ChanMsgDialog.cpp | 21 +- retroshare-gui/src/gui/msgs/ChanMsgDialog.ui | 207 ++++++++---------- 2 files changed, 99 insertions(+), 129 deletions(-) diff --git a/retroshare-gui/src/gui/msgs/ChanMsgDialog.cpp b/retroshare-gui/src/gui/msgs/ChanMsgDialog.cpp index 0a2e8a763..4749e50a7 100644 --- a/retroshare-gui/src/gui/msgs/ChanMsgDialog.cpp +++ b/retroshare-gui/src/gui/msgs/ChanMsgDialog.cpp @@ -31,6 +31,8 @@ #include #include #include +#include + /** Constructor */ ChanMsgDialog::ChanMsgDialog(bool msg, QWidget *parent, Qt::WFlags flags) @@ -65,7 +67,10 @@ ChanMsgDialog::ChanMsgDialog(bool msg, QWidget *parent, Qt::WFlags flags) /* hide the Tree +/- */ ui.msgSendList -> setRootIsDecorated( false ); - + ui.msgFileList -> setRootIsDecorated( false ); + + /* to hide the header */ + //ui.msgSendList->header()->hide(); /* Hide platform specific features */ #ifdef Q_WS_WIN @@ -122,7 +127,7 @@ void ChanMsgDialog::insertSendList() /* remove old items ??? */ sendWidget->clear(); - sendWidget->setColumnCount(6); + sendWidget->setColumnCount(1); QList items; for(it = friends.begin(); it != friends.end(); it++) @@ -141,18 +146,18 @@ void ChanMsgDialog::insertSendList() /* (0) Person */ item -> setText(0, QString::fromStdString(it->second.name)); /* () Org */ - item -> setText(1, QString::fromStdString(it->second.org)); + //item -> setText(1, QString::fromStdString(it->second.org)); /* () Location */ - item -> setText(2, QString::fromStdString(it->second.loc)); + //item -> setText(2, QString::fromStdString(it->second.loc)); /* () Country */ - item -> setText(3, QString::fromStdString(it->second.country)); - { + //item -> setText(3, QString::fromStdString(it->second.country)); + /*{ std::ostringstream out; out << it->second.id; item -> setText(4, QString::fromStdString(out.str())); - } + }*/ - item -> setText(5, "Friend"); + item -> setText(1, "Friend"); item -> setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled); //item -> setCheckState(0, Qt::Checked); diff --git a/retroshare-gui/src/gui/msgs/ChanMsgDialog.ui b/retroshare-gui/src/gui/msgs/ChanMsgDialog.ui index c79bac60d..385293e50 100644 --- a/retroshare-gui/src/gui/msgs/ChanMsgDialog.ui +++ b/retroshare-gui/src/gui/msgs/ChanMsgDialog.ui @@ -5,8 +5,8 @@ 0 0 - 599 - 411 + 580 + 430 @@ -29,77 +29,42 @@ - Qt::Vertical + Qt::Horizontal + + + + 5 + 7 + 0 + 4 + + + + + 20 + 0 + + + + + 160 + 16777215 + + + + true + + + + Send To: + + + Qt::Vertical - - - - 0 - - - 6 - - - - - - 0 - 0 - 0 - 0 - - - - - 10 - 75 - true - - - - Send To: - - - - - - - - 7 - 7 - 0 - 4 - - - - true - - - - 1 - - - - - - - - Qt::Horizontal - - - - 421 - 20 - - - - - - @@ -143,7 +108,7 @@ p, li { white-space: pre-wrap; } 7 - 7 + 3 4 4 @@ -155,58 +120,58 @@ p, li { white-space: pre-wrap; } - - - - - 0 - - - 6 - - - - - - 0 - 0 - 0 - 0 - - - - - 10 - 75 - true - - - - Recommended Files - - - - - - - - 7 - 7 - 0 - 0 - - - - true - - - - 1 + + + + 0 + + + 6 + + + + + + 0 + 0 + 0 + 0 + - - - - + + + 10 + 75 + true + + + + Recommended Files + + + + + + + + 7 + 7 + 0 + 0 + + + + true + + + + 1 + + + + + + @@ -217,7 +182,7 @@ p, li { white-space: pre-wrap; } 0 0 - 599 + 580 24