This file is indexed.

/usr/include/KWWidgets/vtkKWEventMap.h is in libkwwidgets1-dev 1.0.0~cvs20100930-8.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
/*=========================================================================

  Module:    $RCSfile: vtkKWEventMap.h,v $

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
// .NAME vtkKWEventMap - map between mouse/keyboard event and actions
// .SECTION Description
// vtkKWEventMap maintains 3 lists of events -- for mouse, keyboard, and
// keysym events.  The mouse event list maps between mouse button + modifier
// keys and actions.  The keyboard event list maps between keys + modifier
// keys and actions.  The keysym event list maps between keysyms and actions.

#ifndef __vtkKWEventMap_h
#define __vtkKWEventMap_h

#include "vtkObject.h"
#include "vtkKWWidgets.h" // Needed for export symbols directives

class KWWidgets_EXPORT vtkKWEventMap : public vtkObject
{
public:
  static vtkKWEventMap *New();
  vtkTypeRevisionMacro(vtkKWEventMap, vtkObject);
  void PrintSelf(ostream& os, vtkIndent indent);

  // In the following code:
  // button:   0 = Left, 1 = Middle, 2 = Right
  // modifier: 0 = button only, 1 = button + shift, 2 = button + control

  //BTX
  enum 
  {
    LeftButton   = 0,
    MiddleButton = 1,
    RightButton  = 2
  };
  
  enum 
  {
    NoModifier      = 0,
    ShiftModifier   = 1,
    ControlModifier = 2,
    ControlShiftModifier = 3
  };
  //ETX


  //BTX
  // @cond nested_class
  class MouseEvent
  {
  public:
    int Button;
    int Modifier;
    char *Action;
    char *Context;
    char *Description;
  };
  // @endcond
  
  // @cond nested_class
  class KeyEvent
  {
  public:
    char Key;
    int Modifier;
    char *Action;
    char *Context;
    char *Description;
  };
  // @endcond
  
  // @cond nested_class
  class KeySymEvent
  {
  public:
    char *KeySym;
    int Modifier;
    char *Action;
    char *Context;
    char *Description;
  };
  // @endcond
  //ETX

  // ---------------------------------------------------------

  // Description:
  // Add a unique action with a specific mouse button and modifier key to
  // the list of mouse events.
  //BTX
  void AddMouseEvent(vtkKWEventMap::MouseEvent *me);
  //ETX
  void AddMouseEvent(int button, int modifier, const char *action); 
  void AddMouseEvent(int button, int modifier, const char *action, 
                     const char *context, const char *description);

  // Description:
  // Change the action to associate with a specific mouse button and modifier
  // key.  A mouse event with this button and modifier must have already have
  // been added.
  //BTX
  void SetMouseEvent(vtkKWEventMap::MouseEvent *me);
  //ETX
  void SetMouseEvent(int button, int modifier, const char *action);
  void SetMouseEvent(int button, int modifier, const char *action,
                     const char *context, const char *description);

  // Description:
  // Get the mouse event at the specified index.
  //BTX
  vtkKWEventMap::MouseEvent* GetMouseEvent(int index);
  //ETX
  
  // Description:
  // Remove the action associated with this mouse button and modifier key from
  // the list of mouse events (or all actions if action is NULL).
  //BTX
  void RemoveMouseEvent(vtkKWEventMap::MouseEvent *me);
  //ETX
  void RemoveMouseEvent(int button, int modifier, const char *action = NULL);
  void RemoveAllMouseEvents();

  // Description:
  // Return the string for the action of the mouse event indicated by this
  // button and modifier.
  const char* FindMouseAction(int button, int modifier);
  
  // Description:
  // Return the total number of mouse events.
  vtkGetMacro(NumberOfMouseEvents, int);
  
  // ---------------------------------------------------------

  // Description:
  // Add a unique action with a specific key and modifier key to
  // the list of key events.
  //BTX
  void AddKeyEvent(vtkKWEventMap::KeyEvent *me);
  //ETX
  void AddKeyEvent(char key, int modifier, const char *action);
  void AddKeyEvent(char key, int modifier, const char *action,
                   const char *context, const char *description);
  
  // Description:
  // Change the action to associate with a specific key and modifier key.
  // A key event with this key and modifier must have already been added.
  void SetKeyEvent(char key, int modifier, const char *action);
  void SetKeyEvent(char key, int modifier, const char *action,
                   const char *context, const char *description);
  
  // Description:
  // Get the key event at the specified index.
  //BTX
  vtkKWEventMap::KeyEvent* GetKeyEvent(int index);
  //ETX
  
  // Description:
  // Remove the action associated with this key and modifier key from the list
  // of key events (or all actions if action is NULL)..
  void RemoveKeyEvent(char key, int modifier, const char *action = NULL);
  void RemoveAllKeyEvents();
  
  // Description:
  // Return the string for the action of the key event indicated by this key
  // and modifier.
  const char* FindKeyAction(char key, int modifier);
  
  // Description:
  // Return the total number of key events.
  vtkGetMacro(NumberOfKeyEvents, int);
  
  // ---------------------------------------------------------

  // Description:
  // Add a unique action with a specific keysym to the list of keysym events.
  //BTX
  void AddKeySymEvent(vtkKWEventMap::KeySymEvent *me);
  //ETX
  void AddKeySymEvent(const char *keySym, int modifier, const char *action);
  void AddKeySymEvent(const char *keySym, int modifier, const char *action,
                      const char *context, const char *description);
  
  // Description:
  // Change the action to associate with a specific keysym.  A keysym event
  // with this keysym must have already been added.
  void SetKeySymEvent(const char *keySym, int modifier, const char *action);
  void SetKeySymEvent(const char *keySym, int modifier, const char *action,
                      const char *context, const char *description);
  
  // Description:
  // Get the keysym event at the specified index.
  //BTX
  vtkKWEventMap::KeySymEvent* GetKeySymEvent(int index);
  //ETX
  
  // Description:
  // Remove the action assiciated with this keysym from the list of keysym
  // events (or all actions if action is NULL)..
  void RemoveKeySymEvent(const char *keySym, int modifier, const char *action = NULL);
  void RemoveAllKeySymEvents();
  
  // Description:
  // Return the string for the action of the keysym event indicated by this
  // keysym.
  const char* FindKeySymAction(const char *keySym, int modifier);
  
  // Description:
  // Return the total number of keysym events.
  vtkGetMacro(NumberOfKeySymEvents, int);

  // Description:
  // Shallow copy.
  void ShallowCopy(vtkKWEventMap *tprop);
  
protected:
  vtkKWEventMap();
  ~vtkKWEventMap();
  
  MouseEvent *MouseEvents;
  KeyEvent *KeyEvents;
  KeySymEvent *KeySymEvents;

  int NumberOfMouseEvents;
  int NumberOfKeyEvents;
  int NumberOfKeySymEvents;
  
private:
  vtkKWEventMap(const vtkKWEventMap&);  // Not implemented
  void operator=(const vtkKWEventMap&);  // Not implemented
};

#endif