diff --git a/gnometutorial/ChangeLog b/gnometutorial/ChangeLog new file mode 100644 index 000000000..82c937c72 --- /dev/null +++ b/gnometutorial/ChangeLog @@ -0,0 +1,3 @@ +2002-11-09 Johannes Roith + + * Initial import Martin Willemoes Hansen's tutorial and move stylesheets to an separate file \ No newline at end of file diff --git a/gnometutorial/README b/gnometutorial/README new file mode 100644 index 000000000..c826c591c --- /dev/null +++ b/gnometutorial/README @@ -0,0 +1,11 @@ +This directory holds a tutorial telling developers everything they need, +to start develop Gnome Applications with Mono and Gnome. + +This tutorial is born out of a vision of a first place to go for High Level Gnome desktop programming. +The idea is to give application programmers an overview of the platform, +information about available development tools and sample code. + +It was started by Martin Willemoes Hansen and he now is the maintainer + +The tutorial can be viewed at: http://mwh.sysrq.dk/the_mono_tutorial/ +It'll be updated from cvs regularily. \ No newline at end of file diff --git a/gnometutorial/frontpage.png b/gnometutorial/frontpage.png new file mode 100644 index 000000000..2c7434ebf Binary files /dev/null and b/gnometutorial/frontpage.png differ diff --git a/gnometutorial/index.html b/gnometutorial/index.html new file mode 100644 index 000000000..065e181e4 --- /dev/null +++ b/gnometutorial/index.html @@ -0,0 +1,80 @@ + + +The Gnome.NET Tutorial + + +
+

The Gnome.NET Tutorial First Edition

+

A Much Needed Room For Breath

+ + + +

Contributors, Ideas etc + +

Contents

+ + + + + + + + + + + + + + + + + + + + +
Preface
Chapter 1Mono
+ About the Mono Technology
+ How Will Mono Technology Change My Life?
+ HelloWorld
+ Architecture
+ Tools
+ Linux kernel support for binaries
+ Questions and exercises +
Chapter 2IDEs
+ Emacs
+ Eclipse
+ #develop +
Chapter 3C# bindings
+ Atk#
+ Pango#
+ Glib#
+ Gdk#
+ Gtk#
+ Gnome#
+ Glade#
+ GConf#
+ Gda#
+ Gnome-db#
+ GStreamer#
+ Questions and exercises +
Chapter 4Testing & UI Design
+ NUnit
+ GNOME Human Interface Guidelines +
Chapter 5Cases
+ Same Gnome
+ E-mail client
+ Web browser
+ Text editor +
Appendix ARessources
+ API References
+ Code samples
+ Applications
+ Tutorials
+ Websites
+ IRC
+ Books +
+ + + +
\ No newline at end of file diff --git a/gnometutorial/mono.html b/gnometutorial/mono.html new file mode 100644 index 000000000..98a757453 --- /dev/null +++ b/gnometutorial/mono.html @@ -0,0 +1,57 @@ + + + + + +

Mono

+ +

About the Mono Technology


+

How Will Mono Technology Change My Life?


+HelloWorld
+This is a must in every book or tutorial, a "Hello, World!" program, so here it is: + +
+using System;
+
+class Hello {
+    static void Main() {
+        Console.WriteLine ("Hello, World!");
+    }
+}
+
+ +mcs Hello.cs -o hello.exe
+mono hello.exe or +mint hello.exe +
+ +

Architecture


+

Tools

+

MonoDoc

+

Mono Compiler Suite (mcs)

+

Mono Interpreter (mint)

+

Mono Content dumper and disassembler (monodis)

+

Mono debugger

+ +

Linux kernel support for binaries

+You can make your mono .exe files executable by following these steps: +
    +
  1. Enabling binfmt in your kernel. +
  2. Adding the line below to your fstab:
    +
    binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc none
    +
  3. On boot run the cmd below:
    +
    echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
    +
  4. chmod +x foobar.exe +
+ +Another way to accomplish the above is to wrap the
+mono .exe file it in a shell script, like this: +
+#!/bin/sh
+/usr/bin/mono /usr/bin/mcs.exe "$@"
+
+ +

Questions and exercises

+ + + \ No newline at end of file diff --git a/gnometutorial/preface.html b/gnometutorial/preface.html new file mode 100644 index 000000000..86965c048 --- /dev/null +++ b/gnometutorial/preface.html @@ -0,0 +1,23 @@ + + +Preface + + + +

Preface

+ +This tutorial is born out of a vision of a first place to go for High Level +Gnome desktop programming. +
The idea is to give application programmers an overview of the platform, +
information about available development tools and sample code. + +

Who should read this tutorial?

+Programmers experienced with c#, who whish to get to understand and
+develop desktop applications for the Gnome.NET platform. + +

How to read this tutorial

+You can read from the beginning to the end or you can +skip around from topic to topic, no problemo. + + + \ No newline at end of file diff --git a/gnometutorial/ressources.html b/gnometutorial/ressources.html new file mode 100644 index 000000000..fe99154af --- /dev/null +++ b/gnometutorial/ressources.html @@ -0,0 +1,49 @@ + + +Ressources + + + +

Ressources

+ +

API References

+ + +

Code samples

+ + +

Applications

+ + +

Tutorials

+ + +

Websites

+ + +

IRC

+ + +Books + + + + \ No newline at end of file diff --git a/gnometutorial/style.css b/gnometutorial/style.css new file mode 100644 index 000000000..5c65d8bc9 --- /dev/null +++ b/gnometutorial/style.css @@ -0,0 +1 @@ +.code {padding-left:2px; padding-right:2px;, padding-top:0px;padding-bottom:0px;background-color:#efefef} \ No newline at end of file diff --git a/gnometutorial/writers.html b/gnometutorial/writers.html new file mode 100644 index 000000000..f62efa12b --- /dev/null +++ b/gnometutorial/writers.html @@ -0,0 +1,51 @@ + + +Writers section + + + +

Writers section

+ +

Contributors

+ + + +

Ideas

+
    +
  1. Some of the things you need (samples); can be re-used from the /sample + directory in the gtk-sharp module. At least that is a start! :) +
    Richard Torkar +
  2. My suggestion is to make a small application that would show + programmers how to build a full application, pick a target application + (for example you could pick the `same-gnome' game) and build it from + zero: +
      +
    • Creating your UI using glade. +
    • Connecting the Glade code to C# +
    • Making the program go. +
    • Using the Canvas/Drawing. +
    • Creating a configuration dialog box with Glade. +
    • Loading configuration settings from GConf. +
    • Storing scores on a database. +
    • Internationalization. +
    • Adding an About Box and a logo +
    • Making the executable self-contained +
    • Creating a custom widget. +
    + Miguel de Icaza +
+ + + + \ No newline at end of file