INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

mouseeventmanager.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This copy of Orca is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef HYDROQGUI_MOUSEEVENTMANAGER_H
00012 #define HYDROQGUI_MOUSEEVENTMANAGER_H
00013 
00014 #include <hydroutil/uncopyable.h>
00015 
00016 namespace hydroqguielementutil {
00017 
00018 class GuiElement;
00019 
00027 class MouseEventManager : public hydroutil::Uncopyable
00028 {
00029 
00030 public: 
00031 
00032     MouseEventManager()
00033         : mouseEventReceiver_(NULL)
00034         {}
00035 
00036     bool mouseEventReceiverIsSet() const { return mouseEventReceiver_!=NULL; }
00037 
00038     GuiElement *mouseEventReceiver() const { return mouseEventReceiver_; }
00039 
00040     bool requestBecomeMouseEventReceiver( GuiElement *requester );
00041 
00042     void relinquishMouseEventReceiver( GuiElement *relinquisher );
00043 
00044 private: 
00045 
00046     // NULL means no-one is receiving mouse events
00047     GuiElement *mouseEventReceiver_;
00048 
00049 };
00050 
00051 }
00052 
00053 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5