38 TGFrame(p, w, h, options, back),
40 fExternalHandler (kFALSE),
44 fEditDisabled =
kTRUE;
52 Emit(
"DragStarted()");
60 Emit(
"Moved(Int_t)", delta);
79 Error(
"TGVSplitter",
"splitterv.xpm not found");
82 Error(
"TGVSplitter",
"parent must inherit from a TGCompositeFrame");
86 Error(
"TGVSplitter",
"parent must have a horizontal layout manager");
111 Error(
"TGVSplitter",
"splitterv.xpm not found");
146 Error(
"SetFrame",
"resize frame must have kFixedWidth option set");
157 Error(
"HandleButton",
"frame to be resized not set");
180 x,
y, xroot, yroot, wdum);
182 fMax = xroot + w - 2;
202 Int_t xr =
event->fXRoot;
275 Error(
"TGHSplitter",
"parent must inherit from a TGCompositeFrame");
279 Error(
"TGHSplitter",
"parent must have a vertical layout manager");
286 Error(
"TGHSplitter",
"splitterh.xpm not found");
310 Error(
"TGHSplitter",
"splitterh.xpm not found");
345 Error(
"SetFrame",
"resize frame must have kFixedHeight option set");
356 Error(
"HandleButton",
"frame to be resized not set");
379 x,
y, xroot, yroot, wdum);
381 fMax = yroot + h - 2;
401 Int_t yr =
event->fYRoot;
482 Int_t xr =
event->fXRoot;
541 Emit(
"LayoutListView()");
549 Emit(
"ButtonPressed()");
557 Emit(
"ButtonReleased()");
565 Emit(
"DoubleClicked(TGVFileSplitter*)", (
Long_t) splitter);
584 out <<
" TGVSplitter *";
590 out <<
");" << std::endl;
597 if (option && strstr(option,
"keep_names"))
598 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
605 if (
GetLeft()) out <<
",kTRUE);" << std::endl;
606 else out <<
",kFALSE);"<< std::endl;
617 out <<
" TGHSplitter *";
623 out <<
");" << std::endl;
630 if (option && strstr(option,
"keep_names"))
631 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
638 if (GetAbove()) out <<
",kTRUE);" << std::endl;
639 else out <<
",kFALSE);"<< std::endl;
650 out <<
" TGVFileSplitter *";
656 out <<
");" << std::endl;
663 if (option && strstr(option,
"keep_names"))
664 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
667 if (
GetLeft()) out <<
",kTRUE);" << std::endl;
668 else out <<
",kFALSE);"<< std::endl;
void ButtonReleased()
Emit ButtonReleased() signal.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
void DoubleClicked(TGVFileSplitter *frame)
Emit DoubleClicked() signal.
virtual void DrawBorder()
Draw vertical splitter.
virtual void DrawBorder()
Draw horizontal splitter.
virtual UInt_t GetOptions() const
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in horizontal splitter.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
virtual Bool_t HandleDoubleClick(Event_t *)
Handle double click mouse event in splitter.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a splitter widget as a C++ statement(s) on output stream out.
const Mask_t kLeaveWindowMask
virtual void SetFrame(TGFrame *frame, Bool_t left)
Set frame to be resized.
void ButtonPressed()
Emit ButtonPressed() signal.
TGVSplitter(const TGVSplitter &)
virtual void Layout()
Layout the elements of the composite frame.
void Draw(Option_t *="")
Default Draw method for all objects.
const Mask_t kPointerMotionMask
const TGFrame * GetFrame() const
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void FreePicture(const TGPicture *pic)
Free picture resource.
void Moved(Int_t delta)
Emit Moved signal.
virtual ~TGHSplitter()
Delete horizontal splitter widget.
const Mask_t kButtonPressMask
virtual ~TGVSplitter()
Delete vertical splitter widget.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void SetFrame(TGFrame *frame, Bool_t above)
Set frame to be resized.
virtual ~TGVFileSplitter()
if (fSplitterPic) fClient->FreePicture(fSplitterPic);
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical splitter.
const Mask_t kEnterWindowMask
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse motion event in horizontal splitter.
void DragStarted()
Emit DragStarted signal.
const Mask_t kButtonReleaseMask
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
const TGWindow * GetParent() const
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.
TGVFileSplitter(const TGWindow *p=0, UInt_t w=4, UInt_t h=4, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
fSplitterPic = fClient->GetPicture("filesplitterv.xpm");
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse motion event in vertical splitter.
void LayoutListView()
Emit LayoutListView() signal.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in horizontal splitter.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in vertical splitter.
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
TGHSplitter(const TGHSplitter &)
virtual Bool_t HandleMotion(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.
const Mask_t kAnyModifier
const TGPicture * fSplitterPic
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical splitter.
static const TGGC & GetBckgndGC()
Get background color graphics context.