mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge Filter ComboBox to Header Context Menu in IdDialog.
This commit is contained in:
parent
431dd68509
commit
d3beccf3e2
@ -202,22 +202,21 @@ IdDialog::IdDialog(QWidget *parent) :
|
|||||||
connect(ui->idTreeWidget, SIGNAL(itemSelectionChanged()), this, SLOT(updateSelection()));
|
connect(ui->idTreeWidget, SIGNAL(itemSelectionChanged()), this, SLOT(updateSelection()));
|
||||||
connect(ui->idTreeWidget, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(IdListCustomPopupMenu(QPoint)));
|
connect(ui->idTreeWidget, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(IdListCustomPopupMenu(QPoint)));
|
||||||
|
|
||||||
connect(ui->filterComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(filterComboBoxChanged()));
|
|
||||||
connect(ui->filterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterChanged(QString)));
|
connect(ui->filterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterChanged(QString)));
|
||||||
connect(ui->ownOpinion_CB, SIGNAL(currentIndexChanged(int)), this, SLOT(modifyReputation()));
|
connect(ui->ownOpinion_CB, SIGNAL(currentIndexChanged(int)), this, SLOT(modifyReputation()));
|
||||||
|
|
||||||
connect(ui->inviteButton, SIGNAL(clicked()), this, SLOT(sendInvite()));
|
connect(ui->inviteButton, SIGNAL(clicked()), this, SLOT(sendInvite()));
|
||||||
|
|
||||||
|
|
||||||
ui->avlabel->setPixmap(QPixmap(":/images/user/friends64.png"));
|
ui->avLabel_Person->setPixmap(QPixmap(":/images/user/friends64.png"));
|
||||||
ui->avlabel_Circles->setPixmap(QPixmap(":/icons/circles_128.png"));
|
ui->avlabel_Circles->setPixmap(QPixmap(":/icons/circles_128.png"));
|
||||||
|
|
||||||
ui->headerTextLabel->setText(tr("People"));
|
ui->headerTextLabel_Person->setText(tr("People"));
|
||||||
ui->headerTextLabel_Circles->setText(tr("Circles"));
|
ui->headerTextLabel_Circles->setText(tr("Circles"));
|
||||||
|
|
||||||
/* Initialize splitter */
|
/* Initialize splitter */
|
||||||
ui->splitter->setStretchFactor(0, 0);
|
ui->mainSplitter->setStretchFactor(0, 0);
|
||||||
ui->splitter->setStretchFactor(1, 1);
|
ui->mainSplitter->setStretchFactor(1, 1);
|
||||||
|
|
||||||
/*remove
|
/*remove
|
||||||
QList<int> sizes;
|
QList<int> sizes;
|
||||||
@ -225,13 +224,54 @@ IdDialog::IdDialog(QWidget *parent) :
|
|||||||
ui->splitter->setSizes(sizes);*/
|
ui->splitter->setSizes(sizes);*/
|
||||||
|
|
||||||
/* Add filter types */
|
/* Add filter types */
|
||||||
ui->filterComboBox->addItem(tr("All"), RSID_FILTER_ALL);
|
QMenu *idTWHMenu = new QMenu(tr("Show"), this);
|
||||||
ui->filterComboBox->addItem(tr("Owned by myself"), RSID_FILTER_OWNED_BY_YOU);
|
idTWHMenu->setVisible(true);
|
||||||
ui->filterComboBox->addItem(tr("Linked to my node"), RSID_FILTER_YOURSELF);
|
ui->idTreeWidget->addHeaderContextMenuMenu(idTWHMenu);
|
||||||
ui->filterComboBox->addItem(tr("Linked to neighbor nodes"), RSID_FILTER_FRIENDS);
|
|
||||||
ui->filterComboBox->addItem(tr("Linked to distant nodes"), RSID_FILTER_OTHERS);
|
QActionGroup *idTWHActionGroup = new QActionGroup(this);
|
||||||
ui->filterComboBox->addItem(tr("Anonymous"), RSID_FILTER_PSEUDONYMS);
|
QAction *idTWHAction = new QAction(QIcon(),tr("All"), this);
|
||||||
ui->filterComboBox->setCurrentIndex(0);
|
idTWHAction->setActionGroup(idTWHActionGroup);
|
||||||
|
idTWHAction->setCheckable(true);
|
||||||
|
idTWHAction->setChecked(true);
|
||||||
|
filter = RSID_FILTER_ALL;
|
||||||
|
idTWHAction->setData(RSID_FILTER_ALL);
|
||||||
|
connect(idTWHAction, SIGNAL(toggled(bool)), this, SLOT(filterToggled(bool)));
|
||||||
|
idTWHMenu->addAction(idTWHAction);
|
||||||
|
|
||||||
|
idTWHAction = new QAction(QIcon(),tr("Owned by myself"), this);
|
||||||
|
idTWHAction->setActionGroup(idTWHActionGroup);
|
||||||
|
idTWHAction->setCheckable(true);
|
||||||
|
idTWHAction->setData(RSID_FILTER_OWNED_BY_YOU);
|
||||||
|
connect(idTWHAction, SIGNAL(toggled(bool)), this, SLOT(filterToggled(bool)));
|
||||||
|
idTWHMenu->addAction(idTWHAction);
|
||||||
|
|
||||||
|
idTWHAction = new QAction(QIcon(),tr("Linked to my node"), this);
|
||||||
|
idTWHAction->setActionGroup(idTWHActionGroup);
|
||||||
|
idTWHAction->setCheckable(true);
|
||||||
|
idTWHAction->setData(RSID_FILTER_YOURSELF);
|
||||||
|
connect(idTWHAction, SIGNAL(toggled(bool)), this, SLOT(filterToggled(bool)));
|
||||||
|
idTWHMenu->addAction(idTWHAction);
|
||||||
|
|
||||||
|
idTWHAction = new QAction(QIcon(),tr("Linked to neighbor nodes"), this);
|
||||||
|
idTWHAction->setActionGroup(idTWHActionGroup);
|
||||||
|
idTWHAction->setCheckable(true);
|
||||||
|
idTWHAction->setData(RSID_FILTER_FRIENDS);
|
||||||
|
connect(idTWHAction, SIGNAL(toggled(bool)), this, SLOT(filterToggled(bool)));
|
||||||
|
idTWHMenu->addAction(idTWHAction);
|
||||||
|
|
||||||
|
idTWHAction = new QAction(QIcon(),tr("Linked to distant nodes"), this);
|
||||||
|
idTWHAction->setActionGroup(idTWHActionGroup);
|
||||||
|
idTWHAction->setCheckable(true);
|
||||||
|
idTWHAction->setData(RSID_FILTER_OTHERS);
|
||||||
|
connect(idTWHAction, SIGNAL(toggled(bool)), this, SLOT(filterToggled(bool)));
|
||||||
|
idTWHMenu->addAction(idTWHAction);
|
||||||
|
|
||||||
|
idTWHAction = new QAction(QIcon(),tr("Anonymous"), this);
|
||||||
|
idTWHAction->setActionGroup(idTWHActionGroup);
|
||||||
|
idTWHAction->setCheckable(true);
|
||||||
|
idTWHAction->setData(RSID_FILTER_PSEUDONYMS);
|
||||||
|
connect(idTWHAction, SIGNAL(toggled(bool)), this, SLOT(filterToggled(bool)));
|
||||||
|
idTWHMenu->addAction(idTWHAction);
|
||||||
|
|
||||||
/* Add filter actions */
|
/* Add filter actions */
|
||||||
QTreeWidgetItem *headerItem = ui->idTreeWidget->headerItem();
|
QTreeWidgetItem *headerItem = ui->idTreeWidget->headerItem();
|
||||||
@ -576,8 +616,8 @@ void IdDialog::loadCircleGroupMeta(const uint32_t &token)
|
|||||||
#endif
|
#endif
|
||||||
// remove any identity that has an item, but no subscription flag entry
|
// remove any identity that has an item, but no subscription flag entry
|
||||||
std::vector<QTreeWidgetItem*> to_delete ;
|
std::vector<QTreeWidgetItem*> to_delete ;
|
||||||
|
|
||||||
for(uint32_t k=0;k<item->childCount();++k)
|
for(uint32_t k=0; k < (uint32_t)item->childCount(); ++k)
|
||||||
if(details.mSubscriptionFlags.find(RsGxsId(item->child(k)->data(CIRCLEGROUP_CIRCLE_COL_GROUPID,Qt::UserRole).toString().toStdString())) == details.mSubscriptionFlags.end())
|
if(details.mSubscriptionFlags.find(RsGxsId(item->child(k)->data(CIRCLEGROUP_CIRCLE_COL_GROUPID,Qt::UserRole).toString().toStdString())) == details.mSubscriptionFlags.end())
|
||||||
to_delete.push_back(item->child(k));
|
to_delete.push_back(item->child(k));
|
||||||
|
|
||||||
@ -599,7 +639,7 @@ void IdDialog::loadCircleGroupMeta(const uint32_t &token)
|
|||||||
QTreeWidgetItem *subitem = NULL ;
|
QTreeWidgetItem *subitem = NULL ;
|
||||||
|
|
||||||
// see if the item already exists
|
// see if the item already exists
|
||||||
for(uint32_t k=0;k<item->childCount();++k)
|
for(uint32_t k=0; k < (uint32_t)item->childCount(); ++k)
|
||||||
if(item->child(k)->data(CIRCLEGROUP_CIRCLE_COL_GROUPID,Qt::UserRole).toString().toStdString() == it->first.toStdString())
|
if(item->child(k)->data(CIRCLEGROUP_CIRCLE_COL_GROUPID,Qt::UserRole).toString().toStdString() == it->first.toStdString())
|
||||||
{
|
{
|
||||||
subitem = item->child(k);
|
subitem = item->child(k);
|
||||||
@ -1247,7 +1287,7 @@ void IdDialog::processSettings(bool load)
|
|||||||
ui->filterLineEdit->setCurrentFilter(Settings->value("filterColumn", RSID_COL_NICKNAME).toInt());
|
ui->filterLineEdit->setCurrentFilter(Settings->value("filterColumn", RSID_COL_NICKNAME).toInt());
|
||||||
|
|
||||||
// state of splitter
|
// state of splitter
|
||||||
ui->splitter->restoreState(Settings->value("splitter").toByteArray());
|
ui->mainSplitter->restoreState(Settings->value("splitter").toByteArray());
|
||||||
} else {
|
} else {
|
||||||
// save settings
|
// save settings
|
||||||
|
|
||||||
@ -1255,7 +1295,7 @@ void IdDialog::processSettings(bool load)
|
|||||||
Settings->setValue("filterColumn", ui->filterLineEdit->currentFilter());
|
Settings->setValue("filterColumn", ui->filterLineEdit->currentFilter());
|
||||||
|
|
||||||
// state of splitter
|
// state of splitter
|
||||||
Settings->setValue("splitter", ui->splitter->saveState());
|
Settings->setValue("splitter", ui->mainSplitter->saveState());
|
||||||
|
|
||||||
//save expanding
|
//save expanding
|
||||||
Settings->setValue("ExpandAll", allItem->isExpanded());
|
Settings->setValue("ExpandAll", allItem->isExpanded());
|
||||||
@ -1266,16 +1306,22 @@ void IdDialog::processSettings(bool load)
|
|||||||
Settings->endGroup();
|
Settings->endGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void IdDialog::filterComboBoxChanged()
|
|
||||||
{
|
|
||||||
requestIdList();
|
|
||||||
}
|
|
||||||
|
|
||||||
void IdDialog::filterChanged(const QString& /*text*/)
|
void IdDialog::filterChanged(const QString& /*text*/)
|
||||||
{
|
{
|
||||||
filterIds();
|
filterIds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void IdDialog::filterToggled(const bool &value)
|
||||||
|
{
|
||||||
|
if (value) {
|
||||||
|
QAction *source = qobject_cast<QAction *>(QObject::sender());
|
||||||
|
if (source) {
|
||||||
|
filter = source->data().toInt();
|
||||||
|
requestIdList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void IdDialog::updateSelection()
|
void IdDialog::updateSelection()
|
||||||
{
|
{
|
||||||
QTreeWidgetItem *item = ui->idTreeWidget->currentItem();
|
QTreeWidgetItem *item = ui->idTreeWidget->currentItem();
|
||||||
@ -1460,7 +1506,7 @@ void IdDialog::insertIdList(uint32_t token)
|
|||||||
{
|
{
|
||||||
mStateHelper->setLoading(IDDIALOG_IDLIST, false);
|
mStateHelper->setLoading(IDDIALOG_IDLIST, false);
|
||||||
|
|
||||||
int accept = ui->filterComboBox->itemData(ui->filterComboBox->currentIndex()).toInt();
|
int accept = filter;
|
||||||
|
|
||||||
RsGxsIdGroup data;
|
RsGxsIdGroup data;
|
||||||
std::vector<RsGxsIdGroup> datavector;
|
std::vector<RsGxsIdGroup> datavector;
|
||||||
@ -1633,7 +1679,7 @@ void IdDialog::insertIdDetails(uint32_t token)
|
|||||||
|
|
||||||
time_t now = time(NULL) ;
|
time_t now = time(NULL) ;
|
||||||
ui->lineEdit_LastUsed->setText(getHumanReadableDuration(now - data.mLastUsageTS)) ;
|
ui->lineEdit_LastUsed->setText(getHumanReadableDuration(now - data.mLastUsageTS)) ;
|
||||||
ui->headerTextLabel->setText(QString::fromUtf8(data.mMeta.mGroupName.c_str()).left(RSID_MAXIMUM_NICKNAME_SIZE));
|
ui->headerTextLabel_Person->setText(QString::fromUtf8(data.mMeta.mGroupName.c_str()).left(RSID_MAXIMUM_NICKNAME_SIZE));
|
||||||
|
|
||||||
QPixmap pixmap ;
|
QPixmap pixmap ;
|
||||||
|
|
||||||
@ -1644,7 +1690,7 @@ void IdDialog::insertIdDetails(uint32_t token)
|
|||||||
std::cerr << "Setting header frame image : " << pixmap.width() << " x " << pixmap.height() << std::endl;
|
std::cerr << "Setting header frame image : " << pixmap.width() << " x " << pixmap.height() << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ui->avlabel->setPixmap(pixmap);
|
ui->avLabel_Person->setPixmap(pixmap);
|
||||||
ui->avatarLabel->setPixmap(pixmap);
|
ui->avatarLabel->setPixmap(pixmap);
|
||||||
|
|
||||||
if (data.mPgpKnown)
|
if (data.mPgpKnown)
|
||||||
@ -1664,23 +1710,23 @@ void IdDialog::insertIdDetails(uint32_t token)
|
|||||||
if(data.mPgpId.isNull())
|
if(data.mPgpId.isNull())
|
||||||
{
|
{
|
||||||
ui->lineEdit_GpgId->hide() ;
|
ui->lineEdit_GpgId->hide() ;
|
||||||
ui->PgpId_LB->hide() ;
|
ui->label_GpgId->hide() ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->lineEdit_GpgId->show() ;
|
ui->lineEdit_GpgId->show() ;
|
||||||
ui->PgpId_LB->show() ;
|
ui->label_GpgId->show() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(data.mPgpKnown)
|
if(data.mPgpKnown)
|
||||||
{
|
{
|
||||||
ui->lineEdit_GpgName->show() ;
|
ui->lineEdit_GpgName->show() ;
|
||||||
ui->PgpName_LB->show() ;
|
ui->label_GpgName->show() ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->lineEdit_GpgName->hide() ;
|
ui->lineEdit_GpgName->hide() ;
|
||||||
ui->PgpName_LB->hide() ;
|
ui->label_GpgName->hide() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isLinkedToOwnPgpId = (data.mPgpKnown && (data.mPgpId == ownPgpId)) ;
|
bool isLinkedToOwnPgpId = (data.mPgpKnown && (data.mPgpId == ownPgpId)) ;
|
||||||
@ -1702,7 +1748,9 @@ void IdDialog::insertIdDetails(uint32_t token)
|
|||||||
ui->lineEdit_Type->setText(tr("Linked to unknown Retroshare node")) ;
|
ui->lineEdit_Type->setText(tr("Linked to unknown Retroshare node")) ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
ui->lineEdit_Type->setText(tr("Anonymous identity")) ;
|
ui->lineEdit_Type->setText(tr("Anonymous identity")) ;
|
||||||
|
}
|
||||||
|
|
||||||
if (isOwnId)
|
if (isOwnId)
|
||||||
{
|
{
|
||||||
@ -2054,7 +2102,8 @@ void IdDialog::IdListCustomPopupMenu( QPoint )
|
|||||||
|
|
||||||
if(!one_item_owned_by_you)
|
if(!one_item_owned_by_you)
|
||||||
{
|
{
|
||||||
if(n_selected_items == 1) // if only one item is selected, allow to chat with this item
|
if(n_selected_items == 1) // if only one item is selected, allow to chat with this item
|
||||||
|
{
|
||||||
if(own_identities.size() <= 1)
|
if(own_identities.size() <= 1)
|
||||||
{
|
{
|
||||||
QAction *action = contextMnu.addAction(QIcon(":/images/chat_24.png"), tr("Chat with this person"), this, SLOT(chatIdentity()));
|
QAction *action = contextMnu.addAction(QIcon(":/images/chat_24.png"), tr("Chat with this person"), this, SLOT(chatIdentity()));
|
||||||
@ -2082,6 +2131,7 @@ void IdDialog::IdListCustomPopupMenu( QPoint )
|
|||||||
action->setData(QString::fromStdString((*it).toStdString())) ;
|
action->setData(QString::fromStdString((*it).toStdString())) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// always allow to send messages
|
// always allow to send messages
|
||||||
contextMnu.addAction(QIcon(":/images/mail_new.png"), tr("Send message"), this, SLOT(sendMsg()));
|
contextMnu.addAction(QIcon(":/images/mail_new.png"), tr("Send message"), this, SLOT(sendMsg()));
|
||||||
|
@ -83,8 +83,8 @@ private slots:
|
|||||||
void grantCircleMembership() ;
|
void grantCircleMembership() ;
|
||||||
void revokeCircleMembership() ;
|
void revokeCircleMembership() ;
|
||||||
|
|
||||||
void filterComboBoxChanged();
|
|
||||||
void filterChanged(const QString &text);
|
void filterChanged(const QString &text);
|
||||||
|
void filterToggled(const bool &value);
|
||||||
|
|
||||||
void addIdentity();
|
void addIdentity();
|
||||||
void removeIdentity();
|
void removeIdentity();
|
||||||
@ -149,6 +149,7 @@ private:
|
|||||||
std::map<uint32_t, CircleUpdateOrder> mCircleUpdates ;
|
std::map<uint32_t, CircleUpdateOrder> mCircleUpdates ;
|
||||||
|
|
||||||
RsGxsGroupId mId;
|
RsGxsGroupId mId;
|
||||||
|
int filter;
|
||||||
|
|
||||||
/* UI - Designer */
|
/* UI - Designer */
|
||||||
Ui::IdDialog *ui;
|
Ui::IdDialog *ui;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_6">
|
<layout class="QGridLayout" name="IdDialogGLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
@ -46,7 +46,7 @@
|
|||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="titleBarFrameHLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
@ -132,12 +132,12 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QSplitter" name="splitter">
|
<widget class="QSplitter" name="mainSplitter">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
<layout class="QVBoxLayout" name="leftVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="toolBarFrame">
|
<widget class="QFrame" name="toolBarFrame">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
@ -146,7 +146,7 @@
|
|||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="toolBarFrameHLayout">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
@ -229,12 +229,6 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="filterComboBox"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="filterLayout"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="RSTreeWidget" name="idTreeWidget">
|
<widget class="RSTreeWidget" name="idTreeWidget">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -291,11 +285,11 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QTabWidget" name="tabWidget1">
|
<widget class="QTabWidget" name="rightTabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab_2">
|
<widget class="QWidget" name="personTab">
|
||||||
<attribute name="icon">
|
<attribute name="icon">
|
||||||
<iconset resource="../images.qrc">
|
<iconset resource="../images.qrc">
|
||||||
<normaloff>:/images/no_avatar_background.png</normaloff>:/images/no_avatar_background.png</iconset>
|
<normaloff>:/images/no_avatar_background.png</normaloff>:/images/no_avatar_background.png</iconset>
|
||||||
@ -303,287 +297,285 @@
|
|||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Person</string>
|
<string>Person</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="personTabVLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<widget class="QFrame" name="headerFramePerson">
|
||||||
<item>
|
<property name="frameShape">
|
||||||
<widget class="QFrame" name="headerFrame">
|
<enum>QFrame::StyledPanel</enum>
|
||||||
<property name="frameShape">
|
</property>
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<property name="frameShadow">
|
||||||
</property>
|
<enum>QFrame::Raised</enum>
|
||||||
<property name="frameShadow">
|
</property>
|
||||||
<enum>QFrame::Raised</enum>
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
</property>
|
<property name="horizontalSpacing">
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<number>12</number>
|
||||||
<property name="horizontalSpacing">
|
</property>
|
||||||
<number>12</number>
|
<item row="0" column="0" rowspan="2">
|
||||||
|
<widget class="QLabel" name="avLabel_Person">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>64</width>
|
||||||
|
<height>64</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" rowspan="2">
|
<property name="maximumSize">
|
||||||
<widget class="QLabel" name="avlabel">
|
<size>
|
||||||
<property name="minimumSize">
|
<width>64</width>
|
||||||
<size>
|
<height>64</height>
|
||||||
<width>64</width>
|
</size>
|
||||||
<height>64</height>
|
</property>
|
||||||
</size>
|
<property name="styleSheet">
|
||||||
</property>
|
<string notr="true"/>
|
||||||
<property name="maximumSize">
|
</property>
|
||||||
<size>
|
<property name="text">
|
||||||
<width>64</width>
|
<string/>
|
||||||
<height>64</height>
|
</property>
|
||||||
</size>
|
<property name="scaledContents">
|
||||||
</property>
|
<bool>true</bool>
|
||||||
<property name="styleSheet">
|
</property>
|
||||||
<string notr="true"/>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
|
<item row="0" column="1" rowspan="2" colspan="2">
|
||||||
|
<widget class="StyledElidedLabel" name="headerTextLabel_Person">
|
||||||
|
<property name="text">
|
||||||
|
<string>People</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="detailsGroupBox">
|
||||||
|
<property name="title">
|
||||||
|
<string>Identity info</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="detailsGroupBoxGLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QGridLayout" name="detailTextGLayout">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_KeyId">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string>Identity ID :</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="scaledContents">
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_Nickname">
|
||||||
|
<property name="text">
|
||||||
|
<string>Identity name :</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="label_GpgId">
|
||||||
|
<property name="text">
|
||||||
|
<string>Owner node ID :</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_Nickname">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1" rowspan="2" colspan="2">
|
<item row="2" column="1">
|
||||||
<widget class="StyledElidedLabel" name="headerTextLabel">
|
<widget class="QLineEdit" name="lineEdit_KeyId">
|
||||||
<property name="text">
|
<property name="enabled">
|
||||||
<string>People</string>
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
<item row="4" column="1">
|
||||||
</widget>
|
<widget class="QLineEdit" name="lineEdit_GpgId">
|
||||||
</item>
|
<property name="enabled">
|
||||||
<item>
|
<bool>true</bool>
|
||||||
<widget class="QGroupBox" name="detailsGroupBox">
|
|
||||||
<property name="title">
|
|
||||||
<string>Identity info</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
|
||||||
<property name="leftMargin">
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="readOnly">
|
||||||
<number>6</number>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
</widget>
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing">
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="label_4">
|
|
||||||
<property name="text">
|
|
||||||
<string>Identity ID :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>Identity name :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="PgpId_LB">
|
|
||||||
<property name="text">
|
|
||||||
<string>Owner node ID :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_Nickname">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_KeyId">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_GpgId">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0">
|
|
||||||
<widget class="QLabel" name="PgpName_LB">
|
|
||||||
<property name="text">
|
|
||||||
<string>Owner node name :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_GpgName">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="label_3">
|
|
||||||
<property name="text">
|
|
||||||
<string>Type:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_Type"/>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0">
|
|
||||||
<widget class="QLabel" name="label_7">
|
|
||||||
<property name="text">
|
|
||||||
<string>Last used:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="1">
|
|
||||||
<widget class="QLineEdit" name="lineEdit_LastUsed"/>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="5" column="0">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<widget class="QLabel" name="label_GpgName">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QLabel" name="avatarLabel">
|
<string>Owner node name :</string>
|
||||||
<property name="sizePolicy">
|
</property>
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
</widget>
|
||||||
<horstretch>0</horstretch>
|
</item>
|
||||||
<verstretch>0</verstretch>
|
<item row="5" column="1">
|
||||||
</sizepolicy>
|
<widget class="QLineEdit" name="lineEdit_GpgName">
|
||||||
</property>
|
<property name="enabled">
|
||||||
<property name="minimumSize">
|
<bool>true</bool>
|
||||||
<size>
|
</property>
|
||||||
<width>128</width>
|
<property name="readOnly">
|
||||||
<height>128</height>
|
<bool>true</bool>
|
||||||
</size>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="maximumSize">
|
</item>
|
||||||
<size>
|
<item row="3" column="0">
|
||||||
<width>128</width>
|
<widget class="QLabel" name="label_Type">
|
||||||
<height>128</height>
|
<property name="text">
|
||||||
</size>
|
<string>Type:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
</widget>
|
||||||
<enum>QFrame::Box</enum>
|
</item>
|
||||||
</property>
|
<item row="3" column="1">
|
||||||
<property name="frameShadow">
|
<widget class="QLineEdit" name="lineEdit_Type"/>
|
||||||
<enum>QFrame::Sunken</enum>
|
</item>
|
||||||
</property>
|
<item row="6" column="0">
|
||||||
<property name="text">
|
<widget class="QLabel" name="label_LastUsed">
|
||||||
<string extracomment="Click here to change your avatar">Your Avatar</string>
|
<property name="text">
|
||||||
</property>
|
<string>Last used:</string>
|
||||||
<property name="scaledContents">
|
</property>
|
||||||
<bool>true</bool>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="alignment">
|
<item row="6" column="1">
|
||||||
<set>Qt::AlignCenter</set>
|
<widget class="QLineEdit" name="lineEdit_LastUsed"/>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="inviteButton">
|
|
||||||
<property name="text">
|
|
||||||
<string>Send Invite</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer_3">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>2</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
<item row="0" column="1">
|
||||||
<item>
|
<layout class="QVBoxLayout" name="detailAvatarVLayout">
|
||||||
<widget class="QGroupBox" name="reputationGroupBox">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="title">
|
|
||||||
<string>Reputation</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<widget class="QLabel" name="avatarLabel">
|
||||||
<property name="leftMargin">
|
<property name="sizePolicy">
|
||||||
<number>6</number>
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="minimumSize">
|
||||||
<number>6</number>
|
<size>
|
||||||
|
<width>128</width>
|
||||||
|
<height>128</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="maximumSize">
|
||||||
<number>6</number>
|
<size>
|
||||||
|
<width>128</width>
|
||||||
|
<height>128</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="bottomMargin">
|
<property name="frameShape">
|
||||||
<number>6</number>
|
<enum>QFrame::Box</enum>
|
||||||
</property>
|
</property>
|
||||||
<item row="2" column="1">
|
<property name="frameShadow">
|
||||||
<widget class="QLineEdit" name="neighborNodesOpinion_TF">
|
<enum>QFrame::Sunken</enum>
|
||||||
<property name="toolTip">
|
</property>
|
||||||
<string><html><head/><body><p>Average opinion of neighbor nodes about this identity. Negative is bad,</p><p>positive is good. Zero is neutral.</p></body></html></string>
|
<property name="text">
|
||||||
</property>
|
<string extracomment="Click here to change your avatar">Your Avatar</string>
|
||||||
<property name="readOnly">
|
</property>
|
||||||
<bool>true</bool>
|
<property name="scaledContents">
|
||||||
</property>
|
<bool>true</bool>
|
||||||
</widget>
|
</property>
|
||||||
</item>
|
<property name="alignment">
|
||||||
<item row="1" column="0">
|
<set>Qt::AlignCenter</set>
|
||||||
<widget class="QLabel" name="label_6">
|
</property>
|
||||||
<property name="text">
|
</widget>
|
||||||
<string>Your opinion:</string>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
</widget>
|
<widget class="QPushButton" name="inviteButton">
|
||||||
</item>
|
<property name="text">
|
||||||
<item row="2" column="0">
|
<string>Send Invite</string>
|
||||||
<widget class="QLabel" name="label_5">
|
</property>
|
||||||
<property name="text">
|
</widget>
|
||||||
<string>Neighbor nodes:</string>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
</widget>
|
<spacer name="avatarVSpacer">
|
||||||
</item>
|
<property name="orientation">
|
||||||
<item row="1" column="1">
|
<enum>Qt::Vertical</enum>
|
||||||
<widget class="QComboBox" name="ownOpinion_CB">
|
</property>
|
||||||
<property name="toolTip">
|
<property name="sizeHint" stdset="0">
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>2</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="reputationGroupBox">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Reputation</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="reputationGroupBoxVLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QGridLayout" name="reputationGLayout">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLineEdit" name="neighborNodesOpinion_TF">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Average opinion of neighbor nodes about this identity. Negative is bad,</p><p>positive is good. Zero is neutral.</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="ownOpinion_LB">
|
||||||
|
<property name="text">
|
||||||
|
<string>Your opinion:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="neighborNodesOpinion_LB">
|
||||||
|
<property name="text">
|
||||||
|
<string>Neighbor nodes:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QComboBox" name="ownOpinion_CB">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
@ -591,80 +583,78 @@ p, li { white-space: pre-wrap; }
|
|||||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The overall score is used in chat lobbies, forums and channels to decide on the actions to take for each specific identity. When the overall score is lower than -0.6, the identity is banned, which prevents all messages and forums/channels authored by this identity to be forwarded, both ways. Some forums also have special anti-spam flags that require a higher reputation level, making them more sensitive to bad opinions. Banned identities gradually lose their activity and eventually disappear (after 30 days). </p>
|
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The overall score is used in chat lobbies, forums and channels to decide on the actions to take for each specific identity. When the overall score is lower than -0.6, the identity is banned, which prevents all messages and forums/channels authored by this identity to be forwarded, both ways. Some forums also have special anti-spam flags that require a higher reputation level, making them more sensitive to bad opinions. Banned identities gradually lose their activity and eventually disappear (after 30 days). </p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
<p style="-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Negative</string>
|
<string>Negative</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset>
|
||||||
<normaloff>../icons/yellow_biohazard64.png</normaloff>../icons/yellow_biohazard64.png</iconset>
|
<normaloff>../icons/yellow_biohazard64.png</normaloff>../icons/yellow_biohazard64.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Neutral</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Positive</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item>
|
||||||
<widget class="QLineEdit" name="overallOpinion_TF">
|
<property name="text">
|
||||||
<property name="toolTip">
|
<string>Neutral</string>
|
||||||
<string><html><head/><body><p>Overall reputation score, accounting for yours and your friends'.</p><p>Negative is bad, positive is good. Zero is neutral. If the score is too low,</p><p>the identity is flagged as bad, and will be filtered out in forums, chat lobbies,</p><p>channels, etc.</p></body></html></string>
|
</property>
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<property name="text">
|
||||||
<property name="font">
|
<string>Positive</string>
|
||||||
<font>
|
</property>
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Overall:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLineEdit" name="overallOpinion_TF">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Overall reputation score, accounting for yours and your friends'.</p><p>Negative is bad, positive is good. Zero is neutral. If the score is too low,</p><p>the identity is flagged as bad, and will be filtered out in forums, chat lobbies,</p><p>channels, etc.</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="overallOpinion_LB">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Overall:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
</layout>
|
||||||
<item>
|
</widget>
|
||||||
<spacer name="verticalSpacer">
|
</item>
|
||||||
<property name="orientation">
|
<item>
|
||||||
<enum>Qt::Vertical</enum>
|
<spacer name="reputationVSpacer">
|
||||||
</property>
|
<property name="orientation">
|
||||||
<property name="sizeType">
|
<enum>Qt::Vertical</enum>
|
||||||
<enum>QSizePolicy::Expanding</enum>
|
</property>
|
||||||
</property>
|
<property name="sizeType">
|
||||||
<property name="sizeHint" stdset="0">
|
<enum>QSizePolicy::Expanding</enum>
|
||||||
<size>
|
</property>
|
||||||
<width>20</width>
|
<property name="sizeHint" stdset="0">
|
||||||
<height>40</height>
|
<size>
|
||||||
</size>
|
<width>20</width>
|
||||||
</property>
|
<height>40</height>
|
||||||
</spacer>
|
</size>
|
||||||
</item>
|
</property>
|
||||||
</layout>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="circleTab">
|
||||||
<attribute name="icon">
|
<attribute name="icon">
|
||||||
<iconset resource="../images.qrc">
|
<iconset resource="../images.qrc">
|
||||||
<normaloff>:/images/circles/circles_64.png</normaloff>:/images/circles/circles_64.png</iconset>
|
<normaloff>:/images/circles/circles_64.png</normaloff>:/images/circles/circles_64.png</iconset>
|
||||||
@ -672,16 +662,16 @@ p, li { white-space: pre-wrap; }
|
|||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Circles</string>
|
<string>Circles</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
<layout class="QVBoxLayout" name="circleTabVLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="headerFrame_2">
|
<widget class="QFrame" name="headerFrameCircle">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Raised</enum>
|
<enum>QFrame::Raised</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
<layout class="QGridLayout" name="headerFrameCircleGLayout">
|
||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
<number>12</number>
|
<number>12</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -169,6 +169,11 @@ void RSTreeWidget::addHeaderContextMenuAction(QAction *action)
|
|||||||
mHeaderContextMenuActions.push_back(action);
|
mHeaderContextMenuActions.push_back(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RSTreeWidget::addHeaderContextMenuMenu(QMenu *menu)
|
||||||
|
{
|
||||||
|
mHeaderContextMenuMenus.push_back(menu);
|
||||||
|
}
|
||||||
|
|
||||||
void RSTreeWidget::headerContextMenuRequested(const QPoint &pos)
|
void RSTreeWidget::headerContextMenuRequested(const QPoint &pos)
|
||||||
{
|
{
|
||||||
QMenu contextMenu(this);
|
QMenu contextMenu(this);
|
||||||
@ -207,6 +212,13 @@ void RSTreeWidget::headerContextMenuRequested(const QPoint &pos)
|
|||||||
contextMenu.addActions(mHeaderContextMenuActions);
|
contextMenu.addActions(mHeaderContextMenuActions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mHeaderContextMenuMenus.isEmpty()) {
|
||||||
|
foreach(QMenu *menu, mHeaderContextMenuMenus) {
|
||||||
|
contextMenu.addSeparator();
|
||||||
|
contextMenu.addMenu(menu);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (contextMenu.isEmpty()) {
|
if (contextMenu.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,8 @@ public:
|
|||||||
|
|
||||||
// Add QAction to context menu (action won't be deleted)
|
// Add QAction to context menu (action won't be deleted)
|
||||||
void addHeaderContextMenuAction(QAction *action);
|
void addHeaderContextMenuAction(QAction *action);
|
||||||
|
// Add QMenu to context menu (menu won't be deleted)
|
||||||
|
void addHeaderContextMenuMenu(QMenu *menu);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void signalMouseMiddleButtonClicked(QTreeWidgetItem *item);
|
void signalMouseMiddleButtonClicked(QTreeWidgetItem *item);
|
||||||
@ -69,6 +71,7 @@ private:
|
|||||||
quint32 mSettingsVersion;
|
quint32 mSettingsVersion;
|
||||||
QMap<int, bool> mColumnCustomizable;
|
QMap<int, bool> mColumnCustomizable;
|
||||||
QList<QAction*> mHeaderContextMenuActions;
|
QList<QAction*> mHeaderContextMenuActions;
|
||||||
|
QList<QMenu*> mHeaderContextMenuMenus;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user