diff --git a/retroshare-gui/src/gui/Identity/IdDialog.cpp b/retroshare-gui/src/gui/Identity/IdDialog.cpp index 782202c1b..f3451cf96 100644 --- a/retroshare-gui/src/gui/Identity/IdDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdDialog.cpp @@ -164,7 +164,6 @@ void IdDialog::todo() QMessageBox::information(this, "Todo", "Open points:"); @@ -275,11 +274,11 @@ bool IdDialog::fillIdListItem(const RsGxsIdGroup& data, QTreeWidgetItem *&item, rsPeers->getGPGDetails(data.mPgpId, details); item->setText(RSID_COL_IDTYPE, QString::fromUtf8(details.name.c_str())); } - else - { + else + { item->setText(RSID_COL_IDTYPE, tr("PGP Linked Id")); + } } -} else { item->setText(RSID_COL_IDTYPE, tr("Anon Id")); @@ -312,7 +311,7 @@ void IdDialog::insertIdList(uint32_t token) mStateHelper->clear(IDDIALOG_REPLIST); return; -} + } mStateHelper->setActive(IDDIALOG_IDLIST, true); @@ -536,8 +535,6 @@ void IdDialog::insertIdDetails(uint32_t token) ui.line_RatingPeers->setText(rating); } - - /* request network ratings */ // Removing this for the moment. // requestRepList(data.mMeta.mGroupId); @@ -597,7 +594,6 @@ void IdDialog::modifyReputation() return; } - void IdDialog::updateDisplay(bool /*complete*/) { @@ -610,7 +606,7 @@ void IdDialog::addIdentity() IdEditDialog dlg(this); dlg.setupNewId(false); dlg.exec(); - } +} void IdDialog::editIdentity() { @@ -627,7 +623,7 @@ void IdDialog::editIdentity() IdEditDialog dlg(this); dlg.setupExistingId(keyId); dlg.exec(); - } +} void IdDialog::filterIds() { @@ -671,7 +667,6 @@ void IdDialog::insertRepList(uint32_t token) return; } - for(vit = opinions.begin(); vit != opinions.end(); vit++) { RsGxsIdOpinion &op = (*vit); diff --git a/retroshare-gui/src/gui/Identity/IdDialog.ui b/retroshare-gui/src/gui/Identity/IdDialog.ui index 0846beb8a..bd79b8e91 100644 --- a/retroshare-gui/src/gui/Identity/IdDialog.ui +++ b/retroshare-gui/src/gui/Identity/IdDialog.ui @@ -102,6 +102,9 @@ 0 + + Qt::NoFocus + Create new Identity @@ -180,7 +183,7 @@ - + @@ -196,6 +199,9 @@ + + Qt::NoFocus + Delete Identity @@ -219,6 +225,12 @@ + + Qt::NoFocus + + + Edit Identity + Edit ID @@ -239,6 +251,9 @@ + + Qt::NoFocus + Edit Reputation @@ -675,12 +690,6 @@ - - - - - - diff --git a/retroshare-gui/src/gui/Identity/IdEditDialog.cpp b/retroshare-gui/src/gui/Identity/IdEditDialog.cpp index 0b582327c..d9b7bcf28 100644 --- a/retroshare-gui/src/gui/Identity/IdEditDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdEditDialog.cpp @@ -61,6 +61,9 @@ IdEditDialog::IdEditDialog(QWidget *parent) mStateHelper->addLoadPlaceholder(IDEDITDIALOG_LOADID, ui.lineEdit_GpgId); mStateHelper->addLoadPlaceholder(IDEDITDIALOG_LOADID, ui.lineEdit_GpgName); + /* Initialize recogn tags */ + loadRecognTags(); + /* Connect signals */ connect(ui.radioButton_GpgId, SIGNAL(toggled(bool)), this, SLOT(idTypeToggled(bool))); connect(ui.radioButton_Pseudo, SIGNAL(toggled(bool)), this, SLOT(idTypeToggled(bool))); @@ -255,7 +258,6 @@ void IdEditDialog::checkNewTag() ok = true; } - if (mEditGroup.mRecognTags.size() >= MAX_RECOGN_TAGS) { ok = false; @@ -356,7 +358,6 @@ bool IdEditDialog::tagDetails(const RsGxsId &id, const std::string &name, const return ok; } - void IdEditDialog::loadRecognTags() { std::cerr << "IdEditDialog::loadRecognTags()"; @@ -426,7 +427,6 @@ void IdEditDialog::submit() } } - void IdEditDialog::createId() { std::string groupname = ui.lineEdit_Nickname->text().toUtf8().constData(); @@ -448,7 +448,6 @@ void IdEditDialog::createId() close(); } - void IdEditDialog::updateId() { /* submit updated details */ @@ -469,9 +468,6 @@ void IdEditDialog::updateId() close(); } - - - void IdEditDialog::loadRequest(const TokenQueue */*queue*/, const TokenRequest &req) { std::cerr << "IdDialog::loadRequest() UserType: " << req.mUserType; diff --git a/retroshare-gui/src/gui/Identity/IdEditDialog.ui b/retroshare-gui/src/gui/Identity/IdEditDialog.ui index ac166dea9..988e0c9a3 100644 --- a/retroshare-gui/src/gui/Identity/IdEditDialog.ui +++ b/retroshare-gui/src/gui/Identity/IdEditDialog.ui @@ -7,14 +7,27 @@ 0 0 510 - 462 + 471 + + + :/images/identity/identities_32.png:/images/identity/identities_32.png + 0 - + + 0 + + + 0 + + + 0 + + 0 @@ -58,6 +71,19 @@ + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -226,6 +252,12 @@ + + + 0 + 0 + + TextLabel @@ -257,7 +289,16 @@ - + + 6 + + + 6 + + + 6 + + 6 @@ -298,6 +339,8 @@ radioButton_Pseudo buttonBox - + + +