TControlBar
class description - source file - inheritance tree
private:
virtual void Create()
void Initialize(Int_t x, Int_t y)
public:
TControlBar TControlBar()
TControlBar TControlBar(Text_t* orientation, Text_t* title)
TControlBar TControlBar(Text_t* orientation, Text_t* title, Int_t x, Int_t y)
TControlBar TControlBar(TControlBar&)
virtual void ~TControlBar()
void AddButton(TControlBarButton* button)
void AddButton(TControlBarButton& button)
void AddButton(Text_t* label, Text_t* action, Text_t* hint, Text_t* type = button)
void AddControlBar(TControlBar* controlBar)
void AddControlBar(TControlBar& controlBar)
void AddSeparator()
TClass* Class()
TControlBarImp* GetControlBarImp()
TList* GetListOfButtons()
Int_t GetNumberOfColumns()
Int_t GetNumberOfRows()
Int_t GetOrientation()
void Hide()
virtual TClass* IsA()
void SetNumberOfColumns(Int_t n)
void SetNumberOfRows(Int_t n)
void SetOrientation(Text_t* o)
void SetOrientation(Int_t o)
void Show()
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
protected:
TControlBarImp* fControlBarImp system specific implementation
Int_t fOrientation orientation
TList* fButtons list of buttons
Int_t fNoroc number of rows or columns
public:
static const enum kVertical
static const enum kHorizontal
ControlBar is fully user configurable tool which provides fast
access to frequently used operations. User can choose between
buttons and drawnbuttons (let's say icons) and assign to them his
own actions (let's say ROOT or C++ commands).
The macro belows shows an example of controlbar.
To execute an item, click with the left mouse button.
To see the HELP of a button, click on the right mouse button.
{
gROOT.Reset("a");
TControlBar bar("vertical");
bar.AddButton("Help to run demos",".x demoshelp.C",
"Explains how to run the demos");
bar.AddButton("framework", ".x framework.C",
"An Example of Object Oriented User Interface");
bar.AddButton("hsimple", ".x hsimple.C",
"An Example Creating Histograms/Ntuples on File");
bar.AddButton("hsum", ".x hsum.C",
"Filling histograms and some graphics options");
bar.AddButton("canvas", ".x canvas.C",
"Canvas and Pad Management");
bar.AddButton("formula1", ".x formula1.C",
"Simple Formula and Functions");
bar.AddButton("fillrandom", ".x fillrandom.C",
"Histograms with Random Numbers from a Function");
bar.AddButton("fit1", ".x fit1.C",
"A Simple Fitting Example");
bar.AddButton("h1draw", ".x h1draw.C",
"Drawing Options for 1D Histograms");
bar.AddButton("graph", ".x graph.C",
"Examples of a simple graph");
bar.AddButton("tornado", ".x tornado.C",
"Examples of 3-D PolyMarkers");
bar.AddButton("shapes", ".x shapes.C",
"The Geometry Shapes");
bar.AddButton("atlasna49", ".x atlasna49.C",
"Creating and Viewing Geometries");
bar.AddButton("file_layout", ".x file.C",
"The ROOT file format");
bar.AddButton("tree_layout", ".x tree.C",
"The Tree Data Structure");
bar.AddButton("ntuple1", ".x ntuple1.C",
"Ntuples and Selections");
bar.AddButton("run benchmarks", ".x benchmarks.C",
"Runs all the ROOT benchmarks");
bar.AddButton("rootmarks", ".x rootmarks.C",
"Prints an estimated ROOTMARKS for your machine");
bar.AddButton("edit_hsimple", ".!ved hsimple.C &",
"Invokes the text editor on file hsimple.C");
bar.AddButton("Close Bar", "gROOT.Reset("a")",
"Close ControlBar");
bar.Show();
gROOT.SaveContext();
}
/*
*/
TControlBar() : TControlBarButton()
TControlBar(Text_t *orientation, Text_t *title)
: TControlBarButton(title, "", "", "button")
TControlBar(Text_t *orientation, Text_t *title, Int_t x, Int_t y)
: TControlBarButton(title, "", "", "button")
~TControlBar()
void AddButton(TControlBarButton &button)
void AddButton(TControlBarButton *button)
void AddButton(Text_t *label, Text_t *action, Text_t *hint, Text_t *type)
void AddControlBar(TControlBar &controlBar)
void AddControlBar(TControlBar *controlBar)
void AddSeparator()
void Create()
void Hide()
void Initialize(Int_t x, Int_t y)
void SetOrientation(Text_t *o)
void SetOrientation(Int_t o)
void Show()
Inline Functions
TControlBarImp* GetControlBarImp()
TList* GetListOfButtons()
Int_t GetNumberOfColumns()
Int_t GetNumberOfRows()
Int_t GetOrientation()
void SetNumberOfColumns(Int_t n)
void SetNumberOfRows(Int_t n)
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
TControlBar TControlBar(TControlBar&)
Author: Nenad Buncic 20/02/96
Last update: 2.00/08 25/05/98 18.32.39 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.