mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
Added Basic Dht Details Window to Retroshare GUI.
* created gui/dht/DhtWindow class. * brought across the basic structure from PeerNetQt... will be a condensed version of that GUI. * added to status Menu. * enabled via #define USE_DHTWINDOW (which is defined! in MainWindow at the moment). * Dht Details only displays Dht Peers at the moment. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4400 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
11cc3fce04
commit
38fd0c4a5e
7 changed files with 1172 additions and 4 deletions
|
@ -87,6 +87,11 @@
|
|||
#include <iomanip>
|
||||
#include <unistd.h>
|
||||
|
||||
#define USE_DHTWINDOW 1
|
||||
#ifdef USE_DHTWINDOW
|
||||
#include "dht/DhtWindow.h"
|
||||
#endif
|
||||
|
||||
#define FONT QFont("Arial", 9)
|
||||
|
||||
/* Images for toolbar icons */
|
||||
|
@ -394,6 +399,9 @@ 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_RSM16), tr("Dht Details"), this, SLOT(showDhtWindow()));
|
||||
#endif
|
||||
|
||||
#ifdef UNFINISHED
|
||||
trayMenu->addAction(QIcon(IMAGE_UNFINISHED), tr("Applications"), this, SLOT(showApplWindow()));
|
||||
|
@ -1069,6 +1077,14 @@ void MainWindow::showMessengerWindow()
|
|||
MessengerWindow::showYourself();
|
||||
}
|
||||
|
||||
/** Shows Dht window */
|
||||
void MainWindow::showDhtWindow()
|
||||
{
|
||||
#ifdef USE_DHTWINDOW
|
||||
DhtWindow::showYourself();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/** Shows Application window */
|
||||
#ifdef UNFINISHED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue