Spade-Editor / Spade

Cross-platform raster graphics editor inspired by Paint.NET
GNU General Public License v3.0
41 stars 10 forks source link

Write history to file #49

Closed HeroesGrave closed 9 years ago

HeroesGrave commented 10 years ago

@Longor1996

Do you have any idea how to do this?

Longor1996 commented 10 years ago

Make a binary format that can be used to store 'Changes' to the harddrive. Changes should only stored on the harddrive if they are 'too old', which should be the case after 8-16 changes. When the user 'undos' changes, then we go and load the youngest stored change into the history.

Thats as far as I can think on this for now.

HeroesGrave commented 10 years ago

The problem is that some of the history functions store a lot of complex data.

It's going to be a nightmare to implement and I might have to leave it off for 1.0, unless someone else wants to do it.

HeroesGrave commented 10 years ago

Anyone else want to take care of this?

Or should I remove the 1.0 milestone from this issue.

Gef4K commented 10 years ago

Perhaps instead of saving parameters, serialization could be used. I will do some tests...

HeroesGrave commented 10 years ago

I just pushed out a few updates, so make sure to pull in the latest dev. ;)

HeroesGrave commented 10 years ago

@Gef4K: Have you got anything working? (or at least something to start from)

If not, I'll just let it throw away old changes.

Then we can push out a 1.0 Beta.

Gef4K commented 10 years ago

No yet, but I don't give up for later ;)

HeroesGrave commented 10 years ago

I'm going to de-nominate this for 1.0.

It will still be needed, just not for the first release.

HeroesGrave commented 10 years ago

Renominating for 1.0

See #74.

HeroesGrave commented 9 years ago

Done.

That was actually really easy to do with the new serialised changes.