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

ScrollCanvas Class Reference

This class provides a scrollable container for a Canvas. More...

List of all members.

Public Member Functions

 ScrollCanvas (Options *options, Document *d, GenericNode *rootNode, QWidget *parent)
 Creates a new ScrollCanvas.

 ~ScrollCanvas ()
 Destroys this ScrollCanvas and the Canvas contained in it.

virtual void resizeEvent (QResizeEvent *ev)
 Called when the parent window was resized.

CanvasgetCanvas ()
 Returns the Canvas contained in this ScrollCanvas.

QSize size () const
 Returns the size of this ScrollCanvas.


Private Attributes

MyScrollBarh_scroll
 The horizontal scrolbar.

MyScrollBarv_scroll
 The vertical scrollbar.

Canvascanvas
 The Canvas which is displayed within this scrollable container.


Detailed Description

This class provides a scrollable container for a Canvas.

Author:
Carsten Heß


Constructor & Destructor Documentation

ScrollCanvas::ScrollCanvas Options options,
Document d,
GenericNode rootNode,
QWidget *  parent
 

Creates a new ScrollCanvas.

Parameters:
options the global options object.
d the document to be displayed.
rootNode the root node in the document
parent the parent widget (must be ViewCanvas).

ScrollCanvas::~ScrollCanvas  ) 
 

Destroys this ScrollCanvas and the Canvas contained in it.


Member Function Documentation

Canvas * ScrollCanvas::getCanvas  ) 
 

Returns the Canvas contained in this ScrollCanvas.

Returns:
the canvas.

void ScrollCanvas::resizeEvent QResizeEvent *  ev  )  [virtual]
 

Called when the parent window was resized.

Parameters:
ev the resize event.

QSize ScrollCanvas::size  )  const
 

Returns the size of this ScrollCanvas.

Returns:
the size.


Member Data Documentation

Canvas* ScrollCanvas::canvas [private]
 

The Canvas which is displayed within this scrollable container.

MyScrollBar* ScrollCanvas::h_scroll [private]
 

The horizontal scrolbar.

MyScrollBar* ScrollCanvas::v_scroll [private]
 

The vertical scrollbar.


Generated on Sun Apr 27 18:26:58 2003 for Grisu by doxygen1.3