mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
bug fixes to NS gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7254 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e2cf4feaa5
commit
74bc8ad999
@ -48,6 +48,7 @@ GlobalRouterStatistics::GlobalRouterStatistics(QWidget *parent)
|
|||||||
setupUi(this) ;
|
setupUi(this) ;
|
||||||
|
|
||||||
_router_F->setWidget( _tst_CW = new GlobalRouterStatisticsWidget() ) ;
|
_router_F->setWidget( _tst_CW = new GlobalRouterStatisticsWidget() ) ;
|
||||||
|
_grouter = NULL ;
|
||||||
}
|
}
|
||||||
|
|
||||||
GlobalRouterStatistics::~GlobalRouterStatistics()
|
GlobalRouterStatistics::~GlobalRouterStatistics()
|
||||||
@ -61,6 +62,7 @@ void GlobalRouterStatistics::setGlobalRouter(const RsGRouter *grouter)
|
|||||||
}
|
}
|
||||||
void GlobalRouterStatistics::updateDisplay()
|
void GlobalRouterStatistics::updateDisplay()
|
||||||
{
|
{
|
||||||
|
if(_grouter != NULL)
|
||||||
_tst_CW->updateContent(_grouter) ;
|
_tst_CW->updateContent(_grouter) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,8 @@ void NetworkSimulatorGUI::updateSelectedNode(int node_id)
|
|||||||
|
|
||||||
_turtle_router_statistics->updateDisplay() ;
|
_turtle_router_statistics->updateDisplay() ;
|
||||||
_global_router_statistics->updateDisplay() ;
|
_global_router_statistics->updateDisplay() ;
|
||||||
|
|
||||||
|
std::cerr << "Selected objects: turtle=" << std::hex << _viewer->network().node(node_id).turtle_service() << ", grouter=" << _viewer->network().node(node_id).global_router_service() << std::dec << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetworkSimulatorGUI::toggleNetworkTraffic(bool b)
|
void NetworkSimulatorGUI::toggleNetworkTraffic(bool b)
|
||||||
@ -57,7 +59,7 @@ void NetworkSimulatorGUI::timerEvent(QTimerEvent *event)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(event) ;
|
Q_UNUSED(event) ;
|
||||||
|
|
||||||
std::cerr << "timer event!" << std::endl;
|
//std::cerr << "timer event!" << std::endl;
|
||||||
|
|
||||||
_viewer->network().tick() ;
|
_viewer->network().tick() ;
|
||||||
|
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
TEMPLATE = subdirs
|
||||||
|
SUBDIRS = nscore gui
|
@ -66,7 +66,7 @@ bool Network::initRandom(uint32_t nb_nodes,float connexion_probability)
|
|||||||
|
|
||||||
void Network::tick()
|
void Network::tick()
|
||||||
{
|
{
|
||||||
std::cerr<< "network loop: tick()" << std::endl;
|
//std::cerr<< "network loop: tick()" << std::endl;
|
||||||
|
|
||||||
// Tick all nodes.
|
// Tick all nodes.
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ PeerNode::~PeerNode()
|
|||||||
|
|
||||||
void PeerNode::tick()
|
void PeerNode::tick()
|
||||||
{
|
{
|
||||||
std::cerr << " ticking peer node " << _id << std::endl;
|
//std::cerr << " ticking peer node " << _id << std::endl;
|
||||||
_service_server->tick() ;
|
_service_server->tick() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user