kget
barchart.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef BARCHART_H
00022 #define BARCHART_H
00023
00024 #include "transfergraph.h"
00025
00026 #include <QMap>
00027
00028 #define MAX_DOWNLOADS_PER_PAGE 5
00029
00030 namespace Plasma {
00031 class BoxLayout;
00032 class ProgressBar;
00033 class Label;
00034 class PushButton;
00035 }
00036 class QString;
00037
00038 class BarChart : public TransferGraph
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 BarChart(Plasma::Applet *parent, Plasma::BoxLayout *mainlayout);
00044 ~BarChart();
00045
00046 void setTransfers(const QVariantMap &transfers);
00047
00048 public slots:
00049 void nextPage();
00050 void previousPage();
00051
00052 private slots:
00053 void populate();
00054
00055 private:
00056 void clear();
00057
00058 private:
00059 Plasma::BoxLayout *m_layout;
00060 Plasma::BoxLayout *m_progressBarsLayout;
00061 Plasma::BoxLayout *m_pagerLayout;
00062 Plasma::PushButton *m_nextPageButton;
00063 Plasma::PushButton *m_previousPageButton;
00064 Plasma::Label *m_totalSizeLabel;
00065 Plasma::Label *m_pageLabel;
00066 QMap <QString, Plasma::ProgressBar *> m_progressBars;
00067
00068 int m_actualPage;
00069 };
00070
00071 #endif