File indexing completed on 2025-01-18 10:11:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TControlBarButton
0013 #define ROOT_TControlBarButton
0014
0015 #include "TNamed.h"
0016
0017 class TControlBarButton : public TNamed {
0018
0019 protected:
0020 Int_t fType;
0021 TString fAction;
0022
0023 public:
0024 enum { kButton = 1, kDrawnButton, kSeparator };
0025
0026 TControlBarButton();
0027 TControlBarButton(const char *label, const char *action="", const char *hint="", const char *type="button");
0028 ~TControlBarButton() override {}
0029
0030 virtual void Create() {}
0031 virtual void Action();
0032 virtual const char *GetAction() const { return fAction.Data(); }
0033 virtual Int_t GetType() const { return fType; }
0034 virtual void SetAction(const char *action);
0035 virtual void SetType(const char *type);
0036 virtual void SetType(Int_t type);
0037
0038 ClassDefOverride(TControlBarButton,0)
0039 };
0040
0041 #endif