ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_Rtypes
25 #include "Rtypes.h"
26 #endif
27 
28 
29 class TControlBar;
30 class TControlBarButton;
31 
33 
34 protected:
35  TControlBar *fControlBar; //TControlBar associated with this implementation
36  Int_t fXpos; //Initial x position
37  Int_t fYpos; //Initial y position
38  TControlBarButton *fClicked; //Last clicked button
39 
40 public:
41  TControlBarImp(TControlBar *c, const char * = "") : fControlBar(c), fXpos(0), fYpos(0), fClicked(0) { }
42  TControlBarImp(TControlBar *c, const char *, Int_t, Int_t) : fControlBar(c), fXpos(0), fYpos(0), fClicked(0) { }
43  virtual ~TControlBarImp() { }
44 
45  virtual TControlBar *GetControlBar() { return fControlBar; }
46  virtual TControlBarButton *GetClicked() { return fClicked; }
47 
48  virtual void Create() { }
49  virtual void Hide() { }
50  virtual void Show() { }
51  virtual void SetFont(const char * /*fontName*/) { }
52  virtual void SetTextColor(const char * /*colorName*/) { }
53  virtual void SetButtonState(const char * /*label*/, Int_t /*state*/) { }
54  virtual void SetButtonWidth(UInt_t /*width*/) { }
55 
56  ClassDef(TControlBarImp,0) //GUI independent controlbar abc
57 };
58 
59 #endif
virtual TControlBarButton * GetClicked()
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:37
ABC describing GUI independent control bar.
virtual void SetTextColor(const char *)
virtual void Show()
TControlBarButton * fClicked
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void SetButtonWidth(UInt_t)
virtual void SetFont(const char *)
TControlBar * fControlBar
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void Create()
TControlBarImp(TControlBar *c, const char *, Int_t, Int_t)
virtual ~TControlBarImp()
virtual void Hide()
TControlBarImp(TControlBar *c, const char *="")
virtual TControlBar * GetControlBar()
Created by the TControlBar.
virtual void SetButtonState(const char *, Int_t)