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