mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-18 05:50:39 -04:00
Created V0.3.x branch and moved the head into the trunk directory.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@246 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
commit
935745a08e
1318 changed files with 348809 additions and 0 deletions
81
retroshare-gui/src/gui/StatisticDialog.h
Normal file
81
retroshare-gui/src/gui/StatisticDialog.h
Normal file
|
@ -0,0 +1,81 @@
|
|||
/****************************************************************
|
||||
* RShare is distributed under the following license:
|
||||
*
|
||||
* Copyright (C) 2006, crypton
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* 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
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QDateTime>
|
||||
//#include <QEvent>
|
||||
|
||||
#include <config/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);
|
||||
/** Default Destructor */
|
||||
~StatisticDialog();
|
||||
protected:
|
||||
/** Called to deliver a bandwidth update event from Tor. */
|
||||
// void customEvent(QEvent *event);
|
||||
|
||||
private slots:
|
||||
/** Adds new data to the graph */
|
||||
void updateGraph(quint64 bytesRead, quint64 bytesWritten);
|
||||
/** Called when settings button is toggled */
|
||||
void showSettingsFrame(bool show);
|
||||
/** Called when the settings button is toggled */
|
||||
void setOpacity(int value);
|
||||
/** Called when the user saves settings */
|
||||
void saveChanges();
|
||||
/** Called when the user cancels changes settings */
|
||||
void cancelChanges();
|
||||
/** Called when the reset button is pressed */
|
||||
void reset();
|
||||
|
||||
private:
|
||||
/** Create and bind actions to events **/
|
||||
void createActions();
|
||||
/** Loads the saved Bandwidth Graph settings */
|
||||
void loadSettings();
|
||||
|
||||
/** A TorControl object used to talk to Tor. */
|
||||
// TorControl* _torControl;
|
||||
/** A VidaliaSettings object that handles getting/saving settings */
|
||||
RshareSettings* _settings;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::StatisticDialog ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue