ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
TControlBarButton.h
Go to the documentation of this file.
1
// @(#)root/gpad:$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_TControlBarButton
13
#define ROOT_TControlBarButton
14
15
16
#include "
Rtypes.h
"
17
18
#include "
TNamed.h
"
19
20
21
class
TControlBarButton :
public
TNamed {
22
23
protected
:
24
Int_t fType;
///< button type
25
TString fAction;
///< action to be executed
26
27
public
:
28
enum
{ kButton = 1, kDrawnButton, kSeparator };
29
30
TControlBarButton();
31
TControlBarButton(
const
char
*label,
const
char
*action=
""
,
const
char
*hint=
""
,
const
char
*type=
"button"
);
32
virtual
~TControlBarButton() { }
33
34
virtual
void
Create() { }
35
virtual
void
Action();
36
virtual
const
char
*GetAction()
const
{
return
fAction.Data(); }
37
virtual
Int_t GetType()
const
{
return
fType; }
38
virtual
void
SetAction(
const
char
*action);
39
virtual
void
SetType(
const
char
*type);
40
virtual
void
SetType(Int_t type);
41
42
ClassDef(TControlBarButton,0)
//The Control bar button
43
};
44
45
#endif
Rtypes.h
TNamed.h
graf2d
gpad
inc
TControlBarButton.h
Generated on Tue May 5 2020 14:02:31 for ROOT by
1.8.5