Browse Source
			
			
			
			
				
		Allow runtime pad creation. Ad SharpDevelopInteraction example to SdaUser. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1628 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
				 31 changed files with 396 additions and 52 deletions
			
			
		@ -0,0 +1,31 @@
				@@ -0,0 +1,31 @@
					 | 
				
			||||
using System.Reflection; | 
				
			||||
using System.Runtime.CompilerServices; | 
				
			||||
using System.Runtime.InteropServices; | 
				
			||||
 | 
				
			||||
// 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("SharpDevelopInteraction")] | 
				
			||||
[assembly: AssemblyDescription("")] | 
				
			||||
[assembly: AssemblyConfiguration("")] | 
				
			||||
[assembly: AssemblyCompany("")] | 
				
			||||
[assembly: AssemblyProduct("SharpDevelopInteraction")] | 
				
			||||
[assembly: AssemblyCopyright("")] | 
				
			||||
[assembly: AssemblyTrademark("")] | 
				
			||||
[assembly: AssemblyCulture("")] | 
				
			||||
 | 
				
			||||
// This sets the default COM visibility of types in the assembly to invisible.
 | 
				
			||||
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
 | 
				
			||||
[assembly: ComVisible(false)] | 
				
			||||
 | 
				
			||||
// 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 +1,37 @@
				@@ -0,0 +1,37 @@
					 | 
				
			||||
/* | 
				
			||||
 * Created by SharpDevelop. | 
				
			||||
 * User: Daniel Grunwald | 
				
			||||
 * Date: 28.07.2006 | 
				
			||||
 * Time: 23:10 | 
				
			||||
 */ | 
				
			||||
using System; | 
				
			||||
using System.Collections.Generic; | 
				
			||||
using System.Windows.Forms; | 
				
			||||
using ICSharpCode.SharpDevelop.Gui; | 
				
			||||
 | 
				
			||||
namespace SharpDevelopInteraction | 
				
			||||
{ | 
				
			||||
	/// <summary>
 | 
				
			||||
	/// If you want to control SharpDevelop's internals from the host application,
 | 
				
			||||
	/// you need to use a wrapper assembly and class like this.
 | 
				
			||||
	/// Make sure to inherit from MarshalByRefObject and create the instance using
 | 
				
			||||
	/// host.CreateInstanceInTargetDomain<T> in the host application.
 | 
				
			||||
	/// 
 | 
				
			||||
	/// The class itself will be responsible to use WorkbenchSingleton.SafeThread(Async)Call
 | 
				
			||||
	/// for all operations if SharpDevelop is running on its own thread.
 | 
				
			||||
	/// </summary>
 | 
				
			||||
	public class InteractionClass : MarshalByRefObject | 
				
			||||
	{ | 
				
			||||
		public void MakeTransparent() | 
				
			||||
		{ | 
				
			||||
			WorkbenchSingleton.SafeThreadAsyncCall(new MethodInvoker(MakeTransparentInternal)); | 
				
			||||
		} | 
				
			||||
		 | 
				
			||||
		void MakeTransparentInternal() | 
				
			||||
		{ | 
				
			||||
			WorkbenchSingleton.MainForm.Opacity *= 0.85; | 
				
			||||
			if (WorkbenchSingleton.MainForm.Opacity < 0.2) | 
				
			||||
				WorkbenchSingleton.MainForm.Opacity = 1; | 
				
			||||
		} | 
				
			||||
	} | 
				
			||||
} | 
				
			||||
@ -0,0 +1,59 @@
				@@ -0,0 +1,59 @@
					 | 
				
			||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 
				
			||||
  <PropertyGroup> | 
				
			||||
    <OutputType>Library</OutputType> | 
				
			||||
    <RootNamespace>SharpDevelopInteraction</RootNamespace> | 
				
			||||
    <AssemblyName>SharpDevelopInteraction</AssemblyName> | 
				
			||||
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | 
				
			||||
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | 
				
			||||
    <ProjectGuid>{84054D5E-0B81-4C4B-AABB-DCC43030830B}</ProjectGuid> | 
				
			||||
    <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | 
				
			||||
    <NoStdLib>False</NoStdLib> | 
				
			||||
    <RegisterForComInterop>False</RegisterForComInterop> | 
				
			||||
    <GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies> | 
				
			||||
    <BaseAddress>4194304</BaseAddress> | 
				
			||||
    <PlatformTarget>AnyCPU</PlatformTarget> | 
				
			||||
    <FileAlignment>4096</FileAlignment> | 
				
			||||
    <WarningLevel>4</WarningLevel> | 
				
			||||
    <TreatWarningsAsErrors>false</TreatWarningsAsErrors> | 
				
			||||
  </PropertyGroup> | 
				
			||||
  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | 
				
			||||
    <BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath> | 
				
			||||
    <IntermediateOutputPath>obj\Debug\</IntermediateOutputPath> | 
				
			||||
    <OutputPath>..\..\..\bin\</OutputPath> | 
				
			||||
    <Optimize>False</Optimize> | 
				
			||||
    <DefineConstants>DEBUG;TRACE</DefineConstants> | 
				
			||||
    <DebugSymbols>true</DebugSymbols> | 
				
			||||
    <DebugType>Full</DebugType> | 
				
			||||
    <CheckForOverflowUnderflow>True</CheckForOverflowUnderflow> | 
				
			||||
  </PropertyGroup> | 
				
			||||
  <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | 
				
			||||
    <BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath> | 
				
			||||
    <IntermediateOutputPath>obj\Release\</IntermediateOutputPath> | 
				
			||||
    <OutputPath>bin\Release\</OutputPath> | 
				
			||||
    <Optimize>True</Optimize> | 
				
			||||
    <DefineConstants>TRACE</DefineConstants> | 
				
			||||
    <DebugSymbols>False</DebugSymbols> | 
				
			||||
    <DebugType>None</DebugType> | 
				
			||||
    <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> | 
				
			||||
  </PropertyGroup> | 
				
			||||
  <ItemGroup> | 
				
			||||
    <Reference Include="System" /> | 
				
			||||
    <Reference Include="System.Xml" /> | 
				
			||||
    <Reference Include="ICSharpCode.Core"> | 
				
			||||
      <HintPath>..\..\..\bin\ICSharpCode.Core.dll</HintPath> | 
				
			||||
      <SpecificVersion>False</SpecificVersion> | 
				
			||||
      <Private>False</Private> | 
				
			||||
    </Reference> | 
				
			||||
    <Reference Include="ICSharpCode.SharpDevelop"> | 
				
			||||
      <HintPath>..\..\..\bin\ICSharpCode.SharpDevelop.dll</HintPath> | 
				
			||||
      <SpecificVersion>False</SpecificVersion> | 
				
			||||
      <Private>False</Private> | 
				
			||||
    </Reference> | 
				
			||||
    <Reference Include="System.Windows.Forms" /> | 
				
			||||
  </ItemGroup> | 
				
			||||
  <ItemGroup> | 
				
			||||
    <Compile Include="InteractionClass.cs" /> | 
				
			||||
    <Compile Include="AssemblyInfo.cs" /> | 
				
			||||
  </ItemGroup> | 
				
			||||
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" /> | 
				
			||||
</Project> | 
				
			||||
@ -0,0 +1,6 @@
				@@ -0,0 +1,6 @@
					 | 
				
			||||
Microsoft Visual Studio Solution File, Format Version 9.00 | 
				
			||||
# SharpDevelop 2.1.0.1602 | 
				
			||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpDevelopInteraction", "SharpDevelopInteraction.csproj", "{84054D5E-0B81-4C4B-AABB-DCC43030830B}" | 
				
			||||
EndProject | 
				
			||||
Global | 
				
			||||
EndGlobal | 
				
			||||
					Loading…
					
					
				
		Reference in new issue