Permalink
Browse files

Add

svn path=/trunk/mono-curses/; revision=115596
  • Loading branch information...
1 parent 6d070f1 commit aabcec01a093adbc0322ce4782b9bc37ec395dd1 @migueldeicaza migueldeicaza committed Oct 12, 2008
View
@@ -0,0 +1,17 @@
+//
+// used to sign mono-curses.dll
+//
+using System.Reflection;
+
+[assembly: AssemblyDelaySign (false)]
+[assembly: AssemblyKeyFile ("mono-curses.snk")]
+
+[assembly: AssemblyTitle ("Curses Binding for Mono/.NET")]
+[assembly: AssemblyProduct ("Mono")]
+[assembly: AssemblyCopyright ("2007-2008 Novell, Inc.")]
+[assembly: AssemblyCompany ("Novell, Inc.")]
+[assembly: AssemblyCulture ("")]
+[assembly: AssemblyConfiguration ("")]
+
+[assembly: AssemblyVersion ("1.0.0.0")]
+
View
@@ -2,29 +2,36 @@ CURSES=ncurses
MONO_CURSES=mono-curses
SOURCES = \
+ AssemblyInfo.cs \
handles.cs \
binding.cs \
gui.cs \
constants.cs
EXTRA_DIST = \
+ mono-curses.snk \
configure \
Makefile \
binding.cs.in \
attrib.c \
mono-curses.c \
- mono-curses.source
+ mono-curses.source \
+ mono-curses.pc.in
+
DOCS_DIST = \
docs/ns-Mono.Terminal.xml \
docs/index.xml
-all: config.make mono-curses.dll libmono-curses.so mono-curses.zip
+all: config.make mono-curses.dll libmono-curses.so mono-curses.zip mono-curses.pc
test.exe: test.cs mono-curses.dll libmono-curses.so
gmcs -debug test.cs -r:mono-curses.dll
+mono-curses.pc: mono-curses.pc.in Makefile
+ sed -e 's,@PREFIX@,$(prefix),' -e 's/@VERSION@/$(VERSION)/' < mono-curses.pc.in > mono-curses.pc
+
mono-curses.dll mono-curses.xml: $(SOURCES)
gmcs -doc:mono-curses.xml -debug -target:library -out:mono-curses.dll -debug $(SOURCES)
@@ -64,8 +71,9 @@ clean:
install: all
mkdir -p $(prefix)/bin
mkdir -p $(prefix)/lib/mono-curses
- cp mono-curses.dll $(prefix)/lib/mono-curses
+ gacutil -i mono-curses.dll -package mono-curses
cp libmono-curses* $(prefix)/lib/
+ cp mono-curses.pc $(prefix)/lib/pkgconfig
cp mono-curses.tree mono-curses.zip mono-curses.source `pkg-config --variable sourcesdir monodoc`
config.make:
View
@@ -39,8 +39,7 @@ Features
TODO
====
- * Create .pc file
- * Add to GAC
+
* Add scrollbar and thumb to listviews
* Add text view widget
* Add scrollable control
View
@@ -36,7 +36,7 @@ namespace Mono.Terminal {
public struct MouseEvent {
public int ID;
public int X, Y, Z;
- public long ButtonState;
+ public Event ButtonState;
}
#region Screen initialization
@@ -259,7 +259,7 @@ namespace Mono.Terminal {
internal extern static void console_sharp_sendsigtstp ();
[DllImport ("@MONO_CURSES@")]
- internal extern static long console_sharp_mouse_mask (long newmask, out long oldmask);
+ internal extern static Event console_sharp_mouse_mask (Event newmask, out Event oldmask);
[DllImport ("@MONO_CURSES@")]
internal extern static uint console_sharp_getmouse (out MouseEvent ev);
@@ -3,6 +3,7 @@
<AssemblyInfo>
<AssemblyName>mono-curses</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
@@ -51,107 +52,107 @@
<MemberType>Constructor</MemberType>
<Parameters />
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorDialogFocus">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorDialogFocus">
<MemberSignature Language="C#" Value="public static int ColorDialogFocus;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color for focused widgets on a dialog.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorDialogHotFocus">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorDialogHotFocus">
<MemberSignature Language="C#" Value="public static int ColorDialogHotFocus;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color for a hotkey in a focused widget on a dialog.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorDialogHotNormal">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorDialogHotNormal">
<MemberSignature Language="C#" Value="public static int ColorDialogHotNormal;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color for hotkeys in an unfocused widget on a dialog.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorDialogNormal">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorDialogNormal">
<MemberSignature Language="C#" Value="public static int ColorDialogNormal;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color for unfocused widgets on a dialog.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorError">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorError">
<MemberSignature Language="C#" Value="public static int ColorError;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color used for error text.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorFocus">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorFocus">
<MemberSignature Language="C#" Value="public static int ColorFocus;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color used for focused widgets.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorHotFocus">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorHotFocus">
<MemberSignature Language="C#" Value="public static int ColorHotFocus;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color used for hotkeys in focused widgets.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorHotNormal">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorHotNormal">
<MemberSignature Language="C#" Value="public static int ColorHotNormal;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color used for hotkeys in unfocused widgets.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorMarked">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorMarked">
<MemberSignature Language="C#" Value="public static int ColorMarked;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color used for marked entries.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorMarkedSelected">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorMarkedSelected">
<MemberSignature Language="C#" Value="public static int ColorMarkedSelected;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color used for marked entries that are currently
selected with the cursor.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorNormal">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ColorNormal">
<MemberSignature Language="C#" Value="public static int ColorNormal;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
Color used for unfocused widgets.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Cols">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Cols">
<MemberSignature Language="C#" Value="public static int Cols { get; }" />
<MemberType>Property</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
The number of columns on the screen
</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="EmptyContainer">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="EmptyContainer">
<MemberSignature Language="C#" Value="public static Mono.Terminal.Container EmptyContainer { get; }" />
<MemberType>Property</MemberType>
<ReturnValue><ReturnType>Mono.Terminal.Container</ReturnType></ReturnValue>
<Docs><summary>
The singleton EmptyContainer that covers the entire screen.
</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Error">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Error">
<MemberSignature Language="C#" Value="public static void Error (string caption, string text);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters><Parameter Name="caption" Type="System.String" /><Parameter Name="text" Type="System.String" /></Parameters>
<Docs><param name="caption">To be added.</param><param name="text">To be added.</param><summary>
Displays an error message.
</summary><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Error">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Error">
<MemberSignature Language="C#" Value="public static void Error (string caption, string format, object[] pars);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -161,15 +162,15 @@
</summary><remarks>
Overload that allows for String.Format parameters.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Info">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Info">
<MemberSignature Language="C#" Value="public static void Info (string caption, string text);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters><Parameter Name="caption" Type="System.String" /><Parameter Name="text" Type="System.String" /></Parameters>
<Docs><param name="caption">To be added.</param><param name="text">To be added.</param><summary>
Displays an informational message.
</summary><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Info">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Info">
<MemberSignature Language="C#" Value="public static void Info (string caption, string format, object[] pars);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -179,7 +180,7 @@
</summary><remarks>
Overload that allows for String.Format parameters.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Init">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Init">
<MemberSignature Language="C#" Value="public static void Init (bool disable_color);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -188,7 +189,7 @@
Initializes the runtime. The boolean flag
indicates whether we are forcing color to be off.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Iteration">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Iteration">
<MemberSignature Language="C#" Value="public static event EventHandler Iteration;" />
<MemberType>Event</MemberType>
<ReturnValue><ReturnType>System.EventHandler</ReturnType></ReturnValue>
@@ -197,21 +198,21 @@
main loop.
</summary><remarks>
See also <see cref="F:Mono.Terminal.Application.Timeout" /></remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Lines">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Lines">
<MemberSignature Language="C#" Value="public static int Lines { get; }" />
<MemberType>Property</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>
The number of lines on the screen
</summary><value>To be added.</value><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="MouseEventsAvailable">
- <MemberSignature Language="C#" Value="public static long MouseEventsAvailable;" />
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="MouseEventsAvailable">
+ <MemberSignature Language="C#" Value="public static Mono.Terminal.Curses.Event MouseEventsAvailable;" />
<MemberType>Field</MemberType>
- <ReturnValue><ReturnType>System.Int64</ReturnType></ReturnValue>
+ <ReturnValue><ReturnType>Mono.Terminal.Curses+Event</ReturnType></ReturnValue>
<Docs><summary>
A flag indicating which mouse events are available
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Msg">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Msg">
<MemberSignature Language="C#" Value="public static void Msg (bool error, string caption, string t);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -222,15 +223,15 @@
The error boolean indicates whether this is an
error message box or not.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Refresh">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Refresh">
<MemberSignature Language="C#" Value="public static void Refresh ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters />
<Docs><summary>
Forces a repaint of the screen.
</summary><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Run">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Run">
<MemberSignature Language="C#" Value="public static void Run (Mono.Terminal.Container container);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -242,7 +243,7 @@
for the main application, but it is also used to
run modal dialog boxes.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Timeout">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Timeout">
<MemberSignature Language="C#" Value="public static int Timeout;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
@@ -258,6 +259,6 @@
otherwise it is timeout in milliseconds to wait
for an event to arrive before running an
iteration on the main loop. See <see cref="E:Mono.Terminal.Application.Iteration" />.</para></remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member>
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member>
</Members>
</Type>
Oops, something went wrong. Retry.

0 comments on commit aabcec0

Please sign in to comment.