Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GraphicsView_ViewFrame Class Reference

#include <GraphicsView_ViewFrame.h>

Inheritance diagram for GraphicsView_ViewFrame:
Inheritance graph

Public Types

enum  {
  DumpId, FitAllId, FitRectId, FitSelectId,
  ZoomId, PanId, GlobalPanId, ResetId
}
 

Signals

void keyPressed (QKeyEvent *)
 
void keyReleased (QKeyEvent *)
 
void mousePressed (QGraphicsSceneMouseEvent *)
 
void mouseMoving (QGraphicsSceneMouseEvent *)
 
void mouseReleased (QGraphicsSceneMouseEvent *)
 
void mouseDoubleClicked (QGraphicsSceneMouseEvent *)
 
void wheeling (QGraphicsSceneWheelEvent *)
 
void sketchingFinished (QPainterPath)
 
- Signals inherited from SUIT_ViewWindow
void tryClosing (SUIT_ViewWindow *)
 
void closing (SUIT_ViewWindow *)
 
void mousePressed (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseReleased (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseDoubleClicked (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseMoving (SUIT_ViewWindow *, QMouseEvent *)
 
void wheeling (SUIT_ViewWindow *, QWheelEvent *)
 
void keyPressed (SUIT_ViewWindow *, QKeyEvent *)
 
void keyReleased (SUIT_ViewWindow *, QKeyEvent *)
 
void contextMenuRequested (QContextMenuEvent *e)
 
void viewModified (SUIT_ViewWindow *)
 

Public Member Functions

 GraphicsView_ViewFrame (SUIT_Desktop *, GraphicsView_Viewer *, QWidget *w=NULL)
 
 ~GraphicsView_ViewFrame ()
 
GraphicsView_ViewergetViewer () const
 
GraphicsView_ViewPortgetViewPort () const
 
virtual QImage dumpView ()
 
virtual QString getVisualParameters ()
 
virtual void setVisualParameters (const QString &theParameters)
 
void expandToolBarActions ()
 
int getToolBarId ()
 
- Public Member Functions inherited from SUIT_ViewWindow
 SUIT_ViewWindow (SUIT_Desktop *)
 
virtual ~SUIT_ViewWindow ()
 
virtual void setViewManager (SUIT_ViewManager *)
 
SUIT_ViewManagergetViewManager () const
 
bool event (QEvent *)
 
bool dumpViewToFormat (const QString &fileName, const QString &format)
 
bool onAccelAction (int)
 
bool closable () const
 
bool setClosable (const bool)
 
void setDestructiveClose (const bool)
 
int getId () const
 
QtxActionToolMgrtoolMgr () const
 
virtual void setDropDownButtons (bool)
 Set buttons mode to drop-down (on = true) or ligned (on = false) More...
 
bool dropDownButtons () const
 Get current buttons mode. More...
 
virtual SUIT_CameraProperties cameraProperties ()
 

Protected Slots

void onViewPan ()
 
void onViewZoom ()
 
void onViewFitAll ()
 
void onViewFitArea ()
 
void onViewFitSelect ()
 
void onViewGlobalPan ()
 
void onViewReset ()
 
- Protected Slots inherited from SUIT_ViewWindow
void updateSyncViews ()
 
void onSynchronizeView (bool)
 
virtual void synchronize (SUIT_ViewWindow *)
 
void emitViewModified ()
 

Private Slots

void keyEvent (QKeyEvent *)
 
void mouseEvent (QGraphicsSceneMouseEvent *)
 
void wheelEvent (QGraphicsSceneWheelEvent *)
 
void contextMenuEvent (QGraphicsSceneContextMenuEvent *)
 

Private Member Functions

void createActions ()
 
int createToolBar ()
 

Private Attributes

GraphicsView_ViewermyViewer
 
GraphicsView_ViewPortmyViewPort
 
int myToolBarId
 
QtxMultiActionmyScaleAction
 
QtxMultiActionmyPanAction
 

Additional Inherited Members

- Public Slots inherited from SUIT_ViewWindow
virtual void onDumpView ()
 
- Protected Member Functions inherited from SUIT_ViewWindow
void closeEvent (QCloseEvent *)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual QString filter () const
 
virtual bool action (const int)
 
virtual bool dumpViewToFormat (const QImage &, const QString &fileName, const QString &format)
 
virtual QActionsynchronizeAction ()
 
- Static Protected Member Functions inherited from SUIT_ViewWindow
static void synchronizeView (SUIT_ViewWindow *viewWindow, int id)
 
- Protected Attributes inherited from SUIT_ViewWindow
SUIT_DesktopmyDesktop
 
SUIT_ViewManagermyManager
 

Member Enumeration Documentation

anonymous enum
Enumerator
DumpId 
FitAllId 
FitRectId 
FitSelectId 
ZoomId 
PanId 
GlobalPanId 
ResetId 

Constructor & Destructor Documentation

GraphicsView_ViewFrame::GraphicsView_ViewFrame ( SUIT_Desktop d,
GraphicsView_Viewer vw,
QWidget w = NULL 
)
GraphicsView_ViewFrame::~GraphicsView_ViewFrame ( )

Member Function Documentation

void GraphicsView_ViewFrame::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  e)
privateslot
QImage GraphicsView_ViewFrame::dumpView ( )
virtual
Returns
QImage, containing all scene rendering in window

Reimplemented from SUIT_ViewWindow.

References GraphicsView_ViewPort::dumpView(), and myViewPort.

int GraphicsView_ViewFrame::getToolBarId ( )

References myToolBarId.

GraphicsView_Viewer* GraphicsView_ViewFrame::getViewer ( ) const
inline
GraphicsView_ViewPort* GraphicsView_ViewFrame::getViewPort ( ) const
inline
QString GraphicsView_ViewFrame::getVisualParameters ( )
virtual
Returns
string containing visual parameters of window

Reimplemented from SUIT_ViewWindow.

References myViewPort.

void GraphicsView_ViewFrame::keyEvent ( QKeyEvent *  e)
privateslot

References keyPressed(), and keyReleased().

void GraphicsView_ViewFrame::keyPressed ( QKeyEvent *  )
signal
void GraphicsView_ViewFrame::keyReleased ( QKeyEvent *  )
signal
void GraphicsView_ViewFrame::mouseDoubleClicked ( QGraphicsSceneMouseEvent *  )
signal
void GraphicsView_ViewFrame::mouseEvent ( QGraphicsSceneMouseEvent *  e)
privateslot
void GraphicsView_ViewFrame::mouseMoving ( QGraphicsSceneMouseEvent *  )
signal
void GraphicsView_ViewFrame::mousePressed ( QGraphicsSceneMouseEvent *  )
signal
void GraphicsView_ViewFrame::mouseReleased ( QGraphicsSceneMouseEvent *  )
signal
void GraphicsView_ViewFrame::onViewFitAll ( )
protectedslot
void GraphicsView_ViewFrame::onViewFitArea ( )
protectedslot
void GraphicsView_ViewFrame::onViewFitSelect ( )
protectedslot
void GraphicsView_ViewFrame::onViewGlobalPan ( )
protectedslot
void GraphicsView_ViewFrame::onViewPan ( )
protectedslot
void GraphicsView_ViewFrame::onViewReset ( )
protectedslot
void GraphicsView_ViewFrame::onViewZoom ( )
protectedslot
void GraphicsView_ViewFrame::setVisualParameters ( const QString &  parameters)
virtual

Sets visual parameters of window by its string representation

Parameters
parameters- string with visual parameters

Reimplemented from SUIT_ViewWindow.

References GraphicsView_ViewPort::applyTransform(), and myViewPort.

void GraphicsView_ViewFrame::sketchingFinished ( QPainterPath  )
signal
void GraphicsView_ViewFrame::wheelEvent ( QGraphicsSceneWheelEvent *  e)
privateslot

References wheeling().

void GraphicsView_ViewFrame::wheeling ( QGraphicsSceneWheelEvent *  )
signal

Member Data Documentation

QtxMultiAction* GraphicsView_ViewFrame::myPanAction
private
QtxMultiAction* GraphicsView_ViewFrame::myScaleAction
private
int GraphicsView_ViewFrame::myToolBarId
private
GraphicsView_Viewer* GraphicsView_ViewFrame::myViewer
private
GraphicsView_ViewPort* GraphicsView_ViewFrame::myViewPort
private

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