svn path=/trunk/lunareclipse/; revision=105855
This commit is contained in:
Manuel Cerón 2008-06-15 04:28:17 +00:00
Родитель 4254dafb5d
Коммит 80643a30c4
11 изменённых файлов: 89 добавлений и 536 удалений

Просмотреть файл

@ -1,42 +1,36 @@
//
// AssemblyInfo.cs
//
// Authors:
// Alan McGovern alan.mcgovern@gmail.com
// Author:
// Manuel Cerón <ceronman@unicauca.edu.co>
//
// Copyright (C) 2007 Alan McGovern
// Copyright (c) 2008 [copyright holders]
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following
// attributes.
//
// change them to the information which is associated with the assembly
// you compile.
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("")]
[assembly: AssemblyTitle("LunarEclipse")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
@ -45,17 +39,13 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 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):
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// If the build and revision are set to '*' they will be updated automatically.
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.*.*")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
// The following attributes specify the key for the sign of your assembly. See the
// .NET Framework documentation for more information about signing.
// This is not required, if you don't want signing let these attributes like they're.
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]

Просмотреть файл

@ -50,7 +50,7 @@ namespace LunarEclipse.Controller
storyboard = new Storyboard();
storyboard.BeginTime = TimeSpan.Zero;
storyboard.Duration = TimeSpan.Zero;
storyboard.SetValue<object>(Storyboard.ChildrenProperty, new TimelineCollection());
storyboard.SetValue(Storyboard.ChildrenProperty, new TimelineCollection());
}
}

Просмотреть файл

@ -1,35 +1,46 @@
<Project name="LunarEclipse" fileversion="2.0" language="C#" clr-version="Net_2_0" standardNamespace="LunarEclipse" ctype="DotNetProject">
<Project name="LunarEclipse" fileversion="2.0" language="C#" clr-version="Net_2_0" ctype="DotNetProject">
<Configurations active="Debug">
<Configuration name="Release" ctype="DotNetProjectConfiguration">
<Output directory="bin/Release/" assembly="LunarEclipse" executeScript="" executeBeforeBuild="" executeAfterBuild="" executeBeforeBuildArguments="" executeAfterBuildArguments="" />
<Build debugmode="True" target="Exe" />
<Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="False" mainclass="" definesymbols="TRACE" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
</Configuration>
<Configuration name="Debug" ctype="DotNetProjectConfiguration">
<Output directory="bin/Debug/" assembly="LunarEclipse" executeScript="" executeBeforeBuild="" executeAfterBuild="" executeBeforeBuildArguments="" executeAfterBuildArguments="" />
<Output directory="bin/Debug" assembly="LunarEclipse" />
<Build debugmode="True" target="Exe" />
<Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" mainclass="" definesymbols="DEBUG;TRACE" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
</Configuration>
<Configuration name="Release" ctype="DotNetProjectConfiguration">
<Output directory="bin/Release" assembly="LunarEclipse" />
<Build debugmode="False" target="Exe" />
<Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" />
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
</Configuration>
</Configurations>
<Contents>
<File name="gtk-gui/gui.stetic" subtype="Code" buildaction="EmbedAsResource" resource_id="gui.stetic" />
<File name="gtk-gui/generated.cs" subtype="Code" buildaction="Compile" />
<File name="AssemblyInfo.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/Toolbox.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoEngine.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoActionBase.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoAddObject.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoPropertyChange.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoRotation.cs" subtype="Code" buildaction="Compile" />
<File name="View/GtkMoonlight.cs" subtype="Code" buildaction="Compile" />
<File name="View/Main.cs" subtype="Code" buildaction="Compile" />
<File name="View/MainWindow.cs" subtype="Code" buildaction="Compile" />
<File name="View/PropertyGroupAppearance.cs" subtype="Code" buildaction="Compile" />
<File name="View/PropertyGroupBrushes.cs" subtype="Code" buildaction="Compile" />
<File name="View/PropertyGroupLayout.cs" subtype="Code" buildaction="Compile" />
<File name="Properties/PropertyInfo.cs" subtype="Code" buildaction="Compile" />
<File name="Properties/PropertyManager.cs" subtype="Code" buildaction="Compile" />
<File name="Properties/PropertyType.cs" subtype="Code" buildaction="Compile" />
<File name="Controls/TimeLine/AnimationTimeline.cs" subtype="Code" buildaction="Compile" />
<File name="Controls/TimeLine/IMarker.cs" subtype="Code" buildaction="Compile" />
<File name="Controls/TimeLine/KeyframeEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Controls/TimeLine/KeyframeMarker.cs" subtype="Code" buildaction="Compile" />
<File name="Controls/TimeLine/PositionMarker.cs" subtype="Code" buildaction="Compile" />
<File name="Controls/TimeLine/TimelineMarker.cs" subtype="Code" buildaction="Compile" />
<File name="Model/DrawChangeEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Model/ISelection.cs" subtype="Code" buildaction="Compile" />
<File name="Model/NameGenerator.cs" subtype="Code" buildaction="Compile" />
<File name="Model/PropertyChangedEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Model/SelectedBorder.cs" subtype="Code" buildaction="Compile" />
<File name="Model/SelectionChangedEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Model/SelectionRectangle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/StandardSelection.cs" subtype="Code" buildaction="Compile" />
<File name="Model/StoryboardManager.cs" subtype="Code" buildaction="Compile" />
<File name="Model/TransformType.cs" subtype="Code" buildaction="Compile" />
<File name="Model/ZIndexComparer.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Draw/CircleDraw.cs" subtype="Code" buildaction="Compile" />
@ -41,48 +52,24 @@
<File name="Model/Draw/SelectionDraw.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Draw/Selector.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Draw/SquareDraw.cs" subtype="Code" buildaction="Compile" />
<File name="Properties/PropertyManager.cs" subtype="Code" buildaction="Compile" />
<File name="Serialization/ReflectionHelper.cs" subtype="Code" buildaction="Compile" />
<File name="Serialization/Serializer.cs" subtype="Code" buildaction="Compile" />
<File name="View/GtkMoonlight.cs" subtype="Code" buildaction="Compile" />
<File name="View/Main.cs" subtype="Code" buildaction="Compile" />
<File name="View/MainWindow.cs" subtype="Code" buildaction="Compile" />
<File name="gtk-gui/LunarEclipse.View.MainWindow.cs" subtype="Code" buildaction="Compile" />
<File name="gtk-gui/generated.cs" subtype="Code" buildaction="Compile" />
<File name="Serialization/PropertyData.cs" subtype="Code" buildaction="Compile" />
<File name="Model/NameGenerator.cs" subtype="Code" buildaction="Compile" />
<File name="Controls/TimeLine/KeyframeEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/StoryboardEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Model/StoryboardManager.cs" subtype="Code" buildaction="Compile" />
<File name="Model/DrawChangeEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Model/SelectionChangedEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Properties/PropertyInfo.cs" subtype="Code" buildaction="Compile" />
<File name="Properties/PropertyType.cs" subtype="Code" buildaction="Compile" />
<File name="View/PropertyGroupBrushes.cs" subtype="Code" buildaction="Compile" />
<File name="View/PropertyGroupLayout.cs" subtype="Code" buildaction="Compile" />
<File name="View/PropertyGroupAppearance.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/MoonlightController.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles" subtype="Directory" buildaction="Compile" />
<File name="Model/Locators" subtype="Directory" buildaction="Compile" />
<File name="Model/Handles/AbstractHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/AbstractHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/EndLineHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/IHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/IHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/LineHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/LineHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/LineSegmentHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/PathHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/ResizeHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/RotateHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/TransformHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/RotateHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/StartLineHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/StartPointHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/TransformHandle.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Locators/AbstractLocator.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Locators/RelativeLocator.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Locators/ILocator.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/IHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/LineHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/AbstractHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/ResizeHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Handles/RotateHandleGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Tools" subtype="Directory" buildaction="Compile" />
<File name="Model/Locators/RelativeLocator.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Tools/AbstractTool.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Tools/CircleCreationTool.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Tools/EllipseCreationTool.cs" subtype="Code" buildaction="Compile" />
@ -94,20 +81,31 @@
<File name="Model/Tools/SelectionTool.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Tools/ShapeCreationTool.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Tools/SquareCreationTool.cs" subtype="Code" buildaction="Compile" />
<File name="Model/ISelection.cs" subtype="Code" buildaction="Compile" />
<File name="Model/StandardSelection.cs" subtype="Code" buildaction="Compile" />
<File name="Serialization/PropertyData.cs" subtype="Code" buildaction="Compile" />
<File name="Serialization/ReflectionHelper.cs" subtype="Code" buildaction="Compile" />
<File name="Serialization/Serializer.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/MoonlightController.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/Recorder.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/StoryboardEventArgs.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/Toolbox.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoEngine.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoActionBase.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoAddObject.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoGroup.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoPropertyChange.cs" subtype="Code" buildaction="Compile" />
<File name="Controller/UndoActions/UndoRotation.cs" subtype="Code" buildaction="Compile" />
</Contents>
<References>
<ProjectReference type="Gac" localcopy="False" refto="atk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="False" refto="gdk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="False" refto="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<ProjectReference type="Gac" localcopy="False" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<ProjectReference type="Gac" localcopy="False" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<ProjectReference type="Gac" localcopy="True" refto="gtksilver, Version=0.0.0.0, Culture=neutral, PublicKeyToken=976ad8f3443f9a4d" />
<ProjectReference type="Gac" localcopy="True" refto="System.Windows, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<ProjectReference type="Gac" localcopy="True" refto="Mono.Moonlight, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<ProjectReference type="Gac" localcopy="True" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</References>
<DeploymentInformation target="" script="" strategy="File">
<excludeFiles />
</DeploymentInformation>
<GtkDesignInfo gtkVersion="2.12.2" />
</Project>

Просмотреть файл

@ -10,7 +10,6 @@
<StartMode startupentry="LunarEclipse" single="True">
<Execute type="None" entry="LunarEclipse" />
</StartMode>
<MonoDevelop.ChangeLogAddIn.ChangeLogInfo policy="OneChangeLogInEachDirectory" />
<Entries>
<Entry filename="LunarEclipse.mdp" />
</Entries>

Двоичные данные
Prebuild.exe

Двоичный файл не отображается.

Просмотреть файл

@ -1,153 +0,0 @@
//
// Properties.cs
//
// Authors:
// Alan McGovern alan.mcgovern@gmail.com
//
// Copyright (C) 2007 Alan McGovern
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using LunarEclipse.Model;
using System.Windows;
using Gtk;
namespace LunarEclipse {
public class PropertyManager {
// DependencyProperty nameProp;
// SelectedBorder item;
//
// PropertyGroup brush;
// PropertyGroup appearance;
// PropertyGroup layout;
// PropertyGroup common;
// PropertyGroup text;
// PropertyGroup misc;
public PropertyManager ()
{
// this.Build ();
//
// ObjectName.Text = "<No Object Selected>";
// ObjectName.Sensitive = false;
// ObjectName.Changed += new EventHandler (OnNameChanged);
// ObjectType.Text = "";
//
// // build the property groups
//
// // Brush
// brush = new PropertyGroupBrushes();
// vboxProperties.PackStart(brush, false, false, 0);
// brush.Hide ();
//
// // Appearance
// appearance = new PropertyGroupAppearance ();
// vboxProperties.PackStart (appearance, false, false, 0);
// appearance.Hide ();
//
// // Layout
// layout = new PropertyGroupLayout ();
// vboxProperties.PackStart (layout, false, false, 0);
// layout.Hide ();
//
// // Common Properties
//
// // Text
//
// // Misc.
}
public bool HasProperties {
get { return null != null; }//item != null; }
}
public SelectedBorder SelectedObject {
get {return null;}}
// set {
// nameProp = null;
// item = value;
//
// if (item != null) {
// ObjectName.Text = item.Name != null ? item.Name : "";
// ObjectName.Sensitive = true;
// ObjectType.Text = value.Child.GetType ().Name;
//
// for (Type type = item.Child.GetType (); nameProp == null && type != null; type = type.BaseType) {
// FieldInfo[] fields = type.GetFields ();
// foreach (FieldInfo field in fields) {
// if (field.Name == "NameProperty") {
// nameProp = (DependencyProperty) field.GetValue (item.Child);
// break;
// }
// }
// }
// } else {
// ObjectName.Text = "<No Object Selected>";
// ObjectName.Sensitive = false;
// ObjectType.Text = "";
// }
//
// // build the property groups
//
// // Brush
// brush.SelectedObject = item;
// if(brush.HasProperties)
// brush.Show ();
// else
// brush.Hide ();
//
// // Appearance
// appearance.SelectedObject = item;
// if (appearance.HasProperties)
// appearance.Show ();
// else
// appearance.Hide ();
//
// // Layout
// layout.SelectedObject = item;
// if (layout.HasProperties)
// layout.Show ();
// else
// layout.Hide ();
//
// // Common Properties
//
// // Text
//
// // Misc.
// }
// }
void OnNameChanged (object o, EventArgs e)
{
// Entry entry = (Entry) o;
//
// if (nameProp != null)
// item.SetValue<string> (nameProp, entry.Text);
}
}
}

Просмотреть файл

@ -43,7 +43,7 @@ using Gtk.Moonlight;
namespace LunarEclipse.View
{
public partial class MainWindow: Gtk.Window
public class MainWindow: Gtk.Window
{
Box mainContainer;
MoonlightController controller;
@ -57,8 +57,6 @@ namespace LunarEclipse.View
public MainWindow (): base (Gtk.WindowType.Toplevel)
{
Build ();
Canvas c = new Canvas();
c.Width = 800;
c.Height = 600;

Просмотреть файл

@ -1,31 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.42
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace LunarEclipse.View {
public partial class MainWindow {
protected virtual void Build() {
Stetic.Gui.Initialize();
// Widget LunarEclipse.View.MainWindow
this.Name = "LunarEclipse.View.MainWindow";
this.Title = Mono.Unix.Catalog.GetString("MainWindow");
this.WindowPosition = ((Gtk.WindowPosition)(4));
if ((this.Child != null)) {
this.Child.ShowAll();
}
this.DefaultWidth = 610;
this.DefaultHeight = 433;
this.Show();
this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
}
}
}

Просмотреть файл

@ -1,82 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.42
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Stetic {
internal class Gui {
private static bool initialized;
internal static void Initialize() {
if ((Stetic.Gui.initialized == false)) {
Stetic.Gui.initialized = true;
}
}
}
internal class BinContainer {
private Gtk.Widget child;
private Gtk.UIManager uimanager;
public static BinContainer Attach(Gtk.Bin bin) {
BinContainer bc = new BinContainer();
bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested);
bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
bin.Added += new Gtk.AddedHandler(bc.OnAdded);
return bc;
}
private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs args) {
if ((this.child != null)) {
args.Requisition = this.child.SizeRequest();
}
}
private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs args) {
if ((this.child != null)) {
this.child.Allocation = args.Allocation;
}
}
private void OnAdded(object sender, Gtk.AddedArgs args) {
this.child = args.Widget;
}
public void SetUiManager(Gtk.UIManager uim) {
this.uimanager = uim;
this.child.Realized += new System.EventHandler(this.OnRealized);
}
private void OnRealized(object sender, System.EventArgs args) {
if ((this.uimanager != null)) {
Gtk.Widget w;
w = this.child.Toplevel;
if (((w != null) && typeof(Gtk.Window).IsInstanceOfType(w))) {
((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup);
this.uimanager = null;
}
}
}
}
internal class ActionGroups {
public static Gtk.ActionGroup GetActionGroup(System.Type type) {
return Stetic.ActionGroups.GetActionGroup(type.FullName);
}
public static Gtk.ActionGroup GetActionGroup(string name) {
return null;
}
}
}

Просмотреть файл

@ -1,152 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<stetic-interface>
<configuration>
<images-root-path>../</images-root-path>
</configuration>
<import>
<widget-library name="../bin/Debug/LunarEclipse.exe" internal="true" />
</import>
<widget class="Gtk.Window" id="LunarEclipse.View.MainWindow" design-size="610 433">
<property name="MemberName" />
<property name="Title" translatable="yes">MainWindow</property>
<property name="WindowPosition">CenterOnParent</property>
<signal name="DeleteEvent" handler="OnDeleteEvent" />
<child>
<placeholder />
</child>
</widget>
<widget class="Gtk.Bin" id="LunarEclipse.Properties" design-size="200 300">
<property name="MemberName" />
<child>
<widget class="Gtk.VBox" id="vboxProperties">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Table" id="tableNameType">
<property name="MemberName" />
<property name="NRows">2</property>
<property name="NColumns">2</property>
<property name="RowSpacing">6</property>
<property name="ColumnSpacing">6</property>
<child>
<widget class="Gtk.Label" id="lblName">
<property name="MemberName" />
<property name="Xalign">1</property>
<property name="LabelProp" translatable="yes">Name</property>
</widget>
<packing>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
<property name="XExpand">False</property>
<property name="XFill">True</property>
<property name="XShrink">False</property>
<property name="YExpand">False</property>
<property name="YFill">True</property>
<property name="YShrink">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="lblType">
<property name="MemberName" />
<property name="Xalign">1</property>
<property name="LabelProp" translatable="yes">Type</property>
</widget>
<packing>
<property name="TopAttach">1</property>
<property name="BottomAttach">2</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
<property name="XExpand">False</property>
<property name="XFill">True</property>
<property name="XShrink">False</property>
<property name="YExpand">False</property>
<property name="YFill">True</property>
<property name="YShrink">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Entry" id="ObjectName">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Text" translatable="yes">&lt;No Name&gt;</property>
<property name="IsEditable">True</property>
<property name="InvisibleChar">●</property>
</widget>
<packing>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
<property name="XExpand">False</property>
<property name="XFill">True</property>
<property name="XShrink">False</property>
<property name="YExpand">False</property>
<property name="YFill">True</property>
<property name="YShrink">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="ObjectType">
<property name="MemberName" />
<property name="Xalign">0</property>
<property name="LabelProp" translatable="yes">Canvas</property>
</widget>
<packing>
<property name="TopAttach">1</property>
<property name="BottomAttach">2</property>
<property name="LeftAttach">1</property>
<property name="RightAttach">2</property>
<property name="AutoSize">True</property>
<property name="XOptions">Fill</property>
<property name="YOptions">Fill</property>
<property name="XExpand">False</property>
<property name="XFill">True</property>
<property name="XShrink">False</property>
<property name="YExpand">False</property>
<property name="YFill">True</property>
<property name="YShrink">False</property>
</packing>
</child>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<placeholder />
</child>
<child>
<placeholder />
</child>
</widget>
</child>
</widget>
<widget class="Gtk.Bin" id="LunarEclipse.PropertyGroup" design-size="300 300">
<property name="MemberName" />
<child>
<widget class="Gtk.Expander" id="expander">
<property name="MemberName" />
<property name="CanFocus">True</property>
<child>
<placeholder />
</child>
<child>
<widget class="Gtk.Label" id="PropertyGroupLabel">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">&lt;b&gt;PropertyGroupLabel&lt;/b&gt;</property>
<property name="UseMarkup">True</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
</child>
</widget>
</stetic-interface>

Просмотреть файл

@ -1,14 +0,0 @@
<objects>
<object type="LunarEclipse.PropertyGroup" palette-category="widget" allow-children="false" base-type="Gtk.Bin">
<itemgroups />
<signals />
</object>
<object type="LunarEclipse.Properties" palette-category="widget" allow-children="false" base-type="Gtk.Bin">
<itemgroups />
<signals />
</object>
<object type="LunarEclipse.PropertyGroupAppearance" palette-category="widget" allow-children="false" base-type="Gtk.Bin">
<itemgroups />
<signals />
</object>
</objects>