mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-02 03:16:18 -05:00
renaming strings and changed icons for Network/People
added Peer def for Identities. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7862 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e5203e1f6a
commit
b155c36170
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "ui_FriendsDialog.h"
|
#include "ui_FriendsDialog.h"
|
||||||
|
|
||||||
#define IMAGE_PEERS ":/images/groupchat.png"
|
#define IMAGE_NETWORK ":/images/logo/logo_32.png"
|
||||||
|
|
||||||
class QAction;
|
class QAction;
|
||||||
class NetworkDialog;
|
class NetworkDialog;
|
||||||
@ -56,7 +56,7 @@ public:
|
|||||||
/** Default Destructor */
|
/** Default Destructor */
|
||||||
~FriendsDialog ();
|
~FriendsDialog ();
|
||||||
|
|
||||||
virtual QIcon iconPixmap() const { return QIcon(IMAGE_PEERS) ; } //MainPage
|
virtual QIcon iconPixmap() const { return QIcon(IMAGE_NETWORK) ; } //MainPage
|
||||||
virtual QString pageName() const { return tr("Network") ; } //MainPage
|
virtual QString pageName() const { return tr("Network") ; } //MainPage
|
||||||
virtual QString helpText() const { return ""; } //MainPage
|
virtual QString helpText() const { return ""; } //MainPage
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
<property name="pixmap">
|
||||||
<pixmap resource="images.qrc">:/images/user/friends24.png</pixmap>
|
<pixmap resource="images.qrc">:/images/logo/logo_24.png</pixmap>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -147,8 +147,8 @@ IdDialog::IdDialog(QWidget *parent) :
|
|||||||
connect(ui->filterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterChanged(QString)));
|
connect(ui->filterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterChanged(QString)));
|
||||||
connect(ui->repModButton, SIGNAL(clicked()), this, SLOT(modifyReputation()));
|
connect(ui->repModButton, SIGNAL(clicked()), this, SLOT(modifyReputation()));
|
||||||
|
|
||||||
ui->headerFrame->setHeaderImage(QPixmap(":/images/identity/identity_64.png"));
|
ui->headerFrame->setHeaderImage(QPixmap(":/images/user/friends64.png"));
|
||||||
ui->headerFrame->setHeaderText(tr("Identities"));
|
ui->headerFrame->setHeaderText(tr("People"));
|
||||||
|
|
||||||
/* Initialize splitter */
|
/* Initialize splitter */
|
||||||
ui->splitter->setStretchFactor(0, 1);
|
ui->splitter->setStretchFactor(0, 1);
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#include "util/TokenQueue.h"
|
#include "util/TokenQueue.h"
|
||||||
|
|
||||||
#define IMAGE_IDDIALOG ":/images/identity/identities_32.png"
|
#define IMAGE_IDDIALOG ":/images/user/friends32.png"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class IdDialog;
|
class IdDialog;
|
||||||
@ -48,7 +48,7 @@ public:
|
|||||||
~IdDialog();
|
~IdDialog();
|
||||||
|
|
||||||
virtual QIcon iconPixmap() const { return QIcon(IMAGE_IDDIALOG) ; } //MainPage
|
virtual QIcon iconPixmap() const { return QIcon(IMAGE_IDDIALOG) ; } //MainPage
|
||||||
virtual QString pageName() const { return tr("Identities") ; } //MainPage
|
virtual QString pageName() const { return tr("People") ; } //MainPage
|
||||||
virtual QString helpText() const { return ""; } //MainPage
|
virtual QString helpText() const { return ""; } //MainPage
|
||||||
|
|
||||||
void loadRequest(const TokenQueue *queue, const TokenRequest &req);
|
void loadRequest(const TokenQueue *queue, const TokenRequest &req);
|
||||||
|
@ -20,16 +20,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||||
<property name="leftMargin">
|
<property name="margin">
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
@ -68,7 +59,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
<property name="pixmap">
|
||||||
<pixmap resource="../images.qrc">:/images/identity/identities_32.png</pixmap>
|
<pixmap resource="../images.qrc">:/images/user/friends24.png</pixmap>
|
||||||
</property>
|
</property>
|
||||||
<property name="scaledContents">
|
<property name="scaledContents">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@ -78,7 +69,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="StyledLabel" name="titleBarLabel">
|
<widget class="StyledLabel" name="titleBarLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Identities</string>
|
<string>People</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -78,7 +78,7 @@ QIcon ChatUserNotify::getIcon()
|
|||||||
|
|
||||||
QIcon ChatUserNotify::getMainIcon(bool hasNew)
|
QIcon ChatUserNotify::getMainIcon(bool hasNew)
|
||||||
{
|
{
|
||||||
return hasNew ? QIcon(":/images/user/friends24_notify.png") : QIcon(":/images/groupchat.png");
|
return hasNew ? QIcon(":/images/user/friends24_notify.png") : QIcon(":/images/logo/logo_32.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int ChatUserNotify::getNewCount()
|
unsigned int ChatUserNotify::getNewCount()
|
||||||
|
@ -39,6 +39,12 @@ const QString PeerDefs::nameWithLocation(const RsIdentityDetails &details)
|
|||||||
{
|
{
|
||||||
return QString::fromUtf8(details.mNickname.c_str()) + " (" + QString::fromStdString(details.mId.toStdString()) + ")";
|
return QString::fromUtf8(details.mNickname.c_str()) + " (" + QString::fromStdString(details.mId.toStdString()) + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const QString PeerDefs::nameWithId(const RsIdentityDetails &details)
|
||||||
|
{
|
||||||
|
return QString::fromUtf8(details.mNickname.c_str()) + " <" + QString::fromUtf8(details.mNickname.c_str()) + "@" + QString::fromStdString(details.mId.toStdString()) + ">";
|
||||||
|
}
|
||||||
|
|
||||||
const QString PeerDefs::rsid(const std::string &name, const RsPgpId &id)
|
const QString PeerDefs::rsid(const std::string &name, const RsPgpId &id)
|
||||||
{
|
{
|
||||||
if (name.empty()) {
|
if (name.empty()) {
|
||||||
|
@ -33,6 +33,7 @@ class PeerDefs
|
|||||||
public:
|
public:
|
||||||
static const QString nameWithLocation(const RsPeerDetails &details);
|
static const QString nameWithLocation(const RsPeerDetails &details);
|
||||||
static const QString nameWithLocation(const RsIdentityDetails &details);
|
static const QString nameWithLocation(const RsIdentityDetails &details);
|
||||||
|
static const QString nameWithId(const RsIdentityDetails &details);
|
||||||
|
|
||||||
static const QString rsid(const RsPeerDetails &details);
|
static const QString rsid(const RsPeerDetails &details);
|
||||||
static const QString rsid(const std::string &name, const RsPeerId &id);
|
static const QString rsid(const std::string &name, const RsPeerId &id);
|
||||||
|
@ -503,6 +503,7 @@
|
|||||||
<file>images/user/remove_user24.png</file>
|
<file>images/user/remove_user24.png</file>
|
||||||
<file>images/user/deny_user48.png</file>
|
<file>images/user/deny_user48.png</file>
|
||||||
<file>images/user/friends24.png</file>
|
<file>images/user/friends24.png</file>
|
||||||
|
<file>images/user/friends32.png</file>
|
||||||
<file>images/user/friends64.png</file>
|
<file>images/user/friends64.png</file>
|
||||||
<file>images/user/friends24_notify.png</file>
|
<file>images/user/friends24_notify.png</file>
|
||||||
<file>images/user/friend_suggestion16.png</file>
|
<file>images/user/friend_suggestion16.png</file>
|
||||||
|
Loading…
Reference in New Issue
Block a user