|
From: Darius S. <dst...@us...> - 2001-07-25 13:00:46
|
Update of /cvsroot/kuml/kuml/kuml_gui/src/ige/common/commands
In directory usw-pr-cvs1:/tmp/cvs-serv4214
Added Files:
NewChainedLineCmd.h NewChainedLineCmd.cpp
Log Message:
Added file
--- NEW FILE ---
/***************************************************************************
NewChainedLineCmd.h - description
-------------------
begin : Tue July 24 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 NEWCHAINEDLINECMD_H
#define NEWCHAINEDLINECMD_H
#include "NewViewCmd.h"
class Document;
class View;
class NewChainedLineCmd : public NewViewCmd {
public:
virtual void undo();
virtual string getDescription() {
return "New Chained Line";
}
protected:
virtual View * createView(Document *doc);
public:
virtual ~NewChainedLineCmd();
NewChainedLineCmd();
};
#endif //NEWCHAINEDLINECMD_H
--- NEW FILE ---
/***************************************************************************
NewChainedLineCmd.cpp - description
-------------------
begin : Tue July 24 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 "NewChainedLineCmd.h"
#include "ige/common/views/ViewFactory.h"
#include "ige/common/views/View.h"
View * NewChainedLineCmd::createView(Document *doc){
// TextModel *tm = new TextModel();
ViewFactory factory(doc);
View *v = (View*)factory.createChainedLine();
// ChainedLineView *clv = factory.createChainedLine();
return v;
}
void NewChainedLineCmd::undo(){
qDebug("NewChainedLineCmd->Undo called (Not yet implemented!)");
}
NewChainedLineCmd::~NewChainedLineCmd(){
}
NewChainedLineCmd::NewChainedLineCmd(){
}
|