From: stv Date: Fri, 11 Nov 2005 09:51:02 +0000 (+0000) Subject: no message X-Git-Tag: V3_1_0a3~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c1ad100eb501602b283abd688aa82516ac9ffed;p=modules%2Fgui.git no message --- diff --git a/src/CAF/CAF_Study.cxx b/src/CAF/CAF_Study.cxx index f35a76f0c..e9262e495 100755 --- a/src/CAF/CAF_Study.cxx +++ b/src/CAF/CAF_Study.cxx @@ -31,6 +31,16 @@ CAF_Study::~CAF_Study() { } +Handle(TDocStd_Document) CAF_Study::stdDocument() const +{ + return myStdDoc; +} + +void CAF_Study::setStdDocument( Handle(TDocStd_Document)& aStdDoc ) +{ + myStdDoc = aStdDoc; +} + bool CAF_Study::startOperation() { if ( myStdDoc.IsNull() ) diff --git a/src/CAF/CAF_Study.h b/src/CAF/CAF_Study.h index b84f8e089..dc1f7fe5f 100755 --- a/src/CAF/CAF_Study.h +++ b/src/CAF/CAF_Study.h @@ -20,28 +20,28 @@ class CAF_EXPORT CAF_Study : public SUIT_Study public: CAF_Study( SUIT_Application* theApp ); - CAF_Study( SUIT_Application* theApp, Handle (TDocStd_Document)& aStdDoc ); + CAF_Study( SUIT_Application* theApp, Handle(TDocStd_Document)& aStdDoc ); virtual ~CAF_Study(); - virtual bool startOperation(); - virtual void abortOperation(); - virtual void commitOperation(); - - bool isSaved() const; - bool isModified() const; - void doModified( bool undoable = true); - void undoModified(); - void clearModified(); - - bool undo(); - bool redo(); - bool canUndo() const; - bool canRedo() const; - QStringList undoNames() const; - QStringList redoNames() const; - - void setStdDocument( Handle(TDocStd_Document)& aStdDoc ) { myStdDoc = aStdDoc; } - Handle(TDocStd_Document) getStdDocument() { return myStdDoc; } + virtual bool startOperation(); + virtual void abortOperation(); + virtual void commitOperation(); + + bool isSaved() const; + bool isModified() const; + void doModified( bool undoable = true); + void undoModified(); + void clearModified(); + + bool undo(); + bool redo(); + bool canUndo() const; + bool canRedo() const; + QStringList undoNames() const; + QStringList redoNames() const; + + Handle(TDocStd_Document) stdDocument() const; + void setStdDocument( Handle(TDocStd_Document)& ); protected: Handle(TDocStd_Document) myStdDoc;