Update of /cvsroot/kuml/kuml/kuml_gui/src/ige/common/commands
In directory usw-pr-cvs1:/tmp/cvs-serv16610
Added Files:
NewSimpleLineCmd.h NewSimpleLineCmd.cpp
Log Message:
Added file
--- NEW FILE ---
/***************************************************************************
NewSimpleLineCmd.cpp - description
-------------------
begin : Mon July 23 2001
copyright : (C) 2001 by the kUML Team
author : Darius Stachow
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. *
* *
***************************************************************************/
#ifndef NEWSIMPLELINECMD_H
#define NEWSIMPLELINECMD_H
#include "NewViewCmd.h"
class Document;
class View;
class Editor;
class NewSimpleLineCmd : public NewViewCmd {
public:
virtual void undo();
virtual string getDescription() {
return "New Simple Line";
}
protected:
virtual View * createView(Document *doc);
public:
virtual ~NewSimpleLineCmd();
NewSimpleLineCmd();
};
#endif //NEWSIMPLELINECMD_H
--- NEW FILE ---
/***************************************************************************
NewSimpleLineCmd.h - description
-------------------
begin : Mon July 23 2001
copyright : (C) 2001 by the kUML Team
author : Darius Stachow
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 "NewSimpleLineCmd.h"
#include "ige/common/views/ViewFactory.h"
#include "ige/common/views/View.h"
View * NewSimpleLineCmd::createView(Document *doc){
ViewFactory factory(doc);
SimpleLineView *slv = factory.createSimpleLine();
// View *v = ViewFactory::getInstance()->createSimpleLine();
// v->setViewer(doc->getViewer());
return (View*)slv;
}
void NewSimpleLineCmd::undo(){
qDebug("NewSimpleLineCmd->Undo called (Not yet implemented!)");
}
NewSimpleLineCmd::~NewSimpleLineCmd(){
}
NewSimpleLineCmd::NewSimpleLineCmd(){
}
|