[Monodevelop-patches-list] r1880 - trunk/MonoDevelop/Core/src/Main/StartUp
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Jul 1 21:44:24 EDT 2004
Author: jluke
Date: 2004-07-01 21:44:24 -0400 (Thu, 01 Jul 2004)
New Revision: 1880
Added:
trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopOptions.cs
Modified:
trunk/MonoDevelop/Core/src/Main/StartUp/AssemblyInfo.cs.in
trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog
trunk/MonoDevelop/Core/src/Main/StartUp/Makefile.am
trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs
Log:
2004-07-01 John Luke <jluke at cfl.rr.com>
* AssemblyInfo.cs.in: clean up and add some informaition used below
* Makefile.am: add Mono.GetOptions reference and new file
* MonoDevelopOptions.cs: new file for handling options
* MonoDevelopMain.cs: begin using MonoDevelopOptions
Modified: trunk/MonoDevelop/Core/src/Main/StartUp/AssemblyInfo.cs.in
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/AssemblyInfo.cs.in 2004-07-02 00:44:51 UTC (rev 1879)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/AssemblyInfo.cs.in 2004-07-02 01:44:24 UTC (rev 1880)
@@ -9,15 +9,23 @@
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("MonoDevelop")]
-[assembly: AssemblyDescription("free C# IDE")]
+[assembly: AssemblyDescription("A full-featured IDE for Mono and Gtk#.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MonoDevelop")]
-[assembly: AssemblyCopyright("Mike Krueger 2000")]
+// I don't wish to discredit SharpDevelop and Mike's work,
+// nor to discredit our work, so someone should
+// check with them about how they want things displayed here
+// and in the About box in the gui
+[assembly: AssemblyCopyright("(c) 2004 MonoDevelop Team and Mike Krueger 2000-2003")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-
[assembly: AssemblyVersion("@VERSION at .0.0")]
-
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")] // ..\\src\\SharpDevelop\\sharpdevelop.key
+
+[assembly: Mono.About ("http://monodevelop.com")]
+[assembly: Mono.UsageComplement ("")]
+
+// maybe list people here, but for now this is fine
+[assembly: Mono.Author ("MonoDevelop Team")]
Modified: trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog 2004-07-02 00:44:51 UTC (rev 1879)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog 2004-07-02 01:44:24 UTC (rev 1880)
@@ -1,3 +1,10 @@
+2004-07-01 John Luke <jluke at cfl.rr.com>
+
+ * AssemblyInfo.cs.in: clean up and add some informaition used below
+ * Makefile.am: add Mono.GetOptions reference and new file
+ * MonoDevelopOptions.cs: new file for handling options
+ * MonoDevelopMain.cs: begin using MonoDevelopOptions
+
2004-07-01 Todd Berman <tberman at off.net>
* MonoDevelopMain.cs: Dont attempt to load 0 length filenames.
Modified: trunk/MonoDevelop/Core/src/Main/StartUp/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/Makefile.am 2004-07-02 00:44:51 UTC (rev 1879)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/Makefile.am 2004-07-02 01:44:24 UTC (rev 1880)
@@ -2,6 +2,7 @@
FILES= \
./MonoDevelopMain.cs \
+./MonoDevelopOptions.cs \
./Dialogs/AddInTreeSettingsHandler.cs \
./Dialogs/ExceptionBox.cs \
./AssemblyInfo.cs
@@ -16,6 +17,7 @@
/r:../../../build/bin/MonoDevelop.Core.dll \
/r:../../../build/bin/MonoDevelop.Base.dll \
/r:Mono.Posix.dll \
+ /r:Mono.GetOptions.dll \
$(BASE_DEPENDENCIES_LIBS)
$(DLL): $(build_sources)
Modified: trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs 2004-07-02 00:44:51 UTC (rev 1879)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs 2004-07-02 01:44:24 UTC (rev 1880)
@@ -57,16 +57,19 @@
/// <summary>
/// Starts the core of MonoDevelop.
/// </summary>
- [STAThread()]
- public static void Main(string[] args)
+ public static void Main (string[] args)
{
+ MonoDevelopOptions options = new MonoDevelopOptions ();
+ options.ProcessArgs (args);
+ string[] remainingArgs = options.RemainingArguments;
+
string socket_filename = "/tmp/md-" + Environment.GetEnvironmentVariable ("USER") + "-socket";
listen_socket = new Socket (AddressFamily.Unix, SocketType.Stream, ProtocolType.IP);
EndPoint ep = new UnixEndPoint (socket_filename);
if (File.Exists (socket_filename)) {
try {
listen_socket.Connect (ep);
- listen_socket.Send (Encoding.UTF8.GetBytes (String.Join ("\n", args)));
+ listen_socket.Send (Encoding.UTF8.GetBytes (String.Join ("\n", remainingArgs)));
return;
} catch {
}
@@ -76,12 +79,12 @@
string name = Assembly.GetEntryAssembly ().GetName ().Name;
string version = Assembly.GetEntryAssembly ().GetName ().Version.Major + + "." + Assembly.GetEntryAssembly ().GetName ().Version.Minor;
- Gnome.Program program = new Gnome.Program (name, version, Gnome.Modules.UI, args);
+ Gnome.Program program = new Gnome.Program (name, version, Gnome.Modules.UI, remainingArgs);
Gdk.Threads.Init();
- commandLineArgs = args;
+ commandLineArgs = remainingArgs;
bool noLogo = false;
- SplashScreenForm.SetCommandLineArgs(args);
+ SplashScreenForm.SetCommandLineArgs(remainingArgs);
foreach (string parameter in SplashScreenForm.GetParameterList()) {
switch (parameter.ToUpper()) {
Added: trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopOptions.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopOptions.cs 2004-07-02 00:44:51 UTC (rev 1879)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopOptions.cs 2004-07-02 01:44:24 UTC (rev 1880)
@@ -0,0 +1,14 @@
+using System;
+using Mono.GetOptions;
+
+namespace MonoDevelop
+{
+ public class MonoDevelopOptions : Options
+ {
+ public MonoDevelopOptions ()
+ {
+ base.ParsingMode = OptionsParsingMode.Both;
+ }
+ }
+}
+
More information about the Monodevelop-patches-list
mailing list