kblackbox
kbbgraphicsitemlaser.h
Go to the documentation of this file.00001 // 00002 // KBlackBox 00003 // 00004 // A simple game inspired by an emacs module 00005 // 00006 /*************************************************************************** 00007 * Copyright (c) 1999-2000, Robert Cimrman * 00008 * cimrman3@students.zcu.cz * 00009 * * 00010 * Copyright (c) 2007, Nicolas Roffet * 00011 * nicolas-kde@roffet.com * 00012 * * 00013 * * 00014 * This program is free software; you can redistribute it and/or modify * 00015 * it under the terms of the GNU General Public License as published by * 00016 * the Free Software Foundation; either version 2 of the License, or * 00017 * (at your option) any later version. * 00018 * * 00019 * This program is distributed in the hope that it will be useful, * 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00022 * GNU General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU General Public License * 00025 * along with this program; if not, write to the * 00026 * Free Software Foundation, Inc., * 00027 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * 00028 ***************************************************************************/ 00029 00030 00031 00032 #ifndef KBBGRAPHICSITEMLASER_H 00033 #define KBBGRAPHICSITEMLASER_H 00034 00035 00036 #include "kbbgraphicsitem.h" 00037 #include "kbbgraphicsitemborder.h" 00038 #include "kbbitemwithposition.h" 00039 class KBBScalableGraphicWidget; 00040 class KBBThemeManager; 00041 00042 00043 00051 class KBBGraphicsItemLaser : public KBBGraphicsItemBorder, public KBBGraphicsItem, public KBBItemWithPosition 00052 { 00053 public: 00063 KBBGraphicsItemLaser(KBBScalableGraphicWidget* parent, KBBThemeManager* themeManager, const int borderPosition, const int columns, const int rows); 00064 00068 const int position(); 00069 00070 00071 private: 00072 void hoverEnterEvent (QGraphicsSceneHoverEvent*); 00073 void hoverLeaveEvent (QGraphicsSceneHoverEvent*); 00074 void mousePressEvent (QGraphicsSceneMouseEvent* event); 00075 00076 KBBScalableGraphicWidget* m_widget; 00077 }; 00078 00079 #endif // KBBGRAPHICSITEMLASER_H
KDE 4.0 API Reference