TGroupButton.h

Go to the documentation of this file.
00001 // @(#)root/gpad:$Id: TGroupButton.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   01/07/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_TGroupButton
00013 #define ROOT_TGroupButton
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //
00017 // TGroupButton
00018 //
00019 //  A TGroupButton object is a specialized TButton used in a group of Buttons.
00020 //  When a button from a group of TGroupButtons is selected, all other buttons
00021 //  from the group with the same name are disabled.
00022 //
00023 //  For examples of use of TGroupButton objects, see:
00024 //    TAttFillCanvas, TAttLineCanvas, TAttTextCanvas and TAttMarkerCanvas.
00025 //  A TGroupButton object is a specialized TPad including possible list
00026 //  of primitives used to build selections and options menus in a canvas.
00027 //
00028 //////////////////////////////////////////////////////////////////////////
00029 
00030 #ifndef ROOT_TButton
00031 #include "TButton.h"
00032 #endif
00033 
00034 class TGroupButton : public TButton {
00035 
00036 private:
00037    TGroupButton(const TGroupButton &org);  // no copy, use TObject::Clone()
00038    TGroupButton &operator=(const TGroupButton &rhs);  // idem
00039 
00040 public:
00041    TGroupButton();
00042    TGroupButton(const char *groupname, const char *title, const char *method, Double_t x1, Double_t y1,Double_t x2 ,Double_t y2);
00043    virtual ~TGroupButton();
00044    virtual void  DisplayColorTable(const char *action, Double_t x0, Double_t y0, Double_t wc, Double_t hc);
00045    virtual void  ExecuteAction();
00046    virtual void  ExecuteEvent(Int_t event, Int_t px, Int_t py);
00047    virtual void  SavePrimitive(ostream &out, Option_t *option = "");
00048    ClassDef(TGroupButton,0)  //A user interface button in a group of buttons.
00049 };
00050 
00051 #endif
00052 

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