270 Error(
"SetButtonState",
"not valid button state (expecting 0, 1, 2 or 3)");
293 if( !strcasecmp( o,
"vertical" ) )
295 else if( !strcasecmp( o,
"horizontal" ) )
298 Error(
"SetOrientation",
"Unknown orientation: '%s' !\n\t\t(choice of: %s, %s)",
299 o,
"vertical",
"horizontal" );
313 Error(
"SetOrientation",
"Unknown orientation: %d !\n\t\t(choice of: %d, %d)",
333 Printf(
"None of the control bar buttons is clicked yet");
void Show()
Show control bar.
virtual TControlBarButton * GetClicked()
virtual const char * GetName() const
Returns name of object.
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...
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
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.
R__EXTERN TStyle * gStyle
virtual void SetTextColor(const char *)
Int_t fOrientation
orientation
virtual ~TControlBar()
Destructor.
R__EXTERN TApplication * gApplication
Float_t GetScreenFactor() const
virtual void SetButtonWidth(UInt_t)
virtual void SetFont(const char *)
R__EXTERN TGuiFactory * gGuiFactory
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.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Create()
Create control bar.
void InitializeGraphics()
Initialize the graphics environment.
void AddControlBar(TControlBar *controlBar)
Add control bar.
void Hide()
Hide control bar.
virtual void Add(TObject *obj)
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,.
virtual TControlBarImp * CreateControlBarImp(TControlBar *c, const char *title)
Create a batch version of TControlBarImp.
Int_t fNoroc
number of rows or columns
virtual void SetButtonState(const char *, Int_t)
TList * fButtons
list of buttons