Added new display window for monitor bandwidth rates with peers.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5242 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2012-06-21 23:24:53 +00:00
parent 48a1c66c60
commit 7501d92882
6 changed files with 418 additions and 0 deletions

View file

@ -99,14 +99,20 @@
/****
*
* #define USE_DHTWINDOW 1
* #define USE_BWCTRLWINDOW 1
*
****/
#define USE_DHTWINDOW 1
#define USE_BWCTRLWINDOW 1
#ifdef USE_DHTWINDOW
#include "dht/DhtWindow.h"
#endif
#ifdef USE_BWCTRLWINDOW
#include "bwctrl/BwCtrlWindow.h"
#endif
#define FONT QFont("Arial", 9)
/* Images for toolbar icons */
@ -441,6 +447,9 @@ void MainWindow::createTrayIcon()
#ifdef USE_DHTWINDOW
trayMenu->addAction(QIcon(IMAGE_DHT), tr("DHT Details"), this, SLOT(showDhtWindow()));
#endif
#ifdef USE_BWCTRLWINDOW
trayMenu->addAction(QIcon(IMAGE_DHT), tr("Bandwidth Details"), this, SLOT(showBwCtrlWindow()));
#endif
#ifdef UNFINISHED
trayMenu->addAction(QIcon(IMAGE_UNFINISHED), tr("Applications"), this, SLOT(showApplWindow()));
@ -1206,6 +1215,15 @@ void MainWindow::showDhtWindow()
}
/** Shows Bandwitch Control window */
void MainWindow::showBwCtrlWindow()
{
#ifdef USE_BWCTRLWINDOW
BwCtrlWindow::showYourself();
#endif
}
/** Shows Application window */
#ifdef UNFINISHED
void MainWindow::showApplWindow()