diff --git a/retroshare-gui/src/gui/Circles/CirclesDialog.cpp b/retroshare-gui/src/gui/Circles/CirclesDialog.cpp index a212876b8..65eb2636e 100644 --- a/retroshare-gui/src/gui/Circles/CirclesDialog.cpp +++ b/retroshare-gui/src/gui/Circles/CirclesDialog.cpp @@ -62,8 +62,8 @@ CirclesDialog::CirclesDialog(QWidget *parent) mStateHelper->addWidget(CIRCLESDIALOG_GROUPMETA, ui.pushButton_editCircle); mStateHelper->addWidget(CIRCLESDIALOG_GROUPMETA, ui.treeWidget_membership, UISTATE_ACTIVE_ENABLED); - mStateHelper->addWidget(CIRCLESDIALOG_GROUPMETA, ui.treeWidget_friends, UISTATE_ACTIVE_ENABLED); - mStateHelper->addWidget(CIRCLESDIALOG_GROUPMETA, ui.treeWidget_category, UISTATE_ACTIVE_ENABLED); +// mStateHelper->addWidget(CIRCLESDIALOG_GROUPMETA, ui.treeWidget_friends, UISTATE_ACTIVE_ENABLED); +// mStateHelper->addWidget(CIRCLESDIALOG_GROUPMETA, ui.treeWidget_category, UISTATE_ACTIVE_ENABLED); mStateHelper->setWidgetEnabled(ui.pushButton_editCircle, false); @@ -74,8 +74,8 @@ CirclesDialog::CirclesDialog(QWidget *parent) connect(ui.todoPushButton, SIGNAL(clicked()), this, SLOT(todo())); connect(ui.treeWidget_membership, SIGNAL(itemSelectionChanged()), this, SLOT(circle_selected())); - connect(ui.treeWidget_friends, SIGNAL(itemSelectionChanged()), this, SLOT(friend_selected())); - connect(ui.treeWidget_category, SIGNAL(itemSelectionChanged()), this, SLOT(category_selected())); +// connect(ui.treeWidget_friends, SIGNAL(itemSelectionChanged()), this, SLOT(friend_selected())); +// connect(ui.treeWidget_category, SIGNAL(itemSelectionChanged()), this, SLOT(category_selected())); /* Setup TokenQueue */ mCircleQueue = new TokenQueue(rsGxsCircles->getTokenService(), this); @@ -84,8 +84,8 @@ CirclesDialog::CirclesDialog(QWidget *parent) QHeaderView * membership_header = ui.treeWidget_membership->header () ; membership_header->resizeSection ( CIRCLEGROUP_CIRCLE_COL_GROUPNAME, 200 ); - QHeaderView * friends_header = ui.treeWidget_friends->header () ; - friends_header->resizeSection ( CIRCLEGROUP_FRIEND_COL_NAME, 200 ); +// QHeaderView * friends_header = ui.treeWidget_friends->header () ; +// friends_header->resizeSection ( CIRCLEGROUP_FRIEND_COL_NAME, 200 ); } @@ -154,6 +154,7 @@ void CirclesDialog::reloadAll() rsPeers->getGPGAcceptedList(friend_pgpIds); rsPeers->getGPGAllList(all_pgpIds); +#ifdef SUSPENDED_CODE /* clear tree */ ui.treeWidget_friends->clear(); @@ -198,6 +199,7 @@ void CirclesDialog::reloadAll() fofItem->addChild(item); } } +#endif } void set_item_background(QTreeWidgetItem *item, uint32_t type) diff --git a/retroshare-gui/src/gui/Circles/CirclesDialog.ui b/retroshare-gui/src/gui/Circles/CirclesDialog.ui index 10ec16efd..762d507f9 100644 --- a/retroshare-gui/src/gui/Circles/CirclesDialog.ui +++ b/retroshare-gui/src/gui/Circles/CirclesDialog.ui @@ -6,7 +6,7 @@ 0 0 - 746 + 920 568 @@ -14,16 +14,7 @@ - - 0 - - - 0 - - - 0 - - + 0 @@ -35,16 +26,7 @@ QFrame::Sunken - - 2 - - - 2 - - - 2 - - + 2 diff --git a/retroshare-gui/src/gui/Identity/IdDialog.cpp b/retroshare-gui/src/gui/Identity/IdDialog.cpp index 1189b2d37..d7e2aeb8f 100644 --- a/retroshare-gui/src/gui/Identity/IdDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdDialog.cpp @@ -136,7 +136,6 @@ IdDialog::IdDialog(QWidget *parent) : /* Connect signals */ connect(ui->toolButton_NewId, SIGNAL(clicked()), this, SLOT(addIdentity())); - connect(ui->todoPushButton, SIGNAL(clicked()), this, SLOT(todo())); connect(ui->removeIdentity, SIGNAL(triggered()), this, SLOT(removeIdentity())); connect(ui->editIdentity, SIGNAL(triggered()), this, SLOT(editIdentity())); @@ -151,7 +150,9 @@ IdDialog::IdDialog(QWidget *parent) : connect(ui->messageButton, SIGNAL(clicked()), this, SLOT(sendMsg())); +#ifdef UNFINISHED_CODE ui->avlabel->setPixmap(QPixmap(":/images/user/friends64.png")); +#endif ui->headerTextLabel->setText(tr("People")); /* Initialize splitter */ @@ -198,7 +199,7 @@ IdDialog::IdDialog(QWidget *parent) : // Hiding RepList until that part is finished. //ui->treeWidget_RepList->setVisible(false); ui->toolButton_Reputation->setVisible(false); -#ifndef UNFINISHED +#ifdef UNFINISHED_CODE ui->todoPushButton->hide() ; #endif @@ -595,7 +596,9 @@ void IdDialog::insertIdDetails(uint32_t token) #ifdef ID_DEBUG std::cerr << "Setting header frame image : " << pix.width() << " x " << pix.height() << std::endl; #endif +#ifdef UNFINISHED_CODE ui->avlabel->setPixmap(pixmap); +#endif ui->avatarLabel->setPixmap(pixmap); if (data.mPgpKnown) diff --git a/retroshare-gui/src/gui/Identity/IdDialog.ui b/retroshare-gui/src/gui/Identity/IdDialog.ui index 4109e6bcb..cd0896b80 100644 --- a/retroshare-gui/src/gui/Identity/IdDialog.ui +++ b/retroshare-gui/src/gui/Identity/IdDialog.ui @@ -6,8 +6,8 @@ 0 0 - 826 - 752 + 1226 + 919 @@ -19,10 +19,7 @@ - - - 0 - + @@ -86,13 +83,6 @@ - - - - Todo - - - @@ -210,90 +200,11 @@ - - - - - - - QFrame::StyledPanel + + + People - - QFrame::Raised - - - - 12 - - - - - - 64 - 64 - - - - - 64 - 64 - - - - - - - - - - true - - - - - - - People - - - - - - - - 48 - 48 - - - - - 48 - 48 - - - - Send message - - - - - - - :/images/mail-message-new.png:/images/mail-message-new.png - - - - 48 - 48 - - - - true - - - - @@ -449,6 +360,41 @@ + + + + + 48 + 48 + + + + + 48 + 48 + + + + Send message + + + + + + + :/images/mail-message-new.png:/images/mail-message-new.png + + + + 48 + 48 + + + + true + + + @@ -649,18 +595,63 @@ + + + + - - - Qt::Vertical + + + Circles - - - 20 - 40 - - - + + + + + true + + + + Name + + + + + IDs + + + + + Public Circles + + + + + Personal Circles + + + + + + + + + + Edit Circle + + + + + + + Create External Circle + + + + + + + @@ -702,16 +693,16 @@ - - StyledElidedLabel - QLabel -
gui/common/StyledElidedLabel.h
-
StyledLabel QLabel
gui/common/StyledLabel.h
+ + StyledElidedLabel + QLabel +
gui/common/StyledElidedLabel.h
+
RSTreeWidget QTreeWidget @@ -724,7 +715,6 @@
- todoPushButton idTreeWidget lineEdit_Nickname lineEdit_KeyId diff --git a/retroshare-gui/src/gui/People/IdentityWidget.cpp b/retroshare-gui/src/gui/People/IdentityWidget.cpp index 00ba90028..35b464069 100644 --- a/retroshare-gui/src/gui/People/IdentityWidget.cpp +++ b/retroshare-gui/src/gui/People/IdentityWidget.cpp @@ -91,10 +91,8 @@ void IdentityWidget::updateData(const RsGxsIdGroup &gxs_group_info) _scene->clear(); _scene->addPixmap(QPixmap::fromImage(image.scaled(ui->graphicsView->width(),ui->graphicsView->height()))); emit imageUpdated(); - }//if (_avatar != image) - }//if (!_havePGPDetail) - - //}//if (_group_info != gxs_group_info) + } + } } void IdentityWidget::updateData(const RsPeerDetails &pgp_details)