12 #ifndef ROOT_TControlBar 13 #define ROOT_TControlBar 16 #ifndef ROOT_TControlBarButton 20 #ifndef ROOT_TControlBarImp 45 TControlBar(
const char *orientation,
const char *title=
"");
51 void AddButton(
const char *label,
const char *action,
const char *hint=
"",
const char *
type=
"button");
63 void SetFont(
const char *fontName);
void Show()
Show control bar.
TList * GetListOfButtons() const
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.
TControlBarImp * GetControlBarImp() const
void SetFont(const char *fontName)
Sets new font for control bar buttons, e.g.
ABC describing GUI independent control bar.
Int_t fOrientation
orientation
Int_t GetNumberOfRows() const
virtual ~TControlBar()
Destructor.
#define ClassDef(name, id)
void SetButtonWidth(UInt_t width)
Sets the width in pixels for control bar button.
TControlBarImp * fControlBarImp
system specific implementation
TControlBarButton * GetClicked() const
Returns a pointer to the last clicked control bar button; null if no button was clicked yet...
void Initialize(Int_t x, Int_t y)
Initialize control bar.
void SetNumberOfColumns(Int_t n)
virtual void Create()
Create control bar.
Int_t GetOrientation() const
void SetNumberOfRows(Int_t n)
void AddControlBar(TControlBar *controlBar)
Add control bar.
Int_t GetNumberOfColumns() const
void Hide()
Hide control bar.
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
TList * fButtons
list of buttons