ROOT logo
// @(#)root/ged:$Id: TLineEditor.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Ilka  Antcheva 24/04/06

/*************************************************************************
 * Copyright (C) 1995-2006, 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_TLineEditor
#define ROOT_TLineEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TLineEditor                                                         //
//                                                                      //
//  Implements GUI for editing line attributes, start/end points.       //                                             //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

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

class TGNumberEntry;
class TGCheckButton;
class TLine;

class TLineEditor : public TGedFrame {

protected:
   TLine           *fLine;         //line object
   TGNumberEntry   *fStartPointX;  //start point x coordinate
   TGNumberEntry   *fStartPointY;  //start point y coordinate
   TGNumberEntry   *fEndPointX;    //end point x coordinate
   TGNumberEntry   *fEndPointY;    //end point y coordinate
   TGCheckButton   *fVertical;     //set the line vertical
   TGCheckButton   *fHorizontal;   //set the line horizontal

   virtual void   ConnectSignals2Slots();

public:
   TLineEditor(const TGWindow *p = 0, 
               Int_t width = 140, Int_t height = 30,
               UInt_t options = kChildFrame,
               Pixel_t back = GetDefaultFrameBackground());
   virtual ~TLineEditor();

   virtual void   SetModel(TObject* obj);
   virtual void   DoStartPoint();
   virtual void   DoEndPoint();
   virtual void   DoLineVertical();
   virtual void   DoLineHorizontal();

   ClassDef(TLineEditor,0)  // GUI for editing Line attributes
};

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