Commit 1942c94d by Sergio Rabellino

Initial commit

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{44F2C4A9-D1DF-49E1-A55B-E69C49F1E582}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>Arithmetic.Add</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>Add</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\EidosFrameWork\bin\Debug\Plugins\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>..\..\EidosFrameWork\bin\Release\Plugins\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<ProjectReference Include="..\..\DSP\Exocortex.DSP.csproj">
<Name>Exocortex.DSP</Name>
<Project>{1904A41B-D1B8-40E5-ADBB-728DDCF7C816}</Project>
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\..\PluginInterface\PluginInterface.csproj">
<Name>PluginInterface</Name>
<Project>{F64ECAB0-AFAF-4C8B-9D53-0AB1B603589B}</Project>
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Add.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="PluginConfiguration.cs">
<SubType>Form</SubType>
</Compile>
<EmbeddedResource Include="PluginConfiguration.resx">
<DependentUpon>PluginConfiguration.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastOpenVersion>7.10.3077</LastOpenVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ReferencePath>
</ReferencePath>
<CopyProjectDestinationFolder>
</CopyProjectDestinationFolder>
<CopyProjectUncPath>
</CopyProjectUncPath>
<CopyProjectOption>0</CopyProjectOption>
<ProjectView>ProjectFiles</ProjectView>
<ProjectTrust>0</ProjectTrust>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<EnableASPDebugging>false</EnableASPDebugging>
<EnableASPXDebugging>false</EnableASPXDebugging>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
<EnableSQLServerDebugging>false</EnableSQLServerDebugging>
<RemoteDebugEnabled>false</RemoteDebugEnabled>
<RemoteDebugMachine>
</RemoteDebugMachine>
<StartAction>Project</StartAction>
<StartArguments>
</StartArguments>
<StartPage>
</StartPage>
<StartProgram>
</StartProgram>
<StartURL>
</StartURL>
<StartWorkingDirectory>
</StartWorkingDirectory>
<StartWithIE>true</StartWithIE>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<EnableASPDebugging>false</EnableASPDebugging>
<EnableASPXDebugging>false</EnableASPXDebugging>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
<EnableSQLServerDebugging>false</EnableSQLServerDebugging>
<RemoteDebugEnabled>false</RemoteDebugEnabled>
<RemoteDebugMachine>
</RemoteDebugMachine>
<StartAction>Project</StartAction>
<StartArguments>
</StartArguments>
<StartPage>
</StartPage>
<StartProgram>
</StartProgram>
<StartURL>
</StartURL>
<StartWorkingDirectory>
</StartWorkingDirectory>
<StartWithIE>true</StartWithIE>
</PropertyGroup>
</Project>
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("Plugin:Add buffers")]
[assembly: AssemblyDescription("Add buffers")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Computer Science Department of Torino")]
[assembly: AssemblyProduct("EidosLab")]
[assembly: AssemblyCopyright("@2004")]
[assembly: AssemblyTrademark("Released under GPL")]
[assembly: AssemblyCulture("")]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
[OPTIONS]
Compatibility=1.1 or later
Compiled file=Arithmetic.Add.chm
Default topic=index.htm
Display compile progress=No
Language=0x410 Italiano (Italia)
Title=Arithmetic.Add Plugin
[FILES]
index.htm
[INFOTYPES]
/*
* BSD Licence:
* Copyright (c) 2001, 2002 Sergio Rabellino [ rabellino@di.unito.it ]
* Department of Computer Science of Torino - University of Torino, Italy [ www.di.unito.it ]
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the Department of Computer Science of Torino nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
using System;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using PluginInterface;
namespace Add
{
/// <summary>
/// Summary description for PluginConfiguration.
/// </summary>
public class PluginConfiguration : System.Windows.Forms.Form
{
private System.Windows.Forms.CheckBox newBuffer;
private System.Windows.Forms.Button Cancel;
private System.Windows.Forms.Button buttonSave;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
private System.Windows.Forms.ListBox bufferListBox1;
private System.Windows.Forms.ListBox bufferListBox2;
private Add _plugin;
public PluginConfiguration(IPlugin plugin)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
this._plugin = (Add)plugin;
this.Text = _plugin.description;
ArrayList buffers = plugin.host.ListBuffers();
bufferListBox1.BeginUpdate();
foreach (ImageBuffer i in buffers)
{
bufferListBox1.Items.Add(i.description);
}
bufferListBox1.EndUpdate();
if (buffers.Count > 0)
{
bufferListBox1.SelectedIndex=0;
buttonSave.Enabled=true;
}
else
{
buttonSave.Enabled=false;
}
if ( _plugin.status == PluginStatus.Configured)
{
int i = bufferListBox1.Items.IndexOf(_plugin._conf_bufferToProcess1);
if ( i != -1 )
bufferListBox1.SelectedIndex=i;
else // Buffer not found Can't go on
buttonSave.Enabled=false;
}
newBuffer.Checked=_plugin._conf_createNewBuffer;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.bufferListBox1 = new System.Windows.Forms.ListBox();
this.newBuffer = new System.Windows.Forms.CheckBox();
this.Cancel = new System.Windows.Forms.Button();
this.buttonSave = new System.Windows.Forms.Button();
this.bufferListBox2 = new System.Windows.Forms.ListBox();
this.SuspendLayout();
//
// bufferListBox1
//
this.bufferListBox1.HorizontalScrollbar = true;
this.bufferListBox1.Location = new System.Drawing.Point(8, 8);
this.bufferListBox1.Name = "bufferListBox1";
this.bufferListBox1.Size = new System.Drawing.Size(320, 82);
this.bufferListBox1.TabIndex = 10;
this.bufferListBox1.SelectedIndexChanged += new System.EventHandler(this.bufferListBox1_SelectedIndexChanged);
//
// newBuffer
//
this.newBuffer.Location = new System.Drawing.Point(184, 200);
this.newBuffer.Name = "newBuffer";
this.newBuffer.Size = new System.Drawing.Size(136, 24);
this.newBuffer.TabIndex = 9;
this.newBuffer.Text = "Save to a new Buffer";
this.newBuffer.CheckedChanged += new System.EventHandler(this.newBuffer_CheckedChanged);
//
// Cancel
//
this.Cancel.Location = new System.Drawing.Point(256, 232);
this.Cancel.Name = "Cancel";
this.Cancel.Size = new System.Drawing.Size(72, 32);
this.Cancel.TabIndex = 8;
this.Cancel.Text = "Cancel";
this.Cancel.Click += new System.EventHandler(this.Cancel_Click);
//
// buttonSave
//
this.buttonSave.Location = new System.Drawing.Point(176, 232);
this.buttonSave.Name = "buttonSave";
this.buttonSave.Size = new System.Drawing.Size(72, 32);
this.buttonSave.TabIndex = 7;
this.buttonSave.Text = "Ok";
this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click);
//
// bufferListBox2
//
this.bufferListBox2.HorizontalScrollbar = true;
this.bufferListBox2.Location = new System.Drawing.Point(9, 110);
this.bufferListBox2.Name = "bufferListBox2";
this.bufferListBox2.Size = new System.Drawing.Size(320, 82);
this.bufferListBox2.TabIndex = 11;
this.bufferListBox2.SelectedIndexChanged += new System.EventHandler(this.bufferListBox2_SelectedIndexChanged);
//
// PluginConfiguration
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(338, 271);
this.ControlBox = false;
this.Controls.Add(this.bufferListBox2);
this.Controls.Add(this.bufferListBox1);
this.Controls.Add(this.newBuffer);
this.Controls.Add(this.Cancel);
this.Controls.Add(this.buttonSave);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "PluginConfiguration";
this.Text = "PluginConfiguration";
this.ResumeLayout(false);
}
#endregion
private void Cancel_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void buttonSave_Click(object sender, System.EventArgs e)
{
if (( bufferListBox1.SelectedIndex == -1 ) ||
( bufferListBox2.SelectedIndex == -1 ))
{
MessageBox.Show("Select a buffer from either lists","Unable to continue",MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
}
else
{
_plugin.status = PluginStatus.Configured;
_plugin._conf_bufferToProcess1 = bufferListBox1.Items[