Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // @(#)root/guibuilder:$Id$
0002 // Author: Valeriy Onuchin   12/09/04
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, 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_TGuiBldNameFrame
0013 #define ROOT_TGuiBldNameFrame
0014 
0015 
0016 #include "TGFrame.h"
0017 
0018 class TGLabel;
0019 class TGTextEntry;
0020 class TGuiBldEditor;
0021 class TGuiBldEditor;
0022 class TRootGuiBuilder;
0023 class TGListTree;
0024 class TGFrame;
0025 class TGCanvas;
0026 class TGListTreeItem;
0027 class TGuiBldDragManager;
0028 
0029 
0030 //////////////////////////////////////////////////////////////////////////
0031 class TGuiBldNameFrame : public TGCompositeFrame {
0032 
0033 private:
0034    TGLabel              *fLabel;       // label of frame class name
0035    TGTextEntry          *fFrameName;   // name of the frame
0036    TGuiBldEditor        *fEditor;      // pointer to main editor
0037    TGCompositeFrame     *fTitleFrame;  // frame saying that it's "Name Frame"
0038    TRootGuiBuilder      *fBuilder;     // pointer to builder
0039    TGuiBldDragManager   *fManager;     // main manager
0040    TGListTree           *fListTree;    // list tree containing frames hierarchy
0041    TGCanvas             *fCanvas;
0042 
0043 protected:
0044    void DoRedraw() override;
0045 
0046 public:
0047    TGuiBldNameFrame(const TGWindow *p, TGuiBldEditor *editor);
0048    ~TGuiBldNameFrame() override { }
0049 
0050    void              ChangeSelected(TGFrame *frame);
0051    Bool_t            CheckItems(TGCompositeFrame *main);
0052    TGListTreeItem   *FindItemByName(TGListTree *tree, const char* name, TGListTreeItem *item = nullptr);
0053    TGCompositeFrame *GetMdi(TGFrame *frame);
0054    void              MapItems(TGCompositeFrame *main);
0055    void              RemoveFrame(TGFrame *frame) override;
0056    void              Reset();
0057    void              SelectFrameByItem(TGListTreeItem* item, Int_t i = 0);
0058    void              UpdateName();
0059 
0060    ClassDefOverride(TGuiBldNameFrame, 0) // frame name editor
0061 };
0062 
0063 
0064 #endif