Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGuiBldEditor.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_TGuiBldEditor
13#define ROOT_TGuiBldEditor
14
15
16#include "TGFrame.h"
17
18#include "TGNumberEntry.h"
19
25class TGTab;
26class TGButton;
27class TGLabel;
28class TGGroupFrame;
30
31//////////////////////////////////////////////////////////////////////////
33
34friend class TGuiBldDragManager;
35
36private:
37 TGFrame *fSelected; // edited frame
42 TGGroupFrame *fPositionFrame; // X,Y coordinates
43 TGuiBldDragManager *fManager; // main manager
44 Bool_t fEmbedded; // kTRUE when it is inside guibuilder
45 TGTab *fTab; // tab frame
46 TGCompositeFrame *fTablay; // layout tab frame
47 Int_t fLayoutId; // the id of layout tab
48 TGTextButton *fLayoutButton; // button to enable/disable layout
49 TGLabel *fLayoutLabel; // saying if layout is enabled
50 TGNumberEntry *fXpos; // X position
51 TGNumberEntry *fYpos; // Y position
52
53public:
54 TGuiBldEditor(const TGWindow *p = nullptr);
55 ~TGuiBldEditor() override;
56
57 Int_t GetXPos() const { return fXpos->GetIntNumber(); }
58 Int_t GetYPos() const { return fYpos->GetIntNumber(); }
59 void SetXPos(Int_t pos) { fXpos->SetIntNumber(pos); }
60 void SetYPos(Int_t pos) { fYpos->SetIntNumber(pos); }
61
62 TGFrame *GetSelected() const { return fSelected; }
63 Bool_t IsEmbedded() const { return fEmbedded; }
65 void Hide();
66 void UpdateBorder(Int_t);
67 void UpdateBackground(Pixel_t col);
68 void UpdateForeground(Pixel_t col);
69 void Reset();
71
72 void RemoveFrame(TGFrame *) override;
73 void TabSelected(Int_t id);
74 void UpdateSelected(TGFrame* = nullptr); //*SIGNAL*
75 void ChangeSelected(TGFrame*); //*SIGNAL*
76 void SwitchLayout();
77
78 ClassDefOverride(TGuiBldEditor,0) // frame property editor
79};
80
81#endif
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define e(i)
Definition RSha256.hxx:103
int Int_t
Definition RtypesCore.h:45
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
winID h TVirtualViewer3D TVirtualGLPainter p
A button abstract base class.
Definition TGButton.h:68
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
A composite frame with a border and a title.
Definition TGFrame.h:522
This class handles GUI labels.
Definition TGLabel.h:24
TGNumberEntry is a number entry input widget with up/down buttons.
virtual void SetIntNumber(Long_t val, Bool_t emit=kTRUE)
virtual Long_t GetIntNumber() const
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
Definition TGTab.h:46
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A composite frame that layout their children in vertical way.
Definition TGFrame.h:374
ROOT GUI Window base class.
Definition TGWindow.h:23
Drag and drop manager used by the ROOT GUI Builder.
The property editor.
void ChangeSelected(TGFrame *)
Change selected frame.
TGuiBldHintsEditor * fHintsFrame
TGuiBldNameFrame * fNameFrame
void SetXPos(Int_t pos)
void UpdateSelected(TGFrame *=nullptr)
Update selected frame.
void Reset()
Reset the editor.
void SetYPos(Int_t pos)
void RemoveFrame(TGFrame *) override
Remove a frame.
TGFrame * GetSelected() const
TGTextButton * fLayoutButton
void SetEmbedded(Bool_t e=kTRUE)
TGuiBldDragManager * fManager
TGFrame * fSelected
TGNumberEntry * fXpos
TGuiBldGeometryFrame * fGeomFrame
TGLabel * fLayoutLabel
void TabSelected(Int_t id)
Handle selected.
TGNumberEntry * fYpos
void SwitchLayout()
Popup dialog to set layout of edited frame off.
void Hide()
Hide editor.
void UpdateForeground(Pixel_t col)
Update foreground.
TGCompositeFrame * fTablay
Int_t GetXPos() const
Int_t GetYPos() const
Bool_t IsEmbedded() const
TGGroupFrame * fPositionFrame
TGuiBldHintsEditor * GetHintsEditor() const
void UpdateBorder(Int_t)
Update border of selected frame.
void UpdateBackground(Pixel_t col)
Update background.
~TGuiBldEditor() override
Destructor.
TGuiBldBorderFrame * fBorderFrame
Editor of widget's layout hints used by the ROOT GUI builder.