55 Emit(
"DragStarted()");
63 Emit(
"Moved(Int_t)", delta);
82 Error(
"TGVSplitter",
"splitterv.xpm not found");
85 Error(
"TGVSplitter",
"parent must inherit from a TGCompositeFrame");
89 Error(
"TGVSplitter",
"parent must have a horizontal layout manager");
114 Error(
"TGVSplitter",
"splitterv.xpm not found");
149 Error(
"SetFrame",
"resize frame must have kFixedWidth option set");
160 Error(
"HandleButton",
"frame to be resized not set");
278 Error(
"TGHSplitter",
"parent must inherit from a TGCompositeFrame");
282 Error(
"TGHSplitter",
"parent must have a vertical layout manager");
289 Error(
"TGHSplitter",
"splitterh.xpm not found");
313 Error(
"TGHSplitter",
"splitterh.xpm not found");
348 Error(
"SetFrame",
"resize frame must have kFixedHeight option set");
359 Error(
"HandleButton",
"frame to be resized not set");
503 p->Resize(
p->GetWidth() + delta,
p->GetHeight() );
544 Emit(
"LayoutListView()");
552 Emit(
"ButtonPressed()");
560 Emit(
"ButtonReleased()");
588 out <<
" TGVSplitter *" <<
GetName() <<
" = new TGVSplitter(" <<
fParent->GetName() <<
", " <<
GetWidth() <<
", "
592 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
598 out <<
" " <<
GetName() <<
"->SetFrame(" <<
GetFrame()->GetName() <<
", kTRUE);\n";
609 out <<
" TGHSplitter *" <<
GetName() <<
" = new TGHSplitter(" <<
fParent->GetName() <<
", " <<
GetWidth() <<
", "
613 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
619 out <<
" " <<
GetName() <<
"->SetFrame(" <<
GetFrame()->GetName() <<
", kTRUE);\n";
629 out <<
" TGVFileSplitter *" <<
GetName() <<
" = new TGVFileSplitter(" <<
fParent->GetName() <<
"," <<
GetWidth()
633 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
635 out <<
" " <<
GetName() <<
"->SetFrame(" <<
GetFrame()->GetName() <<
", " << (
GetLeft() ?
"kTRUE" :
"kFALSE")
const Mask_t kButtonPressMask
Handle_t Window_t
Window handle.
const Mask_t kAnyModifier
const Mask_t kPointerMotionMask
const Mask_t kLeaveWindowMask
const Mask_t kButtonReleaseMask
const Mask_t kEnterWindowMask
ULong_t Pixel_t
Pixel value.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
winID h TVirtualViewer3D TVirtualGLPainter p
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void FreePicture(const TGPicture *pic)
Free picture resource.
The base class for composite widgets (menu bars, list boxes, etc.).
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.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
UInt_t fHeight
frame height
virtual UInt_t GetOptions() const
TString SaveCtorArgs(std::ostream &out, UInt_t dflt_options=kChildFrame, Bool_t check_white_pixel=kFALSE)
Return options and custom color as constructor args Used in the SavePrimitive methods,...
static const TGGC & GetBckgndGC()
Get background color graphics context.
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in horizontal splitter.
TGHSplitter(const TGHSplitter &)=delete
const TGFrame * GetFrame() const
UInt_t fFrameHeight
height of frame to be resized
void DrawBorder() override
Draw horizontal splitter.
Bool_t HandleCrossing(Event_t *event) override
Handle mouse motion event in horizontal splitter.
TGFrame * fFrame
frame that should be resized
void SetFrame(TGFrame *frame, Bool_t above) override
Set frame to be resized.
Bool_t fAbove
true if frame is above the splitter
Int_t fStartY
y position when dragging starts
~TGHSplitter() override
Delete horizontal splitter widget.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a splitter widget as a C++ statement(s) on output stream out.
Int_t fMin
min y position frame can be resized to
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in horizontal splitter.
UInt_t fFrameWidth
width of frame to be resized
Int_t fMax
max y position frame can be resized to
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
A splitter allows the frames left and right or above and below of it to be resized.
TGSplitter(const TGSplitter &)=delete
Cursor_t fSplitCursor
split cursor
void DragStarted()
Emit DragStarted signal.
void Moved(Int_t delta)
Emit Moved signal.
const TGPicture * fSplitterPic
picture to draw splitter
Bool_t fDragging
true if in dragging mode
Bool_t fExternalHandler
true when splitter movement is handled externally
void ButtonPressed()
Emit ButtonPressed() signal.
void DoubleClicked(TGVFileSplitter *frame)
Emit DoubleClicked() signal.
void LayoutListView()
Emit LayoutListView() signal.
TGVFileSplitter(const TGVFileSplitter &)=delete
void ButtonReleased()
Emit ButtonReleased() signal.
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in vertical splitter.
~TGVFileSplitter() override
if (fSplitterPic) fClient->FreePicture(fSplitterPic);
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in vertical splitter.
void LayoutHeader(TGFrame *f)
Emit LayoutFeader() signal.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a splitter widget as a C++ statement(s) on output stream out.
Bool_t HandleDoubleClick(Event_t *) override
Handle double click mouse event in splitter.
Int_t fMin
min x position frame can be resized to
UInt_t fFrameHeight
height of frame to be resized
TGVSplitter(const TGVSplitter &)=delete
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a splitter widget as a C++ statement(s) on output stream out.
const TGFrame * GetFrame() const
~TGVSplitter() override
Delete vertical splitter widget.
void DrawBorder() override
Draw vertical splitter.
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in vertical splitter.
TGFrame * fFrame
frame that should be resized
Int_t fMax
max x position frame can be resized to
UInt_t fFrameWidth
width of frame to be resized
Int_t fStartX
x position when dragging starts
Bool_t fLeft
true if frame is on the left of splitter
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in vertical splitter.
Bool_t HandleCrossing(Event_t *event) override
Handle mouse motion event in vertical splitter.
void SetFrame(TGFrame *frame, Bool_t left) override
Set frame to be resized.
ROOT GUI Window base class.
const TGWindow * fParent
Parent window.
const TGWindow * GetParent() const
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
UInt_t fEditDisabled
flags used for "guibuilding"
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
EGEventType fType
of event (see EGEventType)