From: sln Date: Tue, 20 May 2008 09:09:50 +0000 (+0000) Subject: NPAL19051: getId() method is added in order to have window unique identifier which... X-Git-Tag: TG_ELNO_visualization_28May2008~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=732d14e001398196d4476b46228c3e2af3bc9cdc;p=modules%2Fgui.git NPAL19051: getId() method is added in order to have window unique identifier which can be used from python --- diff --git a/src/SUIT/SUIT_ViewWindow.cxx b/src/SUIT/SUIT_ViewWindow.cxx index faf064fb5..adf5747b7 100755 --- a/src/SUIT/SUIT_ViewWindow.cxx +++ b/src/SUIT/SUIT_ViewWindow.cxx @@ -215,3 +215,11 @@ QString SUIT_ViewWindow::getVisualParameters() void SUIT_ViewWindow::setVisualParameters( const QString& parameters ) { } + +/*! + \return window unique identifier +*/ +int SUIT_ViewWindow::getId() const +{ + return (int)this; +} diff --git a/src/SUIT/SUIT_ViewWindow.h b/src/SUIT/SUIT_ViewWindow.h index 6a6a6f869..f63f63cc2 100755 --- a/src/SUIT/SUIT_ViewWindow.h +++ b/src/SUIT/SUIT_ViewWindow.h @@ -55,6 +55,8 @@ public: virtual void setVisualParameters( const QString& parameters ); void setDestructiveClose( const bool ); + + int getId() const; public slots: virtual void onDumpView();