Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4QRootCanvas Class Reference

#include <TGo4QRootCanvas.h>

Inheritance diagram for TGo4QRootCanvas:

TQRootCanvas List of all members.

Signals

void DropToPad (TPad *)
void PadClicked (TPad *)

Public Methods

 TGo4QRootCanvas (QWidget *parent=0, const char *name=0,TCanvas *c=0)
virtual ~TGo4QRootCanvas ()
void dropEvent (QDropEvent *Event)
void dragEnterEvent (QDragEnterEvent *e)
TCanvas * GetCanvas ()
void SetShowEventStatus (bool s)
void InsertCanvas (TCanvas *dragedCanvas, TPad *pad, bool createoptions=true)
 Insert dragedCanvas into pad. More...

void CreateDrawOptions (TPad *pad)
bool NeedsMinmaxResize ()
void SetNeedsMinmaxResize (bool yes)

Protected Methods

virtual bool eventFilter (QObject *, QEvent *)
void mouseDoubleClickEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
void mouseMoveEvent (QMouseEvent *e)
virtual void resizeEvent (QResizeEvent *e)
virtual void paintEvent (QPaintEvent *e)

Protected Attributes

bool needMinmaxResize

Private Attributes

TGo4PreviewPanel * fxTGo4PreviewPanel
bool fxShowEventStatus

Constructor & Destructor Documentation

TGo4QRootCanvas::TGo4QRootCanvas QWidget *    parent = 0,
const char *    name = 0,
TCanvas *    c = 0
 

Definition at line 47 of file TGo4QRootCanvas.cpp.

References fxShowEventStatus, fxTGo4PreviewPanel, TQRootCanvas::Resize(), and TQRootCanvas::Update().

TGo4QRootCanvas::~TGo4QRootCanvas   [virtual]
 

Definition at line 63 of file TGo4QRootCanvas.cpp.


Member Function Documentation

void TGo4QRootCanvas::dropEvent QDropEvent *    Event [virtual]
 

Reimplemented from TQRootCanvas.

Definition at line 114 of file TGo4QRootCanvas.cpp.

References TGo4PadOptions::DragAddOption(), TGo4QDragDrop::DropAction(), DropToPad(), fxTGo4PreviewPanel, TGo4QItem::GetFileObj(), TGo4QItem::GetItemObject(), TGo4GUIRegistry::Instance(), TQRootCanvas::Pick(), and TGo4GUIRegistry::SubmitCommand().

void TGo4QRootCanvas::dragEnterEvent QDragEnterEvent *    e [virtual]
 

Reimplemented from TQRootCanvas.

Definition at line 265 of file TGo4QRootCanvas.cpp.

TCanvas * TGo4QRootCanvas::GetCanvas  
 

Definition at line 272 of file TGo4QRootCanvas.cpp.

References TQRootCanvas::fCanvas.

void TGo4QRootCanvas::SetShowEventStatus bool    s
 

Definition at line 66 of file TGo4QRootCanvas.cpp.

References fxShowEventStatus.

void TGo4QRootCanvas::InsertCanvas TCanvas *    dragedCanvas,
TPad *    pad,
bool    createoptions = true
 

Insert dragedCanvas into pad.

createdrawoptions is false if this method is used to copy a canvas into memory JA

Definition at line 173 of file TGo4QRootCanvas.cpp.

References CreateDrawOptions().

Referenced by TGo4QCanvasItem::DrawObj().

void TGo4QRootCanvas::CreateDrawOptions TPad *    pad
 

Definition at line 236 of file TGo4QRootCanvas.cpp.

References fxTGo4PreviewPanel.

Referenced by TGo4QPicItem::DrawObj(), and InsertCanvas().

bool TGo4QRootCanvas::NeedsMinmaxResize   [inline]
 

Definition at line 42 of file TGo4QRootCanvas.h.

References needMinmaxResize.

void TGo4QRootCanvas::SetNeedsMinmaxResize bool    yes [inline]
 

Definition at line 43 of file TGo4QRootCanvas.h.

References needMinmaxResize.

void TGo4QRootCanvas::DropToPad TPad *    [signal]
 

Referenced by dropEvent().

void TGo4QRootCanvas::PadClicked TPad *    [signal]
 

Referenced by mousePressEvent().

bool TGo4QRootCanvas::eventFilter QObject *   ,
QEvent *   
[protected, virtual]
 

Reimplemented from TQRootCanvas.

Definition at line 322 of file TGo4QRootCanvas.cpp.

References TQRootCanvas::fCanvas, TQRootCanvas::isCanvasOwned, needMinmaxResize, TQRootCanvas::needResize, TQRootCanvas::Resize(), and TQRootCanvas::Update().

void TGo4QRootCanvas::mouseDoubleClickEvent QMouseEvent *    e [protected, virtual]
 

Reimplemented from TQRootCanvas.

Definition at line 70 of file TGo4QRootCanvas.cpp.

References fxTGo4PreviewPanel, and TQRootCanvas::mouseDoubleClickEvent().

void TGo4QRootCanvas::mousePressEvent QMouseEvent *    e [protected, virtual]
 

Reimplemented from TQRootCanvas.

Definition at line 76 of file TGo4QRootCanvas.cpp.

References TQRootCanvas::fCanvas, fxTGo4PreviewPanel, TQRootCanvas::mousePressEvent(), and PadClicked().

void TGo4QRootCanvas::mouseMoveEvent QMouseEvent *    e [protected, virtual]
 

Reimplemented from TQRootCanvas.

Definition at line 100 of file TGo4QRootCanvas.cpp.

References TQRootCanvas::fCanvas, fxTGo4PreviewPanel, and TQRootCanvas::mouseMoveEvent().

void TGo4QRootCanvas::resizeEvent QResizeEvent *    e [protected, virtual]
 

Reimplemented from TQRootCanvas.

Definition at line 278 of file TGo4QRootCanvas.cpp.

References TQRootCanvas::needResize.

void TGo4QRootCanvas::paintEvent QPaintEvent *    e [protected, virtual]
 

Reimplemented from TQRootCanvas.

Definition at line 291 of file TGo4QRootCanvas.cpp.

References needMinmaxResize, p, TQRootCanvas::Resize(), and TQRootCanvas::Update().


Member Data Documentation

bool TGo4QRootCanvas::needMinmaxResize [protected]
 

Definition at line 58 of file TGo4QRootCanvas.h.

Referenced by eventFilter(), NeedsMinmaxResize(), paintEvent(), and SetNeedsMinmaxResize().

TGo4PreviewPanel* TGo4QRootCanvas::fxTGo4PreviewPanel [private]
 

Definition at line 60 of file TGo4QRootCanvas.h.

Referenced by CreateDrawOptions(), dropEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and TGo4QRootCanvas().

bool TGo4QRootCanvas::fxShowEventStatus [private]
 

Definition at line 61 of file TGo4QRootCanvas.h.

Referenced by SetShowEventStatus(), and TGo4QRootCanvas().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:51 2005 for Go4-v2.10-5 by doxygen1.2.15