mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
d79f5e10fb
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7603 b45a01b8-16f6-495d-af2f-9b41ad6348cc
58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
#ifndef CIRCLEWIDGET_H
|
|
#define CIRCLEWIDGET_H
|
|
|
|
#include "gui/common/FlowLayout.h"
|
|
#include "gui/People/IdentityWidget.h"
|
|
#include <QWidget>
|
|
#include <QGraphicsScene>
|
|
|
|
#include <retroshare/rsgxscircles.h>
|
|
|
|
namespace Ui {
|
|
class CircleWidget;
|
|
}
|
|
|
|
class CircleWidget : public FlowLayoutItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CircleWidget(QString name = QString()
|
|
, QWidget *parent = 0);
|
|
~CircleWidget();
|
|
void updateData(const RsGroupMetaData& gxs_group_info
|
|
, const RsGxsCircleDetails& details);
|
|
|
|
//Start QWidget Properties
|
|
QSize sizeHint();
|
|
//Start FlowLayoutItem Properties
|
|
virtual const QPixmap getImage();
|
|
virtual const QPixmap getDragImage();
|
|
//End Properties
|
|
|
|
void addIdent(IdentityWidget* item);
|
|
const QMap<std::string, IdentityWidget*> idents() const {return _list;}
|
|
|
|
const RsGroupMetaData& groupInfo() const { return _group_info;}
|
|
const RsGxsCircleDetails& circleDetails() const {return _circle_details;}
|
|
|
|
signals:
|
|
void askForGXSIdentityWidget(RsGxsId gxs_id);
|
|
void askForPGPIdentityWidget(RsPgpId pgp_id);
|
|
|
|
private slots:
|
|
void updateIdImage();
|
|
|
|
private:
|
|
void updateScene();
|
|
|
|
QGraphicsScene* _scene;
|
|
QMap<std::string, IdentityWidget*> _list;
|
|
RsGroupMetaData _group_info ;
|
|
RsGxsCircleDetails _circle_details ;
|
|
|
|
Ui::CircleWidget *ui;
|
|
};
|
|
|
|
#endif // CIRCLEWIDGET_H
|