• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
bar.h
1 /***************************************************************************
2  * Copyright (C) 2003 by Hans Karlsson *
3  * karlsson.h@home.se *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 #ifndef BAR_H
11 #define BAR_H
12 
13 #include "meter.h"
14 #include <tqpixmap.h>
15 #include <tqstring.h>
16 #include <tqpainter.h>
17 
18 class Bar : public Meter
19 {
20 TQ_OBJECT
21 
22 public:
23  Bar(karamba* k,int ix,int iy,int iw,int ih );
24  ~Bar();
25 
26  void mUpdate( TQPainter * );
27 
28  virtual void setMax( long m );
29  virtual void setMin( long m );
30 
31 public slots:
32  bool setImage( TQString imagePath );
33  TQString getImage() { return imagePath; };
34 
35  void setValue( long );
36  long getValue() { return barValue; };
37  void setValue( TQString );
38  void recalculateValue() {setValue(barValue); };
39 
40  void setVertical( bool );
41  int getVertical() { return vertical; };
42 
43 private:
44  long barValue;
45  long value;
46 
47  int pixmapWidth;
48  int pixmapHeight;
49 
50  bool vertical; // vertical bar?
51 
52  TQString imagePath;
53  TQPixmap pixmap;
54 }
55 ;
56 #endif // BAR_H

superkaramba

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

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.8.13
This website is maintained by Timothy Pearson.