Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:37

0001 // @(#)root/gpad:$Id$
0002 // Author: Nenad Buncic   20/02/96
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
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;       ///< button type
0021    TString  fAction;     ///< action to be executed
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) //The Control bar button
0039 };
0040 
0041 #endif