OpenWalnut  1.5.0dev
WEventTypes.h
1 //---------------------------------------------------------------------------
2 //
3 // Project: OpenWalnut ( http://www.openwalnut.org )
4 //
5 // Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
6 // For more information see http://www.openwalnut.org/copying
7 //
8 // This file is part of OpenWalnut.
9 //
10 // OpenWalnut is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // OpenWalnut is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
22 //
23 //---------------------------------------------------------------------------
24 
25 #ifndef WEVENTTYPES_H
26 #define WEVENTTYPES_H
27 
28 #include <QtCore/QEvent>
29 
30 /**
31  * This header contains every custom event ID used in QT's event mechanism. Please note, that since Qt4.4 there is
32  * QEvent::registerEventType which can handle this job better than this header. But as we use an older Qt Version we need to do it
33  * this way.
34  */
35 
36 // when a module got associated
37 #define WQT_ASSOC_EVENT QEvent::User + 1
38 
39 // when a module signals its ready state
40 #define WQT_READY_EVENT QEvent::User + 2
41 
42 // when a ROI got associated
43 #define WQT_ROI_ASSOC_EVENT QEvent::User + 3
44 
45 // when a module crashes
46 #define WQT_CRASH_EVENT QEvent::User + 4
47 
48 // when a subject signals a newly registered data set
49 #define WQT_UPDATE_TEXTURE_SORTER_EVENT QEvent::User + 5
50 
51 // when a property changes
52 #define WQT_PROPERTY_CHANGED_EVENT QEvent::User + 6
53 
54 // when a ROI got removed
55 #define WQT_ROI_REMOVE_EVENT QEvent::User + 7
56 
57 // when a module got removed from the root container
58 #define WQT_MODULE_REMOVE_EVENT QEvent::User + 8
59 
60 // when a module should be deleted finally.
61 #define WQT_MODULE_DELETE_EVENT QEvent::User + 9
62 
63 // when a module connection got established.
64 #define WQT_MODULE_CONNECT_EVENT QEvent::User + 10
65 
66 // when a module connection got closed.
67 #define WQT_MODULE_DISCONNECT_EVENT QEvent::User + 11
68 
69 // a frame got rendered
70 #define WQT_RENDERED_FRAME_EVENT QEvent::User + 12
71 
72 // a connector of a module changed state or value
73 #define WQT_MODULE_CONNECTOR_EVENT QEvent::User + 13
74 
75 // when the screencapture update.
76 #define WQT_SCREENCAPTURE_EVENT QEvent::User + 14
77 
78 // open a new custom dock widget
79 #define WQT_OPENCUSTOMDOCKWIDGET QEvent::User + 15
80 
81 // close an existing custom dock widget
82 #define WQT_CLOSECUSTOMDOCKWIDGET QEvent::User + 16
83 
84 // A async load operation has finished
85 #define WQT_LOADFINISHED QEvent::User + 17
86 
87 // Log entry added
88 #define WQT_LOG_EVENT QEvent::User + 18
89 
90 // re-sort a branch
91 #define WQT_ROI_SORT_EVENT QEvent::User + 19
92 
93 // call a function from within the GUI thread
94 #define WQT_DEFERREDCALL QEvent::User + 20
95 
96 #endif // WEVENTTYPES_H