superkaramba
clickmap.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Ralph M. Churchill <mrchucho@yahoo.com> * 00003 * Copyright (C) 2007 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 00011 #ifndef CLICKMAP_H 00012 #define CLICKMAP_H 00013 00014 #include "textfield.h" 00015 #include "meter.h" 00016 00017 class ClickMap : public Meter 00018 { 00019 Q_OBJECT 00020 public: 00021 ClickMap(Karamba* k, int x, int y, int w, int h); 00022 ~ClickMap(); 00023 00024 void mousePressEvent(QGraphicsSceneMouseEvent *event); 00025 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, 00026 QWidget *widget = 0); 00027 00028 void setValue(const QString&); 00029 void setValue(int); 00030 void setTextProps(TextField *); 00031 00032 private: 00033 TextField text; 00034 00035 QStringList links; 00036 QStringList displays; 00037 00038 }; 00039 00040 #endif
KDE 4.0 API Reference