00001 #include "undostackitem.h" 00002 #include <string.h> 00003 00004 00005 00006 UndoStackItem::UndoStackItem() : ListItem<UndoStackItem>() 00007 { 00008 description = 0; 00009 creator = 0; 00010 } 00011 00012 UndoStackItem::~UndoStackItem() 00013 { 00014 delete [] description; 00015 } 00016 00017 void UndoStackItem::set_description(char *description) 00018 { 00019 this->description = new char[strlen(description) + 1]; 00020 strcpy(this->description, description); 00021 } 00022 00023 void UndoStackItem::set_creator(void *creator) 00024 { 00025 this->creator = creator; 00026 } 00027 00028 void UndoStackItem::undo() 00029 { 00030 } 00031 00032 int UndoStackItem::get_size() 00033 { 00034 return 0; 00035 }
1.4.4