ROOT
master
Reference Guide
Loading...
Searching...
No Matches
WidgetMessageTypes.h
Go to the documentation of this file.
1
/* @(#)root/gui:$Id$ */
2
3
/*************************************************************************
4
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#ifndef ROOT_WidgetMessageTypes
12
#define ROOT_WidgetMessageTypes
13
14
15
//////////////////////////////////////////////////////////////////////////
16
///
17
/// WidgetMessageTypes
18
///
19
/// System predefined widget message types. Message types are constants
20
/// that indicate which widget sent the message and by which widget
21
/// function (sub-message). Make sure your own message types don't clash
22
/// with the ones defined in this file. ROOT reserves all message ids
23
/// between 0 - 1000. User defined messages should be in the range
24
/// 1001 - 10000. Sub-messages must always be in the range 1-255.
25
/// To use MK_MSG() just cast your message id's to an EWidgetMessageType.
26
27
#include "
RtypesCore.h
"
28
29
30
enum
EWidgetMessageTypes
{
31
kC_COMMAND
= 1,
32
kCM_MENU
= 1,
33
kCM_MENUSELECT
= 2,
34
kCM_BUTTON
= 3,
35
kCM_CHECKBUTTON
= 4,
36
kCM_RADIOBUTTON
= 5,
37
kCM_LISTBOX
= 6,
38
kCM_COMBOBOX
= 7,
39
kCM_TAB
= 8,
40
kC_HSCROLL
= 2,
41
kC_VSCROLL
= 3,
42
kSB_LINEUP
= 1,
43
kSB_LINEDOWN
= 2,
44
kSB_PAGEUP
= 3,
45
kSB_PAGEDOWN
= 4,
46
kSB_SLIDERTRACK
= 5,
47
kSB_SLIDERPOS
= 6,
48
kC_TEXTENTRY
= 4,
49
kTE_TEXTCHANGED
= 1,
50
kTE_ENTER
= 2,
51
kTE_TAB
= 3,
52
kTE_KEY
= 4,
53
kC_CONTAINER
= 5,
54
kCT_ITEMCLICK
= 1,
55
kCT_ITEMDBLCLICK
= 2,
56
kCT_SELCHANGED
= 3,
57
kCT_KEY
= 4,
58
kC_HSLIDER
= 6,
59
kC_VSLIDER
= 7,
60
kSL_POS
= 1,
61
kSL_TRACK
= 2,
62
kSL_PRESS
= 3,
63
kSL_RELEASE
= 4,
64
kSL_POINTER
= 5,
65
kC_LISTTREE
= 8,
66
kC_TEXTVIEW
= 9,
67
kTXT_ISMARKED
= 1,
68
kTXT_DATACHANGE
= 2,
69
kTXT_CLICK2
= 3,
70
kTXT_CLICK3
= 4,
71
kTXT_F3
= 5,
72
kTXT_OPEN
= 6,
73
kTXT_CLOSE
= 7,
74
kTXT_SAVE
= 8,
75
kC_COLORSEL
= 10,
76
kCOL_CLICK
= 1,
77
kCOL_SELCHANGED
= 2,
78
kC_PATTERNSEL
= 11,
79
kPAT_CLICK
= 1,
80
kPAT_SELCHANGED
= 2,
81
kC_MARKERSEL
= 12,
82
kMAR_CLICK
= 1,
83
kMAR_SELCHANGED
= 2,
84
kC_POPUP
= 13,
85
kPOP_HIDE
= 1,
86
kC_DOCK
= 14,
87
kDOCK_DOCK
= 1,
88
kDOCK_UNDOCK
= 2,
89
kDOCK_SHOW
= 3,
90
kDOCK_HIDE
= 4,
91
kC_MDI
= 15,
92
kMDI_CURRENT
= 1,
93
kMDI_CREATE
= 2,
94
kMDI_CLOSE
= 4,
95
kMDI_RESTORE
= 8,
96
kMDI_MOVE
= 16,
97
kMDI_SIZE
= 32,
98
kMDI_MINIMIZE
= 64,
99
kMDI_MAXIMIZE
= 128,
100
kMDI_HELP
= 256,
101
kMDI_MENU
= 512,
102
kC_USER
= 1001,
103
kC_MSGMAX
= 10000
104
};
105
106
107
// Message cracking routines
108
inline
Int_t
MK_MSG
(
EWidgetMessageTypes
msg,
EWidgetMessageTypes
submsg)
109
{
return
(msg << 8) + submsg; }
110
inline
Int_t
GET_MSG
(
Long_t
val) {
return
Int_t
(val >> 8); }
111
inline
Int_t
GET_SUBMSG
(
Long_t
val) {
return
Int_t
(val & 255); }
112
113
#endif
RtypesCore.h
Int_t
int Int_t
Definition
RtypesCore.h:45
Long_t
long Long_t
Definition
RtypesCore.h:54
MK_MSG
Int_t MK_MSG(EWidgetMessageTypes msg, EWidgetMessageTypes submsg)
Definition
WidgetMessageTypes.h:108
GET_MSG
Int_t GET_MSG(Long_t val)
Definition
WidgetMessageTypes.h:110
EWidgetMessageTypes
EWidgetMessageTypes
WidgetMessageTypes.
Definition
WidgetMessageTypes.h:30
kCT_SELCHANGED
@ kCT_SELCHANGED
Definition
WidgetMessageTypes.h:56
kSL_RELEASE
@ kSL_RELEASE
Definition
WidgetMessageTypes.h:63
kSL_POS
@ kSL_POS
Definition
WidgetMessageTypes.h:60
kSB_SLIDERTRACK
@ kSB_SLIDERTRACK
Definition
WidgetMessageTypes.h:46
kMDI_CLOSE
@ kMDI_CLOSE
Definition
WidgetMessageTypes.h:94
kPAT_SELCHANGED
@ kPAT_SELCHANGED
Definition
WidgetMessageTypes.h:80
kDOCK_UNDOCK
@ kDOCK_UNDOCK
Definition
WidgetMessageTypes.h:88
kC_TEXTVIEW
@ kC_TEXTVIEW
Definition
WidgetMessageTypes.h:66
kC_MARKERSEL
@ kC_MARKERSEL
Definition
WidgetMessageTypes.h:81
kC_MSGMAX
@ kC_MSGMAX
Definition
WidgetMessageTypes.h:103
kC_USER
@ kC_USER
Definition
WidgetMessageTypes.h:102
kC_PATTERNSEL
@ kC_PATTERNSEL
Definition
WidgetMessageTypes.h:78
kCM_TAB
@ kCM_TAB
Definition
WidgetMessageTypes.h:39
kPAT_CLICK
@ kPAT_CLICK
Definition
WidgetMessageTypes.h:79
kSB_SLIDERPOS
@ kSB_SLIDERPOS
Definition
WidgetMessageTypes.h:47
kTXT_OPEN
@ kTXT_OPEN
Definition
WidgetMessageTypes.h:72
kMDI_MENU
@ kMDI_MENU
Definition
WidgetMessageTypes.h:101
kTXT_CLICK3
@ kTXT_CLICK3
Definition
WidgetMessageTypes.h:70
kCM_COMBOBOX
@ kCM_COMBOBOX
Definition
WidgetMessageTypes.h:38
kC_VSCROLL
@ kC_VSCROLL
Definition
WidgetMessageTypes.h:41
kMDI_HELP
@ kMDI_HELP
Definition
WidgetMessageTypes.h:100
kCM_MENU
@ kCM_MENU
Definition
WidgetMessageTypes.h:32
kTXT_CLICK2
@ kTXT_CLICK2
Definition
WidgetMessageTypes.h:69
kTE_TEXTCHANGED
@ kTE_TEXTCHANGED
Definition
WidgetMessageTypes.h:49
kTE_ENTER
@ kTE_ENTER
Definition
WidgetMessageTypes.h:50
kMAR_CLICK
@ kMAR_CLICK
Definition
WidgetMessageTypes.h:82
kTXT_SAVE
@ kTXT_SAVE
Definition
WidgetMessageTypes.h:74
kMDI_RESTORE
@ kMDI_RESTORE
Definition
WidgetMessageTypes.h:95
kCT_ITEMCLICK
@ kCT_ITEMCLICK
Definition
WidgetMessageTypes.h:54
kDOCK_DOCK
@ kDOCK_DOCK
Definition
WidgetMessageTypes.h:87
kTXT_CLOSE
@ kTXT_CLOSE
Definition
WidgetMessageTypes.h:73
kC_HSLIDER
@ kC_HSLIDER
Definition
WidgetMessageTypes.h:58
kMDI_CREATE
@ kMDI_CREATE
Definition
WidgetMessageTypes.h:93
kCOL_CLICK
@ kCOL_CLICK
Definition
WidgetMessageTypes.h:76
kSL_TRACK
@ kSL_TRACK
Definition
WidgetMessageTypes.h:61
kTXT_ISMARKED
@ kTXT_ISMARKED
Definition
WidgetMessageTypes.h:67
kC_MDI
@ kC_MDI
Definition
WidgetMessageTypes.h:91
kTXT_DATACHANGE
@ kTXT_DATACHANGE
Definition
WidgetMessageTypes.h:68
kSL_PRESS
@ kSL_PRESS
Definition
WidgetMessageTypes.h:62
kCOL_SELCHANGED
@ kCOL_SELCHANGED
Definition
WidgetMessageTypes.h:77
kCM_MENUSELECT
@ kCM_MENUSELECT
Definition
WidgetMessageTypes.h:33
kC_COLORSEL
@ kC_COLORSEL
Definition
WidgetMessageTypes.h:75
kCT_KEY
@ kCT_KEY
Definition
WidgetMessageTypes.h:57
kC_COMMAND
@ kC_COMMAND
Definition
WidgetMessageTypes.h:31
kSB_PAGEUP
@ kSB_PAGEUP
Definition
WidgetMessageTypes.h:44
kPOP_HIDE
@ kPOP_HIDE
Definition
WidgetMessageTypes.h:85
kMDI_MINIMIZE
@ kMDI_MINIMIZE
Definition
WidgetMessageTypes.h:98
kDOCK_SHOW
@ kDOCK_SHOW
Definition
WidgetMessageTypes.h:89
kTXT_F3
@ kTXT_F3
Definition
WidgetMessageTypes.h:71
kCM_BUTTON
@ kCM_BUTTON
Definition
WidgetMessageTypes.h:34
kTE_TAB
@ kTE_TAB
Definition
WidgetMessageTypes.h:51
kC_TEXTENTRY
@ kC_TEXTENTRY
Definition
WidgetMessageTypes.h:48
kC_LISTTREE
@ kC_LISTTREE
Definition
WidgetMessageTypes.h:65
kCM_RADIOBUTTON
@ kCM_RADIOBUTTON
Definition
WidgetMessageTypes.h:36
kSB_LINEUP
@ kSB_LINEUP
Definition
WidgetMessageTypes.h:42
kSL_POINTER
@ kSL_POINTER
Definition
WidgetMessageTypes.h:64
kCM_CHECKBUTTON
@ kCM_CHECKBUTTON
Definition
WidgetMessageTypes.h:35
kMDI_CURRENT
@ kMDI_CURRENT
Definition
WidgetMessageTypes.h:92
kDOCK_HIDE
@ kDOCK_HIDE
Definition
WidgetMessageTypes.h:90
kMDI_MAXIMIZE
@ kMDI_MAXIMIZE
Definition
WidgetMessageTypes.h:99
kMDI_SIZE
@ kMDI_SIZE
Definition
WidgetMessageTypes.h:97
kC_HSCROLL
@ kC_HSCROLL
Definition
WidgetMessageTypes.h:40
kC_VSLIDER
@ kC_VSLIDER
Definition
WidgetMessageTypes.h:59
kCM_LISTBOX
@ kCM_LISTBOX
Definition
WidgetMessageTypes.h:37
kCT_ITEMDBLCLICK
@ kCT_ITEMDBLCLICK
Definition
WidgetMessageTypes.h:55
kSB_PAGEDOWN
@ kSB_PAGEDOWN
Definition
WidgetMessageTypes.h:45
kC_DOCK
@ kC_DOCK
Definition
WidgetMessageTypes.h:86
kTE_KEY
@ kTE_KEY
Definition
WidgetMessageTypes.h:52
kMAR_SELCHANGED
@ kMAR_SELCHANGED
Definition
WidgetMessageTypes.h:83
kC_POPUP
@ kC_POPUP
Definition
WidgetMessageTypes.h:84
kMDI_MOVE
@ kMDI_MOVE
Definition
WidgetMessageTypes.h:96
kSB_LINEDOWN
@ kSB_LINEDOWN
Definition
WidgetMessageTypes.h:43
kC_CONTAINER
@ kC_CONTAINER
Definition
WidgetMessageTypes.h:53
GET_SUBMSG
Int_t GET_SUBMSG(Long_t val)
Definition
WidgetMessageTypes.h:111
gui
gui
inc
WidgetMessageTypes.h
ROOT master - Reference Guide Generated on Mon Sep 2 2024 13:19:11 (GVA Time) using Doxygen 1.9.8