ROOT logo
// @(#)root/ged:$Name: not supported by cvs2svn $:$Id: HprElementEditor.h
// Author: Ilka  Antcheva, Otto Schaile 15/12/04

/*************************************************************************
 * Copyright (C) 1995-2004, 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_HprElementEditor
#define ROOT_HprElementEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  HprElementEditor                                                          //
//                                                                      //
//  Implements GUI for editing Arc attributes: radius, phi1, phi2.      //                                             //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGButton
#include "TGWidget.h"
#endif
#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TGNumberEntry;
class HprElement;

class HprElementEditor : public TGedFrame {

protected:
   HprElement           *fHprElement;     // pointer to the object
   TGNumberEntry        *fPlaneEntry;     // plane entry
   TGNumberEntry        *fVisEntry;       // visibility entry
   virtual void   ConnectSignals2Slots();

public:
#if ROOT_VERSION_CODE >= ROOT_VERSION(5,13,4)
   HprElementEditor(const TGWindow *p = 0,
#else
   HprElementEditor(const TGWindow *p, Int_t id,
#endif
                Int_t width = 140, Int_t height = 30,
                UInt_t options = kChildFrame,
                Pixel_t back = GetDefaultFrameBackground());
   virtual ~HprElementEditor();
   virtual void DoSetPlane();
   virtual void DoSetVisibility();

#if ROOT_VERSION_CODE >= ROOT_VERSION(5,13,4)
   virtual void   SetModel(TObject *obj);
   void           ActivateBaseClassEditors(TClass* cl);
#else
   virtual void SetModel(TVirtualPad *pad, TObject *obj, Int_t event);
#endif
   ClassDef(HprElementEditor,0)  // GUI for editing arrow attributes
};

#endif
 HprElementEditor.h:1
 HprElementEditor.h:2
 HprElementEditor.h:3
 HprElementEditor.h:4
 HprElementEditor.h:5
 HprElementEditor.h:6
 HprElementEditor.h:7
 HprElementEditor.h:8
 HprElementEditor.h:9
 HprElementEditor.h:10
 HprElementEditor.h:11
 HprElementEditor.h:12
 HprElementEditor.h:13
 HprElementEditor.h:14
 HprElementEditor.h:15
 HprElementEditor.h:16
 HprElementEditor.h:17
 HprElementEditor.h:18
 HprElementEditor.h:19
 HprElementEditor.h:20
 HprElementEditor.h:21
 HprElementEditor.h:22
 HprElementEditor.h:23
 HprElementEditor.h:24
 HprElementEditor.h:25
 HprElementEditor.h:26
 HprElementEditor.h:27
 HprElementEditor.h:28
 HprElementEditor.h:29
 HprElementEditor.h:30
 HprElementEditor.h:31
 HprElementEditor.h:32
 HprElementEditor.h:33
 HprElementEditor.h:34
 HprElementEditor.h:35
 HprElementEditor.h:36
 HprElementEditor.h:37
 HprElementEditor.h:38
 HprElementEditor.h:39
 HprElementEditor.h:40
 HprElementEditor.h:41
 HprElementEditor.h:42
 HprElementEditor.h:43
 HprElementEditor.h:44
 HprElementEditor.h:45
 HprElementEditor.h:46
 HprElementEditor.h:47
 HprElementEditor.h:48
 HprElementEditor.h:49
 HprElementEditor.h:50
 HprElementEditor.h:51
 HprElementEditor.h:52
 HprElementEditor.h:53
 HprElementEditor.h:54
 HprElementEditor.h:55
 HprElementEditor.h:56
 HprElementEditor.h:57
 HprElementEditor.h:58
 HprElementEditor.h:59
 HprElementEditor.h:60
 HprElementEditor.h:61
 HprElementEditor.h:62
 HprElementEditor.h:63