266 Error(
"SetButtonState",
"not valid button state (expecting 0, 1, 2 or 3)");
289 if( !strcasecmp( o,
"vertical" ) )
291 else if( !strcasecmp( o,
"horizontal" ) )
294 Error(
"SetOrientation",
"Unknown orientation: '%s' !\n\t\t(choice of: %s, %s)",
295 o,
"vertical",
"horizontal" );
309 Error(
"SetOrientation",
"Unknown orientation: %d !\n\t\t(choice of: %d, %d)",
329 Printf(
"None of the control bar buttons is clicked yet");
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
externTApplication * gApplication
externTGuiFactory * gGuiFactory
externTGuiFactory * gBatchGuiFactory
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
void SetFont(const char *fontName)
Sets new font for control bar buttons, e.g.:
TList * fButtons
list of buttons
void Show()
Show control bar.
Int_t fOrientation
orientation
void AddSeparator()
Add separator.
Int_t fNoroc
number of rows or columns
void Initialize(Int_t x, Int_t y)
Initialize control bar.
TControlBarButton * GetClicked() const
Returns a pointer to the last clicked control bar button; null if no button was clicked yet.
void AddControlBar(TControlBar *controlBar)
Add control bar.
TControlBarImp * fControlBarImp
system specific implementation
~TControlBar() override
Destructor.
void SetOrientation(const char *o)
Set control bar orientation.
void SetButtonState(const char *label, Int_t state=0)
Sets a state for control bar button 'label'; possible states are 0-kButtonUp, 1-kButtonDown,...
void SetButtonWidth(UInt_t width)
Sets the width in pixels for control bar button.
void Create() override
Create control bar.
void AddButton(TControlBarButton *button)
Add button.
void SetTextColor(const char *colorName)
Sets text color for control bar buttons, e.g.:
TControlBar()
Default constructor.
void Hide()
Hide control bar.
const char * GetName() const override
Returns name of object.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.