added button to show/add all possible ids into external group, not only signed ones

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7356 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-05-09 21:08:25 +00:00
parent 097ba1655d
commit 72a61959e2
2 changed files with 20 additions and 7 deletions

View File

@ -76,7 +76,11 @@ CreateCircleDialog::CreateCircleDialog()
ui.removeButton->setEnabled(false);
ui.addButton->setEnabled(false);
ui.radioButton_ListKnownPGP->setChecked(true);
ui.radioButton_ListAll->setChecked(true);
QObject::connect(ui.radioButton_ListAll, SIGNAL(toggled(bool)), this, SLOT(updateCircleGUI())) ;
QObject::connect(ui.radioButton_ListAllPGP, SIGNAL(toggled(bool)), this, SLOT(updateCircleGUI())) ;
QObject::connect(ui.radioButton_ListKnownPGP, SIGNAL(toggled(bool)), this, SLOT(updateCircleGUI())) ;
mIsExistingCircle = false;
mIsExternalCircle = true;
@ -541,6 +545,7 @@ void CreateCircleDialog::loadIdentities(uint32_t token)
std::list<std::string> ids;
std::list<std::string>::iterator it;
bool acceptAnonymous = ui.radioButton_ListAll->isChecked();
bool acceptAllPGP = ui.radioButton_ListAllPGP->isChecked();
bool acceptKnownPGP = ui.radioButton_ListKnownPGP->isChecked();
@ -560,15 +565,16 @@ void CreateCircleDialog::loadIdentities(uint32_t token)
/* do filtering */
bool ok = false;
if (data.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID)
{
if (acceptAllPGP)
{
if (acceptAnonymous)
ok = true;
else if (acceptAllPGP)
{
ok = data.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID ;
}
else if (data.mPgpKnown)
{
ok = true;
ok = data.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID ;
}
}

View File

@ -146,17 +146,24 @@
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QRadioButton" name="radioButton_ListAll">
<property name="text">
<string>All</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_ListAllPGP">
<property name="text">
<string>All PGP IDs</string>
<string>Signed</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_ListKnownPGP">
<property name="text">
<string>Known PGP IDs</string>
<string>Signed by known nodes</string>
</property>
</widget>
</item>