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 | Protected Attributes | Private Member Functions | Private Attributes
QXSCENE_EXPORT Protocol Reference

#include <QxScene_ViewManager.h>

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

List of all members.

Public Types

enum  {
  FitAllId, FitRectId, ZoomId, ScaleOpId,
  PanId, GlobalPanId, MoveOpId, ResetId
}
 Actions ID. More...

Public Slots

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

Signals

void tryClose (bool &isClosed, QxScene_ViewWindow *window)

Public Member Functions

 QxScene_ViewManager (SUIT_Study *theStudy, SUIT_Desktop *theDesktop, SUIT_ViewModel *theViewModel=0)
 ~QxScene_ViewManager ()
 QxScene_Viewer ()
virtual ~QxScene_Viewer ()
virtual void setViewManager (SUIT_ViewManager *)
virtual SUIT_ViewWindowcreateView (SUIT_Desktop *theDesktop)
virtual QString getType () const
virtual void contextMenuPopup (QMenu *)
 QxScene_ViewWindow (SUIT_Desktop *theDesktop, QxScene_Viewer *theModel)
virtual ~QxScene_ViewWindow ()
void setBackgroundColor (const QColor &)
QColor backgroundColor () const
QToolBar * getToolBar ()
SUIT_ResourceMgr * resMgr () const
QxScene_ViewergetViewModel () const
void setViewModel (QxScene_Viewer *theViewModel)
virtual void initLayout ()
void contextPopupEvent (QContextMenuEvent *theEvent)
void setScene (QGraphicsScene *scene)
QGraphicsScene * getScene ()
void setSceneView (QGraphicsView *sceneView)
QGraphicsView * getSceneView ()
virtual bool closeRequested ()

Static Public Member Functions

static QString Type ()

Protected Slots

void onShowToolbar ()
void onChangeBgColor ()

Protected Member Functions

bool insertView (SUIT_ViewWindow *theView)
virtual void closeView (SUIT_ViewWindow *theView)
void initView (QxScene_ViewWindow *view)
void resizeEvent (QResizeEvent *theEvent)

Protected Attributes

QGraphicsScene * _scene
QGraphicsView * _sceneView

Private Member Functions

void createActions ()
void createToolBar ()

Private Attributes

int myToolBar
QxScene_ViewermyViewModel

Detailed Description

Definition at line 30 of file QxScene_ViewManager.h.


Member Enumeration Documentation

anonymous enum

Actions ID.

Enumerator:
FitAllId 
FitRectId 
ZoomId 
ScaleOpId 
PanId 
GlobalPanId 
MoveOpId 
ResetId 

Definition at line 48 of file QxScene_ViewWindow.h.


Constructor & Destructor Documentation

virtual QXSCENE_EXPORT::~QxScene_Viewer ( ) [virtual]
virtual QXSCENE_EXPORT::~QxScene_ViewWindow ( ) [virtual]

Member Function Documentation

virtual bool QXSCENE_EXPORT::closeRequested ( ) [virtual]
virtual void QXSCENE_EXPORT::closeView ( SUIT_ViewWindow theView) [protected, virtual]
virtual void QXSCENE_EXPORT::contextMenuPopup ( QMenu *  ) [virtual]
void QXSCENE_EXPORT::contextPopupEvent ( QContextMenuEvent *  theEvent) [inline]

Definition at line 65 of file QxScene_ViewWindow.h.

{ emit contextMenuRequested( theEvent); }
virtual SUIT_ViewWindow* QXSCENE_EXPORT::createView ( SUIT_Desktop theDesktop) [virtual]
QGraphicsScene* QXSCENE_EXPORT::getScene ( ) [inline]

Definition at line 68 of file QxScene_ViewWindow.h.

{ return _scene; }
QGraphicsView* QXSCENE_EXPORT::getSceneView ( ) [inline]

Definition at line 70 of file QxScene_ViewWindow.h.

{ return _sceneView; }
virtual QString QXSCENE_EXPORT::getType ( ) const [inline, virtual]

Definition at line 41 of file QxScene_ViewModel.h.

{ return Type(); }

Here is the call graph for this function:

Definition at line 60 of file QxScene_ViewWindow.h.

{ return myViewModel; }
virtual void QXSCENE_EXPORT::initLayout ( ) [virtual]
bool QXSCENE_EXPORT::insertView ( SUIT_ViewWindow theView) [protected]
void QXSCENE_EXPORT::onChangeBgColor ( ) [protected, slot]
void QXSCENE_EXPORT::onShowToolbar ( ) [protected, slot]
QXSCENE_EXPORT::QxScene_ViewManager ( SUIT_Study theStudy,
SUIT_Desktop theDesktop,
SUIT_ViewModel *  theViewModel = 0 
)
void QXSCENE_EXPORT::resizeEvent ( QResizeEvent *  theEvent) [protected]
SUIT_ResourceMgr* QXSCENE_EXPORT::resMgr ( ) const
void QXSCENE_EXPORT::setScene ( QGraphicsScene *  scene) [inline]

Definition at line 67 of file QxScene_ViewWindow.h.

{ _scene = scene; }
void QXSCENE_EXPORT::setSceneView ( QGraphicsView *  sceneView) [inline]

Definition at line 69 of file QxScene_ViewWindow.h.

{ _sceneView = sceneView; }
virtual void QXSCENE_EXPORT::setViewManager ( SUIT_ViewManager *  ) [virtual]
void QXSCENE_EXPORT::setViewModel ( QxScene_Viewer theViewModel) [inline]

Definition at line 61 of file QxScene_ViewWindow.h.

{ myViewModel = theViewModel; }
void QXSCENE_EXPORT::tryClose ( bool &  isClosed,
QxScene_ViewWindow window 
) [signal]
static QString QXSCENE_EXPORT::Type ( ) [inline, static]

Definition at line 34 of file QxScene_ViewModel.h.

{ return "QxSceneViewer"; }

Here is the caller graph for this function:


Member Data Documentation

QGraphicsScene* QXSCENE_EXPORT::_scene [protected]

Definition at line 87 of file QxScene_ViewWindow.h.

QGraphicsView* QXSCENE_EXPORT::_sceneView [protected]

Definition at line 88 of file QxScene_ViewWindow.h.

Definition at line 94 of file QxScene_ViewWindow.h.

Definition at line 96 of file QxScene_ViewWindow.h.


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