/usr/include/root/TEveGedEditor.h is in libroot-graf3d-eve-dev 5.34.14-1build1.
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  | // @(#)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_TEveGedEditor
#define ROOT_TEveGedEditor
#include "TGedEditor.h"
#include "TGedFrame.h"
#include "TGButton.h"
class TEveElement;
class TContextMenu;
//==============================================================================
// TEveGedEditor
//==============================================================================
class TEveGedEditor : public TGedEditor
{
   TEveGedEditor(const TEveGedEditor&);            // Not implemented
   TEveGedEditor& operator=(const TEveGedEditor&); // Not implemented
public:
   typedef TGedFrame* (*NameFrameCreator_t)(TEveGedEditor*, const TGWindow* parent, const char* tab_name);
protected:
   TEveElement   *fElement;    // Cached eve-element pointer.
   TObject       *fObject;     // Cached tobj pointer.
   virtual TGedFrame* CreateNameFrame(const TGWindow* parent, const char* tab_name); 
   static Int_t   fgMaxExtraEditors;
   static TList  *fgExtraEditors;
   static TContextMenu *fgContextMenu;
public:
   TEveGedEditor(TCanvas* canvas=0, UInt_t width=250, UInt_t height=400);
   virtual ~TEveGedEditor();
   virtual void CloseWindow();
   virtual void DeleteWindow();
   TEveElement* GetEveElement() const;
   void DisplayElement(TEveElement* re);
   void DisplayObject(TObject* obj);
   virtual void SetModel(TVirtualPad* pad, TObject* obj, Int_t event);
   virtual void Update(TGedFrame* gframe=0);
   // --- Statics for extra editors. ---
   static void SpawnNewEditor(TObject* obj);
   static void ElementChanged(TEveElement* el);
   static void ElementDeleted(TEveElement* el);
   static void DestroyEditors();
   static TContextMenu* GetContextMenu();
   ClassDef(TEveGedEditor, 0); // Specialization of TGedEditor for proper update propagation to TEveManager.
};
//==============================================================================
// TEveGedNameFrame
//==============================================================================
class TEveGedNameFrame : public TGedFrame
{
private:
   TEveGedNameFrame(const TEveGedNameFrame&);            // Not implemented
   TEveGedNameFrame& operator=(const TEveGedNameFrame&); // Not implemented
protected:
   TGTextButton   *fNCButton; // Name/Class button.
public:
   TEveGedNameFrame(const TGWindow *p=0, Int_t width=140, Int_t height=30,
                    UInt_t options=kChildFrame | kHorizontalFrame);
   virtual ~TEveGedNameFrame();
   virtual void SetModel(TObject* obj);
   void SpawnEditorClone();
   ClassDef(TEveGedNameFrame, 0); // Top name-frame used in EVE.
};
//==============================================================================
// TEveGedNameTextButton
//==============================================================================
class TEveGedNameTextButton : public TGTextButton
{
private:
   TEveGedNameTextButton(const TEveGedNameTextButton&);            // Not implemented
   TEveGedNameTextButton& operator=(const TEveGedNameTextButton&); // Not implemented
   TEveGedNameFrame *fFrame;
public:
   TEveGedNameTextButton(TEveGedNameFrame* p);
   virtual ~TEveGedNameTextButton();
   virtual Bool_t HandleButton(Event_t* event);
   ClassDef(TEveGedNameTextButton, 0); // Button for GED name-frame.
};
#endif
 |