Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
roger.alsing committed Dec 12, 2009
1 parent a2b2fd1 commit 0f74078
Show file tree
Hide file tree
Showing 306 changed files with 55,464 additions and 0 deletions.
23 changes: 23 additions & 0 deletions WindowsFormsComponents/Alsing.AlbinoHorse/Alsing.AlbinoHorse.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Alsing.AlbinoHorse", "Alsing.AlbinoHorse\Alsing.AlbinoHorse.csproj", "{4E22716D-047F-4CBC-9B86-785E2A0CAB67}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
NPDebug|Any CPU = NPDebug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4E22716D-047F-4CBC-9B86-785E2A0CAB67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4E22716D-047F-4CBC-9B86-785E2A0CAB67}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4E22716D-047F-4CBC-9B86-785E2A0CAB67}.NPDebug|Any CPU.ActiveCfg = Debug|Any CPU
{4E22716D-047F-4CBC-9B86-785E2A0CAB67}.NPDebug|Any CPU.Build.0 = Debug|Any CPU
{4E22716D-047F-4CBC-9B86-785E2A0CAB67}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4E22716D-047F-4CBC-9B86-785E2A0CAB67}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
<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>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4E22716D-047F-4CBC-9B86-785E2A0CAB67}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Alsing.AlbinoHorse</RootNamespace>
<AssemblyName>Alsing.AlbinoHorse</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Infrastructure\BoundingBox.cs" />
<Compile Include="Infrastructure\ShapeCancelEventArgs.cs" />
<Compile Include="Infrastructure\ShapeKeyEventArgs.cs" />
<Compile Include="Model\DefaultUmlClassData.cs" />
<Compile Include="Model\DefaultUmlDiagramData.cs" />
<Compile Include="Model\DefaultUmlTypeMemberData.cs" />
<Compile Include="Model\DefaultUmlTypeData.cs" />
<Compile Include="Model\Interfaces\IUmlRelationData.cs" />
<Compile Include="Model\Interfaces\IUmlClassData.cs" />
<Compile Include="Model\Interfaces\IUmlCommentData.cs" />
<Compile Include="Model\Interfaces\IUmlDiagramData.cs" />
<Compile Include="Model\Interfaces\IUmlEnumData.cs" />
<Compile Include="Model\Interfaces\IUmlInterfaceData.cs" />
<Compile Include="Model\Interfaces\IUmlRenderer.cs" />
<Compile Include="Model\Interfaces\IUmlPropertyData.cs" />
<Compile Include="Model\Interfaces\IUmlInstanceTypeData.cs" />
<Compile Include="Model\Interfaces\IUmlTypeData.cs" />
<Compile Include="Model\UmlTypeMembers\UmlTypeMemberSection.cs" />
<Compile Include="Model\UmlTypes\UmlClass.cs" />
<Compile Include="Model\UmlTypes\UmlComment.cs" />
<Compile Include="Model\UmlTypes\UmlRelation.cs" />
<Compile Include="Model\UmlTypes\UmlEnum.cs" />
<Compile Include="Model\UmlTypes\UmlInterface.cs" />
<Compile Include="Model\UmlTypes\UmlShape.cs" />
<Compile Include="Model\UmlTypes\UmlType.cs" />
<Compile Include="Model\UmlTypeGfxSettings.cs" />
<Compile Include="Windows\Forms\Canvas.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Windows\Forms\Canvas.Designer.cs">
<DependentUpon>Canvas.cs</DependentUpon>
</Compile>
<Compile Include="Infrastructure\Events.cs" />
<Compile Include="Layout\Graph.cs" />
<Compile Include="Layout\Node.cs" />
<Compile Include="Model\Shape.cs" />
<Compile Include="Model\UmlDiagram.cs" />
<Compile Include="Model\UmlTypeMembers\UmlTypeMember.cs" />
<Compile Include="Model\UmlTypes\UmlInstanceType.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Infrastructure\RenderInfo.cs" />
<Compile Include="Infrastructure\ShapeMouseEventArgs.cs" />
<Compile Include="Windows\Forms\EditMode.cs" />
<Compile Include="Windows\Forms\UmlDesigner.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Windows\Forms\UmlDesigner.Designer.cs">
<DependentUpon>UmlDesigner.cs</DependentUpon>
</Compile>
<Compile Include="Windows\Forms\UmlDesigner_Layout.cs">
<SubType>Component</SubType>
</Compile>
<Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Collapse.bmp" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Expand.bmp" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\InheritanceArrow.gif" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Property.bmp" />
<EmbeddedResource Include="Windows\Forms\UmlDesigner.resx">
<DependentUpon>UmlDesigner.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="TestDiagram.cd" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Expand.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Collapse.gif" />
</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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
using System.Drawing;

namespace AlbinoHorse.Infrastructure
{
public abstract class BoundingItem
{
#region Property Target

public object Target { get; set; }

#endregion

#region Property Data

public object Data { get; set; }

#endregion

public abstract Rectangle GetBounds();

public abstract bool HitTest(int x, int y);
}

public class BoundingBox : BoundingItem
{
#region Property Bounds

public Rectangle Bounds { get; set; }

#endregion

public override Rectangle GetBounds()
{
return Bounds;
}

public override bool HitTest(int x,int y)
{
return Bounds.Contains(x, y);
}
}

public class BoundingLine : BoundingItem
{
public int X1 { get; set; }
public int Y1 { get; set; }
public int X2 { get; set; }
public int Y2 { get; set; }
public int Width { get; set; }

public override Rectangle GetBounds()
{
return Rectangle.Empty;
}

public override bool HitTest(int x, int y)
{
return false;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using AlbinoHorse.Model;

namespace AlbinoHorse.Infrastructure
{
public delegate void Action();

public delegate void DrawRelation(Shape start, Shape end);

public delegate void ShapeCancelHandler(object sender, ShapeCancelEventArgs args);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Collections.Generic;
using System.Drawing;

namespace AlbinoHorse.Infrastructure
{
public class RenderInfo
{
public RenderInfo()
{
BoundingItems = new List<BoundingItem>();
}

public Graphics Graphics { get; set; }
public Rectangle VisualBounds { get; set; }
public List<BoundingItem> BoundingItems { get; set; }
public int GridSize { get; set; }
public bool ShowGrid { get; set; }
public double Zoom { get; set; }
//public Size ReturnedSize { get; set; }
public Rectangle ReturnedBounds { get; set; }
public bool Preview { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using AlbinoHorse.Model;

namespace AlbinoHorse.Infrastructure
{
public class ShapeCancelEventArgs
{
public Shape Shape { get; set; }
public bool Cancel { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.Windows.Forms;
using AlbinoHorse.Windows.Forms;

namespace AlbinoHorse.Infrastructure
{
public class ShapeKeyEventArgs
{
public Keys Key;
public bool Redraw { get; set; }
public UmlDesigner Sender { get; set; }
public int GridSize { get; set; }
public bool SnapToGrid { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Windows.Forms;
using AlbinoHorse.Windows.Forms;

namespace AlbinoHorse.Infrastructure
{
public class ShapeMouseEventArgs
{
public int X { get; set; }
public int Y { get; set; }
public MouseButtons Button { get; set; }
public BoundingItem BoundingItem { get; set; }
public bool Redraw { get; set; }
public UmlDesigner Sender { get; set; }
public int GridSize { get; set; }
public bool SnapToGrid { get; set; }
}
}
Loading

0 comments on commit 0f74078

Please sign in to comment.