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

superkaramba

clickarea.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se>
00003  * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org>
00004  * Copyright (c) 2005 Ryan Nickell <p0z3r@earthlink.net>
00005  *
00006  * This file is part of SuperKaramba.
00007  *
00008  *  SuperKaramba is free software; you can redistribute it and/or modify
00009  *  it under the terms of the GNU General Public License as published by
00010  *  the Free Software Foundation; either version 2 of the License, or
00011  *  (at your option) any later version.
00012  *
00013  *  SuperKaramba is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  *  GNU General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU General Public License
00019  *  along with SuperKaramba; if not, write to the Free Software
00020  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00021  ****************************************************************************/
00022 #ifndef CLICKAREA_H
00023 #define CLICKAREA_H
00024 
00025 #include <QPainter>
00026 
00027 #include <K3Process>
00028 #include <KRun>
00029 
00030 #include "meter.h"
00031 
00036 class ClickArea : public Meter
00037 {
00038     Q_OBJECT
00039 public:
00040     ClickArea(Karamba* k, bool preview, int x, int y, int w, int h);
00041 
00042     ~ClickArea();
00043 
00044     void setOnClick(const QString&);
00045     void setServiceOnClick(const QString& , const QString&, const QString&);
00046     void setOnMiddleClick(const QString&);
00047 
00048     bool mouseEvent(QEvent *e);
00049 
00050     QRect getRectangle();
00051 
00052     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
00053                QWidget *widget = 0);
00054 
00055     void setValue(int);
00056     void setValue(const QString&);
00057 
00058     bool m_preview;
00059 
00060     QString onClick;
00061     QString svc_onClick;
00062     QString svc_name;
00063     QString svc_icon;
00064     QString onMiddleClick;
00065     QString value;
00066 };
00067 
00068 #endif

superkaramba

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils 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