diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-03-24 04:22:57 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-03-24 04:22:57 +0300 |
commit | 30122cdaa2a45776d5ecaf7c108913f85bc18cb7 (patch) | |
tree | b2d0e22da700b8e6a6c1c63f6f9489530affdf96 /Samples | |
parent | 52ce3f073cf3cac734253f20fc582c596b41458d (diff) | |
parent | a5117dbd04ce50a622e49e87b616a0ccaee63ddd (diff) |
Moved samples to its own solution in a Samples workspace. Added new samples.
svn path=/trunk/mono-addins/; revision=154100
Diffstat (limited to 'Samples')
103 files changed, 984 insertions, 902 deletions
diff --git a/Samples/ChangeLog b/Samples/ChangeLog index 325f8d9..d59b4fc 100644 --- a/Samples/ChangeLog +++ b/Samples/ChangeLog @@ -1,3 +1,25 @@ +2010-03-24 Lluis Sanchez Gual <lluis@novell.com> + + * HelloWorld/HelloWorld: + * HelloWorld/HelloWorld.sln: + * HelloWorld/HelloWorldAddin: + * HelloWorld/HelloWorld/Main.cs: + * HelloWorldWithManifest/HelloWorld: + * HelloWorld/HelloWorld/ICommand.cs: + * HelloWorldWithManifest/HelloWorldAddin: + * HelloWorld/HelloWorld/HelloWorld.csproj: + * HelloWorldWithManifest/HelloWorld/Main.cs: + * HelloWorld/HelloWorldAddin/HelloCommand.cs: + * HelloWorldWithManifest/HelloWorld/ICommand.cs: + * HelloWorldWithManifest/HelloWorldWithManifest.sln: + * HelloWorld/HelloWorldAddin/HelloWorldAddin.csproj: + * HelloWorldWithManifest/HelloWorld/HelloWorld.csproj: + * HelloWorldWithManifest/HelloWorldAddin/HelloCommand.cs: + * HelloWorldWithManifest/HelloWorld/HelloWorld.addin.xml: + * HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj: + * HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.addin.xml: + Added new samples. + 2008-11-10 Lluis Sanchez Gual <lluis@novell.com> * TextEditor/Makefile.am: diff --git a/Samples/HelloWorld/HelloWorld.sln b/Samples/HelloWorld/HelloWorld.sln new file mode 100644 index 0000000..a35d026 --- /dev/null +++ b/Samples/HelloWorld/HelloWorld.sln @@ -0,0 +1,30 @@ +
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld", "HelloWorld\HelloWorld.csproj", "{409DA1E7-DC6D-4B00-858F-0ABF1593AE3C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorldAddin", "HelloWorldAddin\HelloWorldAddin.csproj", "{64A8A62E-133F-4CDB-B174-4B36E0827099}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {409DA1E7-DC6D-4B00-858F-0ABF1593AE3C}.Debug|x86.ActiveCfg = Debug|x86
+ {409DA1E7-DC6D-4B00-858F-0ABF1593AE3C}.Debug|x86.Build.0 = Debug|x86
+ {409DA1E7-DC6D-4B00-858F-0ABF1593AE3C}.Release|x86.ActiveCfg = Release|x86
+ {409DA1E7-DC6D-4B00-858F-0ABF1593AE3C}.Release|x86.Build.0 = Release|x86
+ {64A8A62E-133F-4CDB-B174-4B36E0827099}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {64A8A62E-133F-4CDB-B174-4B36E0827099}.Debug|x86.Build.0 = Debug|Any CPU
+ {64A8A62E-133F-4CDB-B174-4B36E0827099}.Release|x86.ActiveCfg = Release|Any CPU
+ {64A8A62E-133F-4CDB-B174-4B36E0827099}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(MonoDevelopProperties) = preSolution
+ StartupItem = HelloWorld\HelloWorld.csproj
+ Policies = $0
+ $0.ChangeLogPolicy = $1
+ $1.UpdateMode = Nearest
+ $1.inheritsSet = Mono
+ EndGlobalSection
+EndGlobal
diff --git a/Samples/HelloWorld/HelloWorld/HelloWorld.csproj b/Samples/HelloWorld/HelloWorld/HelloWorld.csproj new file mode 100644 index 0000000..69bb134 --- /dev/null +++ b/Samples/HelloWorld/HelloWorld/HelloWorld.csproj @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">x86</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{409DA1E7-DC6D-4B00-858F-0ABF1593AE3C}</ProjectGuid> + <OutputType>Exe</OutputType> + <RootNamespace>HelloWorld</RootNamespace> + <AssemblyName>HelloWorld</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\bin</OutputPath> + <DefineConstants>DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <PlatformTarget>x86</PlatformTarget> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <DebugType>none</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\bin</OutputPath> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <PlatformTarget>x86</PlatformTarget> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="Main.cs" /> + <Compile Include="ICommand.cs" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> +</Project>
\ No newline at end of file diff --git a/Samples/HelloWorld/HelloWorld/ICommand.cs b/Samples/HelloWorld/HelloWorld/ICommand.cs new file mode 100644 index 0000000..6c4a5d6 --- /dev/null +++ b/Samples/HelloWorld/HelloWorld/ICommand.cs @@ -0,0 +1,41 @@ +// +// ICommand.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 Novell, Inc (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using System; +using Mono.Addins; + +namespace HelloWorld +{ + // This is an interface which can be implemented by add-ins. By applying the TypeExtensionPoint we are + // creating a new extension point. + + [TypeExtensionPoint] + public interface ICommand + { + void Run (); + } +} + diff --git a/Samples/HelloWorld/HelloWorld/Main.cs b/Samples/HelloWorld/HelloWorld/Main.cs new file mode 100644 index 0000000..c71c826 --- /dev/null +++ b/Samples/HelloWorld/HelloWorld/Main.cs @@ -0,0 +1,51 @@ +// +// Main.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 Novell, Inc (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +using System; +using Mono.Addins; + +// Specifies that this assembly is an add-in root, +// which means that it can be extended by add-ins. +[assembly:AddinRoot ("HelloWorld", "1.0")] + +namespace HelloWorld +{ + class MainClass + { + public static void Main (string[] args) + { + // Initializes the add-in engine + AddinManager.Initialize (); + + // Looks for new add-ins and updates the add-in registry. + AddinManager.Registry.Update (null); + + // Gets all commands implemented in add-ins. + foreach (ICommand cmd in AddinManager.GetExtensionObjects (typeof(ICommand))) + cmd.Run (); + } + } +} + diff --git a/Samples/HelloWorld/HelloWorldAddin/HelloCommand.cs b/Samples/HelloWorld/HelloWorldAddin/HelloCommand.cs new file mode 100644 index 0000000..ecd5f82 --- /dev/null +++ b/Samples/HelloWorld/HelloWorldAddin/HelloCommand.cs @@ -0,0 +1,52 @@ +// +// HelloCommand.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 Novell, Inc (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using System; +using HelloWorld; +using Mono.Addins; + +// Declares that this assembly is an add-in +[assembly:Addin] + +// Declares that this add-in depends on the HelloWorld v1.0 add-in root +[assembly:AddinDependency ("HelloWorld", "1.0")] + +namespace HelloWorldAddin +{ + // The Extension attribute must be applied to declare that this class is extending + // and extension point of the host + + [Extension] + public class HelloCommand: ICommand + { + public void Run () + { + Console.WriteLine ("Hello World!"); + } + + } +} + diff --git a/Samples/HelloWorld/HelloWorldAddin/HelloWorldAddin.csproj b/Samples/HelloWorld/HelloWorldAddin/HelloWorldAddin.csproj new file mode 100644 index 0000000..4b597fb --- /dev/null +++ b/Samples/HelloWorld/HelloWorldAddin/HelloWorldAddin.csproj @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{64A8A62E-133F-4CDB-B174-4B36E0827099}</ProjectGuid> + <OutputType>Library</OutputType> + <RootNamespace>HelloWorldAddin</RootNamespace> + <AssemblyName>HelloWorldAddin</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\bin</OutputPath> + <DefineConstants>DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <ConsolePause>false</ConsolePause> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>none</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\bin</OutputPath> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <ConsolePause>false</ConsolePause> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="HelloCommand.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\HelloWorld\HelloWorld.csproj"> + <Project>{409DA1E7-DC6D-4B00-858F-0ABF1593AE3C}</Project> + <Name>HelloWorld</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> +</Project>
\ No newline at end of file diff --git a/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.addin.xml b/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.addin.xml new file mode 100644 index 0000000..5fe9ca1 --- /dev/null +++ b/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.addin.xml @@ -0,0 +1,8 @@ +<Addin id="HelloWorld" version="1.0" isroot="true"> + + <!-- Declare a new extension point. This extension points will have elements with the name "Command" --> + <ExtensionPoint path = "/Commands"> + <ExtensionNode name="Command" /> + </ExtensionPoint> + +</Addin> diff --git a/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.csproj b/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.csproj new file mode 100644 index 0000000..df864d0 --- /dev/null +++ b/Samples/HelloWorldWithManifest/HelloWorld/HelloWorld.csproj @@ -0,0 +1 @@ +<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5F813963-DE40-433A-ABE3-71EACDF19412}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>HelloWorld</RootNamespace>
<AssemblyName>HelloWorld</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\bin\Mono.Addins.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="ICommand.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="HelloWorld.addin.xml">
<LogicalName>HelloWorld.addin.xml</LogicalName>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file diff --git a/Samples/HelloWorldWithManifest/HelloWorld/ICommand.cs b/Samples/HelloWorldWithManifest/HelloWorld/ICommand.cs new file mode 100644 index 0000000..6048538 --- /dev/null +++ b/Samples/HelloWorldWithManifest/HelloWorld/ICommand.cs @@ -0,0 +1,39 @@ +// +// ICommand.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 Novell, Inc (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using System; +using Mono.Addins; + +namespace HelloWorld +{ + // This is an interface which can be implemented by add-ins. + + public interface ICommand + { + void Run (); + } +} + diff --git a/Samples/HelloWorldWithManifest/HelloWorld/Main.cs b/Samples/HelloWorldWithManifest/HelloWorld/Main.cs new file mode 100644 index 0000000..7c9f219 --- /dev/null +++ b/Samples/HelloWorldWithManifest/HelloWorld/Main.cs @@ -0,0 +1,48 @@ +// +// Main.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 Novell, Inc (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using System; +using Mono.Addins; + +namespace HelloWorld +{ + class MainClass + { + public static void Main (string[] args) + { + // Initializes the add-in engine + AddinManager.Initialize (); + + // Looks for new add-ins and updates the add-in registry. + AddinManager.Registry.Update (null); + + // Gets all commands implemented in add-ins. + foreach (ICommand cmd in AddinManager.GetExtensionObjects ("/Commands")) + cmd.Run (); + } + } +} + diff --git a/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloCommand.cs b/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloCommand.cs new file mode 100644 index 0000000..ad97a6e --- /dev/null +++ b/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloCommand.cs @@ -0,0 +1,40 @@ +// +// HelloCommand.cs +// +// Author: +// Lluis Sanchez Gual <lluis@novell.com> +// +// Copyright (c) 2010 Novell, Inc (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using System; +using HelloWorld; + +namespace HelloWorldAddin +{ + public class HelloCommand: ICommand + { + public void Run () + { + Console.WriteLine ("Hello World!"); + } + } +} + diff --git a/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.addin.xml b/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.addin.xml new file mode 100644 index 0000000..865ae4a --- /dev/null +++ b/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.addin.xml @@ -0,0 +1,13 @@ +<Addin> + + <!-- This add-in depends on the HelloWorld v1.0 add-in root --> + <Dependencies> + <Addin id="HelloWorld" version="1.0" /> + </Dependencies> + + <!-- Register an extension for the /Commands extension point --> + <Extension path = "/Commands"> + <Command class="HelloWorldAddin.HelloCommand" /> + </Extension> + +</Addin> diff --git a/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj b/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj new file mode 100644 index 0000000..c5fe307 --- /dev/null +++ b/Samples/HelloWorldWithManifest/HelloWorldAddin/HelloWorldAddin.csproj @@ -0,0 +1 @@ +<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{26C85FBC-0A97-4650-807F-E889C6D1F32F}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>HelloWorldAddin</RootNamespace>
<AssemblyName>HelloWorldAddin</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="HelloWorldAddin.addin.xml">
<LogicalName>HelloWorldAddin.addin.xml</LogicalName>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Compile Include="HelloCommand.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HelloWorld\HelloWorld.csproj">
<Project>{5F813963-DE40-433A-ABE3-71EACDF19412}</Project>
<Name>HelloWorld</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file diff --git a/Samples/HelloWorldWithManifest/HelloWorldWithManifest.sln b/Samples/HelloWorldWithManifest/HelloWorldWithManifest.sln new file mode 100644 index 0000000..b9084f1 --- /dev/null +++ b/Samples/HelloWorldWithManifest/HelloWorldWithManifest.sln @@ -0,0 +1,30 @@ +
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld", "HelloWorld\HelloWorld.csproj", "{5F813963-DE40-433A-ABE3-71EACDF19412}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorldAddin", "HelloWorldAddin\HelloWorldAddin.csproj", "{26C85FBC-0A97-4650-807F-E889C6D1F32F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {26C85FBC-0A97-4650-807F-E889C6D1F32F}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {26C85FBC-0A97-4650-807F-E889C6D1F32F}.Debug|x86.Build.0 = Debug|Any CPU
+ {26C85FBC-0A97-4650-807F-E889C6D1F32F}.Release|x86.ActiveCfg = Release|Any CPU
+ {26C85FBC-0A97-4650-807F-E889C6D1F32F}.Release|x86.Build.0 = Release|Any CPU
+ {5F813963-DE40-433A-ABE3-71EACDF19412}.Debug|x86.ActiveCfg = Debug|x86
+ {5F813963-DE40-433A-ABE3-71EACDF19412}.Debug|x86.Build.0 = Debug|x86
+ {5F813963-DE40-433A-ABE3-71EACDF19412}.Release|x86.ActiveCfg = Release|x86
+ {5F813963-DE40-433A-ABE3-71EACDF19412}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(MonoDevelopProperties) = preSolution
+ StartupItem = HelloWorld\HelloWorld.csproj
+ Policies = $0
+ $0.ChangeLogPolicy = $1
+ $1.UpdateMode = Nearest
+ $1.inheritsSet = Mono
+ EndGlobalSection
+EndGlobal
diff --git a/Samples/Makefile.am b/Samples/Makefile.am deleted file mode 100644 index 9b8f3ea..0000000 --- a/Samples/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -SUBDIRS = WriterService WriterServiceHost WriterService.SampleExtender TextEditorLib TextEditor.Xml TextEditor.CompilerService TextEditor.CompilerService.CSharp TextEditor - diff --git a/Samples/Samples.mdw b/Samples/Samples.mdw new file mode 100644 index 0000000..4b3b1c9 --- /dev/null +++ b/Samples/Samples.mdw @@ -0,0 +1,8 @@ +<WorkspaceItem name="Mono.Addins" ctype="Workspace"> + <Items> + <Item>HelloWorld/HelloWorld.sln</Item> + <Item>TextEditor/TextEditor.sln</Item> + <Item>WriterService/WriterService.sln</Item> + <Item>HelloWorldWithManifest/HelloWorldWithManifest.sln</Item> + </Items> +</WorkspaceItem>
\ No newline at end of file diff --git a/Samples/TextEditor.CompilerService.CSharp/ChangeLog b/Samples/TextEditor.CompilerService.CSharp/ChangeLog deleted file mode 100644 index 9ed3e5c..0000000 --- a/Samples/TextEditor.CompilerService.CSharp/ChangeLog +++ /dev/null @@ -1,9 +0,0 @@ -2009-08-19 Lluis Sanchez Gual <lluis@novell.com> - - * TextEditor.CompilerService.CSharp.csproj: Update target - framework to 2.0. - -2009/02/06 Lluis Sanchez Gual <lluis@novell.com> - - * TextEditor.CompilerService.CSharp.csproj: Updated. - diff --git a/Samples/TextEditor.CompilerService.CSharp/Makefile.am b/Samples/TextEditor.CompilerService.CSharp/Makefile.am deleted file mode 100644 index c8d6818..0000000 --- a/Samples/TextEditor.CompilerService.CSharp/Makefile.am +++ /dev/null @@ -1,39 +0,0 @@ - -ASSEMBLY_COMPILER_COMMAND = mcs -ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG -ASSEMBLY = ../bin/TextEditor.CompilerService.CSharp.dll -COMPILE_TARGET = library -PROJECT_REFERENCES = \ - ../../bin/Mono.Addins.dll \ - ../bin/TextEditor.CompilerService.dll -BUILD_DIR = ../bin - - -if ENABLE_GUI -all: $(ASSEMBLY) -endif - -FILES = \ - AssemblyInfo.cs \ - CSharpCompiler.cs - -DATA_FILES = - -RESOURCES = - -EXTRAS = - -REFERENCES = -r:System - -DLL_REFERENCES = - -$(ASSEMBLY).mdb: $(ASSEMBLY) - -$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) - mkdir -p $(dir $(ASSEMBLY)) - - $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref) - -if ENABLE_GUI -include $(top_srcdir)/makefile-sample.include -endif diff --git a/Samples/TextEditor.CompilerService/ChangeLog b/Samples/TextEditor.CompilerService/ChangeLog deleted file mode 100644 index df0063b..0000000 --- a/Samples/TextEditor.CompilerService/ChangeLog +++ /dev/null @@ -1,15 +0,0 @@ -2009-08-19 Lluis Sanchez Gual <lluis@novell.com> - - * TextEditor.CompilerService.csproj: Update target framework - to 2.0. - -2009-02-09 Lluis Sanchez Gual <lluis@novell.com> - - * Makefile.am: - * TextEditor.CompilerService.csproj: Fix project file. - -2009/02/06 Lluis Sanchez Gual <lluis@novell.com> - - * Makefile.am: - * TextEditor.CompilerService.csproj: Updated. - diff --git a/Samples/TextEditor.CompilerService/Makefile.am b/Samples/TextEditor.CompilerService/Makefile.am deleted file mode 100644 index 257652e..0000000 --- a/Samples/TextEditor.CompilerService/Makefile.am +++ /dev/null @@ -1,44 +0,0 @@ - -ASSEMBLY_COMPILER_COMMAND = mcs -ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG -ASSEMBLY = ../bin/TextEditor.CompilerService.dll -COMPILE_TARGET = library -PROJECT_REFERENCES = \ - ../../bin/Mono.Addins.dll \ - ../bin/TextEditorLib.dll -BUILD_DIR = ../bin - - -if ENABLE_GUI -all: $(ASSEMBLY) -endif - -FILES = \ - AssemblyInfo.cs \ - CompilerManager.cs \ - ICompiler.cs \ - RunCommand.cs - -DATA_FILES = - -RESOURCES = TextEditor.CompilerService.addin.xml - -EXTRAS = - -REFERENCES = \ - -pkg:gtk-sharp-2.0 \ - -r:Mono.Posix \ - -r:System - -DLL_REFERENCES = - -$(ASSEMBLY).mdb: $(ASSEMBLY) - -$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) - mkdir -p $(dir $(ASSEMBLY)) - - $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref) - -if ENABLE_GUI -include $(top_srcdir)/makefile-sample.include -endif diff --git a/Samples/TextEditor.Xml/ChangeLog b/Samples/TextEditor.Xml/ChangeLog deleted file mode 100644 index 56e55d4..0000000 --- a/Samples/TextEditor.Xml/ChangeLog +++ /dev/null @@ -1,14 +0,0 @@ -2009-08-19 Lluis Sanchez Gual <lluis@novell.com> - - * TextEditor.Xml.csproj: Update target framework to 2.0. - -2009-02-09 Lluis Sanchez Gual <lluis@novell.com> - - * Makefile.am: - * TextEditor.Xml.csproj: Fix project file. - -2009/02/06 Lluis Sanchez Gual <lluis@novell.com> - - * Makefile.am: - * TextEditor.Xml.csproj: Updated. - diff --git a/Samples/TextEditor.Xml/Makefile.am b/Samples/TextEditor.Xml/Makefile.am deleted file mode 100644 index 4478a2a..0000000 --- a/Samples/TextEditor.Xml/Makefile.am +++ /dev/null @@ -1,43 +0,0 @@ -ASSEMBLY_COMPILER_COMMAND = mcs -ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG -ASSEMBLY = ../bin/XmlAddin.dll -COMPILE_TARGET = library -PROJECT_REFERENCES = \ - ../../bin/Mono.Addins.dll \ - ../bin/TextEditorLib.dll -BUILD_DIR = ../bin - -if ENABLE_GUI -all: $(ASSEMBLY) -endif - -FILES = \ - AssemblyInfo.cs \ - FormatXmlCommand.cs - -DATA_FILES = - -RESOURCES = \ - EmptyFile.xml \ - TextEditor.Xml.addin.xml - -EXTRAS = - -REFERENCES = \ - -pkg:gtk-sharp-2.0 \ - -r:Mono.Posix \ - -r:System \ - -r:System.Xml - -DLL_REFERENCES = - -$(ASSEMBLY).mdb: $(ASSEMBLY) - -$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) - mkdir -p $(dir $(ASSEMBLY)) - - $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref) - -if ENABLE_GUI -include $(top_srcdir)/makefile-sample.include -endif diff --git a/Samples/TextEditor/AssemblyInfo.cs b/Samples/TextEditor/AssemblyInfo.cs deleted file mode 100644 index 76d5c81..0000000 --- a/Samples/TextEditor/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using Mono.Addins; - -// Information about this assembly is defined by the following -// attributes. -// -// change them to the information which is associated with the assembly -// you compile. - -[assembly: AssemblyTitle("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// The assembly version has following format : -// -// Major.Minor.Build.Revision -// -// You can specify all values by your own or you can build default build and revision -// numbers with the '*' character (the default): - -[assembly: AssemblyVersion("1.0.0.0")] - -// The following attributes specify the key for the sign of your assembly. See the -// .NET Framework documentation for more information about signing. -// This is not required, if you don't want signing let these attributes like they're. -[assembly: AssemblyDelaySign(false)] -[assembly: AssemblyKeyFile("")] diff --git a/Samples/TextEditor/ChangeLog b/Samples/TextEditor/ChangeLog index 1d96401..4d450a8 100644 --- a/Samples/TextEditor/ChangeLog +++ b/Samples/TextEditor/ChangeLog @@ -1,3 +1,42 @@ +2010-03-24 Lluis Sanchez Gual <lluis@novell.com> + + * gtk-gui: + * Main.cs: + * Makefile: + * ChangeLog: + * TextEditor: + * Makefile.am: + * TextEditorLib: + * TextEditor.sln: + * TextEditor.Xml: + * AssemblyInfo.cs: + * TextEditor.csproj: + * TextEditor/Main.cs: + * gtk-gui/gui.stetic: + * TextEditor/gtk-gui: + * TextEditor/ChangeLog: + * gtk-gui/generated.cs: + * TextEditor/Makefile.am: + * TextEditorLib/ChangeLog: + * TextEditor.Xml/ChangeLog: + * TextEditorLib/Makefile.am: + * TextEditor.Xml/Makefile.am: + * TextEditor.CompilerService: + * TextEditor/gtk-gui/generated.cs: + * TextEditorLib/gtk-gui/gui.stetic: + * TextEditor.CompilerService.CSharp: + * TextEditorLib/TextEditorLib.csproj: + * TextEditorLib/gtk-gui/generated.cs: + * TextEditorLib/gtk-gui/MainWindow.cs: + * TextEditor.Xml/TextEditor.Xml.csproj: + * TextEditor.CompilerService/ChangeLog: + * TextEditor.CompilerService/Makefile.am: + * TextEditor.CompilerService.CSharp/ChangeLog: + * TextEditor.CompilerService.CSharp/Makefile.am: + * TextEditor.CompilerService/TextEditor.CompilerService.csproj: + * TextEditor.CompilerService.CSharp/TextEditor.CompilerService.CSharp.csproj: + Moved samples to its own solution in a Samples workspace. + 2009-08-19 Lluis Sanchez Gual <lluis@novell.com> * TextEditor.csproj: Update target framework to 2.0. diff --git a/Samples/TextEditor/Makefile b/Samples/TextEditor/Makefile new file mode 100644 index 0000000..26efdd8 --- /dev/null +++ b/Samples/TextEditor/Makefile @@ -0,0 +1,5 @@ +all: + xbuild + +clean: + xbuild /t:Clean
\ No newline at end of file diff --git a/Samples/TextEditor.CompilerService.CSharp/AssemblyInfo.cs b/Samples/TextEditor/TextEditor.CompilerService.CSharp/AssemblyInfo.cs index af4e275..af4e275 100644 --- a/Samples/TextEditor.CompilerService.CSharp/AssemblyInfo.cs +++ b/Samples/TextEditor/TextEditor.CompilerService.CSharp/AssemblyInfo.cs diff --git a/Samples/TextEditor.CompilerService.CSharp/CSharpCompiler.cs b/Samples/TextEditor/TextEditor.CompilerService.CSharp/CSharpCompiler.cs index 7845725..7845725 100644 --- a/Samples/TextEditor.CompilerService.CSharp/CSharpCompiler.cs +++ b/Samples/TextEditor/TextEditor.CompilerService.CSharp/CSharpCompiler.cs diff --git a/Samples/TextEditor.CompilerService.CSharp/TextEditor.CompilerService.CSharp.csproj b/Samples/TextEditor/TextEditor.CompilerService.CSharp/TextEditor.CompilerService.CSharp.csproj index 913df93..844881f 100644 --- a/Samples/TextEditor.CompilerService.CSharp/TextEditor.CompilerService.CSharp.csproj +++ b/Samples/TextEditor/TextEditor.CompilerService.CSharp/TextEditor.CompilerService.CSharp.csproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -8,6 +8,8 @@ <OutputType>Library</OutputType> <AssemblyName>TextEditor.CompilerService.CSharp</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>TextEditor.CompilerService.CSharp</RootNamespace> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -22,7 +24,7 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> <Optimize>true</Optimize> - <OutputPath>bin\Release</OutputPath> + <OutputPath>..\bin</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> @@ -30,24 +32,21 @@ </PropertyGroup> <ItemGroup> <Reference Include="System" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TextEditor.CompilerService\TextEditor.CompilerService.csproj"> <Project>{613DC3EA-8A4E-4CE1-8836-DEC8ABC684A8}</Project> <Name>TextEditor.CompilerService</Name> </ProjectReference> - <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> - <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> - <Name>Mono.Addins</Name> - </ProjectReference> </ItemGroup> <ItemGroup> <Compile Include="CSharpCompiler.cs" /> <Compile Include="AssemblyInfo.cs" /> </ItemGroup> - <ItemGroup> - <None Include="Makefile.am" /> - </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> <MonoDevelop> diff --git a/Samples/TextEditor.CompilerService/AssemblyInfo.cs b/Samples/TextEditor/TextEditor.CompilerService/AssemblyInfo.cs index af4e275..af4e275 100644 --- a/Samples/TextEditor.CompilerService/AssemblyInfo.cs +++ b/Samples/TextEditor/TextEditor.CompilerService/AssemblyInfo.cs diff --git a/Samples/TextEditor.CompilerService/CompilerManager.cs b/Samples/TextEditor/TextEditor.CompilerService/CompilerManager.cs index e65ab65..e65ab65 100644 --- a/Samples/TextEditor.CompilerService/CompilerManager.cs +++ b/Samples/TextEditor/TextEditor.CompilerService/CompilerManager.cs diff --git a/Samples/TextEditor.CompilerService/ICompiler.cs b/Samples/TextEditor/TextEditor.CompilerService/ICompiler.cs index de63e69..de63e69 100644 --- a/Samples/TextEditor.CompilerService/ICompiler.cs +++ b/Samples/TextEditor/TextEditor.CompilerService/ICompiler.cs diff --git a/Samples/TextEditor.CompilerService/RunCommand.cs b/Samples/TextEditor/TextEditor.CompilerService/RunCommand.cs index 7480bc3..7480bc3 100644 --- a/Samples/TextEditor.CompilerService/RunCommand.cs +++ b/Samples/TextEditor/TextEditor.CompilerService/RunCommand.cs diff --git a/Samples/TextEditor.CompilerService/TextEditor.CompilerService.addin.xml b/Samples/TextEditor/TextEditor.CompilerService/TextEditor.CompilerService.addin.xml index eacf5a4..eacf5a4 100644 --- a/Samples/TextEditor.CompilerService/TextEditor.CompilerService.addin.xml +++ b/Samples/TextEditor/TextEditor.CompilerService/TextEditor.CompilerService.addin.xml diff --git a/Samples/TextEditor.CompilerService/TextEditor.CompilerService.csproj b/Samples/TextEditor/TextEditor.CompilerService/TextEditor.CompilerService.csproj index 66f90c3..170035f 100644 --- a/Samples/TextEditor.CompilerService/TextEditor.CompilerService.csproj +++ b/Samples/TextEditor/TextEditor.CompilerService/TextEditor.CompilerService.csproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -8,6 +8,8 @@ <OutputType>Library</OutputType> <AssemblyName>TextEditor.CompilerService</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>TextEditor.CompilerService</RootNamespace> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -22,7 +24,7 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> <Optimize>true</Optimize> - <OutputPath>bin\Release</OutputPath> + <OutputPath>..\bin</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> @@ -43,16 +45,16 @@ </Reference> <Reference Include="System" /> <Reference Include="Mono.Posix" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TextEditorLib\TextEditorLib.csproj"> <Project>{ED5EC705-1905-4FB6-821B-9464D60727EF}</Project> <Name>TextEditorLib</Name> </ProjectReference> - <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> - <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> - <Name>Mono.Addins</Name> - </ProjectReference> </ItemGroup> <ItemGroup> <Compile Include="AssemblyInfo.cs" /> @@ -61,10 +63,9 @@ <Compile Include="CompilerManager.cs" /> </ItemGroup> <ItemGroup> - <EmbeddedResource Include="TextEditor.CompilerService.addin.xml" /> - </ItemGroup> - <ItemGroup> - <None Include="Makefile.am" /> + <EmbeddedResource Include="TextEditor.CompilerService.addin.xml"> + <LogicalName>TextEditor.CompilerService.addin.xml</LogicalName> + </EmbeddedResource> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> diff --git a/Samples/TextEditor.Xml/AssemblyInfo.cs b/Samples/TextEditor/TextEditor.Xml/AssemblyInfo.cs index 198a48c..198a48c 100644 --- a/Samples/TextEditor.Xml/AssemblyInfo.cs +++ b/Samples/TextEditor/TextEditor.Xml/AssemblyInfo.cs diff --git a/Samples/TextEditor.Xml/EmptyFile.xml b/Samples/TextEditor/TextEditor.Xml/EmptyFile.xml index fcfff84..fcfff84 100644 --- a/Samples/TextEditor.Xml/EmptyFile.xml +++ b/Samples/TextEditor/TextEditor.Xml/EmptyFile.xml diff --git a/Samples/TextEditor.Xml/FormatXmlCommand.cs b/Samples/TextEditor/TextEditor.Xml/FormatXmlCommand.cs index ec63370..ec63370 100644 --- a/Samples/TextEditor.Xml/FormatXmlCommand.cs +++ b/Samples/TextEditor/TextEditor.Xml/FormatXmlCommand.cs diff --git a/Samples/TextEditor.Xml/TextEditor.Xml.addin.xml b/Samples/TextEditor/TextEditor.Xml/TextEditor.Xml.addin.xml index 0605d03..0605d03 100644 --- a/Samples/TextEditor.Xml/TextEditor.Xml.addin.xml +++ b/Samples/TextEditor/TextEditor.Xml/TextEditor.Xml.addin.xml diff --git a/Samples/TextEditor.Xml/TextEditor.Xml.csproj b/Samples/TextEditor/TextEditor.Xml/TextEditor.Xml.csproj index 7f64a06..7de954b 100644 --- a/Samples/TextEditor.Xml/TextEditor.Xml.csproj +++ b/Samples/TextEditor/TextEditor.Xml/TextEditor.Xml.csproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -8,6 +8,8 @@ <OutputType>Library</OutputType> <AssemblyName>XmlAddin</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>TextEditor.Xml</RootNamespace> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -22,7 +24,7 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> <Optimize>true</Optimize> - <OutputPath>bin\Release</OutputPath> + <OutputPath>..\bin</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> @@ -44,27 +46,28 @@ <Reference Include="System" /> <Reference Include="System.Xml" /> <Reference Include="Mono.Posix" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TextEditorLib\TextEditorLib.csproj"> <Project>{ED5EC705-1905-4FB6-821B-9464D60727EF}</Project> <Name>TextEditorLib</Name> </ProjectReference> - <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> - <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> - <Name>Mono.Addins</Name> - </ProjectReference> </ItemGroup> <ItemGroup> <Compile Include="AssemblyInfo.cs" /> <Compile Include="FormatXmlCommand.cs" /> </ItemGroup> <ItemGroup> - <EmbeddedResource Include="TextEditor.Xml.addin.xml" /> - <EmbeddedResource Include="EmptyFile.xml" /> - </ItemGroup> - <ItemGroup> - <None Include="Makefile.am" /> + <EmbeddedResource Include="TextEditor.Xml.addin.xml"> + <LogicalName>TextEditor.Xml.addin.xml</LogicalName> + </EmbeddedResource> + <EmbeddedResource Include="EmptyFile.xml"> + <LogicalName>EmptyFile.xml</LogicalName> + </EmbeddedResource> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> diff --git a/Samples/TextEditor/TextEditor.csproj b/Samples/TextEditor/TextEditor.csproj deleted file mode 100644 index 6dcb4ea..0000000 --- a/Samples/TextEditor/TextEditor.csproj +++ /dev/null @@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>8.0.50727</ProductVersion> - <ProjectGuid>{E71F8967-5191-4C91-AF4A-FDBC1230B3EA}</ProjectGuid> - <OutputType>Exe</OutputType> - <AssemblyName>TextEditor</AssemblyName> - <SchemaVersion>2.0</SchemaVersion> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - <Optimize>true</Optimize> - <OutputPath>..\bin</OutputPath> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <DebugType>none</DebugType> - <Optimize>true</Optimize> - <OutputPath>bin\Release</OutputPath> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> - </PropertyGroup> - <ItemGroup> - <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"> - <SpecificVersion>False</SpecificVersion> - </Reference> - <Reference Include="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"> - <SpecificVersion>False</SpecificVersion> - </Reference> - <Reference Include="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"> - <SpecificVersion>False</SpecificVersion> - </Reference> - <Reference Include="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"> - <SpecificVersion>False</SpecificVersion> - </Reference> - <Reference Include="System" /> - <Reference Include="Mono.Posix" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\TextEditorLib\TextEditorLib.csproj"> - <Project>{ED5EC705-1905-4FB6-821B-9464D60727EF}</Project> - <Name>TextEditorLib</Name> - </ProjectReference> - <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> - <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> - <Name>Mono.Addins</Name> - </ProjectReference> - </ItemGroup> - <ItemGroup> - <Compile Include="Main.cs" /> - <Compile Include="AssemblyInfo.cs" /> - <Compile Include="gtk-gui\generated.cs" /> - </ItemGroup> - <ItemGroup> - <None Include="Makefile.am" /> - </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> - <ProjectExtensions> - <MonoDevelop> - <Properties> - <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true" RelativeConfigureInPath="../../"> - <BuildFilesVar Sync="true" Name="FILES" /> - <DeployFilesVar Sync="true" Name="DATA_FILES" /> - <ResourcesVar Sync="true" Name="RESOURCES" /> - <OthersVar /> - <GacRefVar Sync="true" Name="REFERENCES" Prefix="-r:" /> - <AsmRefVar Sync="true" Name="DLL_REFERENCES" /> - <ProjectRefVar Sync="true" Name="PROJECT_REFERENCES" /> - </MonoDevelop.Autotools.MakefileInfo> - </Properties> - </MonoDevelop> - </ProjectExtensions> - <ItemGroup> - <EmbeddedResource Include="gtk-gui\gui.stetic"> - <LogicalName>gui.stetic</LogicalName> - </EmbeddedResource> - </ItemGroup> -</Project>
\ No newline at end of file diff --git a/Samples/TextEditor/TextEditor.sln b/Samples/TextEditor/TextEditor.sln new file mode 100644 index 0000000..71d04a0 --- /dev/null +++ b/Samples/TextEditor/TextEditor.sln @@ -0,0 +1,48 @@ +
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextEditor", "TextEditor\TextEditor.csproj", "{3592CAFF-C74F-4036-AC22-F0D9DA31CC09}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextEditorLib", "TextEditorLib\TextEditorLib.csproj", "{ED5EC705-1905-4FB6-821B-9464D60727EF}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextEditor.CompilerService", "TextEditor.CompilerService\TextEditor.CompilerService.csproj", "{613DC3EA-8A4E-4CE1-8836-DEC8ABC684A8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextEditor.CompilerService.CSharp", "TextEditor.CompilerService.CSharp\TextEditor.CompilerService.CSharp.csproj", "{B50C6B48-CA51-4538-B686-40B6F77F8623}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TextEditor.Xml", "TextEditor.Xml\TextEditor.Xml.csproj", "{4EFD5979-4000-4A32-A687-33D140081F1C}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3592CAFF-C74F-4036-AC22-F0D9DA31CC09}.Debug|x86.ActiveCfg = Debug|x86
+ {3592CAFF-C74F-4036-AC22-F0D9DA31CC09}.Debug|x86.Build.0 = Debug|x86
+ {3592CAFF-C74F-4036-AC22-F0D9DA31CC09}.Release|x86.ActiveCfg = Release|x86
+ {3592CAFF-C74F-4036-AC22-F0D9DA31CC09}.Release|x86.Build.0 = Release|x86
+ {4EFD5979-4000-4A32-A687-33D140081F1C}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {4EFD5979-4000-4A32-A687-33D140081F1C}.Debug|x86.Build.0 = Debug|Any CPU
+ {4EFD5979-4000-4A32-A687-33D140081F1C}.Release|x86.ActiveCfg = Release|Any CPU
+ {4EFD5979-4000-4A32-A687-33D140081F1C}.Release|x86.Build.0 = Release|Any CPU
+ {613DC3EA-8A4E-4CE1-8836-DEC8ABC684A8}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {613DC3EA-8A4E-4CE1-8836-DEC8ABC684A8}.Debug|x86.Build.0 = Debug|Any CPU
+ {613DC3EA-8A4E-4CE1-8836-DEC8ABC684A8}.Release|x86.ActiveCfg = Release|Any CPU
+ {613DC3EA-8A4E-4CE1-8836-DEC8ABC684A8}.Release|x86.Build.0 = Release|Any CPU
+ {B50C6B48-CA51-4538-B686-40B6F77F8623}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {B50C6B48-CA51-4538-B686-40B6F77F8623}.Debug|x86.Build.0 = Debug|Any CPU
+ {B50C6B48-CA51-4538-B686-40B6F77F8623}.Release|x86.ActiveCfg = Release|Any CPU
+ {B50C6B48-CA51-4538-B686-40B6F77F8623}.Release|x86.Build.0 = Release|Any CPU
+ {ED5EC705-1905-4FB6-821B-9464D60727EF}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {ED5EC705-1905-4FB6-821B-9464D60727EF}.Debug|x86.Build.0 = Debug|Any CPU
+ {ED5EC705-1905-4FB6-821B-9464D60727EF}.Release|x86.ActiveCfg = Release|Any CPU
+ {ED5EC705-1905-4FB6-821B-9464D60727EF}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(MonoDevelopProperties) = preSolution
+ StartupItem = TextEditor\TextEditor.csproj
+ Policies = $0
+ $0.ChangeLogPolicy = $1
+ $1.UpdateMode = Nearest
+ $1.inheritsSet = Mono
+ EndGlobalSection
+EndGlobal
diff --git a/Samples/TextEditor/Main.cs b/Samples/TextEditor/TextEditor/Main.cs index bcfadd8..bcfadd8 100644 --- a/Samples/TextEditor/Main.cs +++ b/Samples/TextEditor/TextEditor/Main.cs diff --git a/Samples/TextEditor/Makefile.am b/Samples/TextEditor/TextEditor/Makefile.am index 036bfa7..036bfa7 100644 --- a/Samples/TextEditor/Makefile.am +++ b/Samples/TextEditor/TextEditor/Makefile.am diff --git a/Samples/TextEditor/TextEditor/gtk-gui/generated.cs b/Samples/TextEditor/TextEditor/gtk-gui/generated.cs new file mode 100644 index 0000000..8463caa --- /dev/null +++ b/Samples/TextEditor/TextEditor/gtk-gui/generated.cs @@ -0,0 +1,29 @@ + +// This file has been generated by the GUI designer. Do not modify. +namespace Stetic +{ + internal class Gui + { + private static bool initialized; + + static internal void Initialize (Gtk.Widget iconRenderer) + { + if ((Stetic.Gui.initialized == false)) { + Stetic.Gui.initialized = true; + } + } + } + + internal class ActionGroups + { + public static Gtk.ActionGroup GetActionGroup (System.Type type) + { + return Stetic.ActionGroups.GetActionGroup (type.FullName); + } + + public static Gtk.ActionGroup GetActionGroup (string name) + { + return null; + } + } +} diff --git a/Samples/TextEditor/gtk-gui/gui.stetic b/Samples/TextEditor/TextEditor/gtk-gui/gui.stetic index e1c3e4f..e1c3e4f 100644 --- a/Samples/TextEditor/gtk-gui/gui.stetic +++ b/Samples/TextEditor/TextEditor/gtk-gui/gui.stetic diff --git a/Samples/TextEditorLib/AssemblyInfo.cs b/Samples/TextEditor/TextEditorLib/AssemblyInfo.cs index e7981d7..e7981d7 100644 --- a/Samples/TextEditorLib/AssemblyInfo.cs +++ b/Samples/TextEditor/TextEditorLib/AssemblyInfo.cs diff --git a/Samples/TextEditorLib/Commands/CopyCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/CopyCommand.cs index c8dae47..c8dae47 100644 --- a/Samples/TextEditorLib/Commands/CopyCommand.cs +++ b/Samples/TextEditor/TextEditorLib/Commands/CopyCommand.cs diff --git a/Samples/TextEditorLib/Commands/CutCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs index 751cac7..751cac7 100644 --- a/Samples/TextEditorLib/Commands/CutCommand.cs +++ b/Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs diff --git a/Samples/TextEditorLib/Commands/ExitCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/ExitCommand.cs index 314ebdf..314ebdf 100644 --- a/Samples/TextEditorLib/Commands/ExitCommand.cs +++ b/Samples/TextEditor/TextEditorLib/Commands/ExitCommand.cs diff --git a/Samples/TextEditorLib/Commands/NewCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/NewCommand.cs index c377618..c377618 100644 --- a/Samples/TextEditorLib/Commands/NewCommand.cs +++ b/Samples/TextEditor/TextEditorLib/Commands/NewCommand.cs diff --git a/Samples/TextEditorLib/Commands/OpenCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/OpenCommand.cs index 8c56415..8c56415 100644 --- a/Samples/TextEditorLib/Commands/OpenCommand.cs +++ b/Samples/TextEditor/TextEditorLib/Commands/OpenCommand.cs diff --git a/Samples/TextEditorLib/Commands/PasteCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/PasteCommand.cs index 6a09738..6a09738 100644 --- a/Samples/TextEditorLib/Commands/PasteCommand.cs +++ b/Samples/TextEditor/TextEditorLib/Commands/PasteCommand.cs diff --git a/Samples/TextEditorLib/Commands/SaveCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/SaveCommand.cs index 5ab9987..5ab9987 100644 --- a/Samples/TextEditorLib/Commands/SaveCommand.cs +++ b/Samples/TextEditor/TextEditorLib/Commands/SaveCommand.cs diff --git a/Samples/TextEditorLib/Commands/SetupCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/SetupCommand.cs index 2462450..2462450 100644 --- a/Samples/TextEditorLib/Commands/SetupCommand.cs +++ b/Samples/TextEditor/TextEditorLib/Commands/SetupCommand.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/FileTemplateNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/FileTemplateNode.cs index 5fe93ff..5fe93ff 100644 --- a/Samples/TextEditorLib/ExtensionNodes/FileTemplateNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/FileTemplateNode.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/MenuItemNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/MenuItemNode.cs index e6e0fdf..e6e0fdf 100644 --- a/Samples/TextEditorLib/ExtensionNodes/MenuItemNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/MenuItemNode.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/MenuNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/MenuNode.cs index bcde02d..bcde02d 100644 --- a/Samples/TextEditorLib/ExtensionNodes/MenuNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/MenuNode.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/MenuSeparatorNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/MenuSeparatorNode.cs index bfd6ce6..bfd6ce6 100644 --- a/Samples/TextEditorLib/ExtensionNodes/MenuSeparatorNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/MenuSeparatorNode.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/SubmenuNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/SubmenuNode.cs index d211445..d211445 100644 --- a/Samples/TextEditorLib/ExtensionNodes/SubmenuNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/SubmenuNode.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/TemplateCategoryNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/TemplateCategoryNode.cs index 3161eff..3161eff 100644 --- a/Samples/TextEditorLib/ExtensionNodes/TemplateCategoryNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/TemplateCategoryNode.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/ToolButtonNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/ToolButtonNode.cs index 4c3c7ec..4c3c7ec 100644 --- a/Samples/TextEditorLib/ExtensionNodes/ToolButtonNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/ToolButtonNode.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/ToolSeparatorNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/ToolSeparatorNode.cs index b46106b..b46106b 100644 --- a/Samples/TextEditorLib/ExtensionNodes/ToolSeparatorNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/ToolSeparatorNode.cs diff --git a/Samples/TextEditorLib/ExtensionNodes/ToolbarNode.cs b/Samples/TextEditor/TextEditorLib/ExtensionNodes/ToolbarNode.cs index 57b647a..57b647a 100644 --- a/Samples/TextEditorLib/ExtensionNodes/ToolbarNode.cs +++ b/Samples/TextEditor/TextEditorLib/ExtensionNodes/ToolbarNode.cs diff --git a/Samples/TextEditorLib/ICommand.cs b/Samples/TextEditor/TextEditorLib/ICommand.cs index 0ca66bb..0ca66bb 100644 --- a/Samples/TextEditorLib/ICommand.cs +++ b/Samples/TextEditor/TextEditorLib/ICommand.cs diff --git a/Samples/TextEditorLib/MainWindow.cs b/Samples/TextEditor/TextEditorLib/MainWindow.cs index 22d09aa..22d09aa 100644 --- a/Samples/TextEditorLib/MainWindow.cs +++ b/Samples/TextEditor/TextEditorLib/MainWindow.cs diff --git a/Samples/TextEditorLib/OpenFileCondition.cs b/Samples/TextEditor/TextEditorLib/OpenFileCondition.cs index f3356b4..f3356b4 100644 --- a/Samples/TextEditorLib/OpenFileCondition.cs +++ b/Samples/TextEditor/TextEditorLib/OpenFileCondition.cs diff --git a/Samples/TextEditorLib/Templates/ChangeLogTemplate.txt b/Samples/TextEditor/TextEditorLib/Templates/ChangeLogTemplate.txt index 589bf18..589bf18 100644 --- a/Samples/TextEditorLib/Templates/ChangeLogTemplate.txt +++ b/Samples/TextEditor/TextEditorLib/Templates/ChangeLogTemplate.txt diff --git a/Samples/TextEditorLib/Templates/DotConfigTemplate.txt b/Samples/TextEditor/TextEditorLib/Templates/DotConfigTemplate.txt index d2437a1..d2437a1 100644 --- a/Samples/TextEditorLib/Templates/DotConfigTemplate.txt +++ b/Samples/TextEditor/TextEditorLib/Templates/DotConfigTemplate.txt diff --git a/Samples/TextEditorLib/Templates/TextEditor.addin.xml b/Samples/TextEditor/TextEditorLib/Templates/TextEditor.addin.xml index ad75f08..ad75f08 100644 --- a/Samples/TextEditorLib/Templates/TextEditor.addin.xml +++ b/Samples/TextEditor/TextEditorLib/Templates/TextEditor.addin.xml diff --git a/Samples/TextEditorLib/Templates/WorkReport.txt b/Samples/TextEditor/TextEditorLib/Templates/WorkReport.txt index b3b53a0..b3b53a0 100644 --- a/Samples/TextEditorLib/Templates/WorkReport.txt +++ b/Samples/TextEditor/TextEditorLib/Templates/WorkReport.txt diff --git a/Samples/TextEditorLib/TextEditorApp.cs b/Samples/TextEditor/TextEditorLib/TextEditorApp.cs index 1401143..1401143 100644 --- a/Samples/TextEditorLib/TextEditorApp.cs +++ b/Samples/TextEditor/TextEditorLib/TextEditorApp.cs diff --git a/Samples/TextEditorLib/TextEditorLib.csproj b/Samples/TextEditor/TextEditorLib/TextEditorLib.csproj index 699d5c5..c6f9a03 100644 --- a/Samples/TextEditorLib/TextEditorLib.csproj +++ b/Samples/TextEditor/TextEditorLib/TextEditorLib.csproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -8,6 +8,8 @@ <OutputType>Library</OutputType> <AssemblyName>TextEditorLib</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>TextEditorLib</RootNamespace> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -22,7 +24,7 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> <Optimize>true</Optimize> - <OutputPath>bin\Release</OutputPath> + <OutputPath>..\bin</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> @@ -43,16 +45,14 @@ </Reference> <Reference Include="System" /> <Reference Include="Mono.Posix" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\Mono.Addins.Gui\Mono.Addins.Gui.csproj"> - <Project>{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}</Project> - <Name>Mono.Addins.Gui</Name> - </ProjectReference> - <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> - <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> - <Name>Mono.Addins</Name> - </ProjectReference> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> + <Reference Include="Mono.Addins.Gui, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.Gui.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <Compile Include="AssemblyInfo.cs" /> @@ -97,9 +97,6 @@ <LogicalName>WorkReport.txt</LogicalName> </EmbeddedResource> </ItemGroup> - <ItemGroup> - <None Include="Makefile.am" /> - </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> <MonoDevelop> diff --git a/Samples/TextEditor/TextEditorLib/gtk-gui/MainWindow.cs b/Samples/TextEditor/TextEditorLib/gtk-gui/MainWindow.cs new file mode 100644 index 0000000..18dd8c2 --- /dev/null +++ b/Samples/TextEditor/TextEditorLib/gtk-gui/MainWindow.cs @@ -0,0 +1,166 @@ + +// This file has been generated by the GUI designer. Do not modify. + +public partial class MainWindow +{ + private global::Gtk.UIManager UIManager; + + private global::Gtk.VBox vbox2; + + private global::Gtk.MenuBar menubar; + + private global::Gtk.Toolbar toolbar; + + private global::Gtk.ScrolledWindow scrolledwindow1; + + private global::Gtk.TextView textview; + + private global::Gtk.VBox console; + + private global::Gtk.HBox hbox1; + + private global::Gtk.Label label1; + + private global::Gtk.Button button1; + + private global::Gtk.ScrolledWindow scrolledwindow2; + + private global::Gtk.TextView consoleView; + + private global::Gtk.Statusbar statusbar1; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget MainWindow + this.UIManager = new global::Gtk.UIManager (); + global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default"); + this.UIManager.InsertActionGroup (w1, 0); + this.AddAccelGroup (this.UIManager.AccelGroup); + this.Name = "MainWindow"; + this.Title = global::Mono.Unix.Catalog.GetString ("Text Editor"); + // Container child MainWindow.Gtk.Container+ContainerChild + this.vbox2 = new global::Gtk.VBox (); + this.vbox2.Name = "vbox2"; + // Container child vbox2.Gtk.Box+BoxChild + this.UIManager.AddUiFromString ("<ui><menubar name='menubar'/></ui>"); + this.menubar = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar"))); + this.menubar.Name = "menubar"; + this.vbox2.Add (this.menubar); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.menubar])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar'/></ui>"); + this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar"))); + this.toolbar.Name = "toolbar"; + this.toolbar.ShowArrow = false; + this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); + this.toolbar.IconSize = ((global::Gtk.IconSize)(3)); + this.vbox2.Add (this.toolbar); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.toolbar])); + w3.Position = 1; + w3.Expand = false; + w3.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.scrolledwindow1 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow1.CanFocus = true; + this.scrolledwindow1.Name = "scrolledwindow1"; + this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child scrolledwindow1.Gtk.Container+ContainerChild + this.textview = new global::Gtk.TextView (); + this.textview.CanFocus = true; + this.textview.Name = "textview"; + this.scrolledwindow1.Add (this.textview); + this.vbox2.Add (this.scrolledwindow1); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1])); + w5.Position = 2; + // Container child vbox2.Gtk.Box+BoxChild + this.console = new global::Gtk.VBox (); + this.console.Name = "console"; + this.console.Spacing = 6; + this.console.BorderWidth = ((uint)(6)); + // Container child console.Gtk.Box+BoxChild + this.hbox1 = new global::Gtk.HBox (); + this.hbox1.Name = "hbox1"; + // Container child hbox1.Gtk.Box+BoxChild + this.label1 = new global::Gtk.Label (); + this.label1.Name = "label1"; + this.label1.Xalign = 0f; + this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Console"); + this.hbox1.Add (this.label1); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.label1])); + w6.Position = 0; + w6.Expand = false; + w6.Fill = false; + // Container child hbox1.Gtk.Box+BoxChild + this.button1 = new global::Gtk.Button (); + this.button1.WidthRequest = 27; + this.button1.HeightRequest = 20; + this.button1.Name = "button1"; + this.button1.UseUnderline = true; + this.button1.Relief = ((global::Gtk.ReliefStyle)(2)); + // Container child button1.Gtk.Container+ContainerChild + global::Gtk.Alignment w7 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); + // Container child GtkAlignment.Gtk.Container+ContainerChild + global::Gtk.HBox w8 = new global::Gtk.HBox (); + w8.Spacing = 2; + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Image w9 = new global::Gtk.Image (); + w9.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-close", global::Gtk.IconSize.Menu); + w8.Add (w9); + // Container child GtkHBox.Gtk.Container+ContainerChild + global::Gtk.Label w11 = new global::Gtk.Label (); + w8.Add (w11); + w7.Add (w8); + this.button1.Add (w7); + this.hbox1.Add (this.button1); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.button1])); + w15.PackType = ((global::Gtk.PackType)(1)); + w15.Position = 1; + w15.Expand = false; + w15.Fill = false; + this.console.Add (this.hbox1); + global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.console[this.hbox1])); + w16.Position = 0; + w16.Expand = false; + w16.Fill = false; + // Container child console.Gtk.Box+BoxChild + this.scrolledwindow2 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow2.CanFocus = true; + this.scrolledwindow2.Name = "scrolledwindow2"; + this.scrolledwindow2.ShadowType = ((global::Gtk.ShadowType)(1)); + // Container child scrolledwindow2.Gtk.Container+ContainerChild + this.consoleView = new global::Gtk.TextView (); + this.consoleView.CanFocus = true; + this.consoleView.Name = "consoleView"; + this.scrolledwindow2.Add (this.consoleView); + this.console.Add (this.scrolledwindow2); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.console[this.scrolledwindow2])); + w18.Position = 1; + this.vbox2.Add (this.console); + global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.console])); + w19.Position = 3; + w19.Expand = false; + w19.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.statusbar1 = new global::Gtk.Statusbar (); + this.statusbar1.Name = "statusbar1"; + this.statusbar1.Spacing = 2; + this.vbox2.Add (this.statusbar1); + global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.statusbar1])); + w20.Position = 4; + w20.Expand = false; + w20.Fill = false; + this.Add (this.vbox2); + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.DefaultWidth = 586; + this.DefaultHeight = 356; + this.Show (); + this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); + this.button1.Clicked += new global::System.EventHandler (this.OnButton1Clicked); + } +} diff --git a/Samples/TextEditor/TextEditorLib/gtk-gui/generated.cs b/Samples/TextEditor/TextEditorLib/gtk-gui/generated.cs new file mode 100644 index 0000000..8ff3153 --- /dev/null +++ b/Samples/TextEditor/TextEditorLib/gtk-gui/generated.cs @@ -0,0 +1,63 @@ + +// This file has been generated by the GUI designer. Do not modify. +namespace Stetic +{ + internal class Gui + { + private static bool initialized; + + static internal void Initialize (Gtk.Widget iconRenderer) + { + if ((Stetic.Gui.initialized == false)) { + Stetic.Gui.initialized = true; + } + } + } + + internal class IconLoader + { + public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size) + { + Gdk.Pixbuf res = widget.RenderIcon (name, size, null); + if ((res != null)) { + return res; + } else { + int sz; + int sy; + global::Gtk.Icon.SizeLookup (size, out sz, out sy); + try { + return Gtk.IconTheme.Default.LoadIcon (name, sz, 0); + } catch (System.Exception) { + if ((name != "gtk-missing-image")) { + return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size); + } else { + Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz); + Gdk.GC gc = new Gdk.GC (pmap); + gc.RgbFgColor = new Gdk.Color (255, 255, 255); + pmap.DrawRectangle (gc, true, 0, 0, sz, sz); + gc.RgbFgColor = new Gdk.Color (0, 0, 0); + pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1)); + gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round); + gc.RgbFgColor = new Gdk.Color (255, 0, 0); + pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4))); + pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4))); + return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz); + } + } + } + } + } + + internal class ActionGroups + { + public static Gtk.ActionGroup GetActionGroup (System.Type type) + { + return Stetic.ActionGroups.GetActionGroup (type.FullName); + } + + public static Gtk.ActionGroup GetActionGroup (string name) + { + return null; + } + } +} diff --git a/Samples/TextEditorLib/gtk-gui/gui.stetic b/Samples/TextEditor/TextEditorLib/gtk-gui/gui.stetic index 46f552f..3863d63 100644 --- a/Samples/TextEditorLib/gtk-gui/gui.stetic +++ b/Samples/TextEditor/TextEditorLib/gtk-gui/gui.stetic @@ -2,8 +2,12 @@ <stetic-interface> <configuration> <images-root-path>..</images-root-path> - <target-gtk-version>2.8.3</target-gtk-version> + <target-gtk-version>2.8</target-gtk-version> </configuration> + <import> + <widget-library name="../../../bin/Mono.Addins.Gui.dll" /> + <widget-library name="../../bin/TextEditorLib.dll" internal="true" /> + </import> <widget class="Gtk.Window" id="MainWindow" design-size="586 356"> <action-group name="Default" /> <property name="MemberName" /> @@ -43,8 +47,6 @@ <widget class="Gtk.ScrolledWindow" id="scrolledwindow1"> <property name="MemberName" /> <property name="CanFocus">True</property> - <property name="VscrollbarPolicy">Automatic</property> - <property name="HscrollbarPolicy">Automatic</property> <property name="ShadowType">In</property> <child> <widget class="Gtk.TextView" id="textview"> @@ -89,7 +91,6 @@ <property name="Icon">stock:gtk-close Menu</property> <property name="Label" /> <property name="UseUnderline">True</property> - <property name="IsDialogButton">False</property> <property name="Relief">None</property> <signal name="Clicked" handler="OnButton1Clicked" /> </widget> @@ -113,8 +114,6 @@ <widget class="Gtk.ScrolledWindow" id="scrolledwindow2"> <property name="MemberName" /> <property name="CanFocus">True</property> - <property name="VscrollbarPolicy">Automatic</property> - <property name="HscrollbarPolicy">Automatic</property> <property name="ShadowType">In</property> <child> <widget class="Gtk.TextView" id="consoleView"> diff --git a/Samples/TextEditor/gtk-gui/generated.cs b/Samples/TextEditor/gtk-gui/generated.cs deleted file mode 100644 index 8b467a5..0000000 --- a/Samples/TextEditor/gtk-gui/generated.cs +++ /dev/null @@ -1,35 +0,0 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ - -namespace Stetic { - - - internal class Gui { - - private static bool initialized; - - internal static void Initialize(Gtk.Widget iconRenderer) { - if ((Stetic.Gui.initialized == false)) { - Stetic.Gui.initialized = true; - } - } - } - - internal class ActionGroups { - - public static Gtk.ActionGroup GetActionGroup(System.Type type) { - return Stetic.ActionGroups.GetActionGroup(type.FullName); - } - - public static Gtk.ActionGroup GetActionGroup(string name) { - return null; - } - } -} diff --git a/Samples/TextEditorLib/ChangeLog b/Samples/TextEditorLib/ChangeLog deleted file mode 100644 index d2c4117..0000000 --- a/Samples/TextEditorLib/ChangeLog +++ /dev/null @@ -1,11 +0,0 @@ -2009-08-19 Lluis Sanchez Gual <lluis@novell.com> - - * gtk-gui/generated.cs: - * gtk-gui/MainWindow.cs: Flush. - - * TextEditorLib.csproj: Update target framework to 2.0. - -2009/02/06 Lluis Sanchez Gual <lluis@novell.com> - - * TextEditorLib.csproj: Updated. - diff --git a/Samples/TextEditorLib/Makefile.am b/Samples/TextEditorLib/Makefile.am deleted file mode 100644 index a1a755e..0000000 --- a/Samples/TextEditorLib/Makefile.am +++ /dev/null @@ -1,68 +0,0 @@ -ASSEMBLY_COMPILER_COMMAND = mcs -ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG -ASSEMBLY = ../bin/TextEditorLib.dll -COMPILE_TARGET = library -PROJECT_REFERENCES = \ - ../../bin/Mono.Addins.dll \ - ../../bin/Mono.Addins.Gui.dll -BUILD_DIR = ../bin - - -if ENABLE_GUI -all: $(ASSEMBLY) -endif - -FILES = \ - AssemblyInfo.cs \ - Commands/CopyCommand.cs \ - Commands/CutCommand.cs \ - Commands/ExitCommand.cs \ - Commands/NewCommand.cs \ - Commands/OpenCommand.cs \ - Commands/PasteCommand.cs \ - Commands/SaveCommand.cs \ - Commands/SetupCommand.cs \ - ExtensionNodes/FileTemplateNode.cs \ - ExtensionNodes/MenuItemNode.cs \ - ExtensionNodes/MenuNode.cs \ - ExtensionNodes/MenuSeparatorNode.cs \ - ExtensionNodes/SubmenuNode.cs \ - ExtensionNodes/TemplateCategoryNode.cs \ - ExtensionNodes/ToolbarNode.cs \ - ExtensionNodes/ToolButtonNode.cs \ - ExtensionNodes/ToolSeparatorNode.cs \ - gtk-gui/generated.cs \ - gtk-gui/MainWindow.cs \ - ICommand.cs \ - MainWindow.cs \ - OpenFileCondition.cs \ - TextEditorApp.cs - -DATA_FILES = - -RESOURCES = \ - gtk-gui/gui.stetic \ - Templates/ChangeLogTemplate.txt \ - Templates/DotConfigTemplate.txt \ - Templates/TextEditor.addin.xml \ - Templates/WorkReport.txt - -EXTRAS = - -REFERENCES = \ - -pkg:gtk-sharp-2.0 \ - -r:Mono.Posix \ - -r:System - -DLL_REFERENCES = - -$(ASSEMBLY).mdb: $(ASSEMBLY) - -$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) - mkdir -p $(dir $(ASSEMBLY)) - - $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref) - -if ENABLE_GUI -include $(top_srcdir)/makefile-sample.include -endif diff --git a/Samples/TextEditorLib/gtk-gui/MainWindow.cs b/Samples/TextEditorLib/gtk-gui/MainWindow.cs deleted file mode 100644 index 7bd6cad..0000000 --- a/Samples/TextEditorLib/gtk-gui/MainWindow.cs +++ /dev/null @@ -1,173 +0,0 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ - - - -public partial class MainWindow { - - private Gtk.UIManager UIManager; - - private Gtk.VBox vbox2; - - private Gtk.MenuBar menubar; - - private Gtk.Toolbar toolbar; - - private Gtk.ScrolledWindow scrolledwindow1; - - private Gtk.TextView textview; - - private Gtk.VBox console; - - private Gtk.HBox hbox1; - - private Gtk.Label label1; - - private Gtk.Button button1; - - private Gtk.ScrolledWindow scrolledwindow2; - - private Gtk.TextView consoleView; - - private Gtk.Statusbar statusbar1; - - protected virtual void Build() { - Stetic.Gui.Initialize(this); - // Widget MainWindow - this.UIManager = new Gtk.UIManager(); - Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); - this.UIManager.InsertActionGroup(w1, 0); - this.AddAccelGroup(this.UIManager.AccelGroup); - this.Name = "MainWindow"; - this.Title = Mono.Unix.Catalog.GetString("Text Editor"); - // Container child MainWindow.Gtk.Container+ContainerChild - this.vbox2 = new Gtk.VBox(); - this.vbox2.Name = "vbox2"; - // Container child vbox2.Gtk.Box+BoxChild - this.UIManager.AddUiFromString("<ui><menubar name='menubar'/></ui>"); - this.menubar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar"))); - this.menubar.Name = "menubar"; - this.vbox2.Add(this.menubar); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.UIManager.AddUiFromString("<ui><toolbar name='toolbar'/></ui>"); - this.toolbar = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar"))); - this.toolbar.Name = "toolbar"; - this.toolbar.ShowArrow = false; - this.toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); - this.vbox2.Add(this.toolbar); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar])); - w3.Position = 1; - w3.Expand = false; - w3.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.scrolledwindow1 = new Gtk.ScrolledWindow(); - this.scrolledwindow1.CanFocus = true; - this.scrolledwindow1.Name = "scrolledwindow1"; - this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); - // Container child scrolledwindow1.Gtk.Container+ContainerChild - this.textview = new Gtk.TextView(); - this.textview.CanFocus = true; - this.textview.Name = "textview"; - this.scrolledwindow1.Add(this.textview); - this.vbox2.Add(this.scrolledwindow1); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1])); - w5.Position = 2; - // Container child vbox2.Gtk.Box+BoxChild - this.console = new Gtk.VBox(); - this.console.Name = "console"; - this.console.Spacing = 6; - this.console.BorderWidth = ((uint)(6)); - // Container child console.Gtk.Box+BoxChild - this.hbox1 = new Gtk.HBox(); - this.hbox1.Name = "hbox1"; - // Container child hbox1.Gtk.Box+BoxChild - this.label1 = new Gtk.Label(); - this.label1.Name = "label1"; - this.label1.Xalign = 0F; - this.label1.LabelProp = Mono.Unix.Catalog.GetString("Console"); - this.hbox1.Add(this.label1); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); - w6.Position = 0; - w6.Expand = false; - w6.Fill = false; - // Container child hbox1.Gtk.Box+BoxChild - this.button1 = new Gtk.Button(); - this.button1.WidthRequest = 27; - this.button1.HeightRequest = 20; - this.button1.Name = "button1"; - this.button1.UseUnderline = true; - this.button1.Relief = ((Gtk.ReliefStyle)(2)); - // Container child button1.Gtk.Container+ContainerChild - Gtk.Alignment w7 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - Gtk.HBox w8 = new Gtk.HBox(); - w8.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - Gtk.Image w9 = new Gtk.Image(); - w9.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-close", Gtk.IconSize.Menu, 16); - w8.Add(w9); - // Container child GtkHBox.Gtk.Container+ContainerChild - Gtk.Label w11 = new Gtk.Label(); - w8.Add(w11); - w7.Add(w8); - this.button1.Add(w7); - this.hbox1.Add(this.button1); - Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1])); - w15.PackType = ((Gtk.PackType)(1)); - w15.Position = 1; - w15.Expand = false; - w15.Fill = false; - this.console.Add(this.hbox1); - Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.console[this.hbox1])); - w16.Position = 0; - w16.Expand = false; - w16.Fill = false; - // Container child console.Gtk.Box+BoxChild - this.scrolledwindow2 = new Gtk.ScrolledWindow(); - this.scrolledwindow2.CanFocus = true; - this.scrolledwindow2.Name = "scrolledwindow2"; - this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); - // Container child scrolledwindow2.Gtk.Container+ContainerChild - this.consoleView = new Gtk.TextView(); - this.consoleView.CanFocus = true; - this.consoleView.Name = "consoleView"; - this.scrolledwindow2.Add(this.consoleView); - this.console.Add(this.scrolledwindow2); - Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.console[this.scrolledwindow2])); - w18.Position = 1; - this.vbox2.Add(this.console); - Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.console])); - w19.Position = 3; - w19.Expand = false; - w19.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.statusbar1 = new Gtk.Statusbar(); - this.statusbar1.Name = "statusbar1"; - this.statusbar1.Spacing = 2; - this.vbox2.Add(this.statusbar1); - Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusbar1])); - w20.Position = 4; - w20.Expand = false; - w20.Fill = false; - this.Add(this.vbox2); - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 586; - this.DefaultHeight = 356; - this.Show(); - this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); - this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked); - } -} diff --git a/Samples/TextEditorLib/gtk-gui/generated.cs b/Samples/TextEditorLib/gtk-gui/generated.cs deleted file mode 100644 index 4c84fb1..0000000 --- a/Samples/TextEditorLib/gtk-gui/generated.cs +++ /dev/null @@ -1,68 +0,0 @@ -// ------------------------------------------------------------------------------ -// <autogenerated> -// This code was generated by a tool. -// -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// </autogenerated> -// ------------------------------------------------------------------------------ - -namespace Stetic { - - - internal class Gui { - - private static bool initialized; - - internal static void Initialize(Gtk.Widget iconRenderer) { - if ((Stetic.Gui.initialized == false)) { - Stetic.Gui.initialized = true; - } - } - } - - internal class IconLoader { - - public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size, int sz) { - Gdk.Pixbuf res = widget.RenderIcon(name, size, null); - if ((res != null)) { - return res; - } - else { - try { - return Gtk.IconTheme.Default.LoadIcon(name, sz, 0); - } - catch (System.Exception ) { - if ((name != "gtk-missing-image")) { - return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size, sz); - } - else { - Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz); - Gdk.GC gc = new Gdk.GC(pmap); - gc.RgbFgColor = new Gdk.Color(255, 255, 255); - pmap.DrawRectangle(gc, true, 0, 0, sz, sz); - gc.RgbFgColor = new Gdk.Color(0, 0, 0); - pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1)); - gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round); - gc.RgbFgColor = new Gdk.Color(255, 0, 0); - pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4))); - pmap.DrawLine(gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4))); - return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz); - } - } - } - } - } - - internal class ActionGroups { - - public static Gtk.ActionGroup GetActionGroup(System.Type type) { - return Stetic.ActionGroups.GetActionGroup(type.FullName); - } - - public static Gtk.ActionGroup GetActionGroup(string name) { - return null; - } - } -} diff --git a/Samples/WriterService.SampleExtender/ChangeLog b/Samples/WriterService.SampleExtender/ChangeLog deleted file mode 100644 index e1f8d79..0000000 --- a/Samples/WriterService.SampleExtender/ChangeLog +++ /dev/null @@ -1,9 +0,0 @@ -2009-08-19 Lluis Sanchez Gual <lluis@novell.com> - - * WriterService.SampleExtender.csproj: Update target framework - to 2.0. - -2009/02/06 Lluis Sanchez Gual <lluis@novell.com> - - * WriterService.SampleExtender.csproj: Updated. - diff --git a/Samples/WriterService.SampleExtender/Makefile.am b/Samples/WriterService.SampleExtender/Makefile.am deleted file mode 100644 index 14bb0b4..0000000 --- a/Samples/WriterService.SampleExtender/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ -ASSEMBLY_COMPILER_COMMAND = mcs -ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG -ASSEMBLY = ../bin/SampleExtender.dll -COMPILE_TARGET = library -PROJECT_REFERENCES = ../bin/WriterService.dll -BUILD_DIR = ../bin - - -all: $(ASSEMBLY) - -FILES = \ - AssemblyInfo.cs \ - MyWriter.cs - -DATA_FILES = - -RESOURCES = SampleExtender.addin.xml - -EXTRAS = - -REFERENCES = -r:System - -DLL_REFERENCES = - -$(ASSEMBLY).mdb: $(ASSEMBLY) - -$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) - mkdir -p $(dir $(ASSEMBLY)) - - $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref) - -include $(top_srcdir)/makefile-sample.include diff --git a/Samples/WriterService/ChangeLog b/Samples/WriterService/ChangeLog index 8dada93..99774a0 100644 --- a/Samples/WriterService/ChangeLog +++ b/Samples/WriterService/ChangeLog @@ -1,3 +1,32 @@ +2010-03-24 Lluis Sanchez Gual <lluis@novell.com> + + * Makefile: + * IWriter.cs: + * MyClass.cs: + * Makefile.am: + * WriterService: + * AssemblyInfo.cs: + * WriterManager.cs: + * FlagsCondition.cs: + * WriterServiceHost: + * WriterService.csproj: + * WriterService.addin.xml: + * WriterService/IWriter.cs: + * WriterService/Makefile.am: + * WriterServiceHost/ChangeLog: + * WriterService.SampleExtender: + * WriterService/AssemblyInfo.cs: + * WriterServiceHost/Makefile.am: + * WriterService/WriterManager.cs: + * WriterService/FlagsCondition.cs: + * WriterService/WriterService.csproj: + * WriterService/WriterService.addin.xml: + * WriterService.SampleExtender/ChangeLog: + * WriterService.SampleExtender/Makefile.am: + * WriterServiceHost/WriterServiceHost.csproj: + * WriterService.SampleExtender/WriterService.SampleExtender.csproj: + Moved samples to its own solution in a Samples workspace. + 2009-08-19 Lluis Sanchez Gual <lluis@novell.com> * WriterService.csproj: Update target framework to 2.0. diff --git a/Samples/WriterService/Makefile b/Samples/WriterService/Makefile new file mode 100644 index 0000000..26efdd8 --- /dev/null +++ b/Samples/WriterService/Makefile @@ -0,0 +1,5 @@ +all: + xbuild + +clean: + xbuild /t:Clean
\ No newline at end of file diff --git a/Samples/WriterService/Makefile.am b/Samples/WriterService/Makefile.am deleted file mode 100644 index 5346033..0000000 --- a/Samples/WriterService/Makefile.am +++ /dev/null @@ -1,34 +0,0 @@ -ASSEMBLY_COMPILER_COMMAND = mcs -ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG -ASSEMBLY = ../bin/WriterService.dll -COMPILE_TARGET = library -PROJECT_REFERENCES = ../../bin/Mono.Addins.dll -BUILD_DIR = ../bin - - -all: $(ASSEMBLY) - -FILES = \ - AssemblyInfo.cs \ - FlagsCondition.cs \ - IWriter.cs \ - WriterManager.cs - -DATA_FILES = - -RESOURCES = WriterService.addin.xml - -EXTRAS = - -REFERENCES = -r:System - -DLL_REFERENCES = - -$(ASSEMBLY).mdb: $(ASSEMBLY) - -$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) - mkdir -p $(dir $(ASSEMBLY)) - - $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref) - -include $(top_srcdir)/makefile-sample.include diff --git a/Samples/WriterService/MyClass.cs b/Samples/WriterService/MyClass.cs deleted file mode 100644 index 50a02ea..0000000 --- a/Samples/WriterService/MyClass.cs +++ /dev/null @@ -1,7 +0,0 @@ -// project created on 14/03/2007 at 00:07 -using System; - -public class MyClass -{ - -}
\ No newline at end of file diff --git a/Samples/WriterService.SampleExtender/AssemblyInfo.cs b/Samples/WriterService/WriterService.SampleExtender/AssemblyInfo.cs index af4e275..af4e275 100644 --- a/Samples/WriterService.SampleExtender/AssemblyInfo.cs +++ b/Samples/WriterService/WriterService.SampleExtender/AssemblyInfo.cs diff --git a/Samples/WriterService.SampleExtender/MyWriter.cs b/Samples/WriterService/WriterService.SampleExtender/MyWriter.cs index 1e599b6..1e599b6 100644 --- a/Samples/WriterService.SampleExtender/MyWriter.cs +++ b/Samples/WriterService/WriterService.SampleExtender/MyWriter.cs diff --git a/Samples/WriterService.SampleExtender/SampleExtender.addin.xml b/Samples/WriterService/WriterService.SampleExtender/SampleExtender.addin.xml index e010776..e010776 100644 --- a/Samples/WriterService.SampleExtender/SampleExtender.addin.xml +++ b/Samples/WriterService/WriterService.SampleExtender/SampleExtender.addin.xml diff --git a/Samples/WriterService.SampleExtender/WriterService.SampleExtender.csproj b/Samples/WriterService/WriterService.SampleExtender/WriterService.SampleExtender.csproj index d42bacf..fff27e1 100644 --- a/Samples/WriterService.SampleExtender/WriterService.SampleExtender.csproj +++ b/Samples/WriterService/WriterService.SampleExtender/WriterService.SampleExtender.csproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -8,12 +8,14 @@ <OutputType>Library</OutputType> <AssemblyName>SampleExtender</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>WriterService.SampleExtender</RootNamespace> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>true</Optimize> - <OutputPath>..\bin</OutputPath> + <OutputPath>..\WriterService\bin</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> @@ -22,7 +24,7 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> <Optimize>true</Optimize> - <OutputPath>bin\Release</OutputPath> + <OutputPath>..\WriterService\bin</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> @@ -30,10 +32,14 @@ </PropertyGroup> <ItemGroup> <Reference Include="System" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <ProjectReference Include="..\WriterService\WriterService.csproj"> - <Project>{488571F5-6B4C-46E4-8E4B-6992FA7A9F5C}</Project> + <Project>{1660E9CE-492B-448C-978B-343421E2AD95}</Project> <Name>WriterService</Name> </ProjectReference> </ItemGroup> @@ -42,10 +48,9 @@ <Compile Include="AssemblyInfo.cs" /> </ItemGroup> <ItemGroup> - <EmbeddedResource Include="SampleExtender.addin.xml" /> - </ItemGroup> - <ItemGroup> - <None Include="Makefile.am" /> + <EmbeddedResource Include="SampleExtender.addin.xml"> + <LogicalName>SampleExtender.addin.xml</LogicalName> + </EmbeddedResource> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> diff --git a/Samples/WriterService/WriterService.csproj b/Samples/WriterService/WriterService.csproj deleted file mode 100644 index ca2368d..0000000 --- a/Samples/WriterService/WriterService.csproj +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>8.0.50727</ProductVersion> - <ProjectGuid>{488571F5-6B4C-46E4-8E4B-6992FA7A9F5C}</ProjectGuid> - <OutputType>Library</OutputType> - <SchemaVersion>2.0</SchemaVersion> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - <Optimize>true</Optimize> - <OutputPath>..\bin</OutputPath> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> - <ConsolePause>false</ConsolePause> - <AssemblyName>WriterService</AssemblyName> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <DebugType>none</DebugType> - <Optimize>true</Optimize> - <OutputPath>bin\Release</OutputPath> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> - <ConsolePause>false</ConsolePause> - <AssemblyName>SampleAddin</AssemblyName> - </PropertyGroup> - <ItemGroup> - <Reference Include="System" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> - <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> - <Name>Mono.Addins</Name> - </ProjectReference> - </ItemGroup> - <ItemGroup> - <Compile Include="AssemblyInfo.cs" /> - <Compile Include="IWriter.cs" /> - <Compile Include="WriterManager.cs" /> - <Compile Include="FlagsCondition.cs" /> - </ItemGroup> - <ItemGroup> - <EmbeddedResource Include="WriterService.addin.xml" /> - </ItemGroup> - <ItemGroup> - <None Include="Makefile.am" /> - </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> - <ProjectExtensions> - <MonoDevelop> - <Properties> - <Deployment.LinuxDeployData scriptName="writerservice" generatePcFile="false" /> - <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="./Makefile.am" BuildTargetName="" CleanTargetName="" SyncReferences="true"> - <BuildFilesVar Sync="true" Name="FILES" /> - <DeployFilesVar Sync="true" Name="DATA_FILES" /> - <ResourcesVar Sync="true" Name="RESOURCES" /> - <OthersVar /> - <GacRefVar Sync="true" Name="REFERENCES" Prefix="-r:" /> - <AsmRefVar Sync="true" Name="DLL_REFERENCES" /> - <ProjectRefVar Sync="true" Name="PROJECT_REFERENCES" /> - </MonoDevelop.Autotools.MakefileInfo> - </Properties> - </MonoDevelop> - </ProjectExtensions> -</Project>
\ No newline at end of file diff --git a/Samples/WriterService/AssemblyInfo.cs b/Samples/WriterService/WriterService/AssemblyInfo.cs index af4e275..af4e275 100644 --- a/Samples/WriterService/AssemblyInfo.cs +++ b/Samples/WriterService/WriterService/AssemblyInfo.cs diff --git a/Samples/WriterService/FlagsCondition.cs b/Samples/WriterService/WriterService/FlagsCondition.cs index 93833e2..93833e2 100644 --- a/Samples/WriterService/FlagsCondition.cs +++ b/Samples/WriterService/WriterService/FlagsCondition.cs diff --git a/Samples/WriterService/IWriter.cs b/Samples/WriterService/WriterService/IWriter.cs index 5df34ae..5df34ae 100644 --- a/Samples/WriterService/IWriter.cs +++ b/Samples/WriterService/WriterService/IWriter.cs diff --git a/Samples/WriterService/WriterManager.cs b/Samples/WriterService/WriterService/WriterManager.cs index 12be6a7..12be6a7 100644 --- a/Samples/WriterService/WriterManager.cs +++ b/Samples/WriterService/WriterService/WriterManager.cs diff --git a/Samples/WriterService/WriterService.addin.xml b/Samples/WriterService/WriterService/WriterService.addin.xml index e574b11..e574b11 100644 --- a/Samples/WriterService/WriterService.addin.xml +++ b/Samples/WriterService/WriterService/WriterService.addin.xml diff --git a/Samples/WriterService/WriterService/WriterService.csproj b/Samples/WriterService/WriterService/WriterService.csproj new file mode 100644 index 0000000..3c3d665 --- /dev/null +++ b/Samples/WriterService/WriterService/WriterService.csproj @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">x86</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{1660E9CE-492B-448C-978B-343421E2AD95}</ProjectGuid> + <OutputType>Library</OutputType> + <RootNamespace>WriterService</RootNamespace> + <AssemblyName>WriterService</AssemblyName> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin</OutputPath> + <DefineConstants>DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <PlatformTarget>x86</PlatformTarget> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <DebugType>none</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin</OutputPath> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <PlatformTarget>x86</PlatformTarget> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="AssemblyInfo.cs" /> + <Compile Include="FlagsCondition.cs" /> + <Compile Include="IWriter.cs" /> + <Compile Include="WriterManager.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="WriterService.addin.xml" /> + <None Include="WriterService.csproj" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> +</Project>
\ No newline at end of file diff --git a/Samples/WriterServiceHost/AssemblyInfo.cs b/Samples/WriterService/WriterServiceHost/AssemblyInfo.cs index af4e275..af4e275 100644 --- a/Samples/WriterServiceHost/AssemblyInfo.cs +++ b/Samples/WriterService/WriterServiceHost/AssemblyInfo.cs diff --git a/Samples/WriterServiceHost/Main.cs b/Samples/WriterService/WriterServiceHost/Main.cs index 14e0681..14e0681 100644 --- a/Samples/WriterServiceHost/Main.cs +++ b/Samples/WriterService/WriterServiceHost/Main.cs diff --git a/Samples/WriterServiceHost/WriterServiceHost.csproj b/Samples/WriterService/WriterServiceHost/WriterServiceHost.csproj index b39868e..666e1de 100644 --- a/Samples/WriterServiceHost/WriterServiceHost.csproj +++ b/Samples/WriterService/WriterServiceHost/WriterServiceHost.csproj @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> @@ -8,12 +8,14 @@ <OutputType>Exe</OutputType> <AssemblyName>SampleAddinHost</AssemblyName> <SchemaVersion>2.0</SchemaVersion> + <RootNamespace>WriterServiceHost</RootNamespace> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>true</Optimize> - <OutputPath>..\bin</OutputPath> + <OutputPath>..\WriterService\bin</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <GenerateDocumentation>true</GenerateDocumentation> @@ -22,31 +24,28 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> <Optimize>true</Optimize> - <OutputPath>..\bin</OutputPath> + <OutputPath>..\WriterService\bin</OutputPath> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> </PropertyGroup> <ItemGroup> <Reference Include="System" /> + <Reference Include="Mono.Addins, Version=0.5.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\bin\Mono.Addins.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <ProjectReference Include="..\WriterService\WriterService.csproj"> - <Project>{488571F5-6B4C-46E4-8E4B-6992FA7A9F5C}</Project> + <Project>{1660E9CE-492B-448C-978B-343421E2AD95}</Project> <Name>WriterService</Name> </ProjectReference> - <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj"> - <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project> - <Name>Mono.Addins</Name> - </ProjectReference> </ItemGroup> <ItemGroup> <Compile Include="Main.cs" /> <Compile Include="AssemblyInfo.cs" /> </ItemGroup> - <ItemGroup> - <None Include="Makefile.am" /> - </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ProjectExtensions> <MonoDevelop> diff --git a/Samples/WriterServiceHost/ChangeLog b/Samples/WriterServiceHost/ChangeLog deleted file mode 100644 index c4a5053..0000000 --- a/Samples/WriterServiceHost/ChangeLog +++ /dev/null @@ -1,8 +0,0 @@ -2009-08-19 Lluis Sanchez Gual <lluis@novell.com> - - * WriterServiceHost.csproj: Update target framework to 2.0. - -2009/02/06 Lluis Sanchez Gual <lluis@novell.com> - - * WriterServiceHost.csproj: Updated. - diff --git a/Samples/WriterServiceHost/Makefile.am b/Samples/WriterServiceHost/Makefile.am deleted file mode 100644 index 1e3339a..0000000 --- a/Samples/WriterServiceHost/Makefile.am +++ /dev/null @@ -1,34 +0,0 @@ -ASSEMBLY_COMPILER_COMMAND = mcs -ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG -ASSEMBLY = ../bin/SampleAddinHost.exe -COMPILE_TARGET = exe -PROJECT_REFERENCES = \ - ../../bin/Mono.Addins.dll \ - ../bin/WriterService.dll -BUILD_DIR = ../bin - - -all: $(ASSEMBLY) - -FILES = \ - AssemblyInfo.cs \ - Main.cs - -DATA_FILES = - -RESOURCES = - -EXTRAS = - -REFERENCES = -r:System - -DLL_REFERENCES = - -$(ASSEMBLY).mdb: $(ASSEMBLY) - -$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) - mkdir -p $(dir $(ASSEMBLY)) - - $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref) - -include $(top_srcdir)/makefile-sample.include |