Added to display Turtle Router Dialog in Statistics

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7524 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-09-10 14:26:37 +00:00
parent 1d668b377a
commit 49cc42ae7d
3 changed files with 88 additions and 74 deletions

View File

@ -11,22 +11,13 @@
</rect> </rect>
</property> </property>
<layout class="QGridLayout"> <layout class="QGridLayout">
<property name="leftMargin"> <property name="margin">
<number>6</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>6</number> <number>6</number>
</property> </property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>2</number>
</property> </property>
<widget class="QWidget" name="tab"> <widget class="QWidget" name="tab">
<attribute name="title"> <attribute name="title">
@ -501,6 +492,12 @@ behind a firewall or a VPN.</string>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<item> <item>
<widget class="QCheckBox" name="_turtle_enabled_CB"> <widget class="QCheckBox" name="_turtle_enabled_CB">
<property name="toolTip"> <property name="toolTip">
@ -511,13 +508,6 @@ behind a firewall or a VPN.</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="_routing_info_PB">
<property name="text">
<string>Show routing info</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
@ -550,6 +540,13 @@ The default value is 20.</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="_routing_info_PB">
<property name="text">
<string>Show routing info</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
</layout> </layout>

View File

@ -29,6 +29,7 @@
#include <retroshare/rsturtle.h> #include <retroshare/rsturtle.h>
#include <retroshare/rspeers.h> #include <retroshare/rspeers.h>
#include "TurtleRouterStatistics.h" #include "TurtleRouterStatistics.h"
#include "TurtleRouterDialog.h"
#include "gui/settings/rsharesettings.h" #include "gui/settings/rsharesettings.h"
@ -191,6 +192,8 @@ TurtleRouterStatistics::TurtleRouterStatistics(QWidget *parent)
_tunnel_statistics_F->setFrameStyle(QFrame::NoFrame); _tunnel_statistics_F->setFrameStyle(QFrame::NoFrame);
_tunnel_statistics_F->setFocusPolicy(Qt::NoFocus); _tunnel_statistics_F->setFocusPolicy(Qt::NoFocus);
routertabWidget->addTab(new TurtleRouterDialog(),QString(tr("Tunnel Requests")));
// load settings // load settings
processSettings(true); processSettings(true);
} }

View File

@ -6,72 +6,86 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>611</width> <width>680</width>
<height>513</height> <height>523</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Router Statistics</string> <string>Router Statistics</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QSplitter" name="splitter"> <widget class="QTabWidget" name="routertabWidget">
<property name="orientation"> <property name="currentIndex">
<enum>Qt::Vertical</enum> <number>0</number>
</property> </property>
<widget class="QScrollArea" name="_tunnel_statistics_F"> <widget class="QWidget" name="tab">
<property name="styleSheet"> <attribute name="title">
<string notr="true"/> <string>Turtle Router</string>
</property> </attribute>
<property name="frameShape"> <layout class="QGridLayout" name="gridLayout">
<enum>QFrame::NoFrame</enum> <item row="0" column="0">
</property> <widget class="QSplitter" name="splitter">
<property name="horizontalScrollBarPolicy"> <property name="orientation">
<enum>Qt::ScrollBarAlwaysOff</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="widgetResizable"> <widget class="QScrollArea" name="_tunnel_statistics_F">
<bool>true</bool> <property name="styleSheet">
</property> <string notr="true"/>
<widget class="QWidget" name="scrollAreaWidgetContents"> </property>
<property name="geometry"> <property name="frameShape">
<rect> <enum>QFrame::NoFrame</enum>
<x>0</x> </property>
<y>0</y> <property name="horizontalScrollBarPolicy">
<width>593</width> <enum>Qt::ScrollBarAlwaysOff</enum>
<height>289</height> </property>
</rect> <property name="widgetResizable">
</property> <bool>true</bool>
<property name="autoFillBackground"> </property>
<bool>true</bool> <widget class="QWidget" name="scrollAreaWidgetContents">
</property> <property name="geometry">
</widget> <rect>
<x>0</x>
<y>0</y>
<width>638</width>
<height>255</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
</widget>
</widget>
</widget>
</item>
<item row="1" column="0">
<widget class="GraphFrameTunnel" name="frmGraph">
<property name="minimumSize">
<size>
<width>120</width>
<height>200</height>
</size>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
</widget>
</item>
</layout>
</widget> </widget>
</widget> </widget>
</item> </item>
<item row="1" column="0">
<widget class="GraphFrameTunnel" name="frmGraph">
<property name="minimumSize">
<size>
<width>120</width>
<height>200</height>
</size>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>