mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
improved turtle router console
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1542 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
53dd3019fb
commit
6972bc1cb8
@ -40,6 +40,7 @@ void TurtleRouterDialog::showUp()
|
|||||||
_instance = new TurtleRouterDialog ;
|
_instance = new TurtleRouterDialog ;
|
||||||
|
|
||||||
_instance->show() ;
|
_instance->show() ;
|
||||||
|
_instance->update() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TurtleRouterDialog::removeFileHash()
|
void TurtleRouterDialog::removeFileHash()
|
||||||
@ -60,21 +61,24 @@ void TurtleRouterDialog::removeFileHash()
|
|||||||
|
|
||||||
void TurtleRouterDialog::update()
|
void TurtleRouterDialog::update()
|
||||||
{
|
{
|
||||||
std::cout << "updatign turtle router console."<< std::endl ;
|
if(isVisible())
|
||||||
|
{
|
||||||
|
std::cout << "updatign turtle router console."<< std::endl ;
|
||||||
|
|
||||||
std::vector<std::vector<std::string> > hashes_info ;
|
std::vector<std::vector<std::string> > hashes_info ;
|
||||||
std::vector<std::vector<std::string> > tunnels_info ;
|
std::vector<std::vector<std::string> > tunnels_info ;
|
||||||
std::vector<std::vector<std::string> > search_reqs_info ;
|
std::vector<std::vector<std::string> > search_reqs_info ;
|
||||||
std::vector<std::vector<std::string> > tunnel_reqs_info ;
|
std::vector<std::vector<std::string> > tunnel_reqs_info ;
|
||||||
|
|
||||||
rsTurtle->getInfo(hashes_info,tunnels_info,search_reqs_info,tunnel_reqs_info) ;
|
rsTurtle->getInfo(hashes_info,tunnels_info,search_reqs_info,tunnel_reqs_info) ;
|
||||||
|
|
||||||
// now display this in the QTableWidgets
|
// now display this in the QTableWidgets
|
||||||
|
|
||||||
fillTable( _hashes_TW, hashes_info) ;
|
fillTable( _hashes_TW, hashes_info) ;
|
||||||
fillTable( _tunnels_TW, tunnels_info) ;
|
fillTable( _tunnels_TW, tunnels_info) ;
|
||||||
fillTable( _tunnel_reqs_TW, tunnel_reqs_info) ;
|
fillTable( _tunnel_reqs_TW, tunnel_reqs_info) ;
|
||||||
fillTable( _search_reqs_TW, search_reqs_info) ;
|
fillTable( _search_reqs_TW, search_reqs_info) ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TurtleRouterDialog::fillTable(QTableWidget *table,const std::vector<std::vector<std::string> >& data)
|
void TurtleRouterDialog::fillTable(QTableWidget *table,const std::vector<std::vector<std::string> >& data)
|
||||||
|
Loading…
Reference in New Issue
Block a user