Logo ROOT  
Reference Guide
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 //////////////////////////////////////////////////////////////////////////
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
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);
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
TGuiBldNameFrame::fFrameName
TGTextEntry * fFrameName
Definition: TGuiBldNameFrame.h:43
TGuiBldNameFrame
Definition: TGuiBldNameFrame.h:39
TGWindow
Definition: TGWindow.h:31
TGuiBldNameFrame::DoRedraw
void DoRedraw()
Redraw frame (just a prototype).
Definition: TGuiBldNameFrame.cxx:109
TGuiBldNameFrame::FindItemByName
TGListTreeItem * FindItemByName(TGListTree *tree, const char *name, TGListTreeItem *item=0)
Find item with GetText == name. Search tree downwards starting at item.
Definition: TGuiBldNameFrame.cxx:347
tree
Definition: tree.py:1
TGuiBldNameFrame::ChangeSelected
void ChangeSelected(TGFrame *frame)
Change selected frame.
Definition: TGuiBldNameFrame.cxx:129
TGLabel
Definition: TGLabel.h:32
TGuiBldNameFrame::Reset
void Reset()
Reset name frame.
Definition: TGuiBldNameFrame.cxx:119
Int_t
int Int_t
Definition: RtypesCore.h:45
TRootGuiBuilder
Definition: TRootGuiBuilder.h:65
TGListTree
Definition: TGListTree.h:210
TGuiBldNameFrame::GetMdi
TGCompositeFrame * GetMdi(TGFrame *frame)
Find the parent mdi frame.
Definition: TGuiBldNameFrame.cxx:223
TGuiBldNameFrame::fBuilder
TRootGuiBuilder * fBuilder
Definition: TGuiBldNameFrame.h:46
TGuiBldNameFrame::UpdateName
void UpdateName()
Set new name of frame, if it doesn't already exist in the same MDI frame.
Definition: TGuiBldNameFrame.cxx:180
TGuiBldNameFrame::RemoveFrame
void RemoveFrame(TGFrame *frame)
Remove a frame.
Definition: TGuiBldNameFrame.cxx:335
TGFrame
Definition: TGFrame.h:105
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGuiBldNameFrame::fEditor
TGuiBldEditor * fEditor
Definition: TGuiBldNameFrame.h:44
TGuiBldNameFrame::fLabel
TGLabel * fLabel
Definition: TGuiBldNameFrame.h:42
TGTextEntry
Definition: TGTextEntry.h:39
TGFrame.h
main
int main(int argc, char **argv)
Definition: histspeedtest.cxx:751
TGuiBldNameFrame::fTitleFrame
TGCompositeFrame * fTitleFrame
Definition: TGuiBldNameFrame.h:45
TGuiBldNameFrame::fCanvas
TGCanvas * fCanvas
Definition: TGuiBldNameFrame.h:49
TGuiBldEditor
Definition: TGuiBldEditor.h:39
TGuiBldNameFrame::~TGuiBldNameFrame
virtual ~TGuiBldNameFrame()
Definition: TGuiBldNameFrame.h:56
TGuiBldNameFrame::fListTree
TGListTree * fListTree
Definition: TGuiBldNameFrame.h:48
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGuiBldNameFrame::MapItems
void MapItems(TGCompositeFrame *main)
Map all the frames and subframes in mdi frame to the list tree.
Definition: TGuiBldNameFrame.cxx:242
name
char name[80]
Definition: TGX11.cxx:110
TGuiBldNameFrame::fManager
TGuiBldDragManager * fManager
Definition: TGuiBldNameFrame.h:47
TGuiBldNameFrame::SelectFrameByItem
void SelectFrameByItem(TGListTreeItem *item, Int_t i=0)
When list tree item is clicked, frame with that name is selected.
Definition: TGuiBldNameFrame.cxx:370
TGuiBldNameFrame::CheckItems
Bool_t CheckItems(TGCompositeFrame *main)
Check if items are in the list tree and at the same place.
Definition: TGuiBldNameFrame.cxx:291
TGCompositeFrame
Definition: TGFrame.h:324
TGCanvas
Definition: TGCanvas.h:202
TGListTreeItem
Definition: TGListTree.h:44
TGuiBldNameFrame::TGuiBldNameFrame
TGuiBldNameFrame(const TGWindow *p, TGuiBldEditor *editor)
Constructor.
Definition: TGuiBldNameFrame.cxx:41
TGuiBldDragManager
Definition: TGuiBldDragManager.h:58