• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

barchart.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *
00008  *   Copyright (C) 2007 by Javier Goday <jgoday@gmail.com>
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
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

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal