do, undo, copy, past

  • Thread starter Thread starter Romain TAILLANDIER
  • Start date Start date
R

Romain TAILLANDIER

Hi group

I develop some kind of editor (similar to the design visual sutido editor)
I am newbie about programming do undo copy past functions.
where can i start ?

I (think I) know that the do/undo suppose that i have a pile wich i stocke
information
to create a copy past, i suppose i have a buffer, where i can stock
something, what do i stock ? a class ?
when i past, i get my buffer, how do i know what i get ?
must i use a contructeur of copy to past ?

(go on ROM !)

So i need all that sort of info where can i found it ?

thank you for a pist
ROM
 
Hi,

Usually for this problem you tend to apply a specific pattern called
Command. I'm sure you can find a great deal of information about this, but
if you need a starting point you can take a look at this brief description
and sample code in C#:

Design Patterns: Command
http://www.dofactory.com/patterns/PatternCommand.aspx

Regards,

Gabriele
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top