~hendrik-grewe/transmission/private-patch

« back to all changes in this revision

Viewing changes to qt/stats-dialog.h

  • Committer: charles
  • Date: 2009-04-09 17:55:47 UTC
  • Revision ID: svn-v4:f4695dd4-2c0a-0410-b89c-da849a56a58e:trunk:8188
(trunk) add the Qt beta into svn 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file Copyright (C) 2009 Charles Kerr <charles@transmissionbt.com>
 
3
 *
 
4
 * This file is licensed by the GPL version 2.  Works owned by the
 
5
 * Transmission project are granted a special exemption to clause 2(b)
 
6
 * so that the bulk of its code can remain under the MIT license.
 
7
 * This exemption does not extend to derived works not owned by
 
8
 * the Transmission project.
 
9
 *
 
10
 * $Id:$
 
11
 */
 
12
 
 
13
#ifndef STATS_DIALOG_H
 
14
#define STATS_DIALOG_H
 
15
 
 
16
#include <QDialog>
 
17
 
 
18
class Session;
 
19
class QLabel;
 
20
class QTimer;
 
21
 
 
22
class StatsDialog: public QDialog
 
23
{
 
24
        Q_OBJECT
 
25
 
 
26
    signals:
 
27
        void accepted( );
 
28
 
 
29
    public slots:
 
30
        void updateStats( );
 
31
 
 
32
    private slots:
 
33
        void onTimer( );
 
34
 
 
35
    public:
 
36
        StatsDialog( Session&, QWidget * parent = 0 );
 
37
        ~StatsDialog( );
 
38
        virtual void setVisible( bool visible );
 
39
 
 
40
    private:
 
41
        Session & mySession;
 
42
        QTimer * myTimer;
 
43
        QLabel * myCurrentUp;
 
44
        QLabel * myCurrentDown;
 
45
        QLabel * myCurrentRatio;
 
46
        QLabel * myCurrentDuration;
 
47
        QLabel * myStartCount;
 
48
        QLabel * myTotalUp;
 
49
        QLabel * myTotalDown;
 
50
        QLabel * myTotalRatio;
 
51
        QLabel * myTotalDuration;
 
52
};
 
53
 
 
54
#endif