Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:37

0001 // @(#)root/base:$Id$
0002 // Author: Nenad Buncic   20/02/96
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TControlBarImp
0013 #define ROOT_TControlBarImp
0014 
0015 
0016 ////////////////////////////////////////////////////////////////////////////////
0017 //                                                                            //
0018 // TControlBarImp                                                             //
0019 //                                                                            //
0020 // ABC describing GUI independent control bar (see TControlBar)               //
0021 //                                                                            //
0022 ////////////////////////////////////////////////////////////////////////////////
0023 
0024 #include "Rtypes.h"
0025 
0026 
0027 class TControlBar;
0028 class TControlBarButton;
0029 
0030 class TControlBarImp {
0031 
0032 protected:
0033    TControlBar *fControlBar; //TControlBar associated with this implementation
0034    Int_t        fXpos;       //Initial x position
0035    Int_t        fYpos;       //Initial y position
0036    TControlBarButton *fClicked; //Last clicked button
0037 
0038 public:
0039    TControlBarImp(TControlBar *c, const char * = "") : fControlBar(c), fXpos(0), fYpos(0), fClicked(nullptr) { }
0040    TControlBarImp(TControlBar *c, const char *, Int_t, Int_t) : fControlBar(c), fXpos(0), fYpos(0), fClicked(nullptr) { }
0041    virtual ~TControlBarImp() { }
0042 
0043    virtual TControlBar *GetControlBar() { return fControlBar; }
0044    virtual TControlBarButton *GetClicked() { return fClicked; }
0045 
0046    virtual void Create() { }
0047    virtual void Hide() { }
0048    virtual void Show() { }
0049    virtual void SetFont(const char * /*fontName*/) { }
0050    virtual void SetTextColor(const char * /*colorName*/) { }
0051    virtual void SetButtonState(const char * /*label*/, Int_t /*state*/) { }
0052    virtual void SetButtonWidth(UInt_t /*width*/) { }
0053 
0054    ClassDef(TControlBarImp,0)  //GUI independent controlbar abc
0055 };
0056 
0057 #endif