sxUiView Class Reference

Components view. More...

#include <sxUiView.h>

List of all members.


class  PrivateData

Public Types

enum  {
  EditNone, EditSelect, EditSelecting, EditMove,
  EditMoving, EditConnect, EditConnecting, EditDelete,

Public Slots

void zoomValueChanged (const QString &txt)
 scale ites to given value handle zoom combo box changed
void captureToImage ()
 capture to image
void zoomFit ()
 zoom to fit to current view

Public Member Functions

 sxUiView (QGraphicsScene *scn, QWidget *parent=0)
void SetEditMode (int mode)
int EditMode () const
void SetZoomComboBox (QComboBox *cb)

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 Handle mouse move event.
void mouseMoveEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
 Handle mouse release, do select all item(s) inside selection rectangle.
void mouseDoubleClickEvent (QMouseEvent *event)
 display property
void drawForeground (QPainter *painter, const QRectF &rect)
 Draw selection rectangle.
void drawBackground (QPainter *painter, const QRectF &rect)

Detailed Description

Components view.

Member Function Documentation

void sxUiView::mousePressEvent ( QMouseEvent *  event  )  [protected]

Handle mouse move event.

  • When edit mode is EditSelect, draw rectangle
  • When edit mode is EditConnect, draw connection net

References sxConnection::Destination(), sxUiDesign::RemoveComponent(), sxPort::RemoveConnection(), and sxConnection::Source().

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

Generated on Wed Dec 17 19:30:48 2008 for xBCI API by  doxygen