From 732d14e001398196d4476b46228c3e2af3bc9cdc Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 20 May 2008 09:09:50 +0000 Subject: [PATCH] NPAL19051: getId() method is added in order to have window unique identifier which can be used from python --- src/SUIT/SUIT_ViewWindow.cxx | 8 ++++++++ src/SUIT/SUIT_ViewWindow.h | 2 ++ 2 files changed, 10 insertions(+) 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(); -- 2.39.2