35 fUseSplitters (
kTRUE),
50 fUseSplitters (
kTRUE),
149 Int_t frameLength = 0;
159 sumFrames += frameLength;
167 Int_t remain = nflen-sumFrames;
217 if (el->
fFrame == splitter)
241 s->
Connect(
"Moved(Int_t)",
"TGPack",
this,
"HandleSplitterResize(Int_t)");
242 s->
Connect(
"DragStarted()",
"TGPack",
this,
"HandleSplitterStart()");
347 printf(
"--------------------------------------------------------------\n");
356 printf(
"--------------------------------------------------------------\n");
585 f1->fWeight -= weightDelta;
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void MapSubwindows()
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
TGFrameElementPack * fSplitFE
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and resize the pack.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
R__EXTERN void * gTQSender
void CheckSplitterVisibility()
Check if splitter of first visible frame is hidden.
void ResizeExistingFrames()
Resize (shrink or expand) existing frames by amount in total.
virtual void Dump() const
Print sub frame info.
virtual ~TGPack()
Destructor.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
void EqualizeFrames()
Refit existing frames so that their lengths are equal.
virtual Bool_t IsEmpty() const
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent...
TGFrameElement * GetFrameElement() const
void HandleSplitterResize(Int_t delta)
Handle resize events from splitters.
void SetVertical(Bool_t x)
Sets the vertical flag and reformats the back to new stacking direction.
virtual void DeleteFrame(TGFrame *f)
Remove frame f and refit existing frames to pack size.
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...
virtual void Resize(UInt_t w, UInt_t h)
Resize the window.
void RefitFramesToPack()
Refit existing frames to pack size.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the pack.
static TGLayoutHints * fgDefaultHints
Bool_t TestBit(UInt_t f) const
virtual void RemoveFrame(TGFrame *f)
Remove frame f and refit existing frames to pack size.
void FindFrames(TGFrame *splitter, TGFrameElementPack *&f0, TGFrameElementPack *&f1) const
Find frames around splitter and return them f0 (previous) and f1 (next).
virtual TGFrameElement * FindFrameElement(TGFrame *f) const
Find frame-element holding frame f.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual void Move(Int_t x, Int_t y)
Move frame.
virtual void Layout()
Reposition the frames so that they fit correctly.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame f at the end with default weight.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
void SetFramePosition(TGFrame *f, Int_t pos)
Set pack-wise position of frame f.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual void UnmapWindow()
void AddFrameInternal(TGFrame *f, TGLayoutHints *l=0, Float_t weight=1)
Add frame f at the end.
void HandleSplitterStart()
Called when splitter drag starts.
virtual void Add(TObject *obj)
void RemoveFrameInternal(TGFrame *f)
Remove frame f.
virtual void MapSubwindows()
Virtual method of TGcompositeFrame.
Int_t GetFrameLength(const TGFrame *f) const
virtual void AddFrameWithWeight(TGFrame *f, TGLayoutHints *l, Float_t w)
Add frame f at the end with given weight.
void SetFrameLength(TGFrame *f, Int_t len)
Set pack-wise length of frame f.
Int_t GetAvailableLength() const
Return length of entire frame without splitters.
virtual void RemoveFirst()