Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-14 09:07:29

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 #include "Rtypes.h"
0017 
0018 
0019 class TControlBar;
0020 class TControlBarButton;
0021 
0022 /// @see TControlBar
0023 class TControlBarImp {
0024 
0025 protected:
0026    TControlBar *fControlBar; //TControlBar associated with this implementation
0027    Int_t        fXpos;       //Initial x position
0028    Int_t        fYpos;       //Initial y position
0029    TControlBarButton *fClicked; //Last clicked button
0030 
0031 public:
0032    TControlBarImp(TControlBar *c, const char * = "") : fControlBar(c), fXpos(0), fYpos(0), fClicked(nullptr) { }
0033    TControlBarImp(TControlBar *c, const char *, Int_t, Int_t) : fControlBar(c), fXpos(0), fYpos(0), fClicked(nullptr) { }
0034    virtual ~TControlBarImp() { }
0035 
0036    virtual TControlBar *GetControlBar() { return fControlBar; }
0037    virtual TControlBarButton *GetClicked() { return fClicked; }
0038 
0039    virtual void Create() { }
0040    virtual void Hide() { }
0041    virtual void Show() { }
0042    virtual void SetFont(const char * /*fontName*/) { }
0043    virtual void SetTextColor(const char * /*colorName*/) { }
0044    virtual void SetButtonState(const char * /*label*/, Int_t /*state*/) { }
0045    virtual void SetButtonWidth(UInt_t /*width*/) { }
0046 
0047    ClassDef(TControlBarImp,0)  //GUI independent controlbar abc
0048 };
0049 
0050 #endif