Update of /cvsroot/kuml/kuml/kuml_gui/src/editorapp/editorapp
In directory usw-pr-cvs1:/tmp/cvs-serv2844
Modified Files:
editorappview.cpp
Log Message:
Adding execution of new chained line command
Index: editorappview.cpp
===================================================================
RCS file: /cvsroot/kuml/kuml/kuml_gui/src/editorapp/editorapp/editorappview.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** editorappview.cpp 2001/07/24 11:40:53 1.3
--- editorappview.cpp 2001/07/25 12:53:58 1.4
***************
*** 20,26 ****
--- 20,28 ----
#include "ige/common/commands/NewTextCmd.h"
#include "ige/common/commands/NewSimpleLineCmd.h"
+ #include "ige/common/commands/NewChainedLineCmd.h"
#include "ige/common/commands/MoveCmd.h"
#include "ige/common/commands/NewStdDocumentCmd.h"
#include "ige/common/views/LineView.h"
+ #include "ige/common/views/ChainedLineView.h"
EditorAppView::EditorAppView(QWidget *parent, EditorAppDoc *doc) : DoubleBufferViewer(parent)
***************
*** 53,56 ****
--- 55,64 ----
((LineView*)cmd5->getCreated())->setStartPoint(QPoint(500,100));
((LineView*)cmd5->getCreated())->setEndPoint(QPoint(580,350));
+
+ NewChainedLineCmd *cmd6 = new NewChainedLineCmd();
+ editor->execute(cmd6);
+ ((ChainedLineView*)cmd6->getCreated())->setSegments(5);
+ ((ChainedLineView*)cmd6->getCreated())->setStartPoint(QPoint(100,150));
+ ((ChainedLineView*)cmd6->getCreated())->setEndPoint(QPoint(480,400));
// editor->undo();
|