Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TControlBarImp.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Nenad Buncic 20/02/96
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TControlBarImp
13 #define ROOT_TControlBarImp
14 
15 
16 ////////////////////////////////////////////////////////////////////////////////
17 // //
18 // TControlBarImp //
19 // //
20 // ABC describing GUI independent control bar (see TControlBar) //
21 // //
22 ////////////////////////////////////////////////////////////////////////////////
23 
24 #include "Rtypes.h"
25 
26 
27 class TControlBar;
28 class TControlBarButton;
29 
30 class TControlBarImp {
31 
32 protected:
33  TControlBar *fControlBar; //TControlBar associated with this implementation
34  Int_t fXpos; //Initial x position
35  Int_t fYpos; //Initial y position
36  TControlBarButton *fClicked; //Last clicked button
37 
38 public:
39  TControlBarImp(TControlBar *c, const char * = "") : fControlBar(c), fXpos(0), fYpos(0), fClicked(nullptr) { }
40  TControlBarImp(TControlBar *c, const char *, Int_t, Int_t) : fControlBar(c), fXpos(0), fYpos(0), fClicked(nullptr) { }
41  virtual ~TControlBarImp() { }
42 
43  virtual TControlBar *GetControlBar() { return fControlBar; }
44  virtual TControlBarButton *GetClicked() { return fClicked; }
45 
46  virtual void Create() { }
47  virtual void Hide() { }
48  virtual void Show() { }
49  virtual void SetFont(const char * /*fontName*/) { }
50  virtual void SetTextColor(const char * /*colorName*/) { }
51  virtual void SetButtonState(const char * /*label*/, Int_t /*state*/) { }
52  virtual void SetButtonWidth(UInt_t /*width*/) { }
53 
54  ClassDef(TControlBarImp,0) //GUI independent controlbar abc
55 };
56 
57 #endif