This file is indexed.

/usr/include/KWWidgets/vtkKWStartupPageWidget.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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
/*=========================================================================

  Module:    vtkKWStartupPageWidget.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 vtkKWStartupPageWidget - an HSV color selector
// Open file
// Double click
// Drag and drop
// Recent files
// .SECTION Description
// A widget that allows the user choose a HSV color interactively

#ifndef __vtkKWStartupPageWidget_h
#define __vtkKWStartupPageWidget_h

#include "vtkKWCompositeWidget.h"

class vtkKWCanvas;
class vtkKWLabel;
class vtkKWIcon;
class vtkKWStartupPageWidgetInternals;
class vtkKWMostRecentFilesManager;

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

  // Description:
  // Set/Get the gradient colors (in RGB space)
  vtkGetVector3Macro(GradientColor1, double);
  virtual void SetGradientColor1(double r, double g, double b);
  virtual void SetGradientColor1(double rgb[3])
    { this->SetGradientColor1(rgb[0], rgb[1], rgb[2]); };
  vtkGetVector3Macro(GradientColor2, double);
  virtual void SetGradientColor2(double r, double g, double b);
  virtual void SetGradientColor2(double rgb[3])
    { this->SetGradientColor2(rgb[0], rgb[1], rgb[2]); };

  // Description:
  // Set/Get the text color (in RGB space)
  vtkGetVector3Macro(TextColor, double);
  virtual void SetTextColor(double r, double g, double b);
  virtual void SetTextColor(double rgb[3])
    { this->SetTextColor(rgb[0], rgb[1], rgb[2]); };

  // Description:
  // Set/Get the text size
  vtkGetMacro(TextSize, int);
  virtual void SetTextSize(int);

  // Description:
  // Set/Get the text color (in RGB space) when it is selected (hovered on)
  vtkGetVector3Macro(SelectedTextColor, double);
  virtual void SetSelectedTextColor(double r, double g, double b);
  virtual void SetSelectedTextColor(double rgb[3])
    { this->SetSelectedTextColor(rgb[0], rgb[1], rgb[2]); };

  // Description:
  // Set/Get the hint color (in RGB space)
  vtkGetVector3Macro(HintColor, double);
  virtual void SetHintColor(double r, double g, double b);
  virtual void SetHintColor(double rgb[3])
    { this->SetHintColor(rgb[0], rgb[1], rgb[2]); };

  // Description:
  // Set/Get the hint size
  vtkGetMacro(HintSize, int);
  virtual void SetHintSize(int);

  // Description:
  // Set/Get if the hints should have a shadow.
  virtual void SetAddShadowToHint(int);
  vtkGetMacro(AddShadowToHint, int);
  vtkBooleanMacro(AddShadowToHint, int);
  
  // Description:
  // Set/Get if the Open section is supported/shown.
  virtual void SetSupportOpen(int);
  vtkGetMacro(SupportOpen, int);
  vtkBooleanMacro(SupportOpen, int);

  // Description:
  // Set/Get the Open section icon using an icon, or the index to a 
  // predefined icon found in vtkKWIcon.
  // Note that the Set method does *not* keep a reference to the icon
  // passed as parameter: it copies the whole icon contents internally.
  vtkGetObjectMacro(OpenIcon, vtkKWIcon);
  virtual void SetOpenIcon(vtkKWIcon*);
  virtual void SetOpenIconToPredefinedIcon(int icon_index);

  // Description:
  // Set/Get if the Double Click section is supported/shown.
  virtual void SetSupportDoubleClick(int);
  vtkGetMacro(SupportDoubleClick, int);
  vtkBooleanMacro(SupportDoubleClick, int);
  
  // Description:
  // Set/Get the Double Click section icon using an icon, or the index to a 
  // predefined icon found in vtkKWIcon.
  // Note that the Set method does *not* keep a reference to the icon
  // passed as parameter: it copies the whole icon contents internally.
  vtkGetObjectMacro(DoubleClickIcon, vtkKWIcon);
  virtual void SetDoubleClickIcon(vtkKWIcon*);
  virtual void SetDoubleClickIconToPredefinedIcon(int icon_index);

  // Description:
  // Set/Get if the Drag & Drop section is supported/shown.
  virtual void SetSupportDrop(int);
  vtkGetMacro(SupportDrop, int);
  vtkBooleanMacro(SupportDrop, int);
  
  // Description:
  // Set/Get the Drag & Drop section icon using an icon, or the index to a 
  // predefined icon found in vtkKWIcon.
  // Note that the Set method does *not* keep a reference to the icon
  // passed as parameter: it copies the whole icon contents internally.
  vtkGetObjectMacro(DropIcon, vtkKWIcon);
  virtual void SetDropIcon(vtkKWIcon*);
  virtual void SetDropIconToPredefinedIcon(int icon_index);

  // Description:
  // Set/Get if the Most Recent Files section is supported/shown.
  virtual void SetSupportMostRecentFiles(int);
  vtkGetMacro(SupportMostRecentFiles, int);
  vtkBooleanMacro(SupportMostRecentFiles, int);
  
  // Description:
  // Set/Get the Most Recent Files section icon using an icon, or the index to 
  // a predefined icon found in vtkKWIcon.
  // Note that the Set method does *not* keep a reference to the icon
  // passed as parameter: it copies the whole icon contents internally.
  vtkGetObjectMacro(MostRecentFilesIcon, vtkKWIcon);
  virtual void SetMostRecentFilesIcon(vtkKWIcon*);
  virtual void SetMostRecentFilesIconToPredefinedIcon(int icon_index);

  // Description:
  // Set/Get the Most Recent File icon (i.e. the icon used for a single
  // most recent file, not the section itself) using an icon, or the index to 
  // a predefined icon found in vtkKWIcon.
  // Note that the Set method does *not* keep a reference to the icon
  // passed as parameter: it copies the whole icon contents internally.
  vtkGetObjectMacro(MostRecentFileIcon, vtkKWIcon);
  virtual void SetMostRecentFileIcon(vtkKWIcon*);
  virtual void SetMostRecentFileIconToPredefinedIcon(int icon_index);

  // Description:
  // Set/Get the text size of recent file items
  vtkGetMacro(MostRecentFileSize, int);
  virtual void SetMostRecentFileSize(int);

  // Description:
  // Set/Get the most recent files manager this page should listen to.
  vtkGetObjectMacro(MostRecentFilesManager, vtkKWMostRecentFilesManager);
  virtual void SetMostRecentFilesManager(vtkKWMostRecentFilesManager *mgr);

  // Description:
  // Set/Get the maximum number of most recent files to display.
  vtkGetMacro(MaximumNumberOfMostRecentFiles, int);
  virtual void SetMaximumNumberOfMostRecentFiles(int);

  // Description:
  // Specifies commands to associate with the widget. 
  // 'OpenCommand' is invoked when the user click on the Open section.
  // The 'object' argument is the object that will have the method called on
  // it. The 'method' argument is the name of the method to be called and any
  // arguments in string form. If the object is NULL, the method is still
  // evaluated as a simple command. 
  virtual void SetOpenCommand(
    vtkObject *object, const char *method);

  // Description:
  // Specifies commands to associate with the widget. 
  // 'DropCommand' is invoked when the user drop a file on the widget.
  // The 'object' argument is the object that will have the method called on
  // it. The 'method' argument is the name of the method to be called and any
  // arguments in string form. If the object is NULL, the method is still
  // evaluated as a simple command. 
  // The following parameters are also passed to the command:
  // - filename(s): list of filenames
  virtual void SetDropCommand(
    vtkObject *object, const char *method);

  // Description:
  // Specifies commands to associate with the widget. 
  // 'DoubleClickCommand' is invoked when the user double-click anywhere
  // in the page widget.
  // The 'object' argument is the object that will have the method called on
  // it. The 'method' argument is the name of the method to be called and any
  // arguments in string form. If the object is NULL, the method is still
  // evaluated as a simple command. 
  virtual void SetDoubleClickCommand(
    vtkObject *object, const char *method);

  // Description:
  // Access to the canvas and internal elements
  vtkGetObjectMacro(StartupPageCanvas, vtkKWCanvas);

  // Description:
  // Update the whole UI depending on the value of the Ivars
  virtual void Update();

  // Description:
  // Update the "enable" state of the object and its internal parts.
  // Depending on different Ivars (this->Enabled, the application's 
  // Limited Edition Mode, etc.), the "enable" state of the object is updated
  // and propagated to its internal parts/subwidgets. This will, for example,
  // enable/disable parts of the widget UI, enable/disable the visibility
  // of 3D widgets, etc.
  virtual void UpdateEnableState();

  // Description:
  // Callbacks. Internal, do not use.
  virtual void ConfigureCallback();
  virtual void RedrawCallback();
  virtual void HighlightSectionCallback(const char *tag, int flag);
  virtual void OpenCallback();
  virtual void DoubleClickCallback();

  // Description:
  // Add all the default observers needed by that object, or remove
  // all the observers that were added through AddCallbackCommandObserver.
  // Subclasses can override these methods to add/remove their own default
  // observers, but should call the superclass too.
  virtual void AddCallbackCommandObservers();
  virtual void RemoveCallbackCommandObservers();

protected:
  vtkKWStartupPageWidget();
  ~vtkKWStartupPageWidget();

  // Description:
  // Create the widget.
  virtual void CreateWidget();

  double GradientColor1[3];
  double GradientColor2[3];
  double TextColor[3];
  double SelectedTextColor[3];
  double HintColor[3];

  int TextSize;
  int HintSize;
  int MostRecentFileSize;

  int    SupportOpen;
  int    SupportDoubleClick;
  int    SupportDrop;
  int    SupportMostRecentFiles;

  int    MaximumNumberOfMostRecentFiles;
  int    AddShadowToHint;

  vtkKWIcon *OpenIcon;
  vtkKWIcon *DoubleClickIcon;
  vtkKWIcon *DropIcon;
  vtkKWIcon *MostRecentFilesIcon;
  vtkKWIcon *MostRecentFileIcon;

  // Recent files manager

  vtkKWMostRecentFilesManager *MostRecentFilesManager;

  // Commands

  char *OpenCommand;
  char *DropCommand;
  char *DoubleClickCommand;

  // GUI

  vtkKWCanvas *StartupPageCanvas;

  // Description:
  // Bind/Unbind all components.
  virtual void Bind();
  virtual void UnBind();

  // Description:
  // Redraw or update canvas elements
  virtual void Redraw();
  virtual void ScheduleRedraw();

  // Description:
  // Update bindings, fonts, colors, icons
  virtual void UpdateInternalCanvasBindings();
  virtual void UpdateInternalCanvasColors();
  virtual void UpdateInternalCanvasFonts();
  virtual void UpdateInternalCanvasIcons();

  // Description:
  // Draw section
  virtual void AddSectionToCanvas(
    ostream &tk_cmd, 
    int x, int y, 
    vtkKWIcon *icon,
    const char *text, const char *text_font, 
    const char *hint, const char *hint_font, 
    vtkObject *object, const char *method,
    const char *tag, const char *extra_tag = NULL);

  virtual void AddMostRecentFilesSectionToCanvas(
    ostream &tk_cmd, 
    int x, int y);

  // Description:
  // Invoke the commands
  virtual void InvokeOpenCommand();
  virtual void InvokeDoubleClickCommand();

  // PIMPL Encapsulation for STL containers
  //BTX
  vtkKWStartupPageWidgetInternals *Internals;
  //ETX

  // Description:
  // Processes the events that are passed through CallbackCommand (or others).
  // Subclasses can oberride this method to process their own events, but
  // should call the superclass too.
  virtual void ProcessCallbackCommandEvents(
    vtkObject *caller, unsigned long event, void *calldata);

  // Description:
  // Helpers
  virtual int GetHorizontalIncrementFromIcon(vtkKWIcon *icon);
  
private:
  vtkKWStartupPageWidget(const vtkKWStartupPageWidget&); // Not implemented
  void operator=(const vtkKWStartupPageWidget&); // Not implemented
};

#endif