mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 14:30:43 -04:00
* Enabled Statistics for ApplicationWindow
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1037 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
bcfb410ba4
commit
516b1684f9
6 changed files with 775 additions and 551 deletions
|
@ -17,38 +17,40 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
****************************************************************/
|
||||
|
||||
#ifndef _STATISTICDIALOG_H
|
||||
#define _STATISTICDIALOG_H
|
||||
|
||||
#define _STATISTICDIALOG_H
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QDateTime>
|
||||
//#include <QEvent>
|
||||
#include <QTimer>
|
||||
|
||||
#include <gui/Preferences/rsharesettings.h>
|
||||
|
||||
#include "mainpage.h"
|
||||
|
||||
#include <gui/Preferences/rsharesettings.h>
|
||||
|
||||
#include "mainpage.h"
|
||||
#include "ui_StatisticDialog.h"
|
||||
#include "linetypes.h"
|
||||
|
||||
/** Redraw graph every 1000ms **/
|
||||
#define REFRESH_RATE 1000
|
||||
|
||||
class StatisticDialog : public MainPage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Default Constructor */
|
||||
StatisticDialog(QWidget *parent = 0);
|
||||
#define REFRESH_RATE 1000
|
||||
|
||||
class StatisticDialog : public MainPage
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** Default Constructor */
|
||||
StatisticDialog(QWidget *parent = 0);
|
||||
/** Default Destructor */
|
||||
~StatisticDialog();
|
||||
~StatisticDialog();
|
||||
protected:
|
||||
/** Called to deliver a bandwidth update event from Tor. */
|
||||
// void customEvent(QEvent *event);
|
||||
|
||||
private slots:
|
||||
// void customEvent(QEvent *event);
|
||||
|
||||
private slots:
|
||||
/** Adds new data to the graph */
|
||||
void updateGraph(quint64 bytesRead, quint64 bytesWritten);
|
||||
/** Called when settings button is toggled */
|
||||
|
@ -60,9 +62,12 @@ private slots:
|
|||
/** Called when the user cancels changes settings */
|
||||
void cancelChanges();
|
||||
/** Called when the reset button is pressed */
|
||||
void reset();
|
||||
|
||||
private:
|
||||
void reset();
|
||||
|
||||
void updategraph2status();
|
||||
|
||||
|
||||
private:
|
||||
/** Create and bind actions to events **/
|
||||
void createActions();
|
||||
/** Loads the saved Bandwidth Graph settings */
|
||||
|
@ -72,10 +77,10 @@ private:
|
|||
// TorControl* _torControl;
|
||||
/** A VidaliaSettings object that handles getting/saving settings */
|
||||
RshareSettings* _settings;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::StatisticDialog ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::StatisticDialog ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue