From 88f5bb4fffb4c04e9b2a0f78f5c704beddac823b Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 18 Nov 2010 10:44:31 +0000 Subject: [PATCH] Added myIsInitialized flag --- src/GraphicsView/GraphicsView_Viewer.cxx | 12 +++++++++++- src/GraphicsView/GraphicsView_Viewer.h | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/GraphicsView/GraphicsView_Viewer.cxx b/src/GraphicsView/GraphicsView_Viewer.cxx index 927a7177b..105d7fcb2 100644 --- a/src/GraphicsView/GraphicsView_Viewer.cxx +++ b/src/GraphicsView/GraphicsView_Viewer.cxx @@ -43,7 +43,8 @@ GraphicsView_Viewer::GraphicsView_Viewer( const QString& title ) : SUIT_ViewModel(), mySelector( 0 ), - myTransformer( 0 ) + myTransformer( 0 ), + myIsInitialized( false ) { } @@ -168,6 +169,15 @@ void GraphicsView_Viewer::activateTransform( int theType ) } } +//================================================================ +// Function : setIsInitialized +// Purpose : +//================================================================ +void GraphicsView_Viewer::setIsInitialized( bool theFlag ) +{ + myIsInitialized = theFlag; +} + //================================================================ // Function : createTransformer // Purpose : diff --git a/src/GraphicsView/GraphicsView_Viewer.h b/src/GraphicsView/GraphicsView_Viewer.h index d5650c847..225a7d708 100644 --- a/src/GraphicsView/GraphicsView_Viewer.h +++ b/src/GraphicsView/GraphicsView_Viewer.h @@ -72,6 +72,9 @@ public: void activateTransform( int ); + bool isInitialized() const { return myIsInitialized; } + void setIsInitialized( bool ); + signals: void selectionChanged( GV_SelectionChangeStatus ); @@ -104,6 +107,8 @@ private: protected: GraphicsView_Selector* mySelector; GraphicsView_ViewTransformer* myTransformer; + + bool myIsInitialized; }; #endif -- 2.39.2