mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fixed some interface usage, also cleanup of the surface & editor code. This should theoretically allow usage of home made IDrawableContainer objects, which plug-ins supply.
Also made it possible to reuse the editor, currently only available editors which have a non modified surface can be reused. And only than if the configuration is set to do so. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2100 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
7bb187ce71
commit
f9abcac063
13 changed files with 233 additions and 154 deletions
|
@ -21,16 +21,17 @@
|
|||
using System;
|
||||
using Greenshot.Configuration;
|
||||
using Greenshot.Drawing;
|
||||
using Greenshot.Plugin.Drawing;
|
||||
|
||||
namespace Greenshot.Memento {
|
||||
/// <summary>
|
||||
/// The AddElementMemento makes it possible to undo adding an element
|
||||
/// </summary>
|
||||
public class AddElementMemento : IMemento {
|
||||
private DrawableContainer drawableContainer;
|
||||
private IDrawableContainer drawableContainer;
|
||||
private Surface surface;
|
||||
|
||||
public AddElementMemento(Surface surface, DrawableContainer drawableContainer) {
|
||||
public AddElementMemento(Surface surface, IDrawableContainer drawableContainer) {
|
||||
this.surface = surface;
|
||||
this.drawableContainer = drawableContainer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue