TControlBarButton.h

Go to the documentation of this file.
00001 // @(#)root/gpad:$Id: TControlBarButton.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Nenad Buncic   20/02/96
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TControlBarButton
00013 #define ROOT_TControlBarButton
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////////////////
00017 //                                                                            //
00018 // TControlBarButton                                                          //
00019 //                                                                            //
00020 // This class defines the control bar buttons.                                //
00021 //                                                                            //
00022 //                                                                            //
00023 //                                                                            //
00024 ////////////////////////////////////////////////////////////////////////////////
00025 
00026 #ifndef ROOT_Rtypes
00027 #include "Rtypes.h"
00028 #endif
00029 
00030 #ifndef ROOT_TNamed
00031 #include "TNamed.h"
00032 #endif
00033 
00034 
00035 class TControlBarButton : public TNamed {
00036 
00037 protected:
00038    Int_t    fType;       //button type
00039    TString  fAction;     //action to be executed
00040 
00041 public:
00042    enum { kButton = 1, kDrawnButton, kSeparator };
00043 
00044    TControlBarButton();
00045    TControlBarButton(const char *label, const char *action="", const char *hint="", const char *type="button");
00046    virtual ~TControlBarButton() { }
00047 
00048    virtual void        Create() { }
00049    virtual void        Action();
00050    virtual const char *GetAction() const { return fAction.Data(); }
00051    virtual Int_t       GetType() const { return fType; }
00052    virtual void        SetAction(const char *action);
00053    virtual void        SetType(const char *type);
00054    virtual void        SetType(Int_t type);
00055 
00056    ClassDef(TControlBarButton,0) //The Control bar button
00057 };
00058 
00059 #endif

Generated on Tue Jul 5 14:13:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1