From: Darius S. <dst...@us...> - 2001-07-24 11:34:52
|
Update of /cvsroot/kuml/kuml/kuml_gui/src/ige/common/commands In directory usw-pr-cvs1:/tmp/cvs-serv15670/common/commands Modified Files: NewTextCmd.cpp NewTextCmd.h NewViewCmd.cpp Log Message: Added more core implementation. Editor now supports simple line Index: NewTextCmd.cpp =================================================================== RCS file: /cvsroot/kuml/kuml/kuml_gui/src/ige/common/commands/NewTextCmd.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** NewTextCmd.cpp 2001/07/22 23:21:38 1.3 --- NewTextCmd.cpp 2001/07/24 11:34:49 1.4 *************** *** 1,2 **** --- 1,4 ---- + + /*************************************************************************** CreateTextCmd.cpp - description *************** *** 7,20 **** email : sta...@in... ***************************************************************************/ - - /*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - #include "NewTextCmd.h" #include "ige/common/views/TextView.h" --- 9,12 ---- *************** *** 25,40 **** - void NewTextCmd::execute(Editor* editor){ - NewViewCmd::execute(editor); - // qDebug("CreateTextCmd->Execute called (Not yet implemented!)"); - } void NewTextCmd::undo(){ ! qDebug("CreateTextCmd->Undo called (Not yet implemented!)"); } View * NewTextCmd::createView(Document *doc){ TextModel *tm = new TextModel(); ! TextView *tv = ViewFactory::getInstance()->create(tm); ! tv->setViewer(doc->getViewer()); return tv; } --- 17,30 ---- void NewTextCmd::undo(){ ! qDebug("NewTextCmd->Undo called (Not yet implemented!)"); } View * NewTextCmd::createView(Document *doc){ TextModel *tm = new TextModel(); ! ViewFactory factory(doc); ! TextView *tv = factory.create(tm); ! // TextView *tv = ViewFactory::getInstance()->create(tm); ! // tv->setViewer(doc->getViewer()); return tv; } Index: NewTextCmd.h =================================================================== RCS file: /cvsroot/kuml/kuml/kuml_gui/src/ige/common/commands/NewTextCmd.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** NewTextCmd.h 2001/07/22 23:21:38 1.2 --- NewTextCmd.h 2001/07/24 11:34:49 1.3 *************** *** 36,42 **** } ! virtual void undo(); ! ! virtual void execute(Editor* editor); protected: --- 36,40 ---- } ! virtual void undo(); protected: Index: NewViewCmd.cpp =================================================================== RCS file: /cvsroot/kuml/kuml/kuml_gui/src/ige/common/commands/NewViewCmd.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** NewViewCmd.cpp 2001/07/22 23:21:38 1.2 --- NewViewCmd.cpp 2001/07/24 11:34:49 1.3 *************** *** 24,28 **** Document *doc = editor->getDocument(); createdView = createView(doc); - doc->addView(createdView); } NewViewCmd::~NewViewCmd(){} --- 24,27 ---- |