QCAD
Open Source 2D CAD
ViewportWidget Class Reference

A viewport encapsulates one graphics view and might provide means to navigate (scroll bars) and other widgets that are available for every graphics view. More...

Public Member Functions

void getDocumentInterface ()
 
void getEventHandler ()
 
void getGraphicsView ()
 
void getVpWidget ()
 
void init (void uiFile, void graphicsSceneClass)
 Initializes this viewport widget. More...
 
void initEventHandler ()
 
void ViewportWidget (void vpNumber, void vpWidget, void documentInterface)
 

Public Attributes

int documentInterface
 
int eventHandler
 
int vpNumber
 
int vpWidget
 

Detailed Description

A viewport encapsulates one graphics view and might provide means to navigate (scroll bars) and other widgets that are available for every graphics view.

Parameters
vpNumberNumber of viewport. There can be up to four viewports available for example in an MDI child (tab). This number is used to identify the viewport settings in configuration files and document settings.
vpWidgetViewport widget that will contain the viewport after initialization.

Constructor & Destructor Documentation

void ViewportWidget::ViewportWidget ( void  vpNumber,
void  vpWidget,
void  documentInterface 
)
inline

Member Function Documentation

void ViewportWidget::getDocumentInterface ( )
inline
void ViewportWidget::getEventHandler ( )
inline
void ViewportWidget::getGraphicsView ( )
inline
void ViewportWidget::getVpWidget ( )
inline
void ViewportWidget::init ( void  uiFile,
void  graphicsSceneClass 
)
inline

Initializes this viewport widget.

Parameters
uiFileUI file to use for view port (defaults to ViewportWidgetQt.ui).
graphicsSceneClassClass to use for graphics scene (defaults to "RGraphicsSceneQt")
void ViewportWidget::initEventHandler ( )
inline

Member Data Documentation

int ViewportWidget::documentInterface
int ViewportWidget::eventHandler
int ViewportWidget::vpNumber
int ViewportWidget::vpWidget

The documentation for this class was generated from the following file: