ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
graf2d
gpad
inc
TGroupButton.h
Go to the documentation of this file.
1
// @(#)root/gpad:$Id$
2
// Author: Rene Brun 01/07/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_TGroupButton
13
#define ROOT_TGroupButton
14
15
//////////////////////////////////////////////////////////////////////////
16
//
17
// TGroupButton
18
//
19
// A TGroupButton object is a specialized TButton used in a group of Buttons.
20
// When a button from a group of TGroupButtons is selected, all other buttons
21
// from the group with the same name are disabled.
22
//
23
// For examples of use of TGroupButton objects, see:
24
// TAttFillCanvas, TAttLineCanvas, TAttTextCanvas and TAttMarkerCanvas.
25
// A TGroupButton object is a specialized TPad including possible list
26
// of primitives used to build selections and options menus in a canvas.
27
//
28
//////////////////////////////////////////////////////////////////////////
29
30
#ifndef ROOT_TButton
31
#include "
TButton.h
"
32
#endif
33
34
class
TGroupButton
:
public
TButton
{
35
36
private
:
37
TGroupButton
(
const
TGroupButton
&
org
);
// no copy, use TObject::Clone()
38
TGroupButton
&
operator=
(
const
TGroupButton
&rhs);
// idem
39
40
public
:
41
TGroupButton
();
42
TGroupButton
(
const
char
*groupname,
const
char
*title,
const
char
*method,
Double_t
x1
,
Double_t
y1,
Double_t
x2
,
Double_t
y2);
43
virtual
~TGroupButton
();
44
virtual
void
DisplayColorTable
(
const
char
*action,
Double_t
x0,
Double_t
y0,
Double_t
wc,
Double_t
hc);
45
virtual
void
ExecuteAction
();
46
virtual
void
ExecuteEvent
(
Int_t
event,
Int_t
px,
Int_t
py);
47
virtual
void
SavePrimitive
(std::ostream &
out
,
Option_t
*option =
""
);
48
ClassDef
(
TGroupButton
,0)
//A user interface button in a group of buttons.
49
};
50
51
#endif
52
TAttBBox2D::ClassDef
ClassDef(TAttBBox2D, 0)
Option_t
const char Option_t
Definition:
RtypesCore.h:62
TButton.h
Int_t
int Int_t
Definition:
RtypesCore.h:41
TGroupButton::TGroupButton
TGroupButton()
TGroupButton::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition:
TGroupButton.cxx:217
x2
static const double x2[5]
Definition:
RooGaussKronrodIntegrator1D.cxx:344
out
char * out
Definition:
TBase64.cxx:29
TGroupButton::ExecuteAction
virtual void ExecuteAction()
Execute action of this button.
Definition:
TGroupButton.cxx:99
TGroupButton::ExecuteEvent
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition:
TGroupButton.cxx:148
TButton
A TButton object is a user interface object.
Definition:
TButton.h:32
x1
static const double x1[5]
Definition:
RooGaussKronrodIntegrator1D.cxx:326
Double_t
double Double_t
Definition:
RtypesCore.h:55
TGroupButton::~TGroupButton
virtual ~TGroupButton()
GroupButton default destructor.
Definition:
TGroupButton.cxx:59
TGroupButton::operator=
TGroupButton & operator=(const TGroupButton &rhs)
org
#define org(otri, vertexptr)
Definition:
triangle.c:1037
TGroupButton::DisplayColorTable
virtual void DisplayColorTable(const char *action, Double_t x0, Double_t y0, Double_t wc, Double_t hc)
Display Color Table in an attribute canvas.
Definition:
TGroupButton.cxx:66
TGroupButton
A specialized TButton used in a group of Buttons.
Definition:
TGroupButton.h:34