From: ouv Date: Thu, 18 Nov 2010 10:44:31 +0000 (+0000) Subject: Added myIsInitialized flag X-Git-Tag: DIAGRAM_0_1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=88f5bb4fffb4c04e9b2a0f78f5c704beddac823b;p=modules%2Fgui.git Added myIsInitialized flag --- 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