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

 

         

guiqtevents.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2006-2007 Alexei Makarenko
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 GUI_QT_DISPLAY_EVENTS_H
00012 #define GUI_QT_DISPLAY_EVENTS_H
00013 
00014 #include <QEvent>
00015 #include <orcacm/types.h>
00016 #include <orcaprobe/abstractdisplay.h> // for focus types
00017 
00018 namespace probe
00019 {
00020 
00021 enum EventType
00022 {
00023     NetworkActivityChanged=QEvent::User+1,
00024     FocusChanged,
00025     RegistryDataChanged,
00026     PlatformDataChanged,
00027     ComponentDataChanged,
00028     InterfaceDataChanged,
00029     OperationDataChanged
00030 };
00031 
00032 class QorcaNetworkActivityChangedEvent : public QEvent
00033 {
00034 public:
00035     QorcaNetworkActivityChangedEvent( bool isActive )
00036         : QEvent( QEvent::Type(NetworkActivityChanged) ),
00037           isActive_(isActive) {};
00038 
00039     bool isActive_;
00040 };
00041 
00042 class QorcaFocusChangedEvent : public QEvent
00043 {
00044 public:
00045     QorcaFocusChangedEvent( orcaprobe::AbstractDisplay::FocusType focus )
00046         : QEvent( QEvent::Type(FocusChanged) ),
00047           focus_(focus)  {};
00048 
00049     orcaprobe::AbstractDisplay::FocusType focus_;
00050 };
00051 
00052 class QorcaRegistryDataChangedEvent : public QEvent
00053 {
00054 public:
00055     QorcaRegistryDataChangedEvent( const orcacm::RegistryHierarchicalData1 & data )
00056         : QEvent( QEvent::Type(RegistryDataChanged) ),
00057           data_(data) {};
00058 
00059     orcacm::RegistryHierarchicalData1 data_;
00060 };
00061 
00062 class QorcaPlatformDataChangedEvent : public QEvent
00063 {
00064 public:
00065     QorcaPlatformDataChangedEvent( const orcacm::RegistryHierarchicalData2 & data )
00066         : QEvent( QEvent::Type(PlatformDataChanged) ),
00067           data_(data) {};
00068 
00069     orcacm::RegistryHierarchicalData2 data_;
00070 };
00071 
00072 class QorcaComponentDataChangedEvent : public QEvent
00073 {
00074 public:
00075     QorcaComponentDataChangedEvent( const orcacm::ComponentData & data )
00076         : QEvent( QEvent::Type(ComponentDataChanged) ),
00077           data_(data) {};
00078 
00079     orcacm::ComponentData data_;
00080 };
00081 
00082 class QorcaInterfaceDataChangedEvent : public QEvent
00083 {
00084 public:
00085     QorcaInterfaceDataChangedEvent( const orcacm::InterfaceData & data )
00086         : QEvent( QEvent::Type(InterfaceDataChanged) ),
00087           data_(data) {};
00088 
00089     orcacm::InterfaceData data_;
00090 };
00091 
00092 class QorcaOperationDataChangedEvent : public QEvent
00093 {
00094 public:
00095     QorcaOperationDataChangedEvent( const orcacm::OperationData & data )
00096         : QEvent( QEvent::Type(OperationDataChanged) ),
00097           data_(data) {};
00098 
00099     orcacm::OperationData data_;
00100 };
00101 
00102 } // namespace
00103 
00104 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5