Logo ROOT   6.12/07
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 #include "Rtypes.h"
25 
26 
27 class TControlBar;
28 class TControlBarButton;
29 
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(0) { }
40  TControlBarImp(TControlBar *c, const char *, Int_t, Int_t) : fControlBar(c), fXpos(0), fYpos(0), fClicked(0) { }
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
virtual TControlBarButton * GetClicked()
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:22
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:320
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()
This class defines the control bar buttons.
virtual void SetButtonState(const char *, Int_t)