mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 20:12:29 -04:00
Added forgotten files
Added some useful labels for the people page git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7575 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
cef70ef3df
commit
80c49e2a62
6 changed files with 561 additions and 95 deletions
47
retroshare-gui/src/gui/People/IdentityWidget.h
Normal file
47
retroshare-gui/src/gui/People/IdentityWidget.h
Normal file
|
@ -0,0 +1,47 @@
|
|||
#ifndef IDENTITYWIDGET_H
|
||||
#define IDENTITYWIDGET_H
|
||||
|
||||
#include "gui/common/FlowLayout.h"
|
||||
#include <QWidget>
|
||||
#include <QGraphicsScene>
|
||||
#include <retroshare/rsidentity.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
|
||||
namespace Ui {
|
||||
class IdentityWidget;
|
||||
}
|
||||
|
||||
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);
|
||||
~IdentityWidget();
|
||||
|
||||
//Start QWidget Properties
|
||||
QSize sizeHint();
|
||||
//Start FlowLayoutItem Properties
|
||||
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; }
|
||||
const RsGxsIdGroup& groupInfo() const { return _group_info; }
|
||||
const RsPeerDetails& details() const { return _details; }
|
||||
|
||||
private:
|
||||
bool _isGXS;
|
||||
RsGxsIdGroup _group_info;
|
||||
RsPeerDetails _details;
|
||||
QGraphicsScene* _scene;
|
||||
|
||||
Ui::IdentityWidget *ui;
|
||||
};
|
||||
|
||||
#endif // IDENTITYWIDGET_H
|
Loading…
Add table
Add a link
Reference in a new issue