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()");
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;
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.