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

kblackbox

kbbgraphicsitemrayresult.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 #ifndef KBBGRAPHICSITEMRAYRESULT_H
00031 #define KBBGRAPHICSITEMRAYRESULT_H
00032 
00033 
00034 
00035 class QGraphicsScene;
00036 class QGraphicsSvgItem;
00037 
00038 
00039 #include "kbbgraphicsitem.h"
00040 #include "kbbgraphicsitemborder.h"
00041 #include "kbbitemwithposition.h"
00042 class KBBScalableGraphicWidget;
00043 class KBBThemeManager;
00044 
00045 
00046 
00055 class KBBGraphicsItemRayResult : public KBBGraphicsItemBorder, public KBBGraphicsItem, public KBBItemWithPosition
00056 {
00057     public:
00058         KBBGraphicsItemRayResult(KBBScalableGraphicWidget* parent, KBBThemeManager* themeManager, QGraphicsScene* scene, const int borderPosition, const int columns, const int rows, const int rayNumber);
00059 
00060 
00065         void cleanDelete();
00066 
00072         void highlight(bool state);
00073 
00077         void highlightBoth(bool state);
00078 
00082         const int position();
00083 
00090         void setOpposite(KBBGraphicsItemRayResult* opposite);
00091 
00095         void setPause(bool state);
00096 
00097 
00098     private:
00099         void hoverEnterEvent (QGraphicsSceneHoverEvent*);
00100         void hoverLeaveEvent (QGraphicsSceneHoverEvent*);
00101         
00102         QString m_elementIdResultBackground;
00103         QString m_elementIdResultBackgroundHighlight;
00104         QGraphicsSvgItem* m_notNumber;
00105         QGraphicsSimpleTextItem* m_number;
00106         KBBGraphicsItemRayResult* m_opposite;
00107         bool m_pause;
00108         QGraphicsScene* m_scene;
00109         KBBScalableGraphicWidget* m_widget;
00110 };
00111 
00112 #endif // KBBGRAPHICSITEMRAYRESULT_H

kblackbox

Skip menu "kblackbox"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference 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