Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
27class TControlBar;
29
31
32protected:
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
38public:
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
#define c(i)
Definition RSha256.hxx:101
#define ClassDef(name, id)
Definition Rtypes.h:325
This class defines the control bar buttons.
ABC describing GUI independent control bar.
TControlBarImp(TControlBar *c, const char *, Int_t, Int_t)
virtual void SetButtonWidth(UInt_t)
virtual void SetTextColor(const char *)
TControlBar * fControlBar
virtual ~TControlBarImp()
TControlBarButton * fClicked
TControlBarImp(TControlBar *c, const char *="")
virtual void SetButtonState(const char *, Int_t)
virtual TControlBar * GetControlBar()
virtual void SetFont(const char *)
virtual void Create()
virtual TControlBarButton * GetClicked()
virtual void Show()
virtual void Hide()
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
Definition TControlBar.h:26