Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGuiBldNameFrame.h
Go to the documentation of this file.
1 // @(#)root/guibuilder:$Id$
2 // Author: Valeriy Onuchin 12/09/04
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGuiBldNameFrame
13 #define ROOT_TGuiBldNameFrame
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TGuiBldNameFrame - frame sdisplaying the class name of frame //
18 // and the name of frame //
19 // //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 
24 #include "TGFrame.h"
25 
26 class TGLabel;
27 class TGTextEntry;
28 class TGuiBldEditor;
29 class TGuiBldEditor;
30 class TRootGuiBuilder;
31 class TGListTree;
32 class TGFrame;
33 class TGCanvas;
34 class TGListTreeItem;
35 class TGuiBldDragManager;
36 
37 
38 //////////////////////////////////////////////////////////////////////////
39 class TGuiBldNameFrame : public TGCompositeFrame {
40 
41 private:
42  TGLabel *fLabel; // label of frame class name
43  TGTextEntry *fFrameName; // name of the frame
44  TGuiBldEditor *fEditor; // pointer to main editor
45  TGCompositeFrame *fTitleFrame; // frame saying that it's "Name Frame"
46  TRootGuiBuilder *fBuilder; // pointer to builder
47  TGuiBldDragManager *fManager; // main manager
48  TGListTree *fListTree; // list tree containing frames hierarchy
49  TGCanvas *fCanvas;
50 
51 protected:
52  void DoRedraw();
53 
54 public:
55  TGuiBldNameFrame(const TGWindow *p, TGuiBldEditor *editor);
56  virtual ~TGuiBldNameFrame() { }
57 
58  void ChangeSelected(TGFrame *frame);
59  Bool_t CheckItems(TGCompositeFrame *main);
60  TGListTreeItem *FindItemByName(TGListTree *tree, const char* name, TGListTreeItem *item = 0);
61  TGCompositeFrame *GetMdi(TGFrame *frame);
62  void MapItems(TGCompositeFrame *main);
63  void RemoveFrame(TGFrame *frame);
64  void Reset();
65  void SelectFrameByItem(TGListTreeItem* item, Int_t i = 0);
66  void UpdateName();
67 
68  ClassDef(TGuiBldNameFrame, 0) // frame name editor
69 };
70 
71 
72 #endif