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
3 README
@@ -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);

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -3,6 +3,7 @@
<AssemblyInfo>
<AssemblyName>mono-curses</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Mono.Terminal.Widget</BaseTypeName>
@@ -36,7 +37,7 @@
The size of the button is computed based on the
text length. This button is not a default button.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName=".ctor">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Button (string s, bool is_default);" />
<MemberType>Constructor</MemberType>
<Parameters><Parameter Name="s" Type="System.String" /><Parameter Name="is_default" Type="System.Boolean" /></Parameters>
@@ -48,7 +49,7 @@
decoration is used, and the enter key on a
dialog would implicitly activate this button.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName=".ctor">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Button (int x, int y, string s);" />
<MemberType>Constructor</MemberType>
<Parameters><Parameter Name="x" Type="System.Int32" /><Parameter Name="y" Type="System.Int32" /><Parameter Name="s" Type="System.String" /></Parameters>
@@ -59,7 +60,7 @@
The size of the button is computed based on the
text length. This button is not a default button.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName=".ctor">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Button (int x, int y, string s, bool is_default);" />
<MemberType>Constructor</MemberType>
<Parameters><Parameter Name="x" Type="System.Int32" /><Parameter Name="y" Type="System.Int32" /><Parameter Name="s" Type="System.String" /><Parameter Name="is_default" Type="System.Boolean" /></Parameters>
@@ -71,7 +72,7 @@
decoration is used, and the enter key on a
dialog would implicitly activate this button.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Clicked">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Clicked">
<MemberSignature Language="C#" Value="public event EventHandler Clicked;" />
<MemberType>Event</MemberType>
<ReturnValue><ReturnType>System.EventHandler</ReturnType></ReturnValue>
@@ -82,5 +83,5 @@
raised when the button is activated either with
the mouse or the keyboard.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Text"><MemberSignature Language="C#" Value="public string Text { set; get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs></Member></Members>
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Text"><MemberSignature Language="C#" Value="public string Text { set; get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs></Member></Members>
</Type>
@@ -3,6 +3,7 @@
<AssemblyInfo>
<AssemblyName>mono-curses</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
+ <AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Mono.Terminal.Widget</BaseTypeName>
@@ -47,52 +48,52 @@
<Docs><param name="x">To be added.</param><param name="y">To be added.</param><param name="w">To be added.</param><param name="h">To be added.</param><summary>
Public constructor.
</summary><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Add">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Add">
<MemberSignature Language="C#" Value="public virtual void Add (Mono.Terminal.Widget w);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters><Parameter Name="w" Type="Mono.Terminal.Widget" /></Parameters>
<Docs><param name="w">To be added.</param><summary>
Adds a widget to this container.
</summary><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Border">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Border">
<MemberSignature Language="C#" Value="public int Border;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerBaseMove">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerBaseMove">
<MemberSignature Language="C#" Value="public virtual void ContainerBaseMove (int row, int col);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters><Parameter Name="row" Type="System.Int32" /><Parameter Name="col" Type="System.Int32" /></Parameters>
<Docs><param name="row">To be added.</param><param name="col">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerColorFocus">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerColorFocus">
<MemberSignature Language="C#" Value="public int ContainerColorFocus;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerColorHotFocus">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerColorHotFocus">
<MemberSignature Language="C#" Value="public int ContainerColorHotFocus;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerColorHotNormal">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerColorHotNormal">
<MemberSignature Language="C#" Value="public int ContainerColorHotNormal;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerColorNormal">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerColorNormal">
<MemberSignature Language="C#" Value="public int ContainerColorNormal;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerMove">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ContainerMove">
<MemberSignature Language="C#" Value="public virtual void ContainerMove (int row, int col);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters><Parameter Name="row" Type="System.Int32" /><Parameter Name="col" Type="System.Int32" /></Parameters>
<Docs><param name="row">To be added.</param><param name="col">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="EnsureFocus">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="EnsureFocus">
<MemberSignature Language="C#" Value="public void EnsureFocus ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -101,39 +102,39 @@
Focuses the first possible focusable widget in
the contained widgets.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FocusFirst">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FocusFirst">
<MemberSignature Language="C#" Value="public void FocusFirst ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters />
<Docs><summary>
Focuses the first widget in the contained widgets.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FocusLast">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FocusLast">
<MemberSignature Language="C#" Value="public void FocusLast ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters />
<Docs><summary>
Focuses the last widget in the contained widgets.
</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FocusNext">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FocusNext">
<MemberSignature Language="C#" Value="public bool FocusNext ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue>
<Parameters />
<Docs><summary>
Focuses the next widget.
</summary><returns>To be added.</returns><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FocusPrev">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="FocusPrev">
<MemberSignature Language="C#" Value="public bool FocusPrev ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue>
<Parameters />
<Docs><summary>
Focuses the previous widget.
</summary><returns>To be added.</returns><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="GetBase">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="GetBase">
<MemberSignature Language="C#" Value="public virtual void GetBase (out int row, out int col);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -146,28 +147,28 @@
containers that want to have some padding (like
Frames or Dialogs).
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Prepare">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Prepare">
<MemberSignature Language="C#" Value="public virtual void Prepare ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters />
<Docs><summary>
Called on top-level container before starting up.
</summary><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="RedrawChildren">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="RedrawChildren">
<MemberSignature Language="C#" Value="public void RedrawChildren ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
<Parameters />
<Docs><summary>
Used to redraw all the children in this container.
</summary><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Running">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Running">
<MemberSignature Language="C#" Value="public bool Running;" />
<MemberType>Field</MemberType>
<ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue>
<Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="SetFocus">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="SetFocus">
<MemberSignature Language="C#" Value="public void SetFocus (Mono.Terminal.Widget w);" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -180,7 +181,7 @@
method only works if the widget specified
supports being focused.
</remarks></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="SizeChanged">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="SizeChanged">
<MemberSignature Language="C#" Value="public void SizeChanged ();" />
<MemberType>Method</MemberType>
<ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue>
@@ -189,13 +190,13 @@
This method is invoked when the size of this
container changes.
</summary><remarks /></Docs>
- <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="SizeChangedEvent">
+ <AssemblyInfo><AssemblyVersion>0.0.0.0</AssemblyVersion><AssemblyVersion>1.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="SizeChangedEvent">
<MemberSignature Language="C#" Value="public event EventHandler SizeChangedEvent;" />
<MemberType>Event</MemberType>
<ReturnValue><ReturnType>System.EventHandler</ReturnType></ReturnValue>
<Docs><summary>
Raised when the size of this container changes.
</summary><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.

0 comments on commit aabcec0

Please sign in to comment.