Logo ROOT  
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(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
TControlBarImp
ABC describing GUI independent control bar.
Definition: TControlBarImp.h:30
c
#define c(i)
Definition: RSha256.hxx:101
TControlBarImp::SetButtonState
virtual void SetButtonState(const char *, Int_t)
Definition: TControlBarImp.h:51
TControlBarImp::fClicked
TControlBarButton * fClicked
Definition: TControlBarImp.h:36
TControlBarImp::SetTextColor
virtual void SetTextColor(const char *)
Definition: TControlBarImp.h:50
TControlBarImp::fYpos
Int_t fYpos
Definition: TControlBarImp.h:35
TControlBarImp::fControlBar
TControlBar * fControlBar
Definition: TControlBarImp.h:33
TControlBar
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition: TControlBar.h:26
TControlBarImp::SetButtonWidth
virtual void SetButtonWidth(UInt_t)
Definition: TControlBarImp.h:52
TControlBarImp::~TControlBarImp
virtual ~TControlBarImp()
Definition: TControlBarImp.h:41
TControlBarImp::SetFont
virtual void SetFont(const char *)
Definition: TControlBarImp.h:49
TControlBarImp::Create
virtual void Create()
Definition: TControlBarImp.h:46
TControlBarImp::GetClicked
virtual TControlBarButton * GetClicked()
Definition: TControlBarImp.h:44
TControlBarImp::Hide
virtual void Hide()
Definition: TControlBarImp.h:47
unsigned int
TControlBarImp::TControlBarImp
TControlBarImp(TControlBar *c, const char *, Int_t, Int_t)
Definition: TControlBarImp.h:40
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TControlBarImp::Show
virtual void Show()
Definition: TControlBarImp.h:48
TControlBarImp::TControlBarImp
TControlBarImp(TControlBar *c, const char *="")
Definition: TControlBarImp.h:39
Rtypes.h
TControlBarImp::fXpos
Int_t fXpos
Definition: TControlBarImp.h:34
TControlBarButton
This class defines the control bar buttons.
Definition: TControlBarButton.h:17
TControlBarImp::GetControlBar
virtual TControlBar * GetControlBar()
Definition: TControlBarImp.h:43
int