f-spot r4281 - in trunk/extensions: . FlipEditor
- From: rubenv svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4281 - in trunk/extensions: . FlipEditor
- Date: Mon, 18 Aug 2008 11:07:30 +0000 (UTC)
Author: rubenv
Date: Mon Aug 18 11:07:30 2008
New Revision: 4281
URL: http://svn.gnome.org/viewvc/f-spot?rev=4281&view=rev
Log:
2008-08-18 Ruben Vermeersch <ruben savanne be>
Add a sample extension, using the new Editors extension point. Does
horizontal flipping.
* FlipEditor/FlipEditor.addin.xml: Added.
* FlipEditor/FlipEditor.cs: Added.
* FlipEditor/Makefile: Added.
Added:
trunk/extensions/FlipEditor/
trunk/extensions/FlipEditor/FlipEditor.addin.xml
trunk/extensions/FlipEditor/FlipEditor.cs
trunk/extensions/FlipEditor/Makefile
Modified:
trunk/extensions/ChangeLog
Added: trunk/extensions/FlipEditor/FlipEditor.addin.xml
==============================================================================
--- (empty file)
+++ trunk/extensions/FlipEditor/FlipEditor.addin.xml Mon Aug 18 11:07:30 2008
@@ -0,0 +1,17 @@
+<Addin namespace="FSpot"
+ id="FlipEditor"
+ version="0.4.5.0"
+ name="FlipEditor"
+ description="Flips the image horizontally."
+ author="Ruben Vermeersch"
+ url="http://f-spot.org/Extensions"
+ category="Editors">
+ <Dependencies>
+ <Addin id="Core" version="0.4.4.102"/>
+ </Dependencies>
+ <Extension path = "/FSpot/Editors">
+ <Editor editor_type = "FSpot.Addins.Editors.FlipEditor"/>
+ </Extension>
+</Addin>
+
+
Added: trunk/extensions/FlipEditor/FlipEditor.cs
==============================================================================
--- (empty file)
+++ trunk/extensions/FlipEditor/FlipEditor.cs Mon Aug 18 11:07:30 2008
@@ -0,0 +1,26 @@
+/*
+ * FlipEditor.cs
+ *
+ * Author(s)
+ * Ruben Vermeersch <ruben savanne be>
+ *
+ * This is free software. See COPYING for details.
+ */
+
+using FSpot;
+using FSpot.Editors;
+using Gdk;
+using Mono.Unix;
+
+namespace FSpot.Addins.Editors {
+ class FlipEditor : Editor {
+ public FlipEditor () : base (Catalog.GetString ("Flip"), "object-flip-horizontal") {
+ CanHandleMultiple = true;
+ }
+
+ protected override Pixbuf Process (Pixbuf input, Cms.Profile input_profile) {
+ Pixbuf output = (Pixbuf) input.Clone ();
+ return output.Flip (true);
+ }
+ }
+}
Added: trunk/extensions/FlipEditor/Makefile
==============================================================================
--- (empty file)
+++ trunk/extensions/FlipEditor/Makefile Mon Aug 18 11:07:30 2008
@@ -0,0 +1,29 @@
+all: FlipEditor.dll
+
+PACKAGES = \
+ -pkg:f-spot \
+ -pkg:gtk-sharp-2.0
+
+ASSEMBLIES = \
+ -r:Mono.Posix
+
+RESOURCES = \
+ -resource:FlipEditor.addin.xml
+
+SOURCES = \
+ FlipEditor.cs
+
+install: all
+ cp *.dll ~/.gnome2/f-spot/addins/
+
+mpack: FlipEditor.dll
+ mautil p FlipEditor.dll
+
+FlipEditor.dll: $(SOURCES) FlipEditor.addin.xml
+ gmcs -target:library $(SOURCES) $(PACKAGES) $(ASSEMBLIES) $(RESOURCES)
+
+clean:
+ rm -f *.dll *~ *.bak .mpack
+
+PHONY:
+ install clean all mpack
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]