clickmap.h
00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Ralph M. Churchill * 00003 * mrchucho@yahoo.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 00011 #ifndef CLICKMAP_H 00012 #define CLICKMAP_H 00013 00014 #include <meter.h> 00015 #include "clickable.h" 00016 #include "textfield.h" 00017 00018 00023 class ClickMap : public Meter 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 ClickMap(karamba* k, int x, int y, int w, int h); 00029 ~ClickMap(); 00030 00031 virtual bool click( TQMouseEvent* ); 00032 void mUpdate( TQPainter* ); 00033 void setValue( TQString ); 00034 void setValue( long ); 00035 void setTextProps( TextField * ); 00036 00037 private: 00038 TextField text; 00039 00040 TQStringList links; 00041 TQStringList displays; 00042 }; 00043 00044 #endif