-// 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
void redisplay ( GEOM::GEOM_Object_ptr, const bool = true, const bool = true );
virtual void displayPreview ( const bool display,
- const bool activate = false,
+ const bool activate = false,
const bool update = true,
const bool toRemoveFromEngine = true,
const double lineWidth = -1,
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 setIsOptimizedBrowsing( const bool theFlag );
virtual bool isOptimizedBrowsing() const;
+
+ 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;
SUIT_Desktop* myDesktop;
bool myIsApplyAndClose;
bool myIsOptimizedBrowsing;
+ bool myIsWaitCursorEnabled;
+ bool myIsDisableBrowsing; //This flag enable/disable selection
+ //in the Object Browser newly created objects.
};