mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 03:06:31 -04:00
dynamic update of networkview from p3disc info. Disabled friend level for now.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3752 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3fa3e2d6db
commit
a32bcbb635
14 changed files with 194 additions and 202 deletions
|
@ -24,53 +24,53 @@
|
|||
|
||||
#include <QGraphicsScene>
|
||||
|
||||
#include "mainpage.h"
|
||||
#include "RsAutoUpdatePage.h"
|
||||
#include "ui_NetworkView.h"
|
||||
|
||||
|
||||
class NetworkView : public MainPage
|
||||
class NetworkView : public RsAutoUpdatePage
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
NetworkView(QWidget *parent = 0);
|
||||
public:
|
||||
NetworkView(QWidget *parent = 0);
|
||||
|
||||
virtual void updateDisplay() ; // derived from RsAutoUpdatePage
|
||||
|
||||
public slots:
|
||||
void update() ;
|
||||
|
||||
private slots:
|
||||
|
||||
void setMaxFriendLevel(int) ;
|
||||
void setEdgeLength(int) ;
|
||||
|
||||
void changedFoFCheckBox( );
|
||||
|
||||
/** Called when Settings button is toggled */
|
||||
void shownwSettingsFrame(bool show);
|
||||
|
||||
private:
|
||||
|
||||
void clearPeerItems();
|
||||
void clearOtherItems();
|
||||
void clearLineItems();
|
||||
|
||||
QGraphicsScene *mScene;
|
||||
|
||||
std::map<std::string, QGraphicsItem *> mPeerItems;
|
||||
std::list<QGraphicsItem *> mOtherItems;
|
||||
|
||||
std::list<QGraphicsItem *> mLineItems;
|
||||
bool mLineChanged;
|
||||
|
||||
|
||||
private slots:
|
||||
/** Qt Designer generated object */
|
||||
Ui::NetworkView ui;
|
||||
int _max_friend_level ;
|
||||
std::map<std::string,GraphWidget::NodeId> _node_ids ;
|
||||
|
||||
void setMaxFriendLevel(int) ;
|
||||
void setEdgeLength(int) ;
|
||||
void insertPeers();
|
||||
void insertSignatures();
|
||||
void insertConnections();
|
||||
|
||||
void changedScene();
|
||||
|
||||
void changedFoFCheckBox( );
|
||||
void changedDrawSignatures( );
|
||||
void changedDrawFriends( );
|
||||
|
||||
/** Called when Settings button is toggled */
|
||||
void shownwSettingsFrame(bool show);
|
||||
|
||||
private:
|
||||
|
||||
void clearPeerItems();
|
||||
void clearOtherItems();
|
||||
void clearLineItems();
|
||||
|
||||
QGraphicsScene *mScene;
|
||||
|
||||
std::map<std::string, QGraphicsItem *> mPeerItems;
|
||||
std::list<QGraphicsItem *> mOtherItems;
|
||||
|
||||
std::list<QGraphicsItem *> mLineItems;
|
||||
bool mLineChanged;
|
||||
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::NetworkView ui;
|
||||
int _max_friend_level ;
|
||||
bool _should_update ;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue