Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
SView Class Reference
#include <SView.h>
Inherits QFrame.
Inherited by SDAGView, SJobPropView, SMachineView, and SMeshView.
Inheritance diagram for SView:
[legend]List of all members.
Detailed Description
A view is a part of the graphical representation which is contained in an independent QFrame. There are two ways in which this class can be used:
1. pure Qt-Views (contains only Qt-Widgets) useful if complicated graphics are not needed
2. pure SViewEl-Containers ... mouse and paint-events are delegated to the dependent ViewEl(s). The view is responsible for setting up the graphical context, placing the view elements in a reasonable way and for interacting with the window system (event handling). CAUTION: Views must register themselves at the dependent ViewEl(s).
Constructor & Destructor Documentation
SView::SView |
( |
QWidget * |
parent = 0, |
|
|
QString |
name = 0, |
|
|
WFlags |
f = 0 |
|
) |
[inline] |
|
SView::~SView |
( |
|
) |
[inline] |
|
Member Function Documentation
|
- Returns:
-
the tasksystem for this view.
|
void SView::paintEvent |
( |
QPaintEvent * |
ev |
) |
[protected, virtual] |
|
void SView::repaint |
( |
QRect |
rect |
) |
[virtual] |
|
|
This function is called from paintEvent. Don't call QWidget::repaint() or something like that in this function (endless loop !).
Default implementation: paint _pViewEl if it's not NULL - Parameters:
-
rect |
The rect where the repaint should happen. |
|
void SView::setPViewEl |
( |
SViewEl * |
pViewEl |
) |
[inline] |
|
|
Set the tasksystem for this view. - Parameters:
-
ts |
pointer to the current tasksystem. |
|
Member Data Documentation
QPixmap* SView::_pCanvas [protected]
|
|
The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:56 2003 for Sketch-it! by
1.2.18