TRootControlBar.h

Go to the documentation of this file.
00001 // @(#)root/gui:$Id: TRootControlBar.h 23115 2008-04-10 13:35:37Z rdm $
00002 // Author: Fons Rademakers   22/02/98
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_TRootControlBar
00013 #define ROOT_TRootControlBar
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TRootControlBar                                                      //
00019 //                                                                      //
00020 // This class provides an interface to the GUI dependent functions of   //
00021 // the TControlBar class. A control bar is a horizontal or vertical bar //
00022 // with a number of buttons (text or picture buttons).                  //
00023 //                                                                      //
00024 //////////////////////////////////////////////////////////////////////////
00025 
00026 #ifndef ROOT_TControlBarImp
00027 #include "TControlBarImp.h"
00028 #endif
00029 #ifndef ROOT_TGFrame
00030 #include "TGFrame.h"
00031 #endif
00032 
00033 class TControlBar;
00034 class TList;
00035 
00036 
00037 class TRootControlBar : public TGMainFrame, public TControlBarImp {
00038 
00039 private:
00040    TList          *fWidgets; // list of TGTextButton or TGPictureButtons
00041    TGLayoutHints  *fL1;      // button layout hints
00042    UInt_t          fBwidth;  // button width in pixels
00043 
00044 public:
00045    TRootControlBar(TControlBar *c = 0, const char *title = "ROOT Control Bar", 
00046                    Int_t x = -999, Int_t y = -999);
00047    virtual ~TRootControlBar();
00048 
00049    void Create();
00050    void Hide();
00051    void Show();
00052 
00053    TList *GetWidgets() const { return fWidgets; }
00054 
00055    // overridden from TGMainFrame
00056    void   CloseWindow();
00057    Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
00058    void   ReallyDelete();
00059    void   SetButtonState(const char *label, Int_t state = 0);
00060    void   SetButtonWidth(UInt_t width);
00061    void   SetFont(const char *fontName);
00062    void   SetTextColor(const char *colorName);
00063 
00064    ClassDef(TRootControlBar,0)  //ROOT native GUI implementation of TControlBar
00065 };
00066 
00067 #endif

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