TControlBarImp.h

Go to the documentation of this file.
00001 // @(#)root/base:$Id: TControlBarImp.h 35422 2010-09-20 08:01:27Z brun $
00002 // Author: Nenad Buncic   20/02/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_TControlBarImp
00013 #define ROOT_TControlBarImp
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////////////////
00017 //                                                                            //
00018 // TControlBarImp                                                             //
00019 //                                                                            //
00020 // ABC describing GUI independent control bar (see TControlBar)               //
00021 //                                                                            //
00022 ////////////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_Rtypes
00025 #include "Rtypes.h"
00026 #endif
00027 
00028 
00029 class TControlBar;
00030 class TControlBarButton;
00031 
00032 class TControlBarImp {
00033 
00034 protected:
00035    TControlBar *fControlBar; //TControlBar associated with this implementation
00036    Int_t        fXpos;       //Initial x position
00037    Int_t        fYpos;       //Initial y position
00038    TControlBarButton *fClicked; //Last clicked button 
00039    
00040 public:
00041    TControlBarImp(TControlBar *c, const char * = "") : fControlBar(c), fXpos(0), fYpos(0), fClicked(0) { }
00042    TControlBarImp(TControlBar *c, const char *, Int_t, Int_t) : fControlBar(c), fXpos(0), fYpos(0), fClicked(0) { }
00043    virtual ~TControlBarImp() { }
00044 
00045    virtual TControlBar *GetControlBar() { return fControlBar; }
00046    virtual TControlBarButton *GetClicked() { return fClicked; } 
00047 
00048    virtual void Create() { }
00049    virtual void Hide() { }
00050    virtual void Show() { }
00051    virtual void SetFont(const char * /*fontName*/) { }
00052    virtual void SetTextColor(const char * /*colorName*/) { }
00053    virtual void SetButtonState(const char * /*label*/, Int_t /*state*/) { }
00054    virtual void SetButtonWidth(UInt_t /*width*/) { }
00055 
00056    ClassDef(TControlBarImp,0)  //GUI independent controlbar abc
00057 };
00058 
00059 #endif

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