mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-09 14:52:28 -04:00
added search and highlighting to network graph (patch from Chozabu)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8368 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
eb7a52a2a7
commit
9e1a368061
7 changed files with 78 additions and 18 deletions
|
@ -72,14 +72,19 @@ public:
|
|||
void addEdge(Edge *edge);
|
||||
const QList<Edge *>& edges() const;
|
||||
|
||||
int type() const { return Type; }
|
||||
std::string idString() const { return _gpg_id.toStdString() ; }
|
||||
int type() const { return Type; }
|
||||
std::string idString() const { return _gpg_id.toStdString() ; }
|
||||
std::string descString() const { return _desc_string ; }
|
||||
|
||||
void calculateForces(const double *data,int width,int height,int W,int H,float x,float y,float speedf);
|
||||
bool advance();
|
||||
|
||||
QRectF boundingRect() const;
|
||||
QPainterPath shape() const;
|
||||
|
||||
void setNodeDrawSize(int nds){mNodeDrawSize = nds;}
|
||||
int getNodeDrawSize(){return mNodeDrawSize;}
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
|
||||
int n_edges() const { return edgeList.size() ; }
|
||||
|
@ -106,6 +111,7 @@ private:
|
|||
GraphWidget::AuthType _auth ;
|
||||
bool mDeterminedBB ;
|
||||
int mBBWidth ;
|
||||
int mNodeDrawSize;
|
||||
|
||||
static Node *_selected_node ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue