ROOT logo
// @(#)root/ged:$Name: not supported by cvs2svn $:$Id: TArcEditor.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_TArcEditor
#define ROOT_TArcEditor

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

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

class TGComboBox;
class TGNumberEntry;
class TGRadioButton;
class TGCheckButton;
class TArc;

class TArcEditor : public TGedFrame {

protected:
   TArc                 *fArc;             // pointer to the Arc object
   TGNumberEntry        *fRadiusEntry;     // radius entry
   TGNumberEntry        *fPhiminEntry;     // Phimin entry
   TGNumberEntry        *fPhimaxEntry;     // Phimax entry
   TGNumberEntry        *fCenterXEntry;    // center x entry
   TGNumberEntry        *fCenterYEntry;    // center y entry
   TGCheckButton        *fDrawEdgesEntry; 
/*
   TGNumberEntry        *fPoCfX1Entry;     // center x entry
   TGNumberEntry        *fPoCfY1Entry;     // center y entry
   TGNumberEntry        *fPoCfX2Entry;     // center x entry
   TGNumberEntry        *fPoCfY2Entry;     // center y entry
   TGRadioButton        *fUseCenterPhiEntry; 
   TGCheckButton        *fSenseEntry; 
   TGRadioButton        *fUsePoCfEntry; 
   Bool_t               fUseCenterPhi;   // use radius, center, phimin, phimax
                                           // otherwise radius + 2 points on
                                           // circumference
*/
   virtual void   ConnectSignals2Slots();
   TGComboBox    *BuildOptionComboBox(TGFrame* parent, Int_t id);
   
public:
#if ROOT_VERSION_CODE >= ROOT_VERSION(5,13,4)
   TArcEditor(const TGWindow *p = 0,
#else
   TArcEditor(const TGWindow *p, Int_t id,
#endif
                Int_t width = 140, Int_t height = 30,
                UInt_t options = kChildFrame,
                Pixel_t back = GetDefaultFrameBackground());
   virtual ~TArcEditor();

#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
   virtual void   DoRedraw();
   virtual void   Redraw();
   virtual void   DoCenterPhi();
//   virtual void   DoPointsOnCf();
//   virtual void   DoUseCenterPhi();
//   virtual void   DoUsePointsOnCf();

   ClassDef(TArcEditor,0)  // GUI for editing arrow attributes
};

#endif
 TArcEditor.h:1
 TArcEditor.h:2
 TArcEditor.h:3
 TArcEditor.h:4
 TArcEditor.h:5
 TArcEditor.h:6
 TArcEditor.h:7
 TArcEditor.h:8
 TArcEditor.h:9
 TArcEditor.h:10
 TArcEditor.h:11
 TArcEditor.h:12
 TArcEditor.h:13
 TArcEditor.h:14
 TArcEditor.h:15
 TArcEditor.h:16
 TArcEditor.h:17
 TArcEditor.h:18
 TArcEditor.h:19
 TArcEditor.h:20
 TArcEditor.h:21
 TArcEditor.h:22
 TArcEditor.h:23
 TArcEditor.h:24
 TArcEditor.h:25
 TArcEditor.h:26
 TArcEditor.h:27
 TArcEditor.h:28
 TArcEditor.h:29
 TArcEditor.h:30
 TArcEditor.h:31
 TArcEditor.h:32
 TArcEditor.h:33
 TArcEditor.h:34
 TArcEditor.h:35
 TArcEditor.h:36
 TArcEditor.h:37
 TArcEditor.h:38
 TArcEditor.h:39
 TArcEditor.h:40
 TArcEditor.h:41
 TArcEditor.h:42
 TArcEditor.h:43
 TArcEditor.h:44
 TArcEditor.h:45
 TArcEditor.h:46
 TArcEditor.h:47
 TArcEditor.h:48
 TArcEditor.h:49
 TArcEditor.h:50
 TArcEditor.h:51
 TArcEditor.h:52
 TArcEditor.h:53
 TArcEditor.h:54
 TArcEditor.h:55
 TArcEditor.h:56
 TArcEditor.h:57
 TArcEditor.h:58
 TArcEditor.h:59
 TArcEditor.h:60
 TArcEditor.h:61
 TArcEditor.h:62
 TArcEditor.h:63
 TArcEditor.h:64
 TArcEditor.h:65
 TArcEditor.h:66
 TArcEditor.h:67
 TArcEditor.h:68
 TArcEditor.h:69
 TArcEditor.h:70
 TArcEditor.h:71
 TArcEditor.h:72
 TArcEditor.h:73
 TArcEditor.h:74
 TArcEditor.h:75
 TArcEditor.h:76
 TArcEditor.h:77
 TArcEditor.h:78
 TArcEditor.h:79
 TArcEditor.h:80
 TArcEditor.h:81
 TArcEditor.h:82
 TArcEditor.h:83
 TArcEditor.h:84
 TArcEditor.h:85
 TArcEditor.h:86
 TArcEditor.h:87
 TArcEditor.h:88