Version: 9.12.0
Plot2d_ViewManager Class Reference

#include <Plot2d_ViewManager.h>

Inheritance diagram for Plot2d_ViewManager:
Inheritance graph

Public Slots

void createView ()
 
- Public Slots inherited from SUIT_ViewManager
void createView ()
 
void closeAllViews ()
 

Signals

void cloneView (Plot2d_ViewFrame *, Plot2d_ViewFrame *)
 
- Signals inherited from SUIT_ViewManager
void lastViewClosed (SUIT_ViewManager *)
 
void tryCloseView (SUIT_ViewWindow *)
 
void deleteView (SUIT_ViewWindow *)
 
void viewCreated (SUIT_ViewWindow *)
 
void mousePress (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseRelease (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseDoubleClick (SUIT_ViewWindow *, QMouseEvent *)
 
void mouseMove (SUIT_ViewWindow *, QMouseEvent *)
 
void wheel (SUIT_ViewWindow *, QWheelEvent *)
 
void keyPress (SUIT_ViewWindow *, QKeyEvent *)
 
void keyRelease (SUIT_ViewWindow *, QKeyEvent *)
 
void activated (SUIT_ViewManager *)
 

Public Member Functions

 Plot2d_ViewManager (SUIT_Study *, SUIT_Desktop *)
 
 ~Plot2d_ViewManager ()
 
Plot2d_ViewergetPlot2dModel () const
 
Plot2d_ViewWindowcloneView (Plot2d_ViewWindow *srcWnd)
 Creates clone of source window. More...
 
- Public Member Functions inherited from SUIT_ViewManager
 SUIT_ViewManager (SUIT_Study *, SUIT_Desktop *, SUIT_ViewModel *=0)
 
virtual ~SUIT_ViewManager ()
 
virtual QString popupClientType () const
 
virtual void contextMenuPopup (QMenu *)
 
void setViewModel (SUIT_ViewModel *theViewModel)
 
SUIT_ViewModelgetViewModel ()
 
SUIT_Studystudy () const
 
QString getType () const
 
SUIT_ViewWindowgetActiveView ()
 
int getViewsCount ()
 
QVector< SUIT_ViewWindow * > getViews () const
 
QString getTitle () const
 
virtual void setTitle (const QString &)
 
QPixmap getIcon () const
 
virtual void setIcon (const QPixmap &)
 
SUIT_ViewWindowcreateViewWindow ()
 
bool isVisible () const
 
virtual void setShown (const bool)
 
virtual void setDestructiveClose (const bool)
 
int getId () const
 
int getGlobalId () const
 
void setDetached (bool detached)
 
bool getDetached () const
 
- Public Member Functions inherited from SUIT_PopupClient
 SUIT_PopupClient ()
 
virtual ~SUIT_PopupClient ()
 
bool connectPopupRequest (QObject *reciever, const char *slot)
 
bool disconnectPopupRequest (QObject *reciever, const char *slot)
 

Static Public Member Functions

static int fillPreferences (SUIT_PreferenceMgr *, const int)
 

Protected Slots

void onCloneView ()
 
- Protected Slots inherited from SUIT_ViewManager
void onWindowActivated (SUIT_ViewWindow *)
 
void onClosingView (SUIT_ViewWindow *)
 
void onMousePressed (SUIT_ViewWindow *, QMouseEvent *)
 
void onDeleteStudy ()
 

Protected Member Functions

bool insertView (SUIT_ViewWindow *theView)
 
- Protected Member Functions inherited from SUIT_ViewManager
virtual void removeView (SUIT_ViewWindow *theView)
 
virtual void closeView (SUIT_ViewWindow *theView)
 
virtual void setViewName (SUIT_ViewWindow *theView)
 
QString prepareTitle (const QString &, const int, const int)
 
- Protected Member Functions inherited from SUIT_PopupClient
void contextMenuRequest (QContextMenuEvent *e)
 

Additional Inherited Members

- Protected Types inherited from SUIT_ViewManager
typedef QPointer< SUIT_ViewWindowViewWindow
 
- Static Protected Member Functions inherited from SUIT_ViewManager
static int useNewId (const QString &)
 
- Protected Attributes inherited from SUIT_ViewManager
SUIT_DesktopmyDesktop
 
SUIT_ViewModelmyViewModel
 
QVector< ViewWindowmyViews
 
SUIT_ViewWindowmyActiveView
 
int myId
 
QPixmap myIcon
 
QString myTitle
 
SUIT_StudymyStudy
 
bool myIsDetached
 
- Static Protected Attributes inherited from SUIT_ViewManager
static QMap< QString, int > _ViewMgrId
 

Constructor & Destructor Documentation

◆ Plot2d_ViewManager()

Plot2d_ViewManager::Plot2d_ViewManager ( SUIT_Study study,
SUIT_Desktop desk 
)

Constructor

References SUIT_ViewManager::setTitle().

◆ ~Plot2d_ViewManager()

Plot2d_ViewManager::~Plot2d_ViewManager ( )

Destructor

Member Function Documentation

◆ cloneView [1/2]

void Plot2d_ViewManager::cloneView ( Plot2d_ViewFrame ,
Plot2d_ViewFrame  
)
signal

◆ cloneView() [2/2]

Plot2d_ViewWindow * Plot2d_ViewManager::cloneView ( Plot2d_ViewWindow srcWnd)

Creates clone of source window.

Parameters
srcWndsource window
Returns
Pointer on the new window
See also
onCloneView()

References SUIT_ViewManager::createViewWindow(), and Plot2d_ViewWindow::getViewFrame().

◆ createView

void Plot2d_ViewManager::createView ( )
slot

Creates new view

References SUIT_ViewManager::createViewWindow().

◆ fillPreferences()

int Plot2d_ViewManager::fillPreferences ( SUIT_PreferenceMgr thePrefMgr,
const int  theId 
)
static

◆ getPlot2dModel()

Plot2d_Viewer * Plot2d_ViewManager::getPlot2dModel ( ) const
Returns
corresponding viewer

References SUIT_ViewManager::myViewModel.

◆ insertView()

bool Plot2d_ViewManager::insertView ( SUIT_ViewWindow theView)
protectedvirtual

Adds new view

Parameters
theView- view to be added

Reimplemented from SUIT_ViewManager.

References cloneView(), getPlot2dModel(), Plot2d_ViewWindow::getViewFrame(), SUIT_ViewManager::insertView(), and onCloneView().

◆ onCloneView

void Plot2d_ViewManager::onCloneView ( )
protectedslot

SLOT: called if action "Clone view" is activated, emits signal cloneView()

References cloneView().


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