From kde-commits Fri Feb 07 00:40:39 2003 From: Dominique Devriese Date: Fri, 07 Feb 2003 00:40:39 +0000 To: kde-commits Subject: make_it_cool: kdeedu/kig/kig X-MARC-Message: https://marc.info/?l=kde-commits&m=104457852410803 CVS commit by domi: change a doc string, and add an interface to set the objects of a KigDocument M +9 -3 kig_part.cpp 1.98.2.18 M +1 -0 kig_part.h 1.40.2.2 --- kdeedu/kig/kig/kig_part.cpp #1.98.2.17:1.98.2.18 @@ -311,7 +311,7 @@ bool KigDocument::openFile() "corrupted and is no longer usable. If you know that the file is " "valid, and you think Kig should be able to open it, you can try to " - "send me a copy of the file and ask me nicely to check it out. If " - "you want more certain results, you can always do the work yourself " - "( since Kig is Free Software ), and send me a patch." + "send me a copy of the file and ask me to check it out. If you want " + "more certain results, you can always do the work yourself ( since Kig " + "is Free Software ), and send me a patch." ) ); return false; @@ -701,3 +701,9 @@ void KigDocument::doneMode( KigMode* d ) kapp->exit_loop(); #endif +} + +void KigDocument::setObjects( const Objects& os ) +{ + assert( mObjs.empty() ); + mObjs = os; } --- kdeedu/kig/kig/kig_part.h #1.40.2.1:1.40.2.2 @@ -124,4 +124,5 @@ public: const Objects& objects() const { return mObjs;}; + void setObjects( const Objects& os ); const CoordinateSystem& coordinateSystem() const; KigMode* mode() { return mMode; };