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

#include <QxScene_ViewModel.h>

Inheritance diagram for QxScene_Viewer:
Inheritance graph

Public Member Functions

 QxScene_Viewer ()
 
virtual ~QxScene_Viewer ()
 
virtual void setViewManager (SUIT_ViewManager *)
 
virtual SUIT_ViewWindowcreateView (SUIT_Desktop *theDesktop)
 
virtual QString getType () const
 
virtual void contextMenuPopup (QMenu *)
 
- Public Member Functions inherited from SUIT_ViewModel
 SUIT_ViewModel ()
 
virtual ~SUIT_ViewModel ()
 
SUIT_ViewManagergetViewManager () const
 

Static Public Member Functions

static QString Type ()
 
- Static Public Member Functions inherited from SUIT_ViewModel
static void setHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers theState, Qt::MouseButtons theButton)
 
static void getHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers &theState, Qt::MouseButtons &theButton)
 

Protected Slots

void onShowToolbar ()
 
void onChangeBgColor ()
 

Protected Member Functions

void initView (QxScene_ViewWindow *view)
 

Additional Inherited Members

- Public Types inherited from SUIT_ViewModel
enum  HotOperation { PAN, ZOOM, ROTATE, FIT_AREA }
 
enum  InteractionStyle { STANDARD, KEY_FREE }
 
typedef QMap< HotOperation,
Qt::KeyboardModifiers > 
StatesMap
 
typedef QMap< HotOperation,
Qt::MouseButtons > 
ButtonsMap
 
typedef QMap< InteractionStyle,
StatesMap
InteractionStyle2StatesMap
 
typedef QMap< InteractionStyle,
ButtonsMap
InteractionStyle2ButtonsMap
 
- Static Public Attributes inherited from SUIT_ViewModel
static InteractionStyle2StatesMap myStateMap
 
static InteractionStyle2ButtonsMap myButtonMap
 
- Protected Attributes inherited from SUIT_ViewModel
SUIT_ViewManagermyViewManager
 

Constructor & Destructor Documentation

QxScene_Viewer::QxScene_Viewer ( )

Constructor

References DEBTRACE.

QxScene_Viewer::~QxScene_Viewer ( )
virtual

Destructor

References DEBTRACE.

Member Function Documentation

void QxScene_Viewer::contextMenuPopup ( QMenu thePopup)
virtual

Builds popup for QxScene viewer

Reimplemented from SUIT_ViewModel.

References DEBTRACE.

SUIT_ViewWindow * QxScene_Viewer::createView ( SUIT_Desktop theDesktop)
virtual

Creates new view window

Parameters
theDesktop- main window of application

Reimplemented from SUIT_ViewModel.

References DEBTRACE, and initView().

virtual QString QxScene_Viewer::getType ( ) const
inlinevirtual

Reimplemented from SUIT_ViewModel.

void QxScene_Viewer::initView ( QxScene_ViewWindow view)
protected

Start initialization of view window

Parameters
view- view window to be initialized

References DEBTRACE, and QxScene_ViewWindow::initLayout().

void QxScene_Viewer::onChangeBgColor ( )
protectedslot

SLOT: called if background color is to be changed changed, passes new color to current canvas view

References QxScene_ViewWindow::backgroundColor(), SUIT_ViewManager::getActiveView(), SUIT_ViewModel::myViewManager, and QxScene_ViewWindow::setBackgroundColor().

void QxScene_Viewer::onShowToolbar ( )
protectedslot

SLOT: called when popup item "Show toolbar" is activated, shows toolbar of active view window

References SUIT_ViewManager::getActiveView(), QxScene_ViewWindow::getToolBar(), and SUIT_ViewModel::myViewManager.

void QxScene_Viewer::setViewManager ( SUIT_ViewManager theViewManager)
virtual

Set view manager.

Parameters
theViewManagerview manager

Reimplemented from SUIT_ViewModel.

References DEBTRACE, and SUIT_ViewModel::setViewManager().

static QString QxScene_Viewer::Type ( )
inlinestatic

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