#ifndef ROOT_TControlBar
#define ROOT_TControlBar
#ifndef ROOT_TControlBarButton
#include "TControlBarButton.h"
#endif
#ifndef ROOT_TControlBarImp
#include "TControlBarImp.h"
#endif
class TList;
class TControlBar : public TControlBarButton {
friend class TControlBarImp;
private:
virtual void Create();
void Initialize(Int_t x, Int_t y);
protected:
TControlBarImp *fControlBarImp;
Int_t fOrientation;
TList *fButtons;
Int_t fNoroc;
public:
enum { kVertical = 1, kHorizontal = 2 };
TControlBar();
TControlBar(const char *orientation, const char *title="");
TControlBar(const char *orientation, const char *title, Int_t x, Int_t y);
virtual ~TControlBar();
void AddButton(TControlBarButton *button);
void AddButton(TControlBarButton &button);
void AddButton(const char *label, const char *action, const char *hint="", const char *type="button");
void AddControlBar(TControlBar *controlBar);
void AddControlBar(TControlBar &controlBar);
void AddSeparator();
TControlBarButton *GetClicked() const;
TControlBarImp *GetControlBarImp() const { return fControlBarImp; }
TList *GetListOfButtons() const { return fButtons; }
Int_t GetNumberOfColumns() const { return fNoroc; }
Int_t GetNumberOfRows() const { return fNoroc; }
Int_t GetOrientation() const { return fOrientation; }
void Hide();
void SetButtonState(const char *label, Int_t state = 0);
void SetFont(const char *fontName);
void SetTextColor(const char *colorName);
void SetNumberOfColumns(Int_t n) { fNoroc = n; }
void SetNumberOfRows(Int_t n) { fNoroc = n; }
void SetOrientation(const char *o);
void SetOrientation(Int_t o);
void SetButtonWidth(UInt_t width);
void Show();
ClassDef(TControlBar,0)
};
#endif
Last change: Wed Jun 25 08:35:49 2008
Last generated: 2008-06-25 08:35
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.