TLineEditor.h

Go to the documentation of this file.
00001 // @(#)root/ged:$Id: TLineEditor.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Ilka  Antcheva 24/04/06
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TLineEditor
00013 #define ROOT_TLineEditor
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 //  TLineEditor                                                         //
00018 //                                                                      //
00019 //  Implements GUI for editing line attributes, start/end points.       //                                             //
00020 //                                                                      //
00021 //////////////////////////////////////////////////////////////////////////
00022 
00023 #ifndef ROOT_TGedFrame
00024 #include "TGedFrame.h"
00025 #endif
00026 
00027 class TGNumberEntry;
00028 class TGCheckButton;
00029 class TLine;
00030 
00031 class TLineEditor : public TGedFrame {
00032 
00033 protected:
00034    TLine           *fLine;         //line object
00035    TGNumberEntry   *fStartPointX;  //start point x coordinate
00036    TGNumberEntry   *fStartPointY;  //start point y coordinate
00037    TGNumberEntry   *fEndPointX;    //end point x coordinate
00038    TGNumberEntry   *fEndPointY;    //end point y coordinate
00039    TGCheckButton   *fVertical;     //set the line vertical
00040    TGCheckButton   *fHorizontal;   //set the line horizontal
00041 
00042    virtual void   ConnectSignals2Slots();
00043 
00044 public:
00045    TLineEditor(const TGWindow *p = 0, 
00046                Int_t width = 140, Int_t height = 30,
00047                UInt_t options = kChildFrame,
00048                Pixel_t back = GetDefaultFrameBackground());
00049    virtual ~TLineEditor();
00050 
00051    virtual void   SetModel(TObject* obj);
00052    virtual void   DoStartPoint();
00053    virtual void   DoEndPoint();
00054    virtual void   DoLineVertical();
00055    virtual void   DoLineHorizontal();
00056 
00057    ClassDef(TLineEditor,0)  // GUI for editing Line attributes
00058 };
00059 
00060 #endif

Generated on Tue Jul 5 14:19:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1