Python view window.
More...
#include <PyViewer_ViewWindow.h>
|
| enum | {
NewId
, OpenId
, SaveId
, SaveAsId
,
UndoId
, RedoId
, CutId
, CopyId
,
PasteId
, DeleteId
, SelectAllId
, FindId
,
ReplaceId
, PreferencesId
, HelpId
} |
| |
|
| virtual void | onDumpView () |
| |
| void | setVisible (bool) |
| |
| 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 *) |
| |
| void | vpStartRotate (int, int, qint64) |
| |
| void | vpRotate (int, int, qint64) |
| |
| void | vpEndRotate (int, int, qint64) |
| |
| void | updateSyncViews () |
| |
| void | onSynchronizeView (bool) |
| |
| virtual void | synchronize (SUIT_ViewWindow *) |
| |
| void | emitViewModified () |
| |
| static void | synchronizeView (SUIT_ViewWindow *viewWindow, int id) |
| |
| SUIT_Desktop * | myDesktop |
| |
| SUIT_ViewManager * | myManager |
| |
◆ anonymous enum
| Enumerator |
|---|
| NewId | |
| OpenId | |
| SaveId | |
| SaveAsId | |
| UndoId | |
| RedoId | |
| CutId | |
| CopyId | |
| PasteId | |
| DeleteId | |
| SelectAllId | |
| FindId | |
| ReplaceId | |
| PreferencesId | |
| HelpId | |
◆ PyViewer_ViewWindow()
| PyViewer_ViewWindow::PyViewer_ViewWindow |
( |
SUIT_Desktop * |
desktop = 0 | ) |
|
Constructor.
- Parameters
-
| desktop | SALOME desktop window |
References SUIT_ViewWindow::action(), QtxActionToolMgr::append(), CopyId, QtxActionToolMgr::createToolBar(), CutId, DeleteId, VTK::Find(), FindId, HelpId, QtxResourceMgr::loadPixmap(), myEditor, NewId, onHelp(), onNew(), onOpen(), onPreferences(), onSave(), onSaveAs(), OpenId, PasteId, PreferencesId, RedoId, QtxActionMgr::registerAction(), ReplaceId, SUIT_Session::resourceMgr(), SaveAsId, SaveId, SelectAllId, SUIT_Session::session(), setCurrentFile(), SUIT_ViewWindow::toolMgr(), and UndoId.
◆ ~PyViewer_ViewWindow()
| PyViewer_ViewWindow::~PyViewer_ViewWindow |
( |
| ) |
|
◆ closeEvent()
| void PyViewer_ViewWindow::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protectedvirtual |
Manage window close request.
- Parameters
-
References whetherSave().
◆ defaultName()
| QString PyViewer_ViewWindow::defaultName |
( |
| ) |
const |
|
private |
Get default name for Python file
- Returns
- default name
◆ loadFile()
| void PyViewer_ViewWindow::loadFile |
( |
const QString & |
filePath | ) |
|
|
private |
◆ onHelp
| void PyViewer_ViewWindow::onHelp |
( |
| ) |
|
|
privateslot |
◆ onNew
| void PyViewer_ViewWindow::onNew |
( |
| ) |
|
|
privateslot |
◆ onOpen
| void PyViewer_ViewWindow::onOpen |
( |
| ) |
|
|
privateslot |
◆ onPreferences
| void PyViewer_ViewWindow::onPreferences |
( |
| ) |
|
|
privateslot |
◆ onSave
| bool PyViewer_ViewWindow::onSave |
( |
| ) |
|
|
privateslot |
◆ onSaveAs
| bool PyViewer_ViewWindow::onSaveAs |
( |
| ) |
|
|
privateslot |
◆ saveFile()
| bool PyViewer_ViewWindow::saveFile |
( |
const QString & |
filePath | ) |
|
|
private |
◆ setCurrentFile()
| void PyViewer_ViewWindow::setCurrentFile |
( |
const QString & |
filePath | ) |
|
|
private |
Associate filePath with the current document.
- Parameters
-
| filePath | document's file path |
References myEditor, and myURL.
◆ whetherSave()
| bool PyViewer_ViewWindow::whetherSave |
( |
| ) |
|
|
private |
Check whether the file is modified. If it has the modifications then ask the user to save it.
- Returns
- true if the document is saved.
References myEditor, and onSave().
◆ myEditor
| PyEditor_Widget* PyViewer_ViewWindow::myEditor |
|
private |
◆ myURL
| QString PyViewer_ViewWindow::myURL |
|
private |
The documentation for this class was generated from the following files: