]> SALOME platform Git repositories - modules/gui.git/commit
Salome HOME
NPAL19051: Notification of python module about changing active view, view cloning...
authorsln <sln@opencascade.com>
Tue, 20 May 2008 09:06:50 +0000 (09:06 +0000)
committersln <sln@opencascade.com>
Tue, 20 May 2008 09:06:50 +0000 (09:06 +0000)
commitbea0e17d0adeb0dae1b9085f9404c213ac57c4f8
tree82448356f4e9aed0318988b8c2101b4247930c34
parent3a3731d5cc477ccf4ea1c8dd50e61373fbaa75b0
NPAL19051: Notification of python module about changing active view, view cloning view and closing view is provided
1) Desktop's signal windowActivated() is connectedto the slot onActiveViewChanged() during the module activation.
2) All necessary signals of all opened views are connected to the corresponding slots of the SALOME_PYQT_Module class.
3) These slots perform corresponding calls of the Python GUI module functions, passing view ID as parameter.
4) Desktop's signal windowActivated() is disconnected from the slot onActiveViewChanged()  during the module deactivation.
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.h