Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TRootControlBar.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gui:$Id$
0002 // Author: Fons Rademakers   22/02/98
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2021, 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_TRootControlBar
0013 #define ROOT_TRootControlBar
0014 
0015 
0016 #include "TControlBarImp.h"
0017 #include "TGFrame.h"
0018 
0019 class TControlBar;
0020 class TList;
0021 
0022 
0023 class TRootControlBar : public TGMainFrame, public TControlBarImp {
0024 
0025 private:
0026    TList          *fWidgets; ///< list of TGTextButton or TGPictureButtons
0027    TGLayoutHints  *fL1;      ///< button layout hints
0028    UInt_t          fBwidth;  ///< button width in pixels
0029 
0030 public:
0031    TRootControlBar(TControlBar *c = nullptr, const char *title = "ROOT Control Bar",
0032                    Int_t x = -999, Int_t y = -999);
0033    ~TRootControlBar() override;
0034 
0035    void Create() override;
0036    void Hide() override;
0037    void Show() override;
0038 
0039    TList *GetWidgets() const { return fWidgets; }
0040 
0041    // overridden from TGMainFrame
0042    void   CloseWindow() override;
0043    Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override;
0044    void   ReallyDelete() override;
0045    void   SetButtonState(const char *label, Int_t state = 0) override;
0046    void   SetButtonWidth(UInt_t width) override;
0047    void   SetFont(const char *fontName) override;
0048    void   SetTextColor(const char *colorName) override;
0049 
0050    ClassDefOverride(TRootControlBar,0)  //ROOT native GUI implementation of TControlBar
0051 };
0052 
0053 #endif