Back to index

salome-gui  6.5.0
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
QXGRAPH_EXPORT Protocol Reference

#include <QxGraph_ActiveItem.h>

Inheritance diagram for QXGRAPH_EXPORT:
Inheritance graph
[legend]
Collaboration diagram for QXGRAPH_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Types

enum  OperationType {
  NOTHING, PANVIEW, ZOOMVIEW, PANGLOBAL,
  WINDOWFIT, FITALLVIEW, RESETVIEW
}
typedef std::map< int,
std::list< QCanvasItem * > > 
DMode2ItemList

Public Slots

void onTimeout ()
void onViewFitAll ()
void onViewFitArea ()
void onViewZoom ()
void onViewPan ()
void onViewGlobalPan ()
void onViewReset ()

Signals

void viewOperationDone ()

Public Member Functions

 QxGraph_ActiveItem ()
 ~QxGraph_ActiveItem ()
virtual bool isMoveable ()=0
virtual void beforeMoving ()=0
virtual void afterMoving ()=0
virtual bool isResizable (QPoint thePoint, int &theCursorType)
virtual bool isResizing ()
virtual void beforeResizing (int theCursorType)
virtual void resize (QPoint thePoint)
virtual void afterResizing ()
virtual void hilight (const QPoint &theMousePos, const bool toHilight=true)=0
virtual void select (const QPoint &theMousePos, const bool toSelect=true)=0
virtual void showPopup (QWidget *theParent, QMouseEvent *theEvent, const QPoint &theMousePos=QPoint())=0
virtual QString getToolTipText (const QPoint &theMousePos, QRect &theRect) const =0
virtual bool arePartsOfOtherItem (QxGraph_ActiveItem *theSecondItem)
void setTMatrix (QWMatrix theMatrix)
QWMatrix getTMatrix () const
 QxGraph_Canvas (SUIT_ResourceMgr *)
virtual ~QxGraph_Canvas ()
virtual void addView (QCanvasView *theView)
virtual void removeView (QCanvasView *)
QPtrList< QxGraph_PrsgetPrsList () const
QxGraph_PrsgetPrs (int theIndex=0)
void addPrs (QxGraph_Prs *thePrs)
virtual void removeItem (QCanvasItem *)
 QxGraph_CanvasView (QxGraph_Canvas *theCanvas, QxGraph_ViewWindow *theViewWindow)
virtual ~QxGraph_CanvasView ()
QxGraph_ViewWindowgetViewWindow () const
void activateFitAll ()
void activateFitRect ()
void activateZoom ()
void activatePanning ()
void activateGlobalPanning ()
void activateReset ()
void itemRemoved (QCanvasItem *)
void setSelectedItem (QxGraph_ActiveItem *theItem)
QxGraph_ActiveItemgetSelectedItem () const
 QxGraph_Prs (QxGraph_Canvas *)
virtual ~QxGraph_Prs ()
QxGraph_CanvasgetCanvas () const
void addItem (QCanvasItem *theItem, int theDMode=-1)
void removeItem (QCanvasItem *theItem, int theDMode=-1)
QCanvasItem * addRectangleItem (QRect theRect, int theDMode=-1)
QCanvasItem * addPolygonItem (QPointArray thePA, int theDMode=-1)
QCanvasItem * addLineItem (QPoint theStart, QPoint theEnd, int theDMode=-1)
QCanvasItem * addEllipseItem (int theW, int theH, int theStartAngle, int theAngle, int theDMode=-1)
QCanvasItem * addTextItem (QString theText, int theDMode=-1)
const DMode2ItemListgetDisplayMap () const
const std::list< QCanvasItem * > & getItems (int theDMode)
void setDMode (int theDMode)
int getDMode () const
virtual void show ()
virtual void hide ()
virtual void setToUpdate (const bool)
bool isToUpdate ()
 QxGraph_ViewManager (SUIT_Study *theStudy, SUIT_Desktop *theDesktop, SUIT_ViewModel *theViewModel=0)
 ~QxGraph_ViewManager ()
virtual void contextMenuPopup (QPopupMenu *thePopup)
 QxGraph_Viewer ()
virtual ~QxGraph_Viewer ()
virtual SUIT_ViewWindowcreateView (SUIT_Desktop *theDesktop)
virtual QString getType () const
virtual void contextMenuPopup (QPopupMenu *)
QxGraph_CanvasgetCanvas () const
void setCanvas (QxGraph_Canvas *theCanvas)
QPtrList< QxGraph_CanvasViewgetCanvasViews ()
void setCanvasViews (QPtrList< QxGraph_CanvasView > theViews)
void addView (QxGraph_CanvasView *theView)
void removeView (QxGraph_CanvasView *theView)
QxGraph_CanvasViewgetCurrentView () const
void setCurrentView (QxGraph_CanvasView *theView)
void setCurrentView (int theIndex)
 QxGraph_ViewWindow (SUIT_Desktop *theDesktop, QxGraph_Viewer *theModel)
virtual ~QxGraph_ViewWindow ()
void setBackgroundColor (const QColor &)
QColor backgroundColor () const
QToolBar * getToolBar ()
SUIT_ResourceMgr * resMgr () const
QxGraph_ViewergetViewModel () const
void setViewModel (QxGraph_Viewer *theViewModel)
virtual void initLayout ()
void contextPopupEvent (QContextMenuEvent *theEvent)

Static Public Member Functions

static QString Type ()

Protected Slots

void onShowToolbar ()
void onChangeBgColor ()

Protected Member Functions

void contentsMousePressEvent (QMouseEvent *theEvent)
void contentsMouseMoveEvent (QMouseEvent *theEvent)
void contentsMouseReleaseEvent (QMouseEvent *theEvent)
void contentsMouseDoubleClickEvent (QMouseEvent *theEvent)
bool isSelectedItemInCanvas ()
virtual void update ()
void setViewName (SUIT_ViewWindow *theView)
void initView (QxGraph_ViewWindow *view)
void resizeEvent (QResizeEvent *theEvent)
virtual void initCanvas ()
virtual void initCanvasViews ()

Private Types

enum  {
  FitAllId, FitRectId, ZoomId, PanId,
  GlobalPanId, ResetId
}
 Actions ID. More...
typedef QMap< int, QtxAction * > ActionsMap

Private Member Functions

void createActions ()
void createToolBar ()

Private Attributes

QWMatrix myTMatrix
QValueList< QCanvasView * > myViews
QPtrList< QxGraph_PrsmyPrsList
QCanvasItem * myCurrentItem
QPoint myPoint
QPoint myGlobalPoint
bool myMovingDone
QPoint myCenter
OperationType myOperation
QCursor myCursor
QCanvasRectangle * mySelectedRect
QTimer * myTimer
int myDX
int myDY
QxGraph_ActiveItemmyHilightedItem
QxGraph_ActiveItemmySelectedItem
QxGraph_CanvasmyCanvas
DMode2ItemList myDisplayMap
int myDMode
bool needUpdate
QPtrList< QxGraph_CanvasViewmyCanvasViews
QxGraph_CanvasViewmyCurrentView
ActionsMap myActionsMap
QToolBar * myToolBar
QxGraph_ViewermyViewModel

Detailed Description

Definition at line 32 of file QxGraph_ActiveItem.h.


Member Typedef Documentation

typedef QMap<int, QtxAction*> QXGRAPH_EXPORT::ActionsMap [private]

Definition at line 84 of file QxGraph_ViewWindow.h.

typedef std::map< int, std::list<QCanvasItem*> > QXGRAPH_EXPORT::DMode2ItemList

Definition at line 53 of file QxGraph_Prs.h.


Member Enumeration Documentation

anonymous enum [private]

Actions ID.

Enumerator:
FitAllId 
FitRectId 
ZoomId 
PanId 
GlobalPanId 
ResetId 

Definition at line 83 of file QxGraph_ViewWindow.h.

Enumerator:
NOTHING 
PANVIEW 
ZOOMVIEW 
PANGLOBAL 
WINDOWFIT 
FITALLVIEW 
RESETVIEW 

Definition at line 43 of file QxGraph_CanvasView.h.


Constructor & Destructor Documentation

Definition at line 36 of file QxGraph_ActiveItem.h.

{}
virtual QXGRAPH_EXPORT::~QxGraph_Canvas ( ) [virtual]
virtual QXGRAPH_EXPORT::~QxGraph_CanvasView ( ) [virtual]
virtual QXGRAPH_EXPORT::~QxGraph_Prs ( ) [virtual]
virtual QXGRAPH_EXPORT::~QxGraph_Viewer ( ) [virtual]
virtual QXGRAPH_EXPORT::~QxGraph_ViewWindow ( ) [virtual]

Member Function Documentation

QCanvasItem* QXGRAPH_EXPORT::addEllipseItem ( int  theW,
int  theH,
int  theStartAngle,
int  theAngle,
int  theDMode = -1 
)
void QXGRAPH_EXPORT::addItem ( QCanvasItem *  theItem,
int  theDMode = -1 
)
QCanvasItem* QXGRAPH_EXPORT::addLineItem ( QPoint  theStart,
QPoint  theEnd,
int  theDMode = -1 
)
QCanvasItem* QXGRAPH_EXPORT::addPolygonItem ( QPointArray  thePA,
int  theDMode = -1 
)
void QXGRAPH_EXPORT::addPrs ( QxGraph_Prs thePrs) [inline]

Definition at line 48 of file QxGraph_Canvas.h.

{ myPrsList.append(thePrs); }
QCanvasItem* QXGRAPH_EXPORT::addRectangleItem ( QRect  theRect,
int  theDMode = -1 
)
QCanvasItem* QXGRAPH_EXPORT::addTextItem ( QString  theText,
int  theDMode = -1 
)
virtual void QXGRAPH_EXPORT::addView ( QCanvasView *  theView) [virtual]

Definition at line 63 of file QxGraph_ViewModel.h.

{ myCanvasViews.append(theView); }
virtual void QXGRAPH_EXPORT::afterMoving ( ) [pure virtual]
virtual void QXGRAPH_EXPORT::afterResizing ( ) [inline, virtual]

Definition at line 46 of file QxGraph_ActiveItem.h.

{}
virtual bool QXGRAPH_EXPORT::arePartsOfOtherItem ( QxGraph_ActiveItem theSecondItem) [inline, virtual]

Definition at line 54 of file QxGraph_ActiveItem.h.

{ return false; }
virtual void QXGRAPH_EXPORT::beforeMoving ( ) [pure virtual]
virtual void QXGRAPH_EXPORT::beforeResizing ( int  theCursorType) [inline, virtual]

Definition at line 44 of file QxGraph_ActiveItem.h.

{}
void QXGRAPH_EXPORT::contentsMouseDoubleClickEvent ( QMouseEvent *  theEvent) [protected]
void QXGRAPH_EXPORT::contentsMouseMoveEvent ( QMouseEvent *  theEvent) [protected]
void QXGRAPH_EXPORT::contentsMousePressEvent ( QMouseEvent *  theEvent) [protected]
void QXGRAPH_EXPORT::contentsMouseReleaseEvent ( QMouseEvent *  theEvent) [protected]
virtual void QXGRAPH_EXPORT::contextMenuPopup ( QPopupMenu *  thePopup) [virtual]
virtual void QXGRAPH_EXPORT::contextMenuPopup ( QPopupMenu *  ) [virtual]
void QXGRAPH_EXPORT::contextPopupEvent ( QContextMenuEvent *  theEvent) [inline]

Definition at line 62 of file QxGraph_ViewWindow.h.

{ emit contextMenuRequested( theEvent); }
virtual SUIT_ViewWindow* QXGRAPH_EXPORT::createView ( SUIT_Desktop theDesktop) [virtual]

Definition at line 40 of file QxGraph_Prs.h.

{ return myCanvas; }

Definition at line 52 of file QxGraph_ViewModel.h.

{ return myCanvas; }

Definition at line 60 of file QxGraph_ViewModel.h.

{ return myCanvasViews; }

Definition at line 66 of file QxGraph_ViewModel.h.

{ return myCurrentView; }
const DMode2ItemList& QXGRAPH_EXPORT::getDisplayMap ( ) const [inline]

Definition at line 55 of file QxGraph_Prs.h.

{ return myDisplayMap; }
int QXGRAPH_EXPORT::getDMode ( ) const [inline]

Definition at line 59 of file QxGraph_Prs.h.

{ return myDMode; }
const std::list<QCanvasItem*>& QXGRAPH_EXPORT::getItems ( int  theDMode) [inline]

Definition at line 56 of file QxGraph_Prs.h.

{ return myDisplayMap[theDMode]; }
QxGraph_Prs* QXGRAPH_EXPORT::getPrs ( int  theIndex = 0)
QPtrList<QxGraph_Prs> QXGRAPH_EXPORT::getPrsList ( ) const [inline]

Definition at line 46 of file QxGraph_Canvas.h.

{ return myPrsList; }
QWMatrix QXGRAPH_EXPORT::getTMatrix ( ) const [inline]

Definition at line 57 of file QxGraph_ActiveItem.h.

{ return myTMatrix; }
QToolBar* QXGRAPH_EXPORT::getToolBar ( ) [inline]

Definition at line 53 of file QxGraph_ViewWindow.h.

{ return myToolBar; }
virtual QString QXGRAPH_EXPORT::getToolTipText ( const QPoint &  theMousePos,
QRect &  theRect 
) const [pure virtual]
virtual QString QXGRAPH_EXPORT::getType ( ) const [inline, virtual]

Definition at line 48 of file QxGraph_ViewModel.h.

{ return Type(); }

Here is the call graph for this function:

Definition at line 57 of file QxGraph_ViewWindow.h.

{ return myViewModel; }
virtual void QXGRAPH_EXPORT::hide ( ) [virtual]

Here is the caller graph for this function:

virtual void QXGRAPH_EXPORT::hilight ( const QPoint &  theMousePos,
const bool  toHilight = true 
) [pure virtual]
virtual void QXGRAPH_EXPORT::initCanvas ( ) [protected, virtual]
virtual void QXGRAPH_EXPORT::initCanvasViews ( ) [protected, virtual]
virtual void QXGRAPH_EXPORT::initLayout ( ) [virtual]
virtual bool QXGRAPH_EXPORT::isMoveable ( ) [pure virtual]
virtual bool QXGRAPH_EXPORT::isResizable ( QPoint  thePoint,
int &  theCursorType 
) [inline, virtual]

Definition at line 42 of file QxGraph_ActiveItem.h.

{ return false; }
virtual bool QXGRAPH_EXPORT::isResizing ( ) [inline, virtual]

Definition at line 43 of file QxGraph_ActiveItem.h.

{ return false; }
bool QXGRAPH_EXPORT::isToUpdate ( ) [inline]

Definition at line 64 of file QxGraph_Prs.h.

{ return needUpdate; }
void QXGRAPH_EXPORT::itemRemoved ( QCanvasItem *  )
void QXGRAPH_EXPORT::onChangeBgColor ( ) [protected, slot]
void QXGRAPH_EXPORT::onShowToolbar ( ) [protected, slot]

Definition at line 35 of file QxGraph_ActiveItem.h.

{}
QXGRAPH_EXPORT::QxGraph_Canvas ( SUIT_ResourceMgr *  )
QXGRAPH_EXPORT::QxGraph_ViewManager ( SUIT_Study theStudy,
SUIT_Desktop theDesktop,
SUIT_ViewModel *  theViewModel = 0 
)
void QXGRAPH_EXPORT::removeItem ( QCanvasItem *  theItem,
int  theDMode = -1 
)
virtual void QXGRAPH_EXPORT::removeItem ( QCanvasItem *  ) [virtual]
virtual void QXGRAPH_EXPORT::removeView ( QCanvasView *  ) [virtual]

Definition at line 64 of file QxGraph_ViewModel.h.

{ myCanvasViews.remove(theView); }
virtual void QXGRAPH_EXPORT::resize ( QPoint  thePoint) [inline, virtual]

Definition at line 45 of file QxGraph_ActiveItem.h.

{}

Here is the caller graph for this function:

void QXGRAPH_EXPORT::resizeEvent ( QResizeEvent *  theEvent) [protected]
SUIT_ResourceMgr* QXGRAPH_EXPORT::resMgr ( ) const
virtual void QXGRAPH_EXPORT::select ( const QPoint &  theMousePos,
const bool  toSelect = true 
) [pure virtual]
void QXGRAPH_EXPORT::setCanvas ( QxGraph_Canvas theCanvas) [inline]

Definition at line 53 of file QxGraph_ViewModel.h.

{ myCanvas = theCanvas; }
void QXGRAPH_EXPORT::setCanvasViews ( QPtrList< QxGraph_CanvasView theViews) [inline]

Definition at line 61 of file QxGraph_ViewModel.h.

{ myCanvasViews = theViews; }

Definition at line 67 of file QxGraph_ViewModel.h.

{ myCurrentView = theView; }
void QXGRAPH_EXPORT::setDMode ( int  theDMode) [inline]

Definition at line 58 of file QxGraph_Prs.h.

{ myDMode = theDMode; }
void QXGRAPH_EXPORT::setTMatrix ( QWMatrix  theMatrix) [inline]

Definition at line 56 of file QxGraph_ActiveItem.h.

{ myTMatrix = theMatrix; }
virtual void QXGRAPH_EXPORT::setToUpdate ( const bool  ) [virtual]
void QXGRAPH_EXPORT::setViewModel ( QxGraph_Viewer theViewModel) [inline]

Definition at line 58 of file QxGraph_ViewWindow.h.

{ myViewModel = theViewModel; }
void QXGRAPH_EXPORT::setViewName ( SUIT_ViewWindow theView) [protected]
virtual void QXGRAPH_EXPORT::show ( ) [virtual]
virtual void QXGRAPH_EXPORT::showPopup ( QWidget *  theParent,
QMouseEvent *  theEvent,
const QPoint &  theMousePos = QPoint() 
) [pure virtual]
static QString QXGRAPH_EXPORT::Type ( ) [inline, static]

Definition at line 42 of file QxGraph_ViewModel.h.

{ return "QxGraphViewer"; }

Here is the caller graph for this function:

virtual void QXGRAPH_EXPORT::update ( ) [protected, virtual]

Member Data Documentation

Definition at line 86 of file QxGraph_ViewWindow.h.

Definition at line 70 of file QxGraph_Prs.h.

Definition at line 80 of file QxGraph_ViewModel.h.

QPoint QXGRAPH_EXPORT::myCenter [private]

Definition at line 84 of file QxGraph_CanvasView.h.

QCanvasItem* QXGRAPH_EXPORT::myCurrentItem [private]

Definition at line 80 of file QxGraph_CanvasView.h.

Definition at line 82 of file QxGraph_ViewModel.h.

QCursor QXGRAPH_EXPORT::myCursor [private]

Definition at line 88 of file QxGraph_CanvasView.h.

Definition at line 71 of file QxGraph_Prs.h.

int QXGRAPH_EXPORT::myDMode [private]

Definition at line 73 of file QxGraph_Prs.h.

int QXGRAPH_EXPORT::myDX [private]

Definition at line 93 of file QxGraph_CanvasView.h.

int QXGRAPH_EXPORT::myDY [private]

Definition at line 94 of file QxGraph_CanvasView.h.

Definition at line 82 of file QxGraph_CanvasView.h.

Definition at line 97 of file QxGraph_CanvasView.h.

Definition at line 83 of file QxGraph_CanvasView.h.

Definition at line 87 of file QxGraph_CanvasView.h.

QPoint QXGRAPH_EXPORT::myPoint [private]

Definition at line 81 of file QxGraph_CanvasView.h.

Definition at line 55 of file QxGraph_Canvas.h.

Definition at line 100 of file QxGraph_CanvasView.h.

QCanvasRectangle* QXGRAPH_EXPORT::mySelectedRect [private]

Definition at line 89 of file QxGraph_CanvasView.h.

QTimer* QXGRAPH_EXPORT::myTimer [private]

Definition at line 92 of file QxGraph_CanvasView.h.

QWMatrix QXGRAPH_EXPORT::myTMatrix [private]

Definition at line 60 of file QxGraph_ActiveItem.h.

QToolBar* QXGRAPH_EXPORT::myToolBar [private]

Definition at line 87 of file QxGraph_ViewWindow.h.

Definition at line 89 of file QxGraph_ViewWindow.h.

QValueList< QCanvasView* > QXGRAPH_EXPORT::myViews [private]

Definition at line 54 of file QxGraph_Canvas.h.

Definition at line 74 of file QxGraph_Prs.h.


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