77 if (
f)
Resize(
f->GetWidth()/10,
f->GetHeight()/10);
136 Int_t px = 0, py = 0;
142 if (
rect->Contains(event->
fX, event->
fY)) {
145 gClient->GetDefaultRoot()->GetId(),
146 event->fX,
event->fY, px, py, wtarget);
167 if (
rect->Contains(event->
fX, event->
fY)) {
169 if (
rect != oldrect) {
172 oldrect->fY, oldrect->fW, oldrect->fH);
174 oldrect->fW, oldrect->fH);
187 oldrect->fY, oldrect->fW, oldrect->fH);
189 oldrect->fW, oldrect->fH);
398 p->SetHRatio(hratio);
399 p->SetWRatio(wratio);
440 "OnSplitterClicked(Event_t*)");
469 "OnSplitterClicked(Event_t*)");
483 Int_t px = 0, py = 0;
484 Int_t rx = 0, ry = 0;
485 Int_t cx, cy, cw, ch;
489 if (parent && parent->
fSecond ==
this) {
496 fX,
fY, px, py, wtarget);
515 Int_t px = 0, py = 0;
522 gClient->GetDefaultRoot()->GetId(),
523 event->
fX, event->
fY, px, py, wtarget);
542 "In which side the actual frame has to be kept (top / bottom)",
544 if ( strcmp(side,
"") == 0 )
563 if (!strcmp(side,
"top")) {
567 else if (!strcmp(side,
"bottom")) {
590 "In which side the actual frame has to be kept (left / right)",
592 if ( strcmp(side,
"") == 0 )
611 if (!strcmp(side,
"left")) {
615 else if (!strcmp(side,
"right")) {
638 if (!el || !el->
fFrame)
return;
668 dest->RemoveFrame(prev);
682 dest->MapSubwindows();
704 if ((source != prev) && (source !=
dest))
724 if (!strcmp(which,
"first")) {
728 else if (!strcmp(which,
"second")) {
732 if (!kframe || !dframe)
756 out << std::endl <<
" // splittable frame" << std::endl;
757 out <<
" TGSplitFrame *";
763 out <<
");" << std::endl;
771 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
784 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
786 out <<
");"<< std::endl;
const Mask_t kWAOverrideRedirect
const Mask_t kButtonPressMask
Handle_t Window_t
Window handle.
const Mask_t kWASaveUnder
const Mask_t kPointerMotionMask
const Mask_t kStructureNotifyMask
const Mask_t kButtonReleaseMask
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t rect
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t attr
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
R__EXTERN void * gTQSender
TClass instances represent classes, structs and namespaces in the ROOT type system.
TList * GetMenuList() const
Return the list of menu items associated with the class.
void MakeCustomMenuList()
Makes a customizable version of the popup menu list, i.e.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
const TGResourcePool * GetResourcePool() const
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
The base class for composite widgets (menu bars, list boxes, etc.).
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
virtual TGLayoutManager * GetLayoutManager() const
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxiliary protected method used to save subframes.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
void Layout() override
Layout the elements of the composite frame.
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
static const TGGC & GetBlackGC()
Get black graphics context.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
UInt_t fHeight
frame height
void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0) override
Reparent window, make p the new parent and position the window at position (x,y) in new parent.
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
void MapWindow() override
map window
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void Move(Int_t x, Int_t y) override
Move frame.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
void UnmapWindow() override
unmap window
static const TGGC & GetShadowGC()
Get shadow color graphics context.
virtual void SetWidth(UInt_t w)
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
virtual void SetHeight(UInt_t h)
Pixel_t fBackground
frame background color
static const TGGC & GetBckgndGC()
Get background color graphics context.
void SetFillStyle(Int_t v)
Set fill style (kFillSolid, kFillTiled, kFillStippled, kFillOpaeueStippled).
void SetForeground(Pixel_t v)
Set foreground color.
This class describes layout hints used by the layout classes.
virtual void CloseWindow()
Close and delete main frame.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
Pixel_t GetTipBgndColor() const
Cursor_t GetGrabCursor() const
void MapToSPlitTool(TGSplitFrame *top)
Map this split frame in the small overview tooltip.
Bool_t HandleConfigureNotify(Event_t *) override
Handles resize events for this frame.
virtual void VSplit(UInt_t w=0)
Vertically split the frame.
void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr) override
Add a frame in the split frame using layout hints l.
TGSplitFrame * GetFirst() const
void Cleanup() override
Recursively cleanup child frames.
void OnSplitterClicked(Event_t *event)
Handle mouse click events on the splitter.
void SplitVertical(const char *side="left")
Vertically split the frame, and if it contains a child frame, ask the user where to keep it (left or ...
void SwitchToMain()
Switch the actual embedded frame to the main (first) split frame.
TGSplitFrame * fSecond
Pointer to the second child (if any)
TGSplitTool * GetSplitTool() const
virtual void HSplit(UInt_t h=0)
Horizontally split the frame.
TGSplitFrame * GetTopFrame()
Return the top level split frame.
TGSplitFrame(const TGSplitFrame &)=delete
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a splittable frame as a C++ statement(s) on output stream out.
void SwallowBack()
Swallow back the child frame previously extracted, and close its parent (transient frame).
TGFrame * GetFrame() const
TGSplitTool * fSplitTool
SplitFrame Tool.
void RemoveFrame(TGFrame *f) override
Add a frame in the split frame using layout hints l.
TGTransientFrame * fUndocked
Main frame used when "undocking" frame.
TGSplitter * fSplitter
Pointer to the (H/V) Splitter (if any)
void Docked(TGFrame *frame)
Emit Undocked() signal.
void Undocked(TGFrame *frame)
Emit Undocked() signal.
TGFrame * fFrame
Pointer to the embedded frame (if any)
static void SwitchFrames(TGFrame *frame, TGCompositeFrame *dest, TGFrame *prev)
Switch (exchange) two frames.
void Close()
Close (unmap and remove from the list of frames) the frame contained in this split frame.
TGSplitFrame * fFirst
Pointer to the first child (if any)
Float_t fHRatio
Height ratio between the first child and this.
void SplitHorizontal(const char *side="top")
Horizontally split the frame, and if it contains a child frame, ask the user where to keep it (top or...
Float_t fWRatio
Width ratio between the first child and this.
~TGSplitFrame() override
Destructor. Make cleanup.
TGSplitFrame * GetSecond() const
void ExtractFrame()
Extract the frame contained in this split frame an reparent it in a transient frame.
void SplitVer()
Vertically split the frame, and if it contains a child frame, ask the user where to keep it (left or ...
void UnSplit(const char *which)
Close (unmap and remove from the list of frames) the frame contained in this split frame.
void CloseAndCollapse()
Close (unmap, remove from the list of frames and destroy) the frame contained in this split frame.
void SplitHor()
Horizontally split the frame, and if it contains a child frame, ask the user where to keep it (top or...
virtual void SetFrame(TGFrame *frame, Bool_t prev)=0
Defines transient windows that typically are used for dialogs windows.
ROOT GUI Window base class.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
const TGWindow * fParent
Parent window.
const TGWindow * GetParent() const
virtual void RaiseWindow()
raise window
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
void Delete(Option_t *option="") override
Remove all (key,value) pairs from the map AND delete the keys when they are allocated on the heap.
void Add(TObject *obj) override
This function may not be used (but we need to provide it since it is a pure virtual in TCollection).
virtual void SetOwnerValue(Bool_t enable=kTRUE)
Set whether this map is the owner (enable==true) of its values.
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
Mother of all ROOT objects.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
EGEventType fType
of event (see EGEventType)
Int_t fY
pointer x, y coordinates in event window
Window_t fWindow
window reported event is relative to
UInt_t fCode
key or button code
Attributes that can be used when creating or changing a window.