Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TGFrame.h"
17
18class TGLabel;
19class TGTextEntry;
20class TGuiBldEditor;
21class TGuiBldEditor;
22class TRootGuiBuilder;
23class TGListTree;
24class TGFrame;
25class TGCanvas;
26class TGListTreeItem;
28
29
30//////////////////////////////////////////////////////////////////////////
32
33private:
34 TGLabel *fLabel; // label of frame class name
35 TGTextEntry *fFrameName; // name of the frame
36 TGuiBldEditor *fEditor; // pointer to main editor
37 TGCompositeFrame *fTitleFrame; // frame saying that it's "Name Frame"
38 TRootGuiBuilder *fBuilder; // pointer to builder
39 TGuiBldDragManager *fManager; // main manager
40 TGListTree *fListTree; // list tree containing frames hierarchy
42
43protected:
44 void DoRedraw();
45
46public:
47 TGuiBldNameFrame(const TGWindow *p, TGuiBldEditor *editor);
48 virtual ~TGuiBldNameFrame() { }
49
50 void ChangeSelected(TGFrame *frame);
55 void RemoveFrame(TGFrame *frame);
56 void Reset();
57 void SelectFrameByItem(TGListTreeItem* item, Int_t i = 0);
58 void UpdateName();
59
60 ClassDef(TGuiBldNameFrame, 0) // frame name editor
61};
62
63
64#endif
int main()
Definition Prototype.cxx:12
int Int_t
Definition RtypesCore.h:45
bool Bool_t
Definition RtypesCore.h:63
#define ClassDef(name, id)
Definition Rtypes.h:325
char name[80]
Definition TGX11.cxx:110
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
Definition TGCanvas.h:192
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Definition TGFrame.h:80
This class handles GUI labels.
Definition TGLabel.h:24
A list tree is a widget that can contain a number of items arranged in a tree structure.
Definition TGListTree.h:195
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
ROOT GUI Window base class.
Definition TGWindow.h:23
Drag and drop manager used by the ROOT GUI Builder.
The property editor.
void Reset()
Reset name frame.
Bool_t CheckItems(TGCompositeFrame *main)
Check if items are in the list tree and at the same place.
void UpdateName()
Set new name of frame, if it doesn't already exist in the same MDI frame.
void RemoveFrame(TGFrame *frame)
Remove a frame.
TGListTree * fListTree
TRootGuiBuilder * fBuilder
TGCompositeFrame * fTitleFrame
void MapItems(TGCompositeFrame *main)
Map all the frames and subframes in mdi frame to the list tree.
void SelectFrameByItem(TGListTreeItem *item, Int_t i=0)
When list tree item is clicked, frame with that name is selected.
TGTextEntry * fFrameName
TGuiBldEditor * fEditor
void DoRedraw()
Redraw frame (just a prototype).
TGCompositeFrame * GetMdi(TGFrame *frame)
Find the parent mdi frame.
TGuiBldDragManager * fManager
virtual ~TGuiBldNameFrame()
void ChangeSelected(TGFrame *frame)
Change selected frame.
TGListTreeItem * FindItemByName(TGListTree *tree, const char *name, TGListTreeItem *item=0)
Find item with GetText == name. Search tree downwards starting at item.
Definition tree.py:1