#ifndef ROOT_TControlBarButton #define ROOT_TControlBarButton //+SEQ,CopyRight,T=NOINCLUDE. //////////////////////////////////////////////////////////////////////////////// // // // TControlBarButton // // // // This class defines the control bar buttons. // // // // // // // //////////////////////////////////////////////////////////////////////////////// #ifndef ROOT_Rtypes //*KEEP,Rtypes. #include "Rtypes.h" //*KEND. #endif #ifndef ROOT_TNamed //*KEEP,TNamed. #include "TNamed.h" //*KEND. #endif class TControlBarButton : public TNamed { protected: Int_t fType; //button type TString fAction; //action to be executed public: enum { kButton = 1, kDrawnButton, kSeparator }; TControlBarButton(); TControlBarButton(const char *label, const char *action="", const char *hint="", const char *type="button"); virtual ~TControlBarButton() { } virtual void Create() { } virtual void Action(); virtual const char *GetAction() const { return fAction.Data(); } virtual Int_t GetType() const { return fType; } virtual void SetAction(const char *action); virtual void SetType(const char *type); virtual void SetType(Int_t type); ClassDef(TControlBarButton,0) //The Control bar button }; #endif