This file is indexed.

/usr/include/vdkb2/vdkb_object.h is in vdkbuilder2 2.4.0-4.4.

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
/*
 * ===========================
 * VDK Builder
 * Version 0.1.1
 * Revision 0.0
 * March 1999
 * ===========================
 *
 * Copyright (C) 1998,1999 Mario Motta
 * Developed by Mario Motta <mmotta@guest.net>
 *
 * Based on VDK Library
 * Copyright (C) 1998, Mario Motta
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 */
#ifndef _vdkb_object
#define _vdkb_object
#include <vdk/vdk.h>
#include <vdkb2/vdkb_prop.h>
#include <vdkb2/vdkb_signal.h>

// for common events

#define CONNECT_COMMON_EVENTS \
EventConnect("expose_event",&VDKBObject::BaseExposeEvent,true);\
EventConnect("button_press_event",&VDKBObject::ButtonPressed);\
EventConnect("button_release_event",&VDKBObject::ButtonReleased);\
EventConnect("enter_notify_event",&VDKBObject::OnEnter);\
EventConnect("leave_notify_event",&VDKBObject::OnLeave);
/*
gtk_widget_set_events(WrappedWidget(),GDK_POINTER_MOTION_MASK);\
EventConnect("motion_notify_event",&VDKBObject::OnMouseMove);
*/

class VDKBParser;

// vdkbclass class type enum
#define VDKB_GUI_CLASSES_OFFSET 1024
#define VDKBUILDER_CLASSES_OFFSET 2048
enum {
  vdkbclass_object = 0,
  /* specific vdkbuilder gui class */
  vdkbclass_evcontainer = 512,
  /* gui object classes */
  vdkbclass_form = 1024,
  vdkbclass_gnomeform,
  vdkbclass_panedform, // obsolete
  vdkbclass_labelbutton, // obsolete
  vdkbclass_label,
  vdkbclass_pixmap,
  vdkbclass_image,
  vdkbclass_menuitem,
  vdkbclass_textwidget,
  vdkbclass_entry,
  vdkbclass_pixmapbutton, // obsolete
  vdkbclass_clist,
  vdkbclass_ctree,
  vdkbclass_sep,
  vdkbclass_rbgroup,
  vdkbclass_guicanvas,
  vdkbclass_combo,
  vdkbclass_checkbutton,
  vdkbclass_radiobutton,
  vdkbclass_spinbutton,
  vdkbclass_progressbar,
  vdkbclass_custombutton,
  vdkbclass_sbar,
  vdkbclass_grid,
  vdkbclass_slider,
  vdkbclass_placeholder,
  //  vdkbclass_treeview,
  // gnome
  vdkbclass_gnomeappbar,
  vdkbclass_date_edit,
  vdkbclass_gnomeentry,
  // xdb
  vdkbclass_xentry,
  vdkbclass_xcheckbutton,
  vdkbclass_xclist,
  vdkbclass_xmemo,
  // end of non-containers widgets
  vdkbclass_none,
  /* gui containers classes */
  vdkbcanvas_class = 2048,
  vdkbevbox_class,
  vdkbframe_class,
  vdkbscrolled_class,
  vdkbmenubar_class,
  vdkbmenu_class,
  vdkbpaned_class,
  vdkbguinotebook_class,
  vdkbtoolbar_class,
  vdkbtable_class,
  vdkbhandlebox_class,
  // vdkbpacker_class, // unused
  vdkbfixed_class
};

//===========================================================
class VDKBObjectInspector;
class VDKBGuiForm;
class VDKBObject
{
 // plm
 private:
  bool Marked;
 protected:
  VDKBPropertyList proplist;
  VDKBSignalList siglist;
  VDKString name;
  VDKObject* object;
  void WriteBgProp(char* propname, GtkStateType state, FILE* fp);
  static VDKString nihil_property;
 public:
  VDKBObject(char* name);
  VDKBObject(char* name, VDKObject* o);
  virtual ~VDKBObject();
  void SetPropValue(const char* prop, const char* value);
  VDKString& GetProp(char* prop);
  virtual void WriteOnFrm(FILE* fp,VDKBObject* parentobj);
  void WriteCommonOnFrm(FILE* fp, VDKBObject* parentobj);
  void WriteOnFrmEnd(FILE* fp);
  virtual VDKString& Name(char* s = NULL)
    { if(s) name = s; return name; }
  virtual bool AddToParent(VDKObject* obj, GdkEvent* ev);
  virtual int Type() { return vdkbclass_object; }
  virtual int isA() { return object ? object->isA() : -1; }
  virtual char* VDKName() { return "VDKObject"; }
  // place holders for subclasses
  virtual void PopMenu() {}
  virtual void PopObjectBrowser();
  virtual void Mark();
  virtual void ClearMark();
  static int Counter() { return 0; }
  virtual VDKObjectContainer* ExtraWidget(VDKBObjectInspector* isp);
  VDKBPropertyList& PropList() { return proplist; }
  VDKBSignalList& SignalList() { return siglist; }
  // accessing to underlying vdk object
  VDKObject* ObjectFromVDK() { return object; }
  operator VDKObject*() { return object; }
  static char* CreateSource(char* buffer,VDKBParser& parser,char* obj_name);
  static void CreateWidget(VDKBObject* gui_object,
			 char* buffer,VDKBParser& parser);
  // virtual signal handlers
  void SetupSignals(VDKObject*);
  bool ButtonPressed(VDKObject* sender, GdkEvent* ev);
  bool ButtonReleased(VDKObject* sender, GdkEvent* ev);
  bool OnEnter(VDKObject* sender, GdkEvent* ev);
  bool OnLeave(VDKObject* sender, GdkEvent* ev);
  bool OnMouseMove(VDKObject* sender, GdkEvent* ev);
  bool HandleFixed(VDKObject* sender, GdkEventButton *event);
  bool BaseExposeEvent(VDKObject* sender, GdkEvent* ev);
};

#endif