From: <ju...@us...> - 2006-07-11 13:46:04
|
Revision: 581 Author: julienq Date: 2006-07-11 06:45:46 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/urakawa/?rev=581&view=rev Log Message: ----------- Added missing event files Modified Paths: -------------- trunk/urakawa/application/Obi/Obi/ObiForm.cs trunk/urakawa/application/Obi/Obi/messages.Designer.cs trunk/urakawa/application/Obi/Obi/messages.resx Added Paths: ----------- trunk/urakawa/application/Obi/Obi/Events/Node/ trunk/urakawa/application/Obi/Obi/Events/Node/CreatedEventArgs.cs Added: trunk/urakawa/application/Obi/Obi/Events/Node/CreatedEventArgs.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/Events/Node/CreatedEventArgs.cs (rev 0) +++ trunk/urakawa/application/Obi/Obi/Events/Node/CreatedEventArgs.cs 2006-07-11 13:45:46 UTC (rev 581) @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using urakawa.core; + +namespace Obi.Events.Node +{ + public delegate void CreatedHandler(object sender, CreatedEventArgs e); + + /// <summary> + /// This event indicates that a new core node was created. + /// </summary> + public class CreatedEventArgs : EventArgs + { + private Obi.Project mProject; + private CoreNode mNode; + + public Obi.Project Project + { + get + { + return mProject; + } + } + + public CoreNode Node + { + get + { + return mNode; + } + } + + public CreatedEventArgs(Obi.Project project, CoreNode node) + { + mProject = project; + mNode = node; + } + } +} Property changes on: trunk/urakawa/application/Obi/Obi/Events/Node/CreatedEventArgs.cs ___________________________________________________________________ Name: svn:executable + * Modified: trunk/urakawa/application/Obi/Obi/ObiForm.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/ObiForm.cs 2006-07-11 13:36:57 UTC (rev 580) +++ trunk/urakawa/application/Obi/Obi/ObiForm.cs 2006-07-11 13:45:46 UTC (rev 581) @@ -510,7 +510,7 @@ /// </summary> private void GUIUpdateNoProject() { - this.Text = "Obi"; + this.Text = Localizer.Message("obi"); closeProjectToolStripMenuItem.Enabled = false; saveProjectToolStripMenuItem.Enabled = false; saveProjectasToolStripMenuItem.Enabled = false; @@ -528,7 +528,7 @@ /// </summary> private void GUIUpdateSavedProject() { - this.Text = mProject.Metadata.Title + " - Obi"; + this.Text = String.Format("{0} - {1}", mProject.Metadata.Title, Localizer.Message("obi")); closeProjectToolStripMenuItem.Enabled = true; saveProjectToolStripMenuItem.Enabled = false; saveProjectasToolStripMenuItem.Enabled = true; @@ -543,7 +543,7 @@ /// </summary> private void GUIUpdateUnsavedProject() { - this.Text = mProject.Metadata.Title + "* - Obi"; + this.Text = String.Format("{0}* - {1}", mProject.Metadata.Title, Localizer.Message("obi")); closeProjectToolStripMenuItem.Enabled = true; saveProjectToolStripMenuItem.Enabled = true; saveProjectasToolStripMenuItem.Enabled = true; Modified: trunk/urakawa/application/Obi/Obi/messages.Designer.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/messages.Designer.cs 2006-07-11 13:36:57 UTC (rev 580) +++ trunk/urakawa/application/Obi/Obi/messages.Designer.cs 2006-07-11 13:45:46 UTC (rev 581) @@ -218,6 +218,15 @@ } /// <summary> + /// Looks up a localized string similar to Obi. + /// </summary> + internal static string obi { + get { + return ResourceManager.GetString("obi", resourceCulture); + } + } + + /// <summary> /// Looks up a localized string similar to Ready.. /// </summary> internal static string ready { Modified: trunk/urakawa/application/Obi/Obi/messages.resx =================================================================== --- trunk/urakawa/application/Obi/Obi/messages.resx 2006-07-11 13:36:57 UTC (rev 580) +++ trunk/urakawa/application/Obi/Obi/messages.resx 2006-07-11 13:45:46 UTC (rev 581) @@ -172,6 +172,9 @@ <data name="no_open_project" xml:space="preserve"> <value>No project is currently open.</value> </data> + <data name="obi" xml:space="preserve"> + <value>Obi</value> + </data> <data name="ready" xml:space="preserve"> <value>Ready.</value> </data> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |