TRootEmbeddedCanvas Class Reference

#include <TRootEmbeddedCanvas.h>

Inheritance diagram for TRootEmbeddedCanvas:

TGCanvas TGCanvas TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 TRootEmbeddedCanvas (const char *name=0, const TGWindow *p=0, UInt_t w=10, UInt_t h=10, UInt_t options=kSunkenFrame|kDoubleBorder, Pixel_t back=GetDefaultFrameBackground())
virtual ~TRootEmbeddedCanvas ()
void AdoptCanvas (TCanvas *c)
TCanvasGetCanvas () const
Int_t GetCanvasWindowId () const
Bool_t GetAutoFit () const
void SetAutoFit (Bool_t fit=kTRUE)
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual Bool_t HandleDNDDrop (TDNDData *data)
virtual Atom_t HandleDNDPosition (Int_t, Int_t, Atom_t action, Int_t, Int_t)
virtual Atom_t HandleDNDEnter (Atom_t *typelist)
virtual Bool_t HandleDNDLeave ()
 TRootEmbeddedCanvas (const char *name=0, const TGWindow *p=0, UInt_t w=10, UInt_t h=10, UInt_t options=kSunkenFrame|kDoubleBorder, Pixel_t back=GetDefaultFrameBackground())
virtual ~TRootEmbeddedCanvas ()
void AdoptCanvas (TCanvas *c)
TCanvasGetCanvas () const
Int_t GetCanvasWindowId () const
Bool_t GetAutoFit () const
void SetAutoFit (Bool_t fit=kTRUE)
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual Bool_t HandleDNDDrop (TDNDData *data)
virtual Atom_t HandleDNDPosition (Int_t, Int_t, Atom_t action, Int_t, Int_t)
virtual Atom_t HandleDNDEnter (Atom_t *typelist)
virtual Bool_t HandleDNDLeave ()

Protected Member Functions

virtual Bool_t HandleContainerButton (Event_t *ev)
virtual Bool_t HandleContainerDoubleClick (Event_t *ev)
virtual Bool_t HandleContainerConfigure (Event_t *ev)
virtual Bool_t HandleContainerKey (Event_t *ev)
virtual Bool_t HandleContainerMotion (Event_t *ev)
virtual Bool_t HandleContainerExpose (Event_t *ev)
virtual Bool_t HandleContainerCrossing (Event_t *ev)
virtual Bool_t HandleContainerButton (Event_t *ev)
virtual Bool_t HandleContainerDoubleClick (Event_t *ev)
virtual Bool_t HandleContainerConfigure (Event_t *ev)
virtual Bool_t HandleContainerKey (Event_t *ev)
virtual Bool_t HandleContainerMotion (Event_t *ev)
virtual Bool_t HandleContainerExpose (Event_t *ev)
virtual Bool_t HandleContainerCrossing (Event_t *ev)

Protected Attributes

Int_t fCWinId
TRootEmbeddedContainerfCanvasContainer
TCanvasfCanvas
Bool_t fAutoFit
Int_t fButton
Atom_tfDNDTypeList
TRootEmbeddedContainerfCanvasContainer
TCanvasfCanvas
Atom_tfDNDTypeList

Private Member Functions

 TRootEmbeddedCanvas (const TRootEmbeddedCanvas &)
TRootEmbeddedCanvasoperator= (const TRootEmbeddedCanvas &)
 TRootEmbeddedCanvas (const TRootEmbeddedCanvas &)
TRootEmbeddedCanvasoperator= (const TRootEmbeddedCanvas &)

Friends

class TRootEmbeddedContainer

Detailed Description

Definition at line 34 of file TRootEmbeddedCanvas.h.


Constructor & Destructor Documentation

TRootEmbeddedCanvas::TRootEmbeddedCanvas ( const TRootEmbeddedCanvas  )  [private]

TRootEmbeddedCanvas::TRootEmbeddedCanvas ( const char *  name = 0,
const TGWindow p = 0,
UInt_t  w = 10,
UInt_t  h = 10,
UInt_t  options = kSunkenFrame|kDoubleBorder,
Pixel_t  back = GetDefaultFrameBackground() 
)

TRootEmbeddedCanvas::~TRootEmbeddedCanvas (  )  [virtual]

Definition at line 168 of file TRootEmbeddedCanvas.cxx.

References fCanvas, fCanvasContainer, fDNDTypeList, and TGWindow::MustCleanup().

TRootEmbeddedCanvas::TRootEmbeddedCanvas ( const TRootEmbeddedCanvas  )  [private]

TRootEmbeddedCanvas::TRootEmbeddedCanvas ( const char *  name = 0,
const TGWindow p = 0,
UInt_t  w = 10,
UInt_t  h = 10,
UInt_t  options = kSunkenFrame|kDoubleBorder,
Pixel_t  back = GetDefaultFrameBackground() 
)

virtual TRootEmbeddedCanvas::~TRootEmbeddedCanvas (  )  [virtual]


Member Function Documentation

Bool_t TRootEmbeddedCanvas::HandleContainerButton ( Event_t ev  )  [protected, virtual]

Definition at line 190 of file TRootEmbeddedCanvas.cxx.

References fButton, fCanvas, Event_t::fCode, Event_t::fState, Event_t::fType, Event_t::fX, Event_t::fY, TCanvas::HandleInput(), kButton1, kButton1Down, kButton1Up, kButton2, kButton2Down, kButton2Up, kButton3, kButton3Down, kButton3Up, kButton4, kButton5, kButtonPress, kButtonRelease, kKeyShiftMask, kTRUE, x, and y.

Referenced by TRootEmbeddedContainer::HandleButton().

Bool_t TRootEmbeddedCanvas::HandleContainerDoubleClick ( Event_t ev  )  [protected, virtual]

Definition at line 234 of file TRootEmbeddedCanvas.cxx.

References fCanvas, Event_t::fCode, Event_t::fX, Event_t::fY, TCanvas::HandleInput(), kButton1, kButton1Double, kButton2, kButton2Double, kButton3, kButton3Double, kTRUE, x, and y.

Referenced by TRootEmbeddedContainer::HandleDoubleClick().

Bool_t TRootEmbeddedCanvas::HandleContainerConfigure ( Event_t ev  )  [protected, virtual]

Definition at line 255 of file TRootEmbeddedCanvas.cxx.

References fAutoFit, fCanvas, kTRUE, TCanvas::Resize(), and TCanvas::Update().

Referenced by TRootEmbeddedContainer::HandleConfigureNotify().

Bool_t TRootEmbeddedCanvas::HandleContainerKey ( Event_t ev  )  [protected, virtual]

Definition at line 267 of file TRootEmbeddedCanvas.cxx.

References fButton, fCanvas, Event_t::fCode, Event_t::fType, gROOT, gVirtualX, TCanvas::HandleInput(), kGKeyPress, kKeyPress, kKeyRelease, kTRUE, TROOT::SetInterrupt(), and str.

Referenced by TRootEmbeddedContainer::HandleKey().

Bool_t TRootEmbeddedCanvas::HandleContainerMotion ( Event_t ev  )  [protected, virtual]

Definition at line 288 of file TRootEmbeddedCanvas.cxx.

References fButton, fCanvas, Event_t::fState, Event_t::fX, Event_t::fY, TCanvas::HandleInput(), kButton1, kButton1Motion, kButton2, kButton2Motion, kKeyShiftMask, kMouseMotion, kTRUE, x, and y.

Referenced by TRootEmbeddedContainer::HandleMotion().

Bool_t TRootEmbeddedCanvas::HandleContainerExpose ( Event_t ev  )  [protected, virtual]

Definition at line 312 of file TRootEmbeddedCanvas.cxx.

References fCanvas, Event_t::fCount, TCanvas::Flush(), and kTRUE.

Referenced by TRootEmbeddedContainer::HandleExpose().

Bool_t TRootEmbeddedCanvas::HandleContainerCrossing ( Event_t ev  )  [protected, virtual]

Definition at line 325 of file TRootEmbeddedCanvas.cxx.

References fCanvas, Event_t::fCode, Event_t::fType, Event_t::fX, Event_t::fY, TCanvas::HandleInput(), kLeaveNotify, kMouseLeave, kNotifyNormal, kTRUE, x, and y.

Referenced by TRootEmbeddedContainer::HandleCrossing().

TRootEmbeddedCanvas& TRootEmbeddedCanvas::operator= ( const TRootEmbeddedCanvas  )  [private]

void TRootEmbeddedCanvas::AdoptCanvas ( TCanvas c  ) 

Definition at line 180 of file TRootEmbeddedCanvas.cxx.

References c, fCanvas, fCWinId, TGFrame::fHeight, and TGFrame::fWidth.

Referenced by TStylePreview::Update().

TCanvas* TRootEmbeddedCanvas::GetCanvas (  )  const [inline]

Definition at line 65 of file TRootEmbeddedCanvas.h.

References fCanvas.

Referenced by TSessionQueryFrame::Build(), TProofProgressMemoryPlot::Clear(), DNDMainFrame::DNDMainFrame(), Spy::DoButton(), MyMainFrame::DoDraw(), TProofProgressMemoryPlot::DoPlot(), TTripleSliderDemo::DoSlider(), TTripleSliderDemo::DoText(), TestDialog::FillHistos(), TStylePreview::GetMainCanvas(), TMemStatDrawDlg::PlaceEmbeddedCanvas(), TMemStatDrawDlg::ReDraw(), RootShower::RootShower(), SavePrimitive(), TGShapedToolTip::SetHisto(), Viewer::SetRange(), TGShapedToolTip::Show(), TestDialog::TestDialog(), TTripleSliderDemo::TTripleSliderDemo(), TStylePreview::Update(), TASPaletteEditor::UpdateScreen(), Viewer::Viewer(), XSGui::XSGui(), and TGColorDialog::~TGColorDialog().

Int_t TRootEmbeddedCanvas::GetCanvasWindowId (  )  const [inline]

Definition at line 66 of file TRootEmbeddedCanvas.h.

References fCWinId.

Referenced by TStylePreview::Update().

Bool_t TRootEmbeddedCanvas::GetAutoFit (  )  const [inline]

Definition at line 67 of file TRootEmbeddedCanvas.h.

References fAutoFit.

void TRootEmbeddedCanvas::SetAutoFit ( Bool_t  fit = kTRUE  )  [inline]

Definition at line 68 of file TRootEmbeddedCanvas.h.

References fAutoFit.

void TRootEmbeddedCanvas::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGCanvas.

Definition at line 450 of file TRootEmbeddedCanvas.cxx.

References TString::Data(), TGFrame::fBackground, TString::Format(), TGWindow::fParent, GetCanvas(), TGFrame::GetDefaultFrameBackground(), TGFrame::GetHeight(), TGWindow::GetName(), TGFrame::GetOptions(), TGFrame::GetOptionString(), TGFrame::GetWidth(), kDoubleBorder, kSunkenFrame, n, and TGFrame::SaveUserColor().

Bool_t TRootEmbeddedCanvas::HandleDNDDrop ( TDNDData data  )  [virtual]

Reimplemented from TGFrame.

Definition at line 343 of file TRootEmbeddedCanvas.cxx.

References buf, xmlio::Class, TString::Data(), data, TObject::Draw(), TString::EndsWith(), Form(), gPad, gROOT, gVirtualX, kFALSE, TBuffer::kRead, kTRUE, TString::Length(), object, TImage::Open(), TROOT::ProcessLine(), and TString::ReplaceAll().

Atom_t TRootEmbeddedCanvas::HandleDNDPosition ( Int_t  ,
Int_t  ,
Atom_t  action,
Int_t  ,
Int_t   
) [virtual]

Reimplemented from TGFrame.

Definition at line 402 of file TRootEmbeddedCanvas.cxx.

References TPad::cd(), fCanvas, gClient, TCanvas::GetCanvasID(), TGClient::GetDefaultRoot(), TGObject::GetId(), gROOT, gVirtualX, TCanvas::Pick(), TROOT::SetSelectedPad(), and TPad::Update().

Atom_t TRootEmbeddedCanvas::HandleDNDEnter ( Atom_t typelist  )  [virtual]

Reimplemented from TGFrame.

Definition at line 425 of file TRootEmbeddedCanvas.cxx.

References gVirtualX, i, kFALSE, and kNone.

Bool_t TRootEmbeddedCanvas::HandleDNDLeave (  )  [virtual]

Reimplemented from TGFrame.

Definition at line 442 of file TRootEmbeddedCanvas.cxx.

References kTRUE.

virtual Bool_t TRootEmbeddedCanvas::HandleContainerButton ( Event_t ev  )  [protected, virtual]

virtual Bool_t TRootEmbeddedCanvas::HandleContainerDoubleClick ( Event_t ev  )  [protected, virtual]

virtual Bool_t TRootEmbeddedCanvas::HandleContainerConfigure ( Event_t ev  )  [protected, virtual]

virtual Bool_t TRootEmbeddedCanvas::HandleContainerKey ( Event_t ev  )  [protected, virtual]

virtual Bool_t TRootEmbeddedCanvas::HandleContainerMotion ( Event_t ev  )  [protected, virtual]

virtual Bool_t TRootEmbeddedCanvas::HandleContainerExpose ( Event_t ev  )  [protected, virtual]

virtual Bool_t TRootEmbeddedCanvas::HandleContainerCrossing ( Event_t ev  )  [protected, virtual]

TRootEmbeddedCanvas& TRootEmbeddedCanvas::operator= ( const TRootEmbeddedCanvas  )  [private]

void TRootEmbeddedCanvas::AdoptCanvas ( TCanvas c  ) 

TCanvas* TRootEmbeddedCanvas::GetCanvas (  )  const [inline]

Definition at line 65 of file TRootEmbeddedCanvas.h.

References fCanvas.

Int_t TRootEmbeddedCanvas::GetCanvasWindowId (  )  const [inline]

Definition at line 66 of file TRootEmbeddedCanvas.h.

References fCWinId.

Bool_t TRootEmbeddedCanvas::GetAutoFit (  )  const [inline]

Definition at line 67 of file TRootEmbeddedCanvas.h.

References fAutoFit.

void TRootEmbeddedCanvas::SetAutoFit ( Bool_t  fit = kTRUE  )  [inline]

Definition at line 68 of file TRootEmbeddedCanvas.h.

References fAutoFit.

virtual void TRootEmbeddedCanvas::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGCanvas.

virtual Bool_t TRootEmbeddedCanvas::HandleDNDDrop ( TDNDData data  )  [virtual]

Reimplemented from TGFrame.

virtual Atom_t TRootEmbeddedCanvas::HandleDNDPosition ( Int_t  ,
Int_t  ,
Atom_t  action,
Int_t  ,
Int_t   
) [virtual]

Reimplemented from TGFrame.

virtual Atom_t TRootEmbeddedCanvas::HandleDNDEnter ( Atom_t typelist  )  [virtual]

Reimplemented from TGFrame.

virtual Bool_t TRootEmbeddedCanvas::HandleDNDLeave (  )  [virtual]

Reimplemented from TGFrame.


Friends And Related Function Documentation

TRootEmbeddedContainer [friend]

Definition at line 36 of file TRootEmbeddedCanvas.h.


Member Data Documentation

Int_t TRootEmbeddedCanvas::fCWinId [protected]

Definition at line 39 of file TRootEmbeddedCanvas.h.

Referenced by AdoptCanvas(), and GetCanvasWindowId().

TRootEmbeddedContainer* TRootEmbeddedCanvas::fCanvasContainer [protected]

Definition at line 40 of file TRootEmbeddedCanvas.h.

Referenced by ~TRootEmbeddedCanvas().

TCanvas* TRootEmbeddedCanvas::fCanvas [protected]

Definition at line 41 of file TRootEmbeddedCanvas.h.

Referenced by AdoptCanvas(), GetCanvas(), HandleContainerButton(), HandleContainerConfigure(), HandleContainerCrossing(), HandleContainerDoubleClick(), HandleContainerExpose(), HandleContainerKey(), HandleContainerMotion(), HandleDNDPosition(), and ~TRootEmbeddedCanvas().

Bool_t TRootEmbeddedCanvas::fAutoFit [protected]

Definition at line 42 of file TRootEmbeddedCanvas.h.

Referenced by GetAutoFit(), HandleContainerConfigure(), and SetAutoFit().

Int_t TRootEmbeddedCanvas::fButton [protected]

Definition at line 43 of file TRootEmbeddedCanvas.h.

Referenced by HandleContainerButton(), HandleContainerKey(), and HandleContainerMotion().

Atom_t* TRootEmbeddedCanvas::fDNDTypeList [protected]

Definition at line 44 of file TRootEmbeddedCanvas.h.

Referenced by ~TRootEmbeddedCanvas().

TRootEmbeddedContainer* TRootEmbeddedCanvas::fCanvasContainer [protected]

Definition at line 40 of file TRootEmbeddedCanvas.h.

TCanvas* TRootEmbeddedCanvas::fCanvas [protected]

Definition at line 41 of file TRootEmbeddedCanvas.h.

Atom_t* TRootEmbeddedCanvas::fDNDTypeList [protected]

Definition at line 44 of file TRootEmbeddedCanvas.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:46:29 2011 for ROOT_528-00b_version by  doxygen 1.5.1