ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
gui
gui
inc
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
// whith 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
//////////////////////////////////////////////////////////////////////////
28
29
#ifndef ROOT_Rtypes
30
#include "
Rtypes.h
"
31
#endif
32
33
34
enum
EWidgetMessageTypes
{
35
kC_COMMAND
= 1,
36
kCM_MENU
= 1,
37
kCM_MENUSELECT
= 2,
38
kCM_BUTTON
= 3,
39
kCM_CHECKBUTTON
= 4,
40
kCM_RADIOBUTTON
= 5,
41
kCM_LISTBOX
= 6,
42
kCM_COMBOBOX
= 7,
43
kCM_TAB
= 8,
44
kC_HSCROLL
= 2,
45
kC_VSCROLL
= 3,
46
kSB_LINEUP
= 1,
47
kSB_LINEDOWN
= 2,
48
kSB_PAGEUP
= 3,
49
kSB_PAGEDOWN
= 4,
50
kSB_SLIDERTRACK
= 5,
51
kSB_SLIDERPOS
= 6,
52
kC_TEXTENTRY
= 4,
53
kTE_TEXTCHANGED
= 1,
54
kTE_ENTER
= 2,
55
kTE_TAB
= 3,
56
kTE_KEY
= 4,
57
kC_CONTAINER
= 5,
58
kCT_ITEMCLICK
= 1,
59
kCT_ITEMDBLCLICK
= 2,
60
kCT_SELCHANGED
= 3,
61
kCT_KEY
= 4,
62
kC_HSLIDER
= 6,
63
kC_VSLIDER
= 7,
64
kSL_POS
= 1,
65
kSL_TRACK
= 2,
66
kSL_PRESS
= 3,
67
kSL_RELEASE
= 4,
68
kSL_POINTER
= 5,
69
kC_LISTTREE
= 8,
70
kC_TEXTVIEW
= 9,
71
kTXT_ISMARKED
= 1,
72
kTXT_DATACHANGE
= 2,
73
kTXT_CLICK2
= 3,
74
kTXT_CLICK3
= 4,
75
kTXT_F3
= 5,
76
kTXT_OPEN
= 6,
77
kTXT_CLOSE
= 7,
78
kTXT_SAVE
= 8,
79
kC_COLORSEL
= 10,
80
kCOL_CLICK
= 1,
81
kCOL_SELCHANGED
= 2,
82
kC_PATTERNSEL
= 11,
83
kPAT_CLICK
= 1,
84
kPAT_SELCHANGED
= 2,
85
kC_MARKERSEL
= 12,
86
kMAR_CLICK
= 1,
87
kMAR_SELCHANGED
= 2,
88
kC_POPUP
= 13,
89
kPOP_HIDE
= 1,
90
kC_DOCK
= 14,
91
kDOCK_DOCK
= 1,
92
kDOCK_UNDOCK
= 2,
93
kDOCK_SHOW
= 3,
94
kDOCK_HIDE
= 4,
95
kC_MDI
= 15,
96
kMDI_CURRENT
= 1,
97
kMDI_CREATE
= 2,
98
kMDI_CLOSE
= 4,
99
kMDI_RESTORE
= 8,
100
kMDI_MOVE
= 16,
101
kMDI_SIZE
= 32,
102
kMDI_MINIMIZE
= 64,
103
kMDI_MAXIMIZE
= 128,
104
kMDI_HELP
= 256,
105
kMDI_MENU
= 512,
106
kC_USER
= 1001,
107
kC_MSGMAX
= 10000
108
};
109
110
111
// Message cracking routines
112
inline
Int_t
MK_MSG
(
EWidgetMessageTypes
msg,
EWidgetMessageTypes
submsg)
113
{
return
(msg << 8) + submsg; }
114
inline
Int_t
GET_MSG
(
Long_t
val) {
return
Int_t
(val >> 8); }
115
inline
Int_t
GET_SUBMSG
(
Long_t
val) {
return
Int_t
(val & 255); }
116
117
#endif
kSB_PAGEDOWN
Definition:
WidgetMessageTypes.h:49
kTE_KEY
Definition:
WidgetMessageTypes.h:56
kCM_MENU
Definition:
WidgetMessageTypes.h:36
kCM_BUTTON
Definition:
WidgetMessageTypes.h:38
Rtypes.h
kCT_ITEMCLICK
Definition:
WidgetMessageTypes.h:58
kCM_RADIOBUTTON
Definition:
WidgetMessageTypes.h:40
kMAR_CLICK
Definition:
WidgetMessageTypes.h:86
kSB_SLIDERPOS
Definition:
WidgetMessageTypes.h:51
kC_LISTTREE
Definition:
WidgetMessageTypes.h:69
kTXT_CLICK2
Definition:
WidgetMessageTypes.h:73
kSB_LINEDOWN
Definition:
WidgetMessageTypes.h:47
kC_VSCROLL
Definition:
WidgetMessageTypes.h:45
kMDI_MENU
Definition:
WidgetMessageTypes.h:105
kDOCK_SHOW
Definition:
WidgetMessageTypes.h:93
Int_t
int Int_t
Definition:
RtypesCore.h:41
kTXT_DATACHANGE
Definition:
WidgetMessageTypes.h:72
kC_PATTERNSEL
Definition:
WidgetMessageTypes.h:82
MK_MSG
Int_t MK_MSG(EWidgetMessageTypes msg, EWidgetMessageTypes submsg)
Definition:
WidgetMessageTypes.h:112
kTXT_ISMARKED
Definition:
WidgetMessageTypes.h:71
kCOL_CLICK
Definition:
WidgetMessageTypes.h:80
kC_HSCROLL
Definition:
WidgetMessageTypes.h:44
kCM_COMBOBOX
Definition:
WidgetMessageTypes.h:42
kMDI_RESTORE
Definition:
WidgetMessageTypes.h:99
kC_TEXTVIEW
Definition:
WidgetMessageTypes.h:70
kMDI_CREATE
Definition:
WidgetMessageTypes.h:97
kTXT_CLOSE
Definition:
WidgetMessageTypes.h:77
kCM_CHECKBUTTON
Definition:
WidgetMessageTypes.h:39
kPAT_SELCHANGED
Definition:
WidgetMessageTypes.h:84
kCM_MENUSELECT
Definition:
WidgetMessageTypes.h:37
kSB_LINEUP
Definition:
WidgetMessageTypes.h:46
kDOCK_HIDE
Definition:
WidgetMessageTypes.h:94
kDOCK_DOCK
Definition:
WidgetMessageTypes.h:91
kTE_TAB
Definition:
WidgetMessageTypes.h:55
kCT_KEY
Definition:
WidgetMessageTypes.h:61
GET_SUBMSG
Int_t GET_SUBMSG(Long_t val)
Definition:
WidgetMessageTypes.h:115
kTXT_OPEN
Definition:
WidgetMessageTypes.h:76
kMAR_SELCHANGED
Definition:
WidgetMessageTypes.h:87
kSB_SLIDERTRACK
Definition:
WidgetMessageTypes.h:50
kSL_POS
Definition:
WidgetMessageTypes.h:64
kTXT_SAVE
Definition:
WidgetMessageTypes.h:78
kC_POPUP
Definition:
WidgetMessageTypes.h:88
GET_MSG
Int_t GET_MSG(Long_t val)
Definition:
WidgetMessageTypes.h:114
EWidgetMessageTypes
EWidgetMessageTypes
Definition:
WidgetMessageTypes.h:34
Long_t
long Long_t
Definition:
RtypesCore.h:50
kCM_LISTBOX
Definition:
WidgetMessageTypes.h:41
kC_MDI
Definition:
WidgetMessageTypes.h:95
kSL_TRACK
Definition:
WidgetMessageTypes.h:65
kCOL_SELCHANGED
Definition:
WidgetMessageTypes.h:81
kCT_SELCHANGED
Definition:
WidgetMessageTypes.h:60
kSB_PAGEUP
Definition:
WidgetMessageTypes.h:48
kPAT_CLICK
Definition:
WidgetMessageTypes.h:83
kTXT_F3
Definition:
WidgetMessageTypes.h:75
kDOCK_UNDOCK
Definition:
WidgetMessageTypes.h:92
kMDI_CURRENT
Definition:
WidgetMessageTypes.h:96
kC_USER
Definition:
WidgetMessageTypes.h:106
kSL_RELEASE
Definition:
WidgetMessageTypes.h:67
kMDI_MINIMIZE
Definition:
WidgetMessageTypes.h:102
kMDI_MAXIMIZE
Definition:
WidgetMessageTypes.h:103
kC_CONTAINER
Definition:
WidgetMessageTypes.h:57
kC_COMMAND
Definition:
WidgetMessageTypes.h:35
kMDI_MOVE
Definition:
WidgetMessageTypes.h:100
kCT_ITEMDBLCLICK
Definition:
WidgetMessageTypes.h:59
kC_TEXTENTRY
Definition:
WidgetMessageTypes.h:52
kMDI_HELP
Definition:
WidgetMessageTypes.h:104
kC_MARKERSEL
Definition:
WidgetMessageTypes.h:85
kC_VSLIDER
Definition:
WidgetMessageTypes.h:63
kSL_POINTER
Definition:
WidgetMessageTypes.h:68
kMDI_SIZE
Definition:
WidgetMessageTypes.h:101
kC_MSGMAX
Definition:
WidgetMessageTypes.h:107
kSL_PRESS
Definition:
WidgetMessageTypes.h:66
kC_DOCK
Definition:
WidgetMessageTypes.h:90
kTXT_CLICK3
Definition:
WidgetMessageTypes.h:74
kTE_ENTER
Definition:
WidgetMessageTypes.h:54
kCM_TAB
Definition:
WidgetMessageTypes.h:43
kC_COLORSEL
Definition:
WidgetMessageTypes.h:79
kC_HSLIDER
Definition:
WidgetMessageTypes.h:62
kPOP_HIDE
Definition:
WidgetMessageTypes.h:89
kMDI_CLOSE
Definition:
WidgetMessageTypes.h:98
kTE_TEXTCHANGED
Definition:
WidgetMessageTypes.h:53