Skip to content

Commit

Permalink
Merging of the SVGDrawing branch into the trunk.
Browse files Browse the repository at this point in the history
This adds the 'Observational Reference' feature to trunk.
  • Loading branch information
JoanCharmant committed May 18, 2010
1 parent f490555 commit 6cea176
Show file tree
Hide file tree
Showing 38 changed files with 13,146 additions and 37 deletions.
Binary file added Refs/SharpVectorBindings.dll
Binary file not shown.
Binary file added Refs/SharpVectorCss.dll
Binary file not shown.
Binary file added Refs/SharpVectorDom.dll
Binary file not shown.
Binary file added Refs/SharpVectorObjectModel.dll
Binary file not shown.
Binary file added Refs/SharpVectorUtil.dll
Binary file not shown.
9 changes: 3 additions & 6 deletions Root/Kernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -637,13 +637,10 @@ private void RefreshSubMenu(ToolStripItem item)
}

// This item
if (item.Tag != null)
ItemResourceInfo info = item.Tag as ItemResourceInfo;
if (info != null)
{
item.Text = ((ItemResourceInfo)item.Tag).resManager.GetString(((ItemResourceInfo)item.Tag).strText, Thread.CurrentThread.CurrentUICulture);
}
else
{
// If tag is null, it's a non translatable text.
item.Text = info.resManager.GetString(info.strText, Thread.CurrentThread.CurrentUICulture);
}
}
#endregion
Expand Down
5 changes: 4 additions & 1 deletion Root/Root.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<NoWarn>1591</NoWarn>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<RunPostBuildEvent>Always</RunPostBuildEvent>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -346,4 +346,7 @@
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>"..\..\..\..\Tools\build events\postbuild.bat"</PostBuildEvent>
</PropertyGroup>
</Project>
534 changes: 534 additions & 0 deletions ScreenManager/PlayerScreen/Drawings/DrawingSVG.cs

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions ScreenManager/PlayerScreen/Metadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,27 @@ public List<Bitmap> GetFullImages()
}
return images;
}

public void ResizeFinished()
{
// This function is used to trigger an update to drawings and guides that do not
// render in the same way when the user is resizing the window or not.
// This is typically used for SVG Drawing, which take a long time to render themselves.
foreach(Keyframe kf in m_Keyframes)
{
foreach(AbstractDrawing d in kf.Drawings)
{
DrawingSVG svg = d as DrawingSVG;
if(svg != null)
{
svg.ResizeFinished();
}
}
}


}

#region Objects Hit Tests
public void UnselectAll()
{
Expand Down Expand Up @@ -548,6 +569,7 @@ public bool IsOnGrid(Point _MouseLocation)
return bGridHit;
}
#endregion

#endregion

#region Lower level Helpers
Expand Down
5 changes: 5 additions & 0 deletions ScreenManager/PlayerScreen/PlayerScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,11 @@ public void Save()
{
m_PlayerScreenUI.Save();
}
public void AddSVGDrawing(string filename)
{
// todo, move up in Abstract screen ?
m_PlayerScreenUI.AddSVGDrawing(filename);
}
#endregion
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6cea176

Please sign in to comment.