mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
Merge pull request #2675 from csoler/v0.6-BugFixing_20
GUI improvements/fixes
This commit is contained in:
commit
3c17e34ed6
@ -529,7 +529,6 @@ void LocalSharedFilesDialog::checkUpdate()
|
|||||||
void LocalSharedFilesDialog::forceCheck()
|
void LocalSharedFilesDialog::forceCheck()
|
||||||
{
|
{
|
||||||
rsFiles->ForceDirectoryCheck();
|
rsFiles->ForceDirectoryCheck();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RemoteSharedFilesDialog::spawnCustomPopupMenu( QPoint point )
|
void RemoteSharedFilesDialog::spawnCustomPopupMenu( QPoint point )
|
||||||
|
@ -285,6 +285,9 @@ border-image: url(:/images/closepressed.png)
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="checkButton">
|
<widget class="QPushButton" name="checkButton">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Forces the re-check of all shared directories. While automatic file checking only cares for new/removed files for efficiency reasons, this button will force the re-scan of all files, possibly re-hashing existing files that may have changed. </p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>check files</string>
|
<string>check files</string>
|
||||||
</property>
|
</property>
|
||||||
@ -396,8 +399,8 @@ border-image: url(:/images/closepressed.png)
|
|||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../icons.qrc"/>
|
|
||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
|
<include location="../icons.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -51,7 +51,8 @@
|
|||||||
#define ROLE_SORT_STANDARD_GROUP Qt::UserRole + 2
|
#define ROLE_SORT_STANDARD_GROUP Qt::UserRole + 2
|
||||||
#define ROLE_SORT_NAME Qt::UserRole + 3
|
#define ROLE_SORT_NAME Qt::UserRole + 3
|
||||||
#define ROLE_SORT_STATE Qt::UserRole + 4
|
#define ROLE_SORT_STATE Qt::UserRole + 4
|
||||||
#define ROLE_FILTER_REASON Qt::UserRole + 5
|
#define ROLE_SORT_SELECTED Qt::UserRole + 5
|
||||||
|
#define ROLE_FILTER_REASON Qt::UserRole + 6
|
||||||
|
|
||||||
#define IMAGE_FRIENDINFO ":/images/peerdetails_16x16.png"
|
#define IMAGE_FRIENDINFO ":/images/peerdetails_16x16.png"
|
||||||
|
|
||||||
@ -667,8 +668,13 @@ void FriendSelectionWidget::secured_fillList()
|
|||||||
emit itemAdded(IDTYPE_GXS, QString::fromStdString(detail.mId.toStdString()), gxsItem);
|
emit itemAdded(IDTYPE_GXS, QString::fromStdString(detail.mId.toStdString()), gxsItem);
|
||||||
|
|
||||||
if (std::find(gxsIdsSelected.begin(), gxsIdsSelected.end(), detail.mId) != gxsIdsSelected.end())
|
if (std::find(gxsIdsSelected.begin(), gxsIdsSelected.end(), detail.mId) != gxsIdsSelected.end())
|
||||||
|
{
|
||||||
setSelected(mListModus, gxsItem, true);
|
setSelected(mListModus, gxsItem, true);
|
||||||
}
|
gxsItem->setData(COLUMN_NAME,ROLE_SORT_SELECTED,0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
gxsItem->setData(COLUMN_NAME,ROLE_SORT_SELECTED,1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(mShowTypes & SHOW_CONTACTS)
|
if(mShowTypes & SHOW_CONTACTS)
|
||||||
{
|
{
|
||||||
@ -1219,9 +1225,18 @@ std::string FriendSelectionWidget::idFromItem(QTreeWidgetItem *item)
|
|||||||
return item->data(COLUMN_DATA, ROLE_ID).toString().toStdString();
|
return item->data(COLUMN_DATA, ROLE_ID).toString().toStdString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FriendSelectionWidget::sortByChecked(bool sort)
|
||||||
|
{
|
||||||
|
mCompareRole->clear();
|
||||||
|
mCompareRole->setRole(COLUMN_NAME,ROLE_SORT_SELECTED);
|
||||||
|
|
||||||
|
ui->friendList->resort();
|
||||||
|
}
|
||||||
|
|
||||||
void FriendSelectionWidget::sortByState(bool sort)
|
void FriendSelectionWidget::sortByState(bool sort)
|
||||||
{
|
{
|
||||||
mCompareRole->setRole(COLUMN_NAME, ROLE_SORT_GROUP);
|
mCompareRole->clear();
|
||||||
|
mCompareRole->setRole(COLUMN_NAME, ROLE_SORT_GROUP);
|
||||||
mCompareRole->addRole(COLUMN_NAME, ROLE_SORT_STANDARD_GROUP);
|
mCompareRole->addRole(COLUMN_NAME, ROLE_SORT_STANDARD_GROUP);
|
||||||
|
|
||||||
if (sort) {
|
if (sort) {
|
||||||
|
@ -132,7 +132,8 @@ signals:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void sortByState(bool sort);
|
void sortByState(bool sort);
|
||||||
void filterConnected(bool filter);
|
void sortByChecked(bool sort);
|
||||||
|
void filterConnected(bool filter);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void groupsChanged(int type);
|
void groupsChanged(int type);
|
||||||
|
@ -32,6 +32,7 @@ public:
|
|||||||
RSTreeWidgetItemCompareRole();
|
RSTreeWidgetItemCompareRole();
|
||||||
explicit RSTreeWidgetItemCompareRole(QMap<int, QList<int>> map);
|
explicit RSTreeWidgetItemCompareRole(QMap<int, QList<int>> map);
|
||||||
|
|
||||||
|
void clear() { QMap<int, QList<int> >::clear() ; }
|
||||||
void setRole(const int column, const int role);
|
void setRole(const int column, const int role);
|
||||||
void addRole(const int column, const int role);
|
void addRole(const int column, const int role);
|
||||||
void findRoles(const int column, QList<int> &roles) const;
|
void findRoles(const int column, QList<int> &roles) const;
|
||||||
|
@ -889,7 +889,7 @@ void GxsGroupDialog::setSelectedModerators(const std::set<RsGxsId>& ids)
|
|||||||
ui.adminsList->show();
|
ui.adminsList->show();
|
||||||
ui.filtercomboBox->show();
|
ui.filtercomboBox->show();
|
||||||
|
|
||||||
ui.adminsList->setSelectedIds<RsGxsId,FriendSelectionWidget::IDTYPE_GXS>(ids, false);
|
ui.adminsList->setSelectedIds<RsGxsId,FriendSelectionWidget::IDTYPE_GXS>(ids, true);
|
||||||
|
|
||||||
QString moderatorsListString ;
|
QString moderatorsListString ;
|
||||||
RsIdentityDetails det;
|
RsIdentityDetails det;
|
||||||
|
@ -151,6 +151,7 @@ bool GxsForumGroupDialog::service_loadGroup(const RsGxsGenericGroupData *data, M
|
|||||||
// Local information. Description should be handled here.
|
// Local information. Description should be handled here.
|
||||||
|
|
||||||
setSelectedModerators(pgroup->mAdminList.ids);
|
setSelectedModerators(pgroup->mAdminList.ids);
|
||||||
|
ui.adminsList->sortByChecked(true);
|
||||||
|
|
||||||
mGroupData = *pgroup; // keeps the private information
|
mGroupData = *pgroup; // keeps the private information
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>701</width>
|
<width>701</width>
|
||||||
<height>632</height>
|
<height>638</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
@ -67,6 +67,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="autoCheckDirectoriesDelay_SB">
|
<widget class="QSpinBox" name="autoCheckDirectoriesDelay_SB">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Retroshare will quickly scan shared directories for new/removed files. It will not detect changes in existing files for efficiency reasons. It is however possible to force a full re-scan of the entire hierarchy including possibly modified files using the &quot;check files&quot; button in shared files tab.</p></body></html></string>
|
||||||
|
</property>
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> minute(s)</string>
|
<string> minute(s)</string>
|
||||||
</property>
|
</property>
|
||||||
@ -289,7 +292,7 @@
|
|||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<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:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:8pt; font-weight:600;">RetroShare</span><span style=" font-family:'Sans'; font-size:8pt;"> is capable of transferring data and search requests between peers that are not necessarily friends. This traffic however only transits through a connected list of friends and is anonymous.</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:8pt; font-weight:600;">RetroShare</span><span style=" font-family:'Sans'; font-size:8pt;"> is capable of transferring data and search requests between peers that are not necessarily friends. This traffic however only transits through a connected list of friends and is anonymous.</span></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; font-family:'Sans'; font-size:8pt;"><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; font-family:'Sans'; font-size:8pt;"><br /></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:8pt;">You can separately setup share flags for each shared directory in the shared files dialog to be:</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:8pt;">You can separately setup share flags for each shared directory in the shared files dialog to be:</span></p>
|
||||||
|
Loading…
Reference in New Issue
Block a user