54 Emit(
"DragStarted()");
62 Emit(
"Moved(Int_t)", delta);
81 Error(
"TGVSplitter",
"splitterv.xpm not found");
84 Error(
"TGVSplitter",
"parent must inherit from a TGCompositeFrame");
88 Error(
"TGVSplitter",
"parent must have a horizontal layout manager");
113 Error(
"TGVSplitter",
"splitterv.xpm not found");
148 Error(
"SetFrame",
"resize frame must have kFixedWidth option set");
159 Error(
"HandleButton",
"frame to be resized not set");
182 x,
y, xroot, yroot, wdum);
184 fMax = xroot + w - 2;
204 Int_t xr =
event->fXRoot;
277 Error(
"TGHSplitter",
"parent must inherit from a TGCompositeFrame");
281 Error(
"TGHSplitter",
"parent must have a vertical layout manager");
288 Error(
"TGHSplitter",
"splitterh.xpm not found");
312 Error(
"TGHSplitter",
"splitterh.xpm not found");
347 Error(
"SetFrame",
"resize frame must have kFixedHeight option set");
358 Error(
"HandleButton",
"frame to be resized not set");
381 x,
y, xroot, yroot, wdum);
383 fMax = yroot +
h - 2;
403 Int_t yr =
event->fYRoot;
484 Int_t xr =
event->fXRoot;
543 Emit(
"LayoutListView()");
551 Emit(
"ButtonPressed()");
559 Emit(
"ButtonReleased()");
586 out <<
" TGVSplitter *";
592 out <<
");" << std::endl;
599 if (option && strstr(option,
"keep_names"))
600 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
607 if (
GetLeft()) out <<
",kTRUE);" << std::endl;
608 else out <<
",kFALSE);"<< std::endl;
619 out <<
" TGHSplitter *";
625 out <<
");" << std::endl;
632 if (option && strstr(option,
"keep_names"))
633 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
640 if (
GetAbove()) out <<
",kTRUE);" << std::endl;
641 else out <<
",kFALSE);"<< std::endl;
652 out <<
" TGVFileSplitter *";
658 out <<
");" << std::endl;
665 if (option && strstr(option,
"keep_names"))
666 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
669 if (
GetLeft()) out <<
",kTRUE);" << std::endl;
670 else out <<
",kFALSE);"<< std::endl;
const Mask_t kButtonPressMask
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.
Handle_t Window_t
Window handle.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
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.
virtual void Layout()
Layout the elements of the composite frame.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
static const TGGC & GetBckgndGC()
Get background color graphics context.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a splitter widget as a C++ statement(s) on output stream out.
TGHSplitter(const TGHSplitter &)=delete
const TGFrame * GetFrame() const
virtual void SetFrame(TGFrame *frame, Bool_t above)
Set frame to be resized.
virtual void DrawBorder()
Draw horizontal splitter.
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse motion event in horizontal splitter.
virtual ~TGHSplitter()
Delete horizontal splitter widget.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in horizontal splitter.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in horizontal splitter.
void Draw(Option_t *="")
Default Draw method for all objects.
TGSplitter(const TGSplitter &)=delete
void DragStarted()
Emit DragStarted signal.
void Moved(Int_t delta)
Emit Moved signal.
const TGPicture * fSplitterPic
void ButtonPressed()
Emit ButtonPressed() signal.
virtual ~TGVFileSplitter()
if (fSplitterPic) fClient->FreePicture(fSplitterPic);
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical splitter.
void DoubleClicked(TGVFileSplitter *frame)
Emit DoubleClicked() signal.
void LayoutListView()
Emit LayoutListView() signal.
TGVFileSplitter(const TGVFileSplitter &)=delete
void ButtonReleased()
Emit ButtonReleased() signal.
virtual Bool_t HandleDoubleClick(Event_t *)
Handle double click mouse event in splitter.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in vertical splitter.
void LayoutHeader(TGFrame *f)
Emit LayoutFeader() signal.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a splitter widget as a C++ statement(s) on output stream out.
TGVSplitter(const TGVSplitter &)=delete
virtual ~TGVSplitter()
Delete vertical splitter widget.
const TGFrame * GetFrame() const
virtual void SetFrame(TGFrame *frame, Bool_t left)
Set frame to be resized.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical splitter.
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse motion event in vertical splitter.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a splitter widget as a C++ statement(s) on output stream out.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in vertical splitter.
virtual void DrawBorder()
Draw vertical splitter.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
const TGWindow * GetParent() const
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
EGEventType fType
of event (see EGEventType)