#include <SUIT_ViewManager.h>
SUIT_ViewManager::~SUIT_ViewManager |
( |
| ) |
|
|
virtual |
void SUIT_ViewManager::closeAllViews |
( |
| ) |
|
|
slot |
Close all views.
References myViews.
void SUIT_ViewManager::contextMenuPopup |
( |
QMenu * |
popup | ) |
|
|
virtual |
void SUIT_ViewManager::createView |
( |
| ) |
|
|
slot |
Creates View, adds it into list of views and returns just created view window
References SUIT_ViewModel::createView(), insertView(), myActiveView, myDesktop, myIcon, myViewModel, onWindowActivated(), SUIT_ViewWindow::setViewManager(), setViewName(), and viewCreated().
bool SUIT_ViewManager::getDetached |
( |
| ) |
const |
get option detached (false by default) to decide if the viewWindow is to be added to Desktop TabBar
References myIsDetached.
int SUIT_ViewManager::getGlobalId |
( |
| ) |
const |
QPixmap SUIT_ViewManager::getIcon |
( |
| ) |
const |
|
inline |
int SUIT_ViewManager::getId |
( |
| ) |
const |
Get identifier
References myId.
QString SUIT_ViewManager::getTitle |
( |
| ) |
const |
|
inline |
QString SUIT_ViewManager::getType |
( |
| ) |
const |
int SUIT_ViewManager::getViewsCount |
( |
| ) |
|
|
inline |
Inserts the View into internal Views Vector.
Returns true if view has been added successfully
Insert view window to view manager.
- Return values
-
false | - if something wrong, else true. |
Reimplemented in Plot2d_ViewManager, and QxScene_ViewManager.
References keyPress(), keyRelease(), mouseDoubleClick(), mouseMove(), mouseRelease(), myViews, onClosingView(), onContextMenuRequested(), onMousePressed(), tryCloseView(), and wheel().
bool SUIT_ViewManager::isVisible |
( |
| ) |
const |
Returns 'true' if any of views (view windows) is visible.
References myViews.
void SUIT_ViewManager::mouseDoubleClick |
( |
SUIT_ViewWindow * |
, |
|
|
QMouseEvent * |
|
|
) |
| |
|
signal |
Emit delete view. Remove view window theView from view manager.
References closeView().
void SUIT_ViewManager::onContextMenuRequested |
( |
QContextMenuEvent * |
e | ) |
|
|
privateslot |
void SUIT_ViewManager::onDeleteStudy |
( |
| ) |
|
|
protectedslot |
Sets stydy to NULL.
References myStudy.
void SUIT_ViewManager::onMousePressed |
( |
SUIT_ViewWindow * |
theView, |
|
|
QMouseEvent * |
theEvent |
|
) |
| |
|
protectedslot |
Emit on theEvent mouse pressed in theView.
References mousePress().
virtual QString SUIT_ViewManager::popupClientType |
( |
| ) |
const |
|
inlinevirtual |
QString SUIT_ViewManager::prepareTitle |
( |
const QString & |
title, |
|
|
const int |
mId, |
|
|
const int |
vId |
|
) |
| |
|
protected |
Removes the View from internal Views Vector.
Remove view window theView from view manager. *And close the last view, if it has theView.
References lastViewClosed(), myActiveView, and myViews.
void SUIT_ViewManager::setDestructiveClose |
( |
const bool |
on | ) |
|
|
virtual |
Set or clear flag Qt::WDestructiveClose for all views
References myViews.
void SUIT_ViewManager::setDetached |
( |
bool |
detached | ) |
|
option detached (false by default) to set before the viewWindow is added to Desktop TabBar
References myIsDetached.
void SUIT_ViewManager::setIcon |
( |
const QPixmap & |
theIcon | ) |
|
|
virtual |
void SUIT_ViewManager::setShown |
( |
const bool |
on | ) |
|
|
virtual |
Show or hide all views (view windows)
References myViews.
void SUIT_ViewManager::setTitle |
( |
const QString & |
theTitle | ) |
|
|
virtual |
- Return values
-
SUIT_Study* | - current study. |
References myStudy.
int SUIT_ViewManager::useNewId |
( |
const QString & |
type | ) |
|
|
staticprotected |
QMap< QString, int > SUIT_ViewManager::_ViewMgrId |
|
staticprotected |
QPixmap SUIT_ViewManager::myIcon |
|
protected |
int SUIT_ViewManager::myId |
|
protected |
bool SUIT_ViewManager::myIsDetached |
|
protected |
QString SUIT_ViewManager::myTitle |
|
protected |
The documentation for this class was generated from the following files: