mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
Added a new Statistics Window
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7501 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
29a11b021e
commit
05be764186
16 changed files with 1175 additions and 940 deletions
|
@ -48,12 +48,10 @@
|
|||
#include "NewsFeed.h"
|
||||
#include "ShareManager.h"
|
||||
#include "NetworkView.h"
|
||||
//#include "ForumsDialog.h"
|
||||
#include "FriendsDialog.h"
|
||||
#include "ChatLobbyWidget.h"
|
||||
#include "HelpDialog.h"
|
||||
#include "AboutDialog.h"
|
||||
//#include "ChannelFeed.h"
|
||||
#include "bwgraph/bwgraph.h"
|
||||
#include "help/browser/helpbrowser.h"
|
||||
#include "chat/ChatDialog.h"
|
||||
|
@ -98,6 +96,7 @@
|
|||
#include "gui/Circles/CirclesDialog.h"
|
||||
#include "gui/WikiPoos/WikiDialog.h"
|
||||
#include "gui/Posted/PostedDialog.h"
|
||||
#include "gui/statistics/StatisticsWindow.h"
|
||||
|
||||
#include "gui/connect/ConnectFriendWizard.h"
|
||||
#include "gui/common/RsCollectionFile.h"
|
||||
|
@ -110,19 +109,6 @@
|
|||
#include <iomanip>
|
||||
#include <unistd.h>
|
||||
|
||||
/****
|
||||
*
|
||||
* #define USE_DHTWINDOW 1
|
||||
* #define USE_BWCTRLWINDOW 1
|
||||
*
|
||||
****/
|
||||
#define USE_DHTWINDOW 1
|
||||
|
||||
#ifdef USE_DHTWINDOW
|
||||
#include "dht/DhtWindow.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* Images for toolbar icons */
|
||||
//#define IMAGE_NETWORK2 ":/images/rs1.png"
|
||||
//#define IMAGE_PEERS ":/images/groupchat.png"
|
||||
|
@ -613,9 +599,8 @@ void MainWindow::createTrayIcon()
|
|||
trayMenu->addAction(QIcon(IMAGE_RSM16), tr("Open Messenger"), this, SLOT(showMessengerWindow()));
|
||||
trayMenu->addAction(QIcon(IMAGE_MESSAGES), tr("Open Messages"), this, SLOT(showMess()));
|
||||
trayMenu->addAction(QIcon(IMAGE_BWGRAPH), tr("Bandwidth Graph"), _bandwidthGraph, SLOT(showWindow()));
|
||||
#ifdef USE_DHTWINDOW
|
||||
trayMenu->addAction(QIcon(IMAGE_DHT), tr("Statistics"), this, SLOT(showDhtWindow()));
|
||||
#endif
|
||||
trayMenu->addAction(QIcon(IMAGE_DHT), tr("Statistics"), this, SLOT(showStatisticsWindow()));
|
||||
|
||||
|
||||
#ifdef UNFINISHED
|
||||
trayMenu->addAction(QIcon(IMAGE_UNFINISHED), tr("Applications"), this, SLOT(showApplWindow()));
|
||||
|
@ -1096,12 +1081,11 @@ void MainWindow::showMessengerWindow()
|
|||
MessengerWindow::showYourself();
|
||||
}
|
||||
|
||||
/** Shows Dht window */
|
||||
void MainWindow::showDhtWindow()
|
||||
/** Shows Statistics window */
|
||||
void MainWindow::showStatisticsWindow()
|
||||
{
|
||||
#ifdef USE_DHTWINDOW
|
||||
DhtWindow::showYourself();
|
||||
#endif
|
||||
StatisticsWindow::showYourself();
|
||||
|
||||
}
|
||||
|
||||
/** Shows Application window */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue