* AssemblyInfo.cs: Added some info

* View/MainWindow.cs: Updated to show about dialog.
* View/AboutLunarEclipse.cs: Added About Dialog

svn path=/trunk/lunareclipse/; revision=108295
This commit is contained in:
Manuel Cerón 2008-07-19 02:31:39 +00:00
Родитель 7e629a1bdb
Коммит 3bdc827371
9 изменённых файлов: 109 добавлений и 19 удалений

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

@ -3,7 +3,7 @@
// Author:
// Manuel Cerón <ceronman@unicauca.edu.co>
//
// Copyright (c) 2008 [copyright holders]
// Copyright (c) 2008 Manuel Cerón.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@ -30,19 +30,19 @@ using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("LunarEclipse")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("Lunar Eclipse")]
[assembly: AssemblyDescription("A Free Visual Designer for Silverlight and Moonlight")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyCopyright("Copyright (C) 2007 Alan McGovern, 2008 Manuel Cerón")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 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("0.1.*.*")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.

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

@ -1,3 +1,7 @@
2008-07-18 Manuel Cerón <ceronman@unicauca.edu.co>
* AssemblyInfo.cs: Added some info
2008-07-08 Manuel Cerón <ceronman@unicauca.edu.co>

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

@ -133,6 +133,7 @@
<File name="Controller/UndoActions/IUndoAction.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Descriptors/PathDescriptor.cs" subtype="Code" buildaction="Compile" />
<File name="Model/Descriptors/AbstractLineDescriptor.cs" subtype="Code" buildaction="Compile" />
<File name="View/AboutLunarEclipse.cs" subtype="Code" buildaction="Compile" />
</Contents>
<References>
<ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
@ -146,12 +147,6 @@
<ProjectReference type="Gac" localcopy="True" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<ProjectReference type="Gac" localcopy="True" refto="System.Windows, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</References>
<GtkDesignInfo isWidgetLibrary="True" gtkVersion="2.12.2">
<ExportedWidgets>
<Widget>LunarEclipse.View.MoonlightWidget</Widget>
<Widget>LunarEclipse.Controls.AnimationTimelineWidget</Widget>
<Widget>LunarEclipse.View.PropertyPanel</Widget>
</ExportedWidgets>
</GtkDesignInfo>
<GtkDesignInfo gtkVersion="2.12.2" />
<MonoDevelop.ChangeLogAddIn.ChangeLogInfo policy="OneChangeLogInEachDirectory" />
</Project>

73
View/AboutLunarEclipse.cs Normal file
Просмотреть файл

@ -0,0 +1,73 @@
// AboutDialog.cs
//
// Author:
// Manuel Cerón <ceronman@unicauca.edu.co>
//
// Copyright (c) 2008 Manuel Cerón
//
// 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 Gtk;
namespace LunarEclipse.View {
public class AboutLunarEclipse: Gtk.AboutDialog
{
public AboutLunarEclipse(): base ()
{
Assembly asm = Assembly.GetExecutingAssembly();
Name = (asm.GetCustomAttributes (typeof (AssemblyTitleAttribute), false) [0] as AssemblyTitleAttribute).Title;
Version = asm.GetName ().Version.ToString ();
Comments = (asm.GetCustomAttributes (typeof (AssemblyDescriptionAttribute), false) [0] as AssemblyDescriptionAttribute).Description;
Copyright = (asm.GetCustomAttributes (typeof (AssemblyCopyrightAttribute), false) [0] as AssemblyCopyrightAttribute).Copyright;
License = license;
Authors = authors;
}
private string [] authors = new string [] {
"Alan McGovern <alan.mcgovern@gmail.com>",
"Manuel Cerón <ceronman@unicauca.edu.co>"
};
private string license =
@"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.";
}
}

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

@ -1,3 +1,8 @@
2008-07-18 Manuel Cerón <ceronman@unicauca.edu.co>
* MainWindow.cs: Updated to show about dialog.
* AboutLunarEclipse.cs: Added About Dialog
2008-07-18 Manuel Cerón <ceronman@unicauca.edu.co>
* MainWindow.cs: Added Delete Action Handlers

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

@ -226,6 +226,13 @@ namespace LunarEclipse.View
{
controller.Selection.DeleteFromCanvas();
}
protected virtual void OnAcercaDeActionActivated (object sender, System.EventArgs e)
{
AboutLunarEclipse dialog = new AboutLunarEclipse();
dialog.Run();
dialog.Destroy();
}
private MoonlightController controller;
}

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

@ -2,6 +2,10 @@
2008-07-18 Manuel Cerón <ceronman@unicauca.edu.co>
2008-07-08 Manuel Cerón <ceronman@unicauca.edu.co>

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

@ -205,7 +205,7 @@ namespace LunarEclipse.View {
this.RectangleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rectangle Tool");
w2.Add(this.RectangleToolAction, null);
this.SquareToolAction = new Gtk.RadioAction("SquareToolAction", Mono.Unix.Catalog.GetString("S_quare Tool"), null, "square-tool", 0);
this.SquareToolAction.Group = this.SelectionToolAction.Group;
this.SquareToolAction.Group = this.RectangleToolAction.Group;
this.SquareToolAction.ShortLabel = Mono.Unix.Catalog.GetString("S_quare Tool");
w2.Add(this.SquareToolAction, null);
this.EllipseToolAction = new Gtk.RadioAction("EllipseToolAction", Mono.Unix.Catalog.GetString("_Ellipse Tool"), null, "ellipse-tool", 0);
@ -217,15 +217,15 @@ namespace LunarEclipse.View {
this.CircleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Circle Tool");
w2.Add(this.CircleToolAction, null);
this.PathToolAction = new Gtk.RadioAction("PathToolAction", Mono.Unix.Catalog.GetString("_Path Tool"), null, "path-tool", 0);
this.PathToolAction.Group = this.SquareToolAction.Group;
this.PathToolAction.Group = this.CircleToolAction.Group;
this.PathToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Path Tool");
w2.Add(this.PathToolAction, null);
this.TextToolAction = new Gtk.RadioAction("TextToolAction", Mono.Unix.Catalog.GetString("_Text Tool"), null, "text-tool", 0);
this.TextToolAction.Group = this.SquareToolAction.Group;
this.TextToolAction.Group = this.CircleToolAction.Group;
this.TextToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Text Tool");
w2.Add(this.TextToolAction, null);
this.ImageToolAction = new Gtk.RadioAction("ImageToolAction", Mono.Unix.Catalog.GetString("Image Tool"), null, "image-tool", 0);
this.ImageToolAction.Group = this.SquareToolAction.Group;
this.ImageToolAction.Group = this.CircleToolAction.Group;
this.ImageToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Image Tool");
w2.Add(this.ImageToolAction, null);
this.AnimationAction = new Gtk.Action("AnimationAction", Mono.Unix.Catalog.GetString("_Animation"), null, null);
@ -241,7 +241,7 @@ namespace LunarEclipse.View {
this.DetenerAction.ShortLabel = Mono.Unix.Catalog.GetString("_Detener");
w2.Add(this.DetenerAction, null);
this.LineToolAction = new Gtk.RadioAction("LineToolAction", Mono.Unix.Catalog.GetString("_Line Tool"), null, "line-tool", 0);
this.LineToolAction.Group = this.SquareToolAction.Group;
this.LineToolAction.Group = this.CircleToolAction.Group;
this.LineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Line Tool");
w2.Add(this.LineToolAction, null);
this.DrawingAction = new Gtk.Action("DrawingAction", Mono.Unix.Catalog.GetString("Drawing"), null, null);
@ -251,11 +251,11 @@ namespace LunarEclipse.View {
this.LimpiarAction.ShortLabel = Mono.Unix.Catalog.GetString("_Limpiar");
w2.Add(this.LimpiarAction, null);
this.PolylineToolAction = new Gtk.RadioAction("PolylineToolAction", Mono.Unix.Catalog.GetString("Polyline Tool"), null, "polyline-tool", 0);
this.PolylineToolAction.Group = this.SquareToolAction.Group;
this.PolylineToolAction.Group = this.CircleToolAction.Group;
this.PolylineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Polyline Tool");
w2.Add(this.PolylineToolAction, null);
this.PenToolAction = new Gtk.RadioAction("PenToolAction", Mono.Unix.Catalog.GetString("P_en Tool"), null, "pen-tool", 0);
this.PenToolAction.Group = this.SquareToolAction.Group;
this.PenToolAction.Group = this.CircleToolAction.Group;
this.PenToolAction.ShortLabel = Mono.Unix.Catalog.GetString("P_en Tool");
w2.Add(this.PenToolAction, null);
this.dialogWarningAction = new Gtk.Action("dialogWarningAction", null, Mono.Unix.Catalog.GetString("Debug"), "gtk-dialog-warning");
@ -458,6 +458,7 @@ namespace LunarEclipse.View {
this.UndoAction.Activated += new System.EventHandler(this.OnDeshacerActionActivated);
this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated);
this.BorrarAction.Activated += new System.EventHandler(this.OnBorrarActionActivated);
this.AcercaDeAction.Activated += new System.EventHandler(this.OnAcercaDeActionActivated);
this.SelectionToolAction.Activated += new System.EventHandler(this.OnSelectionToolActionActivated);
this.RectangleToolAction.Activated += new System.EventHandler(this.OnRectangleToolActionActivated);
this.SquareToolAction.Activated += new System.EventHandler(this.OnSquareToolActionActivated);

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

@ -167,6 +167,7 @@
<property name="Label" translatable="yes">Acerca _de</property>
<property name="ShortLabel" translatable="yes">Acerca _de</property>
<property name="StockId">gtk-about</property>
<signal name="Activated" handler="OnAcercaDeActionActivated" />
</action>
<action id="SelectionToolAction">
<property name="Type">Radio</property>