Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

2008-07-21 Ivan N. Zlatev <contact@i-nz.net>

	* Integrate Mono.Design for building with Visual Studio.


svn path=/trunk/mwf-designer/; revision=108399
  • Loading branch information...
commit bb599f9b1ffe0e5a64cc4573318c9170c6d535a3 1 parent 4eadd87
@ivanz ivanz authored
View
4 ChangeLog
@@ -1,3 +1,7 @@
+2008-07-21 Ivan N. Zlatev <contact@i-nz.net>
+
+ * Integrate Mono.Design for building with Visual Studio.
+
2008-07-18 Ivan N. Zlatev <contact@i-nz.net>
* UI/PropertyGrid.cs, UI/MainView.cs: Clear the propertygrid.
View
42 Makefile
@@ -1,42 +1,24 @@
SOURCES=src/*.cs src/*/*.cs src/*/*/*.cs
BUILD_DIR=build
-MD_BUILD_DIR=../build
DEPS_DIR = deps
-DEPS = ${DEPS_DIR}/*
+DEPS = ${DEPS_DIR}/*.dll
DIST_DIR = ${BUILD_DIR}/mwf-designer-dist
MD_DIST_DIR = ${MD_BUILD_DIR}/mwf-designer
ASSEMBLY=mwf-designer.exe
REFERENCES=System.Design,System.Windows.Forms,System.Drawing,System.Data,${DEPS_DIR}/ICSharpCode.NRefactory.dll
-MD_REFERENCES=System.Design,System.Windows.Forms,System.Drawing,System.Data,${MD_BUILD_DIR}/ICSharpCode.NRefactory.dll
-all:
- mkdir -p ${BUILD_DIR}
- cp ${DEPS_DIR}/ICSharpCode.NRefactory.dll ${BUILD_DIR}
- export MCS_COLORS=disable;gmcs -debug -r:${REFERENCES} -out:${BUILD_DIR}/${ASSEMBLY} ${SOURCES}
-
-run:
- cd ${BUILD_DIR};mono --debug mwf-designer.exe
-
-msnet:
- csc -debug -d:NET_2_0 -t:library -r:System.Design.dll,System.Windows.Forms.dll,System.Drawing.dll,System.Data.dll,..\build\Mono.Design.dll,..\build\ICSharpCode.NRefactory.dll -out:build\mwf-designer.exe src\\*.cs src\\*\\*.cs
-
-dist:
- mkdir -p ${DIST_DIR}
- cp ${BUILD_DIR}/Mono.Design.* ${DIST_DIR}
- cp ${BUILD_DIR}/ICSharpCode.NRefactory.* ${DIST_DIR}
- cp ${BUILD_DIR}/mwf-designer.* ${DIST_DIR}
- cd ${BUILD_DIR};tar -c mwf-designer | bzip2 -c > mwf-designer.tar.bz2
+all: prepare
+ export MCS_COLORS=disable && gmcs -debug -r:${REFERENCES} -out:${BUILD_DIR}/${ASSEMBLY} ${SOURCES}
-mono-design:
- mkdir -p ${MD_BUILD_DIR}
- cp ${DEPS} ${MD_BUILD_DIR}
- export MCS_COLORS=disable;gmcs -d:WITH_MONO_DESIGN -debug -r:${MD_REFERENCES} -r:${MD_BUILD_DIR}/Mono.Design.dll -out:${MD_BUILD_DIR}/${ASSEMBLY} ${SOURCES}
-
-mono-design-run:
- cd ${MD_BUILD_DIR};mono --debug mwf-designer.exe
-
-mono-design-msnet:
- csc -debug -d:NET_2_0 -t:library -r:System.Design.dll,System.Windows.Forms.dll,System.Drawing.dll,System.Data.dll,..\build\Mono.Design.dll,..\build\ICSharpCode.NRefactory.dll -out:..\build\mwf-designer.exe src\*.cs src\*\*.cs src\*\*\*.cs
+prepare:
+ mkdir -p ${BUILD_DIR}
+run: prepare
+ cp ${DEPS_DIR}/*.dll ${BUILD_DIR}
+ cp ${DEPS_DIR}/*.mdb ${BUILD_DIR}
+ cd ${BUILD_DIR} && mono --debug mwf-designer.exe
+mono-design: prepare
+ cd ${DEPS_DIR}/Mono.Design && make
+ export MCS_COLORS=disable;gmcs -debug -r:${REFERENCES},${DEPS_DIR}/Mono.Design.dll -out:${BUILD_DIR}/${ASSEMBLY} ${SOURCES}
View
7 Mono.Design.vpw
@@ -0,0 +1,7 @@
+<!DOCTYPE Workspace SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpw.dtd">
+<Workspace Version="10.0" VendorName="SlickEdit">
+ <Projects>
+ <Project File="deps/Mono.Design/Mono.Design.vpj" />
+ <Project File="mwf-designer.vpj" />
+ </Projects>
+</Workspace>
View
2  Prepare Visual Studio Build.bat
@@ -0,0 +1,2 @@
+cd deps\Mono.Design && generate-mono-design.py
+pause
View
25 README
@@ -0,0 +1,25 @@
+=== On Mono ===
+
+make && make run
+
+=== On Microsoft .NET with Visual Studio ===
+
+1) Install Python - http://python.org/download/
+2) Run "Prepare Visual Studio Build.bat"
+3) Open mwf-designer.sln with Visual Studio and you are done!
+
+What is happening automatically behind the scenes is the generation of a
+Mono.Design assembly - a subset of Mono's System.Design.
+
+The python script will:
+ - Download a subset of Mono System.Design assembly's source code from SVN
+ - Apply a set of patches to make it run against Microsoft .NET
+ - Change namespaces to "Mono.Design".
+
+=== On Mono with Mono.Design ===
+
+make mono-design && make run
+
+=== Status and Documentation ===
+
+http://www.mono-project.com/WinForms_Designer
View
23 deps/Mono.Design/Makefile
@@ -0,0 +1,23 @@
+SOURCES=`cat Mono.Design.sources`
+BUILD_DIR=..
+ASSEMBLY=${BUILD_DIR}/Mono.Design.dll
+REFERENCES=System.Design,System.Windows.Forms,System.Drawing
+
+all: generate-md net-2
+
+net-2:
+ export MCS_COLORS=disable;gmcs -d:NET_2_0,DEBUG -target:library -debug -r:${REFERENCES} -out:${ASSEMBLY} ${SOURCES}
+
+net-1:
+ export MCS_COLORS=disable;mcs -d:DEBUG,NET_1_1 -t:library -debug -r:${REFERENCES} -out:${ASSEMBLY} ${SOURCES}
+
+clean:
+ rm .generated
+
+update: clean generate-md
+
+generate-md:
+ifeq (,$(findstring .generated,$(wildcard .*)))
+ python generate-mono-design.py
+ touch .generated
+endif
View
132 deps/Mono.Design/Mono.Design.csproj
@@ -0,0 +1,132 @@
+<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>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{53DB609E-CCAB-40F8-BA30-E98B9111627A}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Mono.Design</RootNamespace>
+ <AssemblyName>Mono.Design</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..</OutputPath>
+ <DefineConstants>TRACE;DEBUG;NET_2_0</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>..</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Accessibility" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Design" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Makefile" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="build\common\Consts.cs.in" />
+ <Compile Include="build\common\MonoTODOAttribute.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\BasicDesignerLoader.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\CodeDomComponentSerializationService.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\CodeDomDesignerLoader.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\CodeDomSerializationProvider.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\CodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\CodeDomSerializerBase.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\CollectionCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\ComponentCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\DesignerSerializationManager.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\EnumCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\EventCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\ExpressionContext.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\MemberCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\ObjectStatementCollection.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\PrimitiveCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\PropertyCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\RootCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\RootContext.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\SerializeAbsoluteContext.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\StatementContext.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design.Serialization\TypeCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\ActiveDesignSurfaceChangedEventArgs.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\ActiveDesignSurfaceChangedEventHandler.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\ComponentDesigner.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignerActionListCollection.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignerEventService.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignerHost.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignModeNestedContainer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignModeSite.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignSurface.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignSurfaceCollection.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignSurfaceEventArgs.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignSurfaceEventHandler.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignSurfaceManager.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\DesignSurfaceServiceContainer.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\EventBindingService.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\ExtenderService.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\LoadedEventArgs.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\LoadedEventHandler.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\MenuCommandService.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\ReferenceService.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\SelectionService.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\TypeDescriptorFilterService.cs" />
+ <Compile Include="class\System.Design\System.ComponentModel.Design\UndoEngine.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\ComponentTray.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\ControlCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\ControlCollectionCodeDomSerializer.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\ControlDataObject.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\ControlDesigner.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\DefaultMenuCommands.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\DocumentDesigner.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\FormDocumentDesigner.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\IMessageReceiver.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\IUISelectionService.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\Native.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\PanelDesigner.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\ParentControlDesigner.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\ScrollableControlDesigner.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\SelectionFrame.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\SplitContainerDesigner.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\UISelectionService.cs" />
+ <Compile Include="class\System.Design\System.Windows.Forms.Design\WndProcRouter.cs" />
+ <Compile Include="class\System\System.ComponentModel.Design.Serialization\ComponentSerializationService.cs" />
+ <Compile Include="class\System\System.ComponentModel.Design.Serialization\DefaultSerializationProviderAttribute.cs" />
+ <Compile Include="class\System\System.ComponentModel.Design.Serialization\MemberRelationship.cs" />
+ <Compile Include="class\System\System.ComponentModel.Design.Serialization\MemberRelationshipService.cs" />
+ <Compile Include="class\System\System.ComponentModel.Design.Serialization\SerializationStore.cs" />
+ <Compile Include="class\System\System.ComponentModel.Design\DesignerOptionService.cs" />
+ <Compile Include="class\System\System.ComponentModel.Design\IComponentInitializer.cs" />
+ <Compile Include="class\System\System.ComponentModel.Design\ITreeDesigner.cs" />
+ <Compile Include="class\System\System.ComponentModel\INestedContainer.cs" />
+ <Compile Include="class\System\System.ComponentModel\INestedSite.cs" />
+ <Compile Include="class\System\System.ComponentModel\NestedContainer.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
75 deps/Mono.Design/Mono.Design.sources
@@ -0,0 +1,75 @@
+build/common/Consts.cs.in
+build/common/MonoTODOAttribute.cs
+class/System.Design/System.ComponentModel.Design.Serialization/BasicDesignerLoader.cs
+class/System.Design/System.ComponentModel.Design.Serialization/CodeDomComponentSerializationService.cs
+class/System.Design/System.ComponentModel.Design.Serialization/CodeDomDesignerLoader.cs
+class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializationProvider.cs
+class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializerBase.cs
+class/System.Design/System.ComponentModel.Design.Serialization/CollectionCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/ComponentCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/DesignerSerializationManager.cs
+class/System.Design/System.ComponentModel.Design.Serialization/EnumCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/EventCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/ExpressionContext.cs
+class/System.Design/System.ComponentModel.Design.Serialization/MemberCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/ObjectStatementCollection.cs
+class/System.Design/System.ComponentModel.Design.Serialization/PrimitiveCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/PropertyCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/RootCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design.Serialization/RootContext.cs
+class/System.Design/System.ComponentModel.Design.Serialization/SerializeAbsoluteContext.cs
+class/System.Design/System.ComponentModel.Design.Serialization/StatementContext.cs
+class/System.Design/System.ComponentModel.Design.Serialization/TypeCodeDomSerializer.cs
+class/System.Design/System.ComponentModel.Design/ActiveDesignSurfaceChangedEventArgs.cs
+class/System.Design/System.ComponentModel.Design/ActiveDesignSurfaceChangedEventHandler.cs
+class/System.Design/System.ComponentModel.Design/ComponentDesigner.cs
+class/System.Design/System.ComponentModel.Design/DesignModeNestedContainer.cs
+class/System.Design/System.ComponentModel.Design/DesignModeSite.cs
+class/System.Design/System.ComponentModel.Design/DesignSurface.cs
+class/System.Design/System.ComponentModel.Design/DesignSurfaceCollection.cs
+class/System.Design/System.ComponentModel.Design/DesignSurfaceEventArgs.cs
+class/System.Design/System.ComponentModel.Design/DesignSurfaceEventHandler.cs
+class/System.Design/System.ComponentModel.Design/DesignSurfaceManager.cs
+class/System.Design/System.ComponentModel.Design/DesignSurfaceServiceContainer.cs
+class/System.Design/System.ComponentModel.Design/DesignerActionListCollection.cs
+class/System.Design/System.ComponentModel.Design/DesignerEventService.cs
+class/System.Design/System.ComponentModel.Design/DesignerHost.cs
+class/System.Design/System.ComponentModel.Design/EventBindingService.cs
+class/System.Design/System.ComponentModel.Design/ExtenderService.cs
+class/System.Design/System.ComponentModel.Design/LoadedEventArgs.cs
+class/System.Design/System.ComponentModel.Design/LoadedEventHandler.cs
+class/System.Design/System.ComponentModel.Design/MenuCommandService.cs
+class/System.Design/System.ComponentModel.Design/ReferenceService.cs
+class/System.Design/System.ComponentModel.Design/SelectionService.cs
+class/System.Design/System.ComponentModel.Design/TypeDescriptorFilterService.cs
+class/System.Design/System.ComponentModel.Design/UndoEngine.cs
+class/System.Design/System.Windows.Forms.Design/ComponentTray.cs
+class/System.Design/System.Windows.Forms.Design/ControlCodeDomSerializer.cs
+class/System.Design/System.Windows.Forms.Design/ControlCollectionCodeDomSerializer.cs
+class/System.Design/System.Windows.Forms.Design/ControlDataObject.cs
+class/System.Design/System.Windows.Forms.Design/ControlDesigner.cs
+class/System.Design/System.Windows.Forms.Design/DefaultMenuCommands.cs
+class/System.Design/System.Windows.Forms.Design/DocumentDesigner.cs
+class/System.Design/System.Windows.Forms.Design/FormDocumentDesigner.cs
+class/System.Design/System.Windows.Forms.Design/IMessageReceiver.cs
+class/System.Design/System.Windows.Forms.Design/IUISelectionService.cs
+class/System.Design/System.Windows.Forms.Design/Native.cs
+class/System.Design/System.Windows.Forms.Design/PanelDesigner.cs
+class/System.Design/System.Windows.Forms.Design/ParentControlDesigner.cs
+class/System.Design/System.Windows.Forms.Design/ScrollableControlDesigner.cs
+class/System.Design/System.Windows.Forms.Design/SelectionFrame.cs
+class/System.Design/System.Windows.Forms.Design/SplitContainerDesigner.cs
+class/System.Design/System.Windows.Forms.Design/UISelectionService.cs
+class/System.Design/System.Windows.Forms.Design/WndProcRouter.cs
+class/System/System.ComponentModel.Design.Serialization/ComponentSerializationService.cs
+class/System/System.ComponentModel.Design.Serialization/DefaultSerializationProviderAttribute.cs
+class/System/System.ComponentModel.Design.Serialization/MemberRelationship.cs
+class/System/System.ComponentModel.Design.Serialization/MemberRelationshipService.cs
+class/System/System.ComponentModel.Design.Serialization/SerializationStore.cs
+class/System/System.ComponentModel.Design/DesignerOptionService.cs
+class/System/System.ComponentModel.Design/IComponentInitializer.cs
+class/System/System.ComponentModel.Design/ITreeDesigner.cs
+class/System/System.ComponentModel/INestedContainer.cs
+class/System/System.ComponentModel/INestedSite.cs
+class/System/System.ComponentModel/NestedContainer.cs
View
144 deps/Mono.Design/Mono.Design.vpj
@@ -0,0 +1,144 @@
+<!DOCTYPE Project SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpj.dtd">
+<Project
+ Version="10.0"
+ VendorName="SlickEdit"
+ WorkingDir="."
+ VCSProject="Subversion:">
+ <Config
+ Name="Release"
+ CompilerConfigName="GCC-4.1.2-i586-suse-linux"
+ OutputFile="">
+ <Menu>
+ <Target
+ Name="Build"
+ MenuCaption="&amp;Build"
+ CaptureOutputWith="ProcessBuffer"
+ SaveOption="SaveWorkspaceFiles"
+ RunFromDir="%rp"
+ ClearProcessBuffer="1">
+ <Exec CmdLine="make"/>
+ </Target>
+ <Target
+ Name="Build 1.1"
+ MenuCaption="&amp;Build 1.1"
+ RunFromDir="%rp"
+ CaptureOutputWith="ProcessBuffer"
+ ClearProcessBuffer="1"
+ SaveOption="SaveWorkspaceFiles">
+ <Exec CmdLine="make net-1"/>
+ </Target>
+ <Target
+ Name="Build MS_NET"
+ MenuCaption="&amp;Build MS_NET"
+ SaveOption="SaveWorkspaceFiles"
+ CaptureOutputWith="ProcessBuffer"
+ ClearProcessBuffer="1"
+ RunFromDir="%rp">
+ <Exec CmdLine="csc -debug -d:NET_2_0 -t:library -r:System.Design.dll,System.Windows.Forms.dll,System.Drawing.dll -out:deps\Mono.Design.dll %{*.cs}"/>
+ </Target>
+ </Menu>
+ <Includes>
+ </Includes>
+ </Config>
+ <CustomFolders>
+ </CustomFolders>
+ <Files AutoFolders="DirectoryView">
+ <Folder Name="build">
+ <Folder Name="common">
+ <F N="build/common/Consts.cs.in"/>
+ <F N="build/common/MonoTODOAttribute.cs"/>
+ </Folder>
+ </Folder>
+ <Folder Name="class">
+ <Folder Name="System">
+ <Folder Name="System.ComponentModel">
+ <F N="class/System/System.ComponentModel/INestedContainer.cs"/>
+ <F N="class/System/System.ComponentModel/INestedSite.cs"/>
+ <F N="class/System/System.ComponentModel/NestedContainer.cs"/>
+ </Folder>
+ <Folder Name="System.ComponentModel.Design">
+ <F N="class/System/System.ComponentModel.Design/DesignerOptionService.cs"/>
+ <F N="class/System/System.ComponentModel.Design/IComponentInitializer.cs"/>
+ <F N="class/System/System.ComponentModel.Design/ITreeDesigner.cs"/>
+ </Folder>
+ <Folder Name="System.ComponentModel.Design.Serialization">
+ <F N="class/System/System.ComponentModel.Design.Serialization/ComponentSerializationService.cs"/>
+ <F N="class/System/System.ComponentModel.Design.Serialization/DefaultSerializationProviderAttribute.cs"/>
+ <F N="class/System/System.ComponentModel.Design.Serialization/MemberRelationship.cs"/>
+ <F N="class/System/System.ComponentModel.Design.Serialization/MemberRelationshipService.cs"/>
+ <F N="class/System/System.ComponentModel.Design.Serialization/SerializationStore.cs"/>
+ </Folder>
+ </Folder>
+ <Folder Name="System.Design">
+ <Folder Name="System.ComponentModel.Design">
+ <F N="class/System.Design/System.ComponentModel.Design/ActiveDesignSurfaceChangedEventArgs.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/ActiveDesignSurfaceChangedEventHandler.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/ComponentDesigner.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignerActionListCollection.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignerEventService.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignerHost.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignModeNestedContainer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignModeSite.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignSurface.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignSurfaceCollection.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignSurfaceEventArgs.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignSurfaceEventHandler.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignSurfaceManager.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/DesignSurfaceServiceContainer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/EventBindingService.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/ExtenderService.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/LoadedEventArgs.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/LoadedEventHandler.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/MenuCommandService.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/ReferenceService.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/SelectionService.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/TypeDescriptorFilterService.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design/UndoEngine.cs"/>
+ </Folder>
+ <Folder Name="System.ComponentModel.Design.Serialization">
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/BasicDesignerLoader.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/CodeDomComponentSerializationService.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/CodeDomDesignerLoader.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializationProvider.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializerBase.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/CollectionCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/ComponentCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/DesignerSerializationManager.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/EnumCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/EventCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/ExpressionContext.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/MemberCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/ObjectStatementCollection.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/PrimitiveCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/PropertyCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/RootCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/RootContext.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/SerializeAbsoluteContext.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/StatementContext.cs"/>
+ <F N="class/System.Design/System.ComponentModel.Design.Serialization/TypeCodeDomSerializer.cs"/>
+ </Folder>
+ <Folder Name="System.Windows.Forms.Design">
+ <F N="class/System.Design/System.Windows.Forms.Design/ComponentTray.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/ControlCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/ControlCollectionCodeDomSerializer.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/ControlDataObject.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/ControlDesigner.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/DefaultMenuCommands.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/DocumentDesigner.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/FormDocumentDesigner.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/IMessageReceiver.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/IUISelectionService.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/Native.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/PanelDesigner.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/ParentControlDesigner.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/ScrollableControlDesigner.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/SelectionFrame.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/SplitContainerDesigner.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/UISelectionService.cs"/>
+ <F N="class/System.Design/System.Windows.Forms.Design/WndProcRouter.cs"/>
+ </Folder>
+ </Folder>
+ </Folder>
+ </Files>
+</Project>
View
104 deps/Mono.Design/generate-mono-design.py
@@ -0,0 +1,104 @@
+#!/usr/bin/python
+import os
+import os.path
+import re
+import sys
+import urllib
+
+def main ():
+ try:
+ print "--> Step 1: Fetching source code..."
+ files = get_files ();
+ fetch_source_code (files)
+ print "--> Step 2: Applying patches..."
+ apply_patches (get_patches ())
+ print "--> Step 3: Replacing namespaces..."
+ replace_namespaces (files)
+ print "Done!"
+ except Exception, exc:
+ print "Unexpected Error: "
+ print exc
+
+def fetch_source_code (files):
+ svn = "http://anonsvn.mono-project.com/source/trunk/mcs/"
+ for file in files:
+ directory = os.path.dirname (file)
+ if directory != "": # quick hack to only download assembly files and not the ones we already have
+ if not os.path.exists (directory):
+ os.makedirs (directory)
+
+ for i in range (1, 4): # retry 3 times
+ try:
+ webFile = urllib.urlopen (svn + file)
+ localFile = open (file, 'w+')
+ localFile.write (webFile.read())
+ webFile.close ()
+ localFile.close ()
+ print "A " + file
+ break
+ except Exception, exc:
+ print "E " + file
+ print exc
+
+def get_files ():
+ try:
+ file = open ("Mono.Design.sources")
+ filesList = []
+ for fileEntry in file:
+ filesList.append (fileEntry.strip ())
+ file.close ()
+ return filesList
+ except Exception:
+ print "Unable to open file: Mono.Design.sources"
+ return None
+
+def replace_namespaces (filesList):
+ if filesList == None:
+ return
+
+ regexp = re.compile (r"namespace (.*?)( ?\{?)$", re.M)
+ for currentFile in filesList:
+ try:
+ inputFile = open (currentFile)
+ input = inputFile.read ()
+ inputFile.close ()
+ if input.find ("namespace Mono.Design") == -1:
+ output = regexp.sub (r"using \1;" + os.linesep + r"namespace Mono.Design\2", input, 1)
+ outputFile = open (currentFile, "w")
+ outputFile.write (output)
+ outputFile.flush ()
+ outputFile.close ()
+ except Exception, exc:
+ print exc
+
+def get_patches ():
+ patches = []
+ patchesDir = os.path.join (os.getcwd (), "patches")
+ if os.path.exists (patchesDir):
+ for item in os.listdir (patchesDir):
+ patchFile = os.path.join (patchesDir, item)
+ if os.path.isfile (patchFile) and patchFile.endswith (".patch"):
+ patches.append (patchFile)
+ patches.sort ()
+ return patches
+
+def file_lf_to_clrf (fileName):
+ inputFile = open (fileName, "rb")
+ input = inputFile.read ()
+ inputFile.close ()
+ output = re.sub ("\r?\n", "\r\n", input)
+ outputFile = open (fileName, "wb")
+ outputFile.write (output)
+ outputFile.flush ()
+ outputFile.close ()
+
+def apply_patches (patches):
+ for patch in patches:
+ if os.name == "nt":
+ file_lf_to_clrf (patch); # fix line endings just in case
+ os.system ("patches\\patch.exe -p0 -i \"" + patch + "\"")
+ else:
+ os.system ("patch -p0 -i \"" + patch + "\"")
+
+if __name__ == "__main__":
+ main ()
View
45 deps/Mono.Design/patches/CodeDomComponentSerializationService-error-reporting.patch
@@ -0,0 +1,45 @@
+--- class/System.Design/System.ComponentModel.Design.Serialization/CodeDomComponentSerializationService.cs 2008-07-10 16:24:08.000000000 +0100
++++ class/System.Design/System.ComponentModel.Design.Serialization/CodeDomComponentSerializationService.cs 2008-03-01 23:30:26.000000000 +0000
+@@ -38,6 +38,8 @@
+ using System.Collections.Generic;
+ using System.IO;
+
++using System.Windows.Forms.Design;
++
+ namespace System.ComponentModel.Design.Serialization
+ {
+ // A ComponentSerializationService that uses a CodeDomSerializationStore
+@@ -371,9 +373,25 @@
+ }
+ }
+ _errors = manager.Errors;
++ ReportErrors (provider, _errors);
+ session.Dispose ();
+ }
+
++ private void ReportErrors (IServiceProvider provider, ICollection errors)
++ {
++ IUIService service = provider.GetService (typeof (IUIService)) as IUIService;
++ if (service != null) {
++ foreach (object error in errors) {
++ if (error is Exception)
++ service.ShowError ((Exception) error);
++ else if (error is string)
++ service.ShowError ((string) error);
++ else
++ service.ShowError (error.ToString ());
++ }
++ }
++ }
++
+ internal void AddObject (object instance, bool absolute)
+ {
+ if (_closed)
+@@ -451,6 +469,7 @@
+ foreach (ObjectEntry entry in _objects.Values)
+ objectInstances.Add (DeserializeEntry (manager, entry));
+ _errors = manager.Errors;
++ ReportErrors (provider, _errors);
+ session.Dispose ();
+ return objectInstances;
+ }
View
15 deps/Mono.Design/patches/CodeDomSerializerBase-msnet-extenderproperty-fix.patch
@@ -0,0 +1,15 @@
+--- class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializerBase.cs 2008-07-10 16:24:08.000000000 +0100
++++ class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializerBase.cs 2008-03-06 19:55:40.000000000 +0000
+@@ -850,7 +850,11 @@
+ if (value != null && value != _errorMarker && propertyHolder != null) {
+ PropertyDescriptor property = TypeDescriptor.GetProperties (propertyHolder)[propRef.PropertyName];
+ if (property != null) {
+- property.SetValue (propertyHolder, value);
++ try {
++ property.SetValue (propertyHolder, value);
++ } catch {
++ // FIXME: This is just for testing on MSNET
++ }
+ } else {
+ ReportError (manager,
+ "Missing property '" + propRef.PropertyName +
View
68 deps/Mono.Design/patches/DesignerHost-designer-type-replacement.patch
@@ -0,0 +1,68 @@
+--- class/System.Design/System.ComponentModel.Design/DesignerHost.cs 2008-07-10 16:24:08.000000000 +0100
++++ class/System.Design/System.ComponentModel.Design/DesignerHost.cs 2008-06-28 02:26:15.000000000 +0100
+@@ -322,9 +324,7 @@
+ if (designerAttr != null &&
+ (designerBaseType.FullName == designerAttr.DesignerBaseTypeName ||
+ designerBaseType.AssemblyQualifiedName == designerAttr.DesignerBaseTypeName)) {
+- Type type = Type.GetType (designerAttr.DesignerTypeName);
+- if (type == null && designerBaseType == typeof (IRootDesigner))
+- type = typeof (System.Windows.Forms.Design.DocumentDesigner);
++ Type type = this.GetDesignerType (designerAttr.DesignerTypeName);
+ if (type != null)
+ instance = (IDesigner) Activator.CreateInstance (type);
+ break;
+@@ -340,9 +340,10 @@
+ if (designerAttr != null &&
+ (designerBaseType.FullName == designerAttr.DesignerBaseTypeName ||
+ designerBaseType.AssemblyQualifiedName == designerAttr.DesignerBaseTypeName)) {
+- Type type = Type.GetType (designerAttr.DesignerTypeName);
+- if (type != null)
++ Type type = this.GetDesignerType (designerAttr.DesignerTypeName);
++ if (type != null) {
+ instance = (IDesigner) Activator.CreateInstance (type);
++ }
+ break;
+ }
+ }
+@@ -353,6 +354,41 @@
+ return instance;
+ }
+
++ // reroutes types to Mono.Design temoprary for testing
++ private Type GetDesignerType (string name)
++ {
++ Type type = null;
++ if (name.StartsWith ("System.Windows.Forms.Design.ControlDesigner"))
++ type = typeof (Mono.Design.ControlDesigner);
++ else if (name.StartsWith ("System.Windows.Forms.Design.SplitContainerDesigner"))
++ type = typeof (Mono.Design.SplitContainerDesigner);
++ else if (name.StartsWith ("System.Windows.Forms.Design.ParentControlDesigner"))
++ type = typeof (Mono.Design.ParentControlDesigner);
++ else if (name.StartsWith ("System.Windows.Forms.Design.PanelDesigner"))
++ type = typeof (Mono.Design.PanelDesigner);
++ else if (name.StartsWith ("System.Windows.Forms.Design.DocumentDesigner"))
++ type = typeof (Mono.Design.DocumentDesigner);
++ else if (name.StartsWith ("System.Windows.Forms.Design.UserControlDocumentDesigner"))
++ type = typeof (Mono.Design.DocumentDesigner);
++ else if (name.StartsWith ("System.Windows.Forms.Design.FormDocumentDesigner"))
++ type = typeof (Mono.Design.FormDocumentDesigner);
++ else if (name.StartsWith ("System.Windows.Forms.Design.ScrollableControlDesigner"))
++ type = typeof (Mono.Design.ScrollableControlDesigner);
++ else if (name.StartsWith ("System.ComponentModel.Design.ComponentDesigner"))
++ type = typeof (Mono.Design.ComponentDesigner);
++ else if (name.StartsWith ("Mono.Design"))
++ type = Type.GetType (name);
++ else
++ type = Type.GetType (name);
++
++ if (type != null)
++ Console.WriteLine ("type " + type.FullName +" replaced " + name);
++ //else
++ //Console.WriteLine ("type not found: " + name);
++
++ return type;
++ }
++
+ public void DestroyComponent (IComponent component)
+ {
+ if (component.Site != null && component.Site.Container == this) {
View
39 deps/Mono.Design/patches/DesignerSerializationManager-serializer-type-replacement.patch
@@ -0,0 +1,39 @@
+--- class/System.Design/System.ComponentModel.Design.Serialization/DesignerSerializationManager.cs 2008-07-10 16:24:08.000000000 +0100
++++ class/System.Design/System.ComponentModel.Design.Serialization/DesignerSerializationManager.cs 2008-02-29 01:39:38.000000000 +0000
+@@ -257,9 +257,9 @@
+ AttributeCollection attributes = TypeDescriptor.GetAttributes (componentType);
+ DesignerSerializerAttribute serializerAttribute = attributes[typeof (DesignerSerializerAttribute)] as DesignerSerializerAttribute;
+ if (serializerAttribute != null &&
+- this.GetType (serializerAttribute.SerializerBaseTypeName) == serializerType) {
++ this.GetSerializerType (serializerAttribute.SerializerBaseTypeName) == serializerType) {
+ try {
+- serializer = Activator.CreateInstance (this.GetType (serializerAttribute.SerializerTypeName),
++ serializer = Activator.CreateInstance (this.GetSerializerType (serializerAttribute.SerializerTypeName),
+ BindingFlags.CreateInstance | BindingFlags.Instance |
+ BindingFlags.Public | BindingFlags.NonPublic,
+ null, null, null);
+@@ -283,6 +283,24 @@
+ return serializer;
+ }
+
++ private Type GetSerializerType (string name)
++ {
++ Type type = null;
++ if (name.StartsWith ("System.ComponentModel.Design.Serialization.CodeDomSerializer"))
++ type = typeof (Mono.Design.CodeDomSerializer);
++ else if (name.StartsWith ("System.Windows.Forms.Design.ControlCodeDomSerializer"))
++ type = typeof (Mono.Design.ControlCodeDomSerializer);
++ else if (name.StartsWith ("System.ComponentModel.Design.Serialization.RootCodeDomSerializer"))
++ type = typeof (Mono.Design.RootCodeDomSerializer);
++ else
++ type = this.GetType (name);
++
++ // if (type != null)
++ // Console.WriteLine ("type " + type.FullName +" replaced " + name);
++
++ return type;
++ }
++
+ private void VerifyInSession ()
+ {
+ if (_session == null)
View
121 deps/Mono.Design/patches/Native-win32.patch
@@ -0,0 +1,121 @@
+--- class/System.Design/System.Windows.Forms.Design/Native.cs 2008-07-10 16:24:08.000000000 +0100
++++ class/System.Design/System.Windows.Forms.Design/Native.cs 2008-04-07 14:28:36.000000000 +0100
+@@ -40,16 +40,18 @@
+ {
+
+ private static Type _xplatuiType;
++ private static bool _onMSNET;
+
+ static Native ()
+ {
+- Assembly assembly = Assembly.Load (Consts.AssemblySystem_Windows_Forms);
++ _onMSNET = false;
++ Assembly assembly = Assembly.Load (Consts.AssemblySystem_Windows_Forms);
+ if (assembly == null)
+ throw new InvalidOperationException ("Can't load System.Windows.Forms assembly.");
+
+ _xplatuiType = assembly.GetType ("System.Windows.Forms.XplatUI");
+ if (_xplatuiType == null)
+- throw new InvalidOperationException ("Can't find the System.Windows.Forms.XplatUI type.");
++ _onMSNET = true;
+ }
+
+ private static object InvokeMethod (string methodName, object[] args)
+@@ -78,19 +80,27 @@
+
+ public static void DefWndProc (ref Message m)
+ {
+- object[] args = new object[] { m };
+- m.Result = (IntPtr) InvokeMethod ("DefWndProc", args);
+- m = (Message) args[0];
++ if (_onMSNET) {
++ m.Result = DefWindowProc (m.HWnd, m.Msg, m.WParam, m.LParam);
++ }
++ else {
++ object[] args = new object[] { m };
++ m.Result = (IntPtr) InvokeMethod ("DefWndProc", args);
++ m = (Message) args[0];
++ }
+ }
+
+ public static IntPtr SendMessage (IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
+ {
+-
+- Assembly assembly = Assembly.Load (Consts.AssemblySystem_Windows_Forms);
+- Type refType = assembly.GetType ("System.Windows.Forms.Message&");
+- object[] args = new object[] { Message.Create (hwnd, (int)message, wParam, lParam) };
+- InvokeMethod ("SendMessage", args, new Type[] { refType });
+- return ((Message)args[0]).Result;
++ if (_onMSNET) {
++ return SendMessage_Win32 (hwnd, (int) message, wParam, lParam);
++ } else {
++ Assembly assembly = Assembly.Load (Consts.AssemblySystem_Windows_Forms);
++ Type refType = assembly.GetType ("System.Windows.Forms.Message&");
++ object[] args = new object[] { Message.Create (hwnd, (int)message, wParam, lParam) };
++ InvokeMethod ("SendMessage", args, new Type[] { refType });
++ return ((Message)args[0]).Result;
++ }
+ }
+
+ public static Point PointToClient (Control control, Point point)
+@@ -98,14 +108,24 @@
+ if (control == null)
+ throw new ArgumentNullException ("control");
+
+- object[] args = new object[] { control.Handle, point.X, point.Y };
+- InvokeMethod ("ScreenToClient", args);
+- return new Point ((int) args[1], (int) args[2]);
++ if (_onMSNET) {
++ POINT pt = new POINT (point.X, point.Y);
++ ScreenToClient (control.Handle, ref pt);
++ return new Point (pt.X, pt.Y);
++ }
++ else {
++ object[] args = new object[] { control.Handle, point.X, point.Y };
++ InvokeMethod ("ScreenToClient", args);
++ return new Point ((int) args[1], (int) args[2]);
++ }
+ }
+
+ public static IntPtr SetParent (IntPtr childHandle, IntPtr parentHandle)
+ {
+- return (IntPtr) InvokeMethod ("SetParent", new object[] { childHandle, parentHandle });
++ if (_onMSNET)
++ return SetParent_Win32 (childHandle, parentHandle);
++ else
++ return (IntPtr) InvokeMethod ("SetParent", new object[] { childHandle, parentHandle });
+ }
+
+
+@@ -211,6 +231,31 @@
+ //
+ WM_MOUSE_ENTER = 0x0401,
+ }
++
++#region Win32 Native Method Signatures
++ [StructLayout(LayoutKind.Sequential)]
++ private struct POINT {
++ public POINT (int x, int y) {
++ this.X = x;
++ this.Y = y;
++ }
++
++ public int X;
++ public int Y;
++ }
++
++ [DllImport("user32.dll", CharSet=CharSet.Auto)]
++ private static extern IntPtr DefWindowProc (IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam);
++
++ [DllImport ("user32.dll", EntryPoint = "SendMessage", CharSet = CharSet.Auto)]
++ private static extern IntPtr SendMessage_Win32 (IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam);
++
++ [DllImport ("user32.dll", CharSet = CharSet.Auto)]
++ private static extern bool ScreenToClient (IntPtr hWnd, ref POINT pt);
++
++ [DllImport ("user32.dll", EntryPoint = "SetParent", CharSet = CharSet.Auto)]
++ private static extern IntPtr SetParent_Win32 (IntPtr childHandle, IntPtr parentHandle);
++#endregion
+ }
+ }
+
View
BIN  deps/Mono.Design/patches/patch.exe
Binary file not shown
View
123 mwf-designer.csproj
@@ -0,0 +1,123 @@
+<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>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{E8A1D7EA-AB41-4908-8715-F76FC155A164}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>mwf_designer</RootNamespace>
+ <AssemblyName>mwf-designer</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>build\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;NET_2_0,DEBUG,WITH_MONO_DESIGN</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>build\</OutputPath>
+ <DefineConstants>TRACE;NET_2_0,DEBUG,WITH_MONO_DESIGN</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="ICSharpCode.NRefactory, Version=2.2.1.2648, Culture=neutral, PublicKeyToken=efe927acf176eea2, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>deps\ICSharpCode.NRefactory.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="src\AssemblyInfo.cs" />
+ <Compile Include="src\DesignTime\CodeProvider.cs" />
+ <Compile Include="src\DesignTime\CodeProviderDesignerLoader.cs" />
+ <Compile Include="src\DesignTime\CodeProviderEventBindingService.cs" />
+ <Compile Include="src\DesignTime\ToolboxFiller.cs" />
+ <Compile Include="src\DesignTime\TypeResolutionService.cs" />
+ <Compile Include="src\DesignTime\UndoRedoEngine.cs" />
+ <Compile Include="src\Program.cs" />
+ <Compile Include="src\Project\Document.cs" />
+ <Compile Include="src\Project\References.cs" />
+ <Compile Include="src\Project\TemplateManager.cs" />
+ <Compile Include="src\Project\Workspace.cs" />
+ <Compile Include="src\UI\ErrorList.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="src\UI\ErrorList.Designer.cs">
+ <DependentUpon>ErrorList.cs</DependentUpon>
+ </Compile>
+ <Compile Include="src\UI\ErrorListTabPage.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="src\UI\MainView.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="src\UI\MainView.Designer.cs">
+ <DependentUpon>MainView.cs</DependentUpon>
+ </Compile>
+ <Compile Include="src\UI\NewFileDialog.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="src\UI\NewFileDialog.Designer.cs">
+ <DependentUpon>NewFileDialog.cs</DependentUpon>
+ </Compile>
+ <Compile Include="src\UI\PropertyGrid.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="src\UI\PropertyGrid.Designer.cs">
+ <DependentUpon>PropertyGrid.cs</DependentUpon>
+ </Compile>
+ <Compile Include="src\UI\ReferencesDialog.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="src\UI\ReferencesDialog.Designer.cs">
+ <DependentUpon>ReferencesDialog.cs</DependentUpon>
+ </Compile>
+ <Compile Include="src\UI\ToolBoxList\ToolBoxGroupHeader.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="src\UI\ToolBoxList\ToolBoxGroupPanel.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="src\UI\ToolBoxList\ToolBoxList.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="src\UI\ToolBoxList\ToolBoxListItem.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="ChangeLog" />
+ <None Include="LICENSE" />
+ <None Include="Makefile" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="deps\Mono.Design\Mono.Design.csproj">
+ <Project>{53DB609E-CCAB-40F8-BA30-E98B9111627A}</Project>
+ <Name>Mono.Design</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
26 mwf-designer.sln
@@ -0,0 +1,26 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mwf-designer", "mwf-designer.csproj", "{E8A1D7EA-AB41-4908-8715-F76FC155A164}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.Design", "deps\Mono.Design\Mono.Design.csproj", "{53DB609E-CCAB-40F8-BA30-E98B9111627A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {E8A1D7EA-AB41-4908-8715-F76FC155A164}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E8A1D7EA-AB41-4908-8715-F76FC155A164}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E8A1D7EA-AB41-4908-8715-F76FC155A164}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E8A1D7EA-AB41-4908-8715-F76FC155A164}.Release|Any CPU.Build.0 = Release|Any CPU
+ {53DB609E-CCAB-40F8-BA30-E98B9111627A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {53DB609E-CCAB-40F8-BA30-E98B9111627A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {53DB609E-CCAB-40F8-BA30-E98B9111627A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {53DB609E-CCAB-40F8-BA30-E98B9111627A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
6 mwf-designer.vpj
@@ -27,20 +27,20 @@
CaptureOutputWith="ProcessBuffer"
ClearProcessBuffer="1"
BuildFirst="1">
- <Exec CmdLine="make mono-design-run"/>
+ <Exec CmdLine="make run"/>
</Target>
<Target
Name="Build MS_NET"
MenuCaption="&amp;Build MS_NET"
CaptureOutputWith="ProcessBuffer"
ClearProcessBuffer="1">
- <Exec CmdLine="csc -debug -d:NET_2_0 -r:System.Design.dll,System.Windows.Forms.dll,System.Drawing.dll,System.Data.dll,..\build\Mono.Design.dll,..\build\ICSharpCode.NRefactory.dll -out:..\build\mwf-designer.exe %{*.cs}"/>
+ <Exec CmdLine="csc -debug -d:NET_2_0 -r:System.Design.dll,System.Windows.Forms.dll,System.Drawing.dll,System.Data.dll,..\build\Mono.Design.dll,..\build\ICSharpCode.NRefactory.dll -out:build\mwf-designer.exe %{*.cs}"/>
</Target>
</Menu>
<Includes>
</Includes>
<Dependencies Name="Release">
- <Dependency Project="../Mono.Design/Mono.Design.vpj"/>
+ <Dependency Project="deps/Mono.Design/Mono.Design.vpj"/>
</Dependencies>
</Config>
<CustomFolders>
Please sign in to comment.
Something went wrong with that request. Please try again.