Secured feature Effects.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1643 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-02-08 15:20:40 +00:00
commit 5aa6249231
3 changed files with 63 additions and 0 deletions

View file

@ -378,6 +378,11 @@ namespace Greenshot {
this.saveElementsToolStripMenuItem.Text = lang.GetString(LangKey.editor_save_objects);
this.loadElementsToolStripMenuItem.Text = lang.GetString(LangKey.editor_load_objects);
this.autoCropToolStripMenuItem.Text = lang.GetString(LangKey.editor_autocrop);
if (coreConf.isExperimentalFeatureEnabled("Effects")) {
this.shadowToolStripMenuItem.Text = lang.GetString(LangKey.editor_shadow);
this.shadowToolStripMenuItem.Visible = true;
this.tornEdgeToolStripMenuItem.Visible = true;
}
}
public ISurface Surface {
@ -1163,5 +1168,13 @@ namespace Greenshot {
refreshFieldControls();
}
}
void TornEdgeToolStripMenuItemClick(object sender, EventArgs e) {
surface.ApplyBitmapEffect(Effects.TornEdge);
}
void ShadowToolStripMenuItemClick(object sender, EventArgs e) {
surface.ApplyBitmapEffect(Effects.Shadow);
}
}
}