TSliderBox.h

Go to the documentation of this file.
00001 // @(#)root/gpad:$Id: TSliderBox.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   23/11/96
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, 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_TSliderBox
00013 #define ROOT_TSliderBox
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TSliderBox                                                           //
00019 //                                                                      //
00020 // The moving box of a TSlider                                          //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 
00025 #ifndef ROOT_TWbox
00026 #include "TWbox.h"
00027 #endif
00028 
00029 class TSlider;
00030 
00031 class TSliderBox : public TWbox {
00032 
00033 protected:
00034    TSlider   *fSlider;     //Pointer to slider
00035    
00036    TSliderBox(const TSliderBox& sb)
00037      : TWbox(sb), fSlider(sb.fSlider) { }
00038    TSliderBox& operator=(const TSliderBox& sb)
00039      {if(this!=&sb) {TWbox::operator=(sb); fSlider=sb.fSlider;}
00040      return *this; }
00041 
00042 public:
00043    TSliderBox();
00044    TSliderBox(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
00045               Color_t color=18, Short_t bordersize=2 ,Short_t bordermode=-1);
00046    virtual ~TSliderBox();
00047    virtual void  ExecuteEvent(Int_t event, Int_t px, Int_t py);
00048    virtual void  SavePrimitive(ostream &out, Option_t *option = "");
00049    void          SetSlider(TSlider*slider) {fSlider=slider;}
00050 
00051    ClassDef(TSliderBox,1)  //The moving box of a TSlider
00052 };
00053 
00054 #endif
00055 

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