copasi API  0.1
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
CQGLViewport Class Reference

#include <CQGLViewport.h>

List of all members.

Public Slots

void updateWidget ()

Public Member Functions

 CQGLViewport (QWidget *pParent=0, Qt::WFlags f=0)
virtual ~CQGLViewport ()
const CQGLNetworkPaintergetPainter () const
CQGLNetworkPaintergetPainter ()
void createGraph (CLayout *lP)
void setZoomFactor (double zoom)
void resetView ()
bool isCircleMode () const

Protected Slots

void slotVValueChanged (int value)
void slotHValueChanged (int value)

Protected Member Functions

virtual void resizeEvent (QResizeEvent *e)
void updateScrollbars ()

Protected Attributes

QScrollBar * mpVerticalScrollbar
QScrollBar * mpHorizontalScrollbar
CQGLNetworkPaintermpNetworkPainter

Detailed Description

This class is supposed to act as a sort of scrollview for a CQGLNetworkPainter.


Constructor & Destructor Documentation

CQGLViewport::CQGLViewport ( QWidget *  pParent = 0,
Qt::WFlags  f = 0 
)

Constructor.

CQGLViewport::~CQGLViewport ( ) [virtual]

Destructor.


Member Function Documentation

void CQGLViewport::createGraph ( CLayout lP)

Pass the layout on to the network painters createGraph and set the scrollbar ranges.

const CQGLNetworkPainter * CQGLViewport::getPainter ( ) const
CQGLNetworkPainter * CQGLViewport::getPainter ( )
bool CQGLViewport::isCircleMode ( ) const

Returns whether the layout window is in circle (animation mode) or not. This method only calls the corresponding method in the contained network painter.

void CQGLViewport::resetView ( )
void CQGLViewport::resizeEvent ( QResizeEvent *  e) [protected, virtual]
void CQGLViewport::setZoomFactor ( double  zoom)

Sets the zoom factor on the network painter and updates the scrollbars.

void CQGLViewport::slotHValueChanged ( int  value) [protected, slot]
void CQGLViewport::slotVValueChanged ( int  value) [protected, slot]
void CQGLViewport::updateScrollbars ( ) [protected]
void CQGLViewport::updateWidget ( ) [slot]

Member Data Documentation

QScrollBar* CQGLViewport::mpHorizontalScrollbar [protected]
QScrollBar* CQGLViewport::mpVerticalScrollbar [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines