12 #ifndef ROOT_TControlBar 13 #define ROOT_TControlBar 41 TControlBar(
const char *orientation,
const char *title=
"");
47 void AddButton(
const char *label,
const char *action,
const char *hint=
"",
const char *
type=
"button");
59 void SetFont(
const char *fontName);
void Show()
Show control bar.
void AddButton(TControlBarButton *button)
Add button.
TControlBar()
Default constructor.
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
void SetTextColor(const char *colorName)
Sets text color for control bar buttons, e.g.
void SetFont(const char *fontName)
Sets new font for control bar buttons, e.g.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
ABC describing GUI independent control bar.
Int_t fOrientation
orientation
virtual ~TControlBar()
Destructor.
#define ClassDef(name, id)
void SetButtonWidth(UInt_t width)
Sets the width in pixels for control bar button.
TControlBarButton * GetClicked() const
Returns a pointer to the last clicked control bar button; null if no button was clicked yet...
TControlBarImp * fControlBarImp
system specific implementation
void Initialize(Int_t x, Int_t y)
Initialize control bar.
void SetNumberOfColumns(Int_t n)
Int_t GetOrientation() const
Int_t GetNumberOfColumns() const
virtual void Create()
Create control bar.
Int_t GetNumberOfRows() const
void SetNumberOfRows(Int_t n)
void AddControlBar(TControlBar *controlBar)
Add control bar.
void Hide()
Hide control bar.
TList * GetListOfButtons() const
void SetOrientation(const char *o)
Set control bar orientation.
void AddSeparator()
Add separator.
void SetButtonState(const char *label, Int_t state=0)
Sets a state for control bar button 'label'; possible states are 0-kButtonUp, 1-kButtonDown, 2-kButtonEngaged, 3-kButtonDisabled,.
Int_t fNoroc
number of rows or columns
TControlBarImp * GetControlBarImp() const
TList * fButtons
list of buttons