• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

superkaramba

bar.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Hans Karlsson <karlsson.h@home.se>              *
00003  *   Copyright (C) 2003 Matt Broadstone <mbroadst@gmail.com>               *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 #ifndef BAR_H
00011 #define BAR_H
00012 
00013 #include "meter.h"
00014 
00015 class QPainter;
00016 class QTimer;
00017 
00018 class Bar : public Meter
00019 {
00020     Q_OBJECT
00021 public:
00022     Bar(Karamba* k, int x, int y, int width, int height);
00023     ~Bar();
00024 
00025     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
00026                QWidget *widget);
00027 
00028     virtual void setMax(int m);
00029     virtual void setMin(int m);
00030 
00031 public slots:
00032     bool setImage(const QString &imagePath);
00033     QString getImage() const;
00034 
00035     void setValue(const QString&);
00036     void setValue(int);
00037     int  getValue() const;
00038 
00039     void setVertical(bool);
00040     int  getVertical() const;
00041 
00042     void recalculateValue();
00043 
00044     void valueChanged();
00045 
00046 private:
00047     int m_barValue;
00048     int m_oldBarValue;
00049     int m_value;
00050 
00051     QTimer *m_timer;
00052 
00053     int m_pixmapWidth;
00054     int m_pixmapHeight;
00055 
00056     bool m_verticalBar;
00057 
00058     QString m_imagePath;
00059     QPixmap m_pixmap;
00060 
00061 };
00062 
00063 #endif // BAR_H

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.7
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