-// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
SalomeApp_Study* getStudy () const;
bool checkViewWindow ();
- bool onAccept( const bool publish = true, const bool useTransaction = true );
+ bool onAccept( const bool publish = true, const bool useTransaction = true, bool erasePreviewFlag = true);
// This method should be called from "OK" button handler.
// <publish> == true means that objects returned by execute()
// should be published in a study.
virtual void setIsWaitCursorEnabled( const bool theFlag ) {myIsWaitCursorEnabled = theFlag;}
virtual bool isWaitCursorEnabled() const {return myIsWaitCursorEnabled ;}
+ virtual void setIsDisableBrowsing( const bool theFlag ) { myIsDisableBrowsing = theFlag; }
+ virtual bool isDisableBrowsing() const { return myIsDisableBrowsing; }
+
private:
QString getEntry( GEOM::GEOM_Object_ptr ) const;
bool myIsApplyAndClose;
bool myIsOptimizedBrowsing;
bool myIsWaitCursorEnabled;
+ bool myIsDisableBrowsing; //This flag enable/disable selection
+ //in the Object Browser newly created objects.
};