forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TGuiBldNameFrame.h
64 lines (50 loc) · 2.2 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
// @(#)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
#include "TGFrame.h"
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() override;
public:
TGuiBldNameFrame(const TGWindow *p, TGuiBldEditor *editor);
~TGuiBldNameFrame() override { }
void ChangeSelected(TGFrame *frame);
Bool_t CheckItems(TGCompositeFrame *main);
TGListTreeItem *FindItemByName(TGListTree *tree, const char* name, TGListTreeItem *item = nullptr);
TGCompositeFrame *GetMdi(TGFrame *frame);
void MapItems(TGCompositeFrame *main);
void RemoveFrame(TGFrame *frame) override;
void Reset();
void SelectFrameByItem(TGListTreeItem* item, Int_t i = 0);
void UpdateName();
ClassDefOverride(TGuiBldNameFrame, 0) // frame name editor
};
#endif