This file is indexed.

/usr/include/root/TEveBrowser.h is in libroot-graf3d-eve-dev 5.34.19+dfsg-1.2.

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
// @(#)root/eve:$Id$
// Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007

/*************************************************************************
 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TEveBrowser
#define ROOT_TEveBrowser

#include "TEveElement.h"

#include "TRootBrowser.h"
#include "TGListTree.h"

#include "TContextMenu.h"

class TGFileBrowser;
class TGSplitter;

class TEveGedEditor;


class TEveListTreeItem : public TGListTreeItem
{
private:
   TEveListTreeItem(const TEveListTreeItem&);             // not implemented
   TEveListTreeItem& operator=(const TEveListTreeItem&);  // not implemented

protected:
   TEveElement* fElement;

   void NotSupported(const char* func) const;

public:
   TEveListTreeItem(TEveElement* el) : TGListTreeItem(), fElement(el) {}
   virtual ~TEveListTreeItem() {}

   virtual Bool_t          IsActive()       const { return fElement->GetSelectedLevel() != 0; }
   virtual Pixel_t         GetActiveColor() const;
   virtual void            SetActive(Bool_t)      { NotSupported("SetActive"); }

   virtual const char     *GetText()          const { return fElement->GetElementName(); }
   virtual Int_t           GetTextLength()    const { return strlen(fElement->GetElementName()); }
   virtual const char     *GetTipText()       const { return fElement->GetElementTitle(); }
   virtual Int_t           GetTipTextLength() const { return strlen(fElement->GetElementTitle()); }
   virtual void            SetText(const char *)    { NotSupported("SetText"); }
   virtual void            SetTipText(const char *) { NotSupported("SetTipText"); }

   virtual void            SetUserData(void *, Bool_t=kFALSE) { NotSupported("SetUserData"); }
   virtual void           *GetUserData() const { return fElement; }

   virtual const TGPicture*GetPicture()         const { return fElement->GetListTreeIcon(fOpen); }
   virtual const TGPicture*GetCheckBoxPicture() const { return fElement->GetListTreeCheckBoxIcon(); }

   virtual void            SetPictures(const TGPicture*, const TGPicture*) { NotSupported("SetUserData"); }
   virtual void            SetCheckBoxPictures(const TGPicture*, const TGPicture*) { NotSupported("SetUserData"); }

   virtual void            SetCheckBox(Bool_t=kTRUE) { NotSupported("SetCheckBox"); }
   virtual Bool_t          HasCheckBox()       const { return kTRUE; }
   virtual void            CheckItem(Bool_t=kTRUE)   { printf("TEveListTreeItem::CheckItem - to be ignored ... all done via signal Checked().\n"); }
   virtual void            Toggle();
   virtual Bool_t          IsChecked()         const { return fElement->GetRnrState(); }

   // Propagation of checked-state form children to parents. Not needed, ignore.

   // Item coloration (underline + minibox)
   virtual Bool_t          HasColor()  const { return fElement->HasMainColor(); }
   virtual Color_t         GetColor()  const { return fElement->GetMainColor(); }
   virtual void            SetColor(Color_t) { NotSupported("SetColor"); }
   virtual void            ClearColor()      { NotSupported("ClearColor"); }

   ClassDef(TEveListTreeItem,0); // Special llist-tree-item for Eve.
};


class TEveGListTreeEditorFrame : public TGMainFrame
{
   TEveGListTreeEditorFrame(const TEveGListTreeEditorFrame&);            // Not implemented
   TEveGListTreeEditorFrame& operator=(const TEveGListTreeEditorFrame&); // Not implemented

   friend class TEveManager;

protected:
   TGCompositeFrame *fFrame;
   TGCompositeFrame *fLTFrame;

   TGCanvas         *fLTCanvas;
   TGListTree       *fListTree;
   TGSplitter       *fSplitter;
   TEveGedEditor    *fEditor;

   TContextMenu     *fCtxMenu;

   Bool_t            fSignalsConnected;

   static TString    fgEditorClass;

public:
   TEveGListTreeEditorFrame(const TGWindow* p=0, Int_t width=250, Int_t height=700);
   virtual ~TEveGListTreeEditorFrame();

   void ConnectSignals();
   void DisconnectSignals();

   void ReconfToHorizontal();
   void ReconfToVertical();

   TGListTree*    GetListTree() const { return fListTree; }
   TEveGedEditor* GetEditor()   const { return fEditor; }

   void ItemBelowMouse(TGListTreeItem *entry, UInt_t mask);
   void ItemClicked(TGListTreeItem *entry, Int_t btn, UInt_t mask, Int_t x, Int_t y);
   void ItemDblClicked(TGListTreeItem* item, Int_t btn);
   void ItemKeyPress(TGListTreeItem *entry, UInt_t keysym, UInt_t mask);

   static void SetEditorClass(const char* edclass);

   ClassDef(TEveGListTreeEditorFrame, 0); // Composite GUI frame for parallel display of a TGListTree and TEveGedEditor.
};

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

class TEveBrowser : public TRootBrowser
{
   TEveBrowser(const TEveBrowser&);            // Not implemented
   TEveBrowser& operator=(const TEveBrowser&); // Not implemented

protected:
   void SetupCintExport(TClass* cl);
   void CalculateReparentXY(TGObject* parent, Int_t& x, Int_t& y);

   TGFileBrowser    *fFileBrowser;
   TGPopupMenu      *fEvePopup;
   TGPopupMenu      *fSelPopup;
   TGPopupMenu      *fHilPopup;

public:
   TEveBrowser(UInt_t w, UInt_t h);
   virtual ~TEveBrowser() {}

   virtual void ReallyDelete();
   virtual void CloseTab(Int_t id);
   virtual void CloseWindow();

   void InitPlugins(Option_t *opt="FI");

   TGFileBrowser* MakeFileBrowser(Bool_t make_default=kFALSE);
   TGFileBrowser* GetFileBrowser() const;
   void           SetFileBrowser(TGFileBrowser* b);

   void EveMenu(Int_t id);

   // Some getters missing in TRootBrowser
   TGMenuBar*         GetMenuBar()      const { return fMenuBar; }
   TGHorizontalFrame* GetTopMenuFrame() const { return fTopMenuFrame; }

   void HideBottomTab();

   void SanitizeTabCounts();

   ClassDef(TEveBrowser, 0); // Specialization of TRootBrowser for Eve.
};

#endif