53 Emit(
"DragStarted()");
61 Emit(
"Moved(Int_t)", delta);
80 Error(
"TGVSplitter",
"splitterv.xpm not found");
83 Error(
"TGVSplitter",
"parent must inherit from a TGCompositeFrame");
87 Error(
"TGVSplitter",
"parent must have a horizontal layout manager");
112 Error(
"TGVSplitter",
"splitterv.xpm not found");
147 Error(
"SetFrame",
"resize frame must have kFixedWidth option set");
158 Error(
"HandleButton",
"frame to be resized not set");
181 x,
y, xroot, yroot, wdum);
183 fMax = xroot + w - 2;
203 Int_t xr =
event->fXRoot;
276 Error(
"TGHSplitter",
"parent must inherit from a TGCompositeFrame");
280 Error(
"TGHSplitter",
"parent must have a vertical layout manager");
287 Error(
"TGHSplitter",
"splitterh.xpm not found");
311 Error(
"TGHSplitter",
"splitterh.xpm not found");
346 Error(
"SetFrame",
"resize frame must have kFixedHeight option set");
357 Error(
"HandleButton",
"frame to be resized not set");
380 x,
y, xroot, yroot, wdum);
382 fMax = yroot +
h - 2;
402 Int_t yr =
event->fYRoot;
483 Int_t xr =
event->fXRoot;
542 Emit(
"LayoutListView()");
550 Emit(
"ButtonPressed()");
558 Emit(
"ButtonReleased()");
585 out <<
" TGVSplitter *";
591 out <<
");" << std::endl;
598 if (option && strstr(option,
"keep_names"))
599 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
606 if (
GetLeft()) out <<
",kTRUE);" << std::endl;
607 else out <<
",kFALSE);"<< std::endl;
618 out <<
" TGHSplitter *";
624 out <<
");" << std::endl;
631 if (option && strstr(option,
"keep_names"))
632 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
639 if (
GetAbove()) out <<
",kTRUE);" << std::endl;
640 else out <<
",kFALSE);"<< std::endl;
651 out <<
" TGVFileSplitter *";
657 out <<
");" << std::endl;
664 if (option && strstr(option,
"keep_names"))
665 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
668 if (
GetLeft()) out <<
",kTRUE);" << std::endl;
669 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
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.
const TGFrame * GetFrame() const
virtual void SetFrame(TGFrame *frame, Bool_t above)
Set frame to be resized.
virtual void DrawBorder()
Draw horizontal splitter.
TGHSplitter(const TGHSplitter &)
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 &)
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.
void ButtonReleased()
Emit ButtonReleased() signal.
virtual Bool_t HandleDoubleClick(Event_t *)
Handle double click mouse event in splitter.
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 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 &)
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".
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.