mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 20:12:29 -04:00
Improvements of People dialog. Patch from Phenom (slightly modified).
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7603 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
20786dbfeb
commit
d79f5e10fb
12 changed files with 1020 additions and 992 deletions
|
@ -2,8 +2,9 @@
|
|||
#define IDENTITYWIDGET_H
|
||||
|
||||
#include "gui/common/FlowLayout.h"
|
||||
#include <QWidget>
|
||||
#include <QImage>
|
||||
#include <QGraphicsScene>
|
||||
#include <QWidget>
|
||||
#include <retroshare/rsidentity.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
|
||||
|
@ -16,9 +17,13 @@ class IdentityWidget : public FlowLayoutItem
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit IdentityWidget(const RsGxsIdGroup& gxs_group_info, QString name = QString(), QWidget *parent = 0);
|
||||
explicit IdentityWidget(const RsPeerDetails& gpg_details, QString name = QString(), QWidget *parent = 0);
|
||||
explicit IdentityWidget(QString name = QString()
|
||||
, QWidget *parent = 0);
|
||||
~IdentityWidget();
|
||||
void updateData(const RsGxsIdGroup& gxs_group_info);
|
||||
void updateData(const RsPeerDetails& pgp_details);
|
||||
void updateData(const RsGxsIdGroup& gxs_group_info
|
||||
, const RsPeerDetails& pgp_details);
|
||||
|
||||
//Start QWidget Properties
|
||||
QSize sizeHint();
|
||||
|
@ -26,20 +31,36 @@ public:
|
|||
virtual const QPixmap getImage();
|
||||
virtual const QPixmap getDragImage();
|
||||
virtual void setIsSelected(bool value);
|
||||
//virtual bool isSelected();
|
||||
virtual void setIsCurrent(bool value);
|
||||
//virtual bool isCurrent();
|
||||
|
||||
//End Properties
|
||||
const bool isGXS() { return _isGXS; }
|
||||
|
||||
bool haveGXSId() { return _haveGXSId; }
|
||||
bool havePGPDetail() { return _havePGPDetail; }
|
||||
const RsGxsIdGroup& groupInfo() const { return _group_info; }
|
||||
const RsPeerDetails& details() const { return _details; }
|
||||
const QString keyId() const { return _keyId; }
|
||||
const QString idtype() const { return _idtype; }
|
||||
const QString nickname() const { return _nickname; }
|
||||
const QString gxsId() const { return _gxsId; }
|
||||
|
||||
signals:
|
||||
void addButtonClicked();
|
||||
|
||||
private slots:
|
||||
void pbAdd_clicked();
|
||||
|
||||
private:
|
||||
bool _isGXS;
|
||||
bool _haveGXSId;
|
||||
bool _havePGPDetail;
|
||||
RsGxsIdGroup _group_info;
|
||||
RsPeerDetails _details;
|
||||
QGraphicsScene* _scene;
|
||||
QImage _avatar;
|
||||
|
||||
QString _keyId;
|
||||
QString _idtype;
|
||||
QString _nickname;
|
||||
QString _gxsId;
|
||||
|
||||
Ui::IdentityWidget *ui;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue