added additional button to show statistics window in settings->node

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8283 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-05-21 11:18:55 +00:00
parent f803f1552c
commit 18a4bef840
4 changed files with 16 additions and 1 deletions

View File

@ -41,7 +41,7 @@ To be done
needs the same space as the permission matrix (happens on windows + linux; can be "fixed" by closing and reopen the setting window) needs the same space as the permission matrix (happens on windows + linux; can be "fixed" by closing and reopen the setting window)
(from sehraf) (from sehraf)
0015 [ ] The new statistics windows is really nice and everybody should see it -> add a link to it somewhere in settings 0015 [X] The new statistics windows is really nice and everybody should see it -> add a link to it somewhere in settings
(or wherever suitable) (from sehraf) cyril: there's a menu in the bottom right corner ofthe main window to get it. (or wherever suitable) (from sehraf) cyril: there's a menu in the bottom right corner ofthe main window to get it.
Otherwise, we could merge it as tabs in options->server, but I don't really like this option. Otherwise, we could merge it as tabs in options->server, but I don't really like this option.

View File

@ -32,6 +32,7 @@
#include "util/DateTime.h" #include "util/DateTime.h"
#include <gui/RetroShareLink.h> #include <gui/RetroShareLink.h>
#include <gui/profile/ProfileManager.h> #include <gui/profile/ProfileManager.h>
#include <gui/statistics/StatisticsWindow.h>
#include <retroshare/rspeers.h> //for rsPeers variable #include <retroshare/rspeers.h> //for rsPeers variable
#include <retroshare/rsdisc.h> //for rsPeers variable #include <retroshare/rsdisc.h> //for rsPeers variable
@ -47,6 +48,7 @@ CryptoPage::CryptoPage(QWidget * parent, Qt::WindowFlags flags)
connect(ui.saveButton, SIGNAL(clicked()), this, SLOT(fileSaveAs())); connect(ui.saveButton, SIGNAL(clicked()), this, SLOT(fileSaveAs()));
connect(ui._includeSignatures_CB, SIGNAL(toggled(bool)), this, SLOT(load())); connect(ui._includeSignatures_CB, SIGNAL(toggled(bool)), this, SLOT(load()));
connect(ui._copyLink_PB, SIGNAL(clicked()), this, SLOT(copyRSLink())); connect(ui._copyLink_PB, SIGNAL(clicked()), this, SLOT(copyRSLink()));
connect(ui.showStats_PB, SIGNAL(clicked()), this, SLOT(showStats()));
// hide profile manager as it causes bugs when generating a new profile. // hide profile manager as it causes bugs when generating a new profile.
//ui.profile_Button->hide() ; //ui.profile_Button->hide() ;
@ -164,3 +166,8 @@ bool CryptoPage::fileSaveAs()
} }
return false; return false;
} }
void CryptoPage::showStats()
{
StatisticsWindow::showYourself();
}

View File

@ -51,6 +51,7 @@ class CryptoPage : public ConfigPage
void profilemanager(); void profilemanager();
bool fileSave(); bool fileSave();
bool fileSaveAs(); bool fileSaveAs();
void showStats();
private: private:
QString fileName; QString fileName;

View File

@ -397,6 +397,13 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="showStats_PB">
<property name="text">
<string>show statistics window</string>
</property>
</widget>
</item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">