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");
R__EXTERN TApplication * gApplication
include TDocParser_001 C image html pict1_TDocParser_001 png width
R__EXTERN TGuiFactory * gGuiFactory
void Printf(const char *fmt,...)
R__EXTERN TStyle * gStyle
void InitializeGraphics()
Initialize the graphics environment.
virtual void SetButtonWidth(UInt_t)
virtual void SetTextColor(const char *)
virtual void SetButtonState(const char *, Int_t)
virtual void SetFont(const char *)
virtual TControlBarButton * GetClicked()
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
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.
virtual ~TControlBar()
Destructor.
TControlBarImp * fControlBarImp
system specific implementation
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.
virtual void Create()
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.
virtual TControlBarImp * CreateControlBarImp(TControlBar *c, const char *title)
Create a batch version of TControlBarImp.
virtual void Add(TObject *obj)
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual const char * GetName() const
Returns name of object.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Float_t GetScreenFactor() const