f-spot-degrade

changeset 0:5feef6944434

Stub for the Degrade F-Spot extension
author Emanuele Aina <em@nerd.ocracy.org>
date Thu Jan 01 18:38:52 2009 +0100 (19 months ago)
parents
children 5b8d3801f95c
files AssemblyInfo.cs COPYING Degrade.addin.xml Degrade.cs Degrade.mdp Degrade.mds Makefile README
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/AssemblyInfo.cs	Thu Jan 01 18:38:52 2009 +0100
     1.3 @@ -0,0 +1,7 @@
     1.4 +using System.Reflection;
     1.5 +using System.Runtime.CompilerServices;
     1.6 +
     1.7 +[assembly: AssemblyTitle("Degrade")]
     1.8 +[assembly: AssemblyDescription("F-Spot extension to degrade RAW photos to JPEG")]
     1.9 +[assembly: AssemblyCopyright("Copyright (c) 2009 Emanuele Aina <em@nerd.ocracy.org>")]
    1.10 +[assembly: AssemblyVersion("0.0.1")]
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/COPYING	Thu Jan 01 18:38:52 2009 +0100
     2.3 @@ -0,0 +1,21 @@
     2.4 +Template: http://www.opensource.org/licenses/mit-license.html
     2.5 +
     2.6 +Copyright (c) 2008-2009 Emanuele Aina <em@nerd.ocracy.org>
     2.7 +
     2.8 +Permission is hereby granted, free of charge, to any person obtaining a copy
     2.9 +of this software and associated documentation files (the "Software"), to deal
    2.10 +in the Software without restriction, including without limitation the rights
    2.11 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    2.12 +copies of the Software, and to permit persons to whom the Software is
    2.13 +furnished to do so, subject to the following conditions:
    2.14 +
    2.15 +The above copyright notice and this permission notice shall be included in
    2.16 +all copies or substantial portions of the Software.
    2.17 +
    2.18 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    2.19 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    2.20 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    2.21 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    2.22 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    2.23 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    2.24 +THE SOFTWARE.
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/Degrade.addin.xml	Thu Jan 01 18:38:52 2009 +0100
     3.3 @@ -0,0 +1,14 @@
     3.4 +<Addin namespace="FSpot"
     3.5 +    id="Degrade"
     3.6 +    version="0.0.1"
     3.7 +    description="Degrade RAW photos to JPEG"
     3.8 +    author="Emanuele Aina"
     3.9 +    url="http://techn.ocracy.org/f-spot-degrade"
    3.10 +    category="Tools">
    3.11 +    <Dependencies>
    3.12 +        <Addin id="Core" version="0.4.4"/>
    3.13 +    </Dependencies>
    3.14 +    <Extension path="/FSpot/Menus/Tools">
    3.15 +        <Command id="DegradePhotos" _label= "_Degrade Photos" command_type="Degrade.DegradeTool" />
    3.16 +    </Extension>
    3.17 +</Addin>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/Degrade.cs	Thu Jan 01 18:38:52 2009 +0100
     4.3 @@ -0,0 +1,30 @@
     4.4 +/*
     4.5 + * Degrade.cs
     4.6 + *
     4.7 + * Author(s)
     4.8 + *     Emanuele Aina <em@nerd.ocracy.org>
     4.9 + *
    4.10 + * This is free software. See COPYING for details
    4.11 + */
    4.12 +
    4.13 +using System;
    4.14 +using FSpot;
    4.15 +using FSpot.Extensions;
    4.16 +
    4.17 +namespace Degrade {
    4.18 +	public class DegradeTool: ICommand
    4.19 +	{
    4.20 +	    public void Debug(string fmt, params object[] args){
    4.21 +	        Console.WriteLine("degrade: "+fmt, args);
    4.22 +	    }
    4.23 +
    4.24 +		public DegradeTool()
    4.25 +		{
    4.26 +			Debug("init");
    4.27 +		}
    4.28 +
    4.29 +		public void Run (object o, EventArgs e) {
    4.30 +		    Debug("run");
    4.31 +		}
    4.32 +	}
    4.33 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/Degrade.mdp	Thu Jan 01 18:38:52 2009 +0100
     5.3 @@ -0,0 +1,35 @@
     5.4 +<Project name="Degrade" fileversion="2.0" language="C#" clr-version="Net_2_0" ctype="DotNetProject">
     5.5 +  <Configurations active="Debug">
     5.6 +    <Configuration name="Debug" ctype="DotNetProjectConfiguration">
     5.7 +      <Output directory="bin/Debug" assembly="Degrade" />
     5.8 +      <Build debugmode="True" target="Library" />
     5.9 +      <Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" />
    5.10 +      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="True" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
    5.11 +    </Configuration>
    5.12 +    <Configuration name="Release" ctype="DotNetProjectConfiguration">
    5.13 +      <Output directory="bin/Release" assembly="Degrade" />
    5.14 +      <Build debugmode="False" target="Library" />
    5.15 +      <Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" />
    5.16 +      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="True" generateoverflowchecks="True" generatexmldocumentation="True" ctype="CSharpCompilerParameters" />
    5.17 +    </Configuration>
    5.18 +  </Configurations>
    5.19 +  <Contents>
    5.20 +    <File name="Degrade.cs" subtype="Code" buildaction="Compile" />
    5.21 +    <File name="AssemblyInfo.cs" subtype="Code" buildaction="Compile" />
    5.22 +    <File name="Degrade.addin.xml" subtype="Code" buildaction="EmbedAsResource" />
    5.23 +    <File name="gtk-gui/generated.cs" subtype="Code" buildaction="Compile" />
    5.24 +    <File name="Makefile" subtype="Code" buildaction="Nothing" />
    5.25 +    <File name="COPYING" subtype="Code" buildaction="Nothing" />
    5.26 +  </Contents>
    5.27 +  <References>
    5.28 +    <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
    5.29 +    <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
    5.30 +    <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    5.31 +    <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
    5.32 +    <ProjectReference type="Gac" localcopy="True" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    5.33 +    <ProjectReference type="Gac" localcopy="True" refto="gnome-sharp, Version=2.16.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
    5.34 +    <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
    5.35 +    <ProjectReference type="Gac" localcopy="True" refto="f-spot, Version=0.4.2.0, Culture=neutral" />
    5.36 +  </References>
    5.37 +  <GtkDesignInfo />
    5.38 +</Project>
    5.39 \ No newline at end of file
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/Degrade.mds	Thu Jan 01 18:38:52 2009 +0100
     6.3 @@ -0,0 +1,21 @@
     6.4 +<Combine name="Degrade" fileversion="2.0" outputpath="./build/bin/">
     6.5 +  <Configurations active="Debug">
     6.6 +    <Configuration name="Debug" ctype="CombineConfiguration">
     6.7 +      <Entry build="True" name="Degrade" configuration="Debug" />
     6.8 +    </Configuration>
     6.9 +    <Configuration name="Release" ctype="CombineConfiguration">
    6.10 +      <Entry build="True" name="Degrade" configuration="Release" />
    6.11 +      <UnitTestInformation>
    6.12 +        <Test Path="">
    6.13 +          <Options EnableFilter="False" Exclude="False" ctype="NUnitCategoryOptions" />
    6.14 +        </Test>
    6.15 +      </UnitTestInformation>
    6.16 +    </Configuration>
    6.17 +  </Configurations>
    6.18 +  <StartMode startupentry="Degrade" single="True">
    6.19 +    <Execute type="None" entry="Degrade" />
    6.20 +  </StartMode>
    6.21 +  <Entries>
    6.22 +    <Entry filename="./Degrade.mdp" />
    6.23 +  </Entries>
    6.24 +</Combine>
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/Makefile	Thu Jan 01 18:38:52 2009 +0100
     7.3 @@ -0,0 +1,35 @@
     7.4 +NAME = Degrade
     7.5 +
     7.6 +SOURCES = \
     7.7 +	Degrade.cs
     7.8 +
     7.9 +PACKAGES = \
    7.10 +	-pkg:f-spot \
    7.11 +	-pkg:gtk-sharp-2.0 \
    7.12 +	-pkg:glib-sharp-2.0 \
    7.13 +	-pkg:gnome-sharp-2.0
    7.14 +
    7.15 +ASSEMBLIES = \
    7.16 +	-r:Mono.Posix
    7.17 +
    7.18 +RESOURCES = \
    7.19 +	-resource:$(NAME).addin.xml
    7.20 +
    7.21 +ASSEMBLY = $(NAME).dll
    7.22 +
    7.23 +all: $(ASSEMBLY)
    7.24 +
    7.25 +install: all
    7.26 +	cp *.dll ~/.gnome2/f-spot/addins/
    7.27 +
    7.28 +mpack: $(ASSEMBLY)
    7.29 +	mautil p $(ASSEMBLY)
    7.30 +
    7.31 +$(ASSEMBLY): $(SOURCES) $(NAME).addin.xml
    7.32 +	gmcs -unsafe -target:library -o:$(ASSEMBLY) $(SOURCES) $(PACKAGES) $(ASSEMBLIES) $(RESOURCES)
    7.33 +
    7.34 +clean:
    7.35 +	rm -f *.dll *~ *.bak .mpack
    7.36 +
    7.37 +PHONY:
    7.38 +	install clean all mpack
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/README	Thu Jan 01 18:38:52 2009 +0100
     8.3 @@ -0,0 +1,17 @@
     8.4 +Degrade F-Spot Extension
     8.5 +========================
     8.6 +
     8.7 +This is a F-Spot extension to convert a RAW photo to a JPEG one,
     8.8 +usually to save space.
     8.9 +
    8.10 +The code is released under a MIT/X11-style license (see COPYING).
    8.11 +
    8.12 +Development
    8.13 +===========
    8.14 +
    8.15 +The source code is available in a Mercurial repository at:
    8.16 +
    8.17 +http://techn.ocracy.org/f-spot-degrade
    8.18 +
    8.19 +Feel free to ask anything about this extension to
    8.20 +Emanuele Aina <em@nerd.ocracy.org>

To download these repositories, get Mercurial and then type something like:

hg clone http://techn.ocracy.org/repository-name/

You can also click the "zip" or "gz" links to get an archive of the latest revision without installing anything.

The change logs of the repositories are aggregated at techn.ocracy.org/planet.

We have also some darcs repositories at techn.ocracy.org/darcs.