From 2cdcc3714c05108da0e80943a2460e8e122cf656 Mon Sep 17 00:00:00 2001 From: John Luke Date: Tue, 21 Dec 2004 00:16:14 +0000 Subject: [PATCH] 2004-12-20 John Luke * en/Gtk/CellView.xml: doc most of this * en/Gtk/EntryCompletion.xml: add an example from GtkDemo svn path=/trunk/gtk-sharp/; revision=38008 --- doc/ChangeLog | 5 +++ doc/en/Gtk/CellView.xml | 60 +++++++++++++++++----------------- doc/en/Gtk/EntryCompletion.xml | 60 +++++++++++++++++++++++++++++++--- 3 files changed, 90 insertions(+), 35 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index d9e37c0e5..7090e3df3 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-20 John Luke + + * en/Gtk/CellView.xml: doc most of this + * en/Gtk/EntryCompletion.xml: add an example from GtkDemo + 2004-12-20 Dan Winship * en/Gtk/TextCharPredicate.xml: update signature... this is usable now diff --git a/doc/en/Gtk/CellView.xml b/doc/en/Gtk/CellView.xml index a6a33e74b..8522d772e 100644 --- a/doc/en/Gtk/CellView.xml +++ b/doc/en/Gtk/CellView.xml @@ -9,8 +9,8 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - To be added - To be added + A widget displaying a single row of a + A displays a single row of a , using cell renderers just like . does not support some of the more complex features of , like cell editing and drag and drop. Gtk.Widget @@ -41,10 +41,10 @@ - To be added + Creates a new widget, adds a to it, and makes its show . a a - To be added + @@ -57,10 +57,10 @@ - To be added + Creates a new widget, adds a to it, and makes its show . a a - To be added + @@ -105,11 +105,11 @@ - To be added + Sets to the size needed by the CellView to display the model row pointed to by . a - a + a , return location for the size a - To be added + @@ -217,10 +217,10 @@ - To be added + Internal constructor a a - To be added + @@ -231,10 +231,10 @@ - To be added + Internal constructor a a - To be added + @@ -243,9 +243,9 @@ - To be added + Creates a new widget. a - To be added + @@ -256,10 +256,10 @@ - To be added + Creates a new widget, adds a to it, and makes its show . a a - To be added + @@ -270,9 +270,9 @@ - To be added + GType Property. a - To be added + Returns the native value for . @@ -283,9 +283,9 @@ - To be added + The background color as a a - To be added + @@ -295,9 +295,9 @@ System.String - To be added + Background color as a string. a - To be added + @@ -307,9 +307,9 @@ Gtk.TreeModel - To be added + Sets the model for the CellView. a - To be added + If the CellView already has a model set, it will remove it before setting the new model. If is , then it will unset the old model. @@ -319,9 +319,9 @@ Gdk.Color - To be added + The background color a - To be added + @@ -332,9 +332,9 @@ - To be added - a - To be added + The row of the model that is currently displayed + a , or to unset. + If the path is unset, then the contents of the cellview "stick" at their last value; this is not normally a desired result, but may be a needed intermediate state if say, the model for the becomes temporarily empty. diff --git a/doc/en/Gtk/EntryCompletion.xml b/doc/en/Gtk/EntryCompletion.xml index 7cbfe142a..5ab9b0cbe 100644 --- a/doc/en/Gtk/EntryCompletion.xml +++ b/doc/en/Gtk/EntryCompletion.xml @@ -13,7 +13,57 @@ This object allows a widget to suggest possible completions of a string which has been partially entered. - The partially-entered string is also referred to as a "key". + +The partially-entered string is also referred to as a "key". + + + +using System; +using Gtk; + +public class DemoEntryCompletion : Window +{ + static void Main () + { + Application.Init (); + new DemoEntryCompletion (); + Application.Run (); + } + + public DemoEntryCompletion () : base ("Demo Entry Completion") + { + this.BorderWidth = 10; + this.Resizable = false; + VBox vbox = new VBox (); + + Label label = new Label ("Completion demo, try writing <b>total</b> or </b>gnome</b> for example."); + label.UseMarkup = true; + vbox.PackStart (label, false, true, 0); + + Entry entry = new Entry (); + entry.Completion = new EntryCompletion (); + entry.Completion.Model = CreateCompletionModel (); + entry.Completion.TextColumn = 0; + vbox.PackStart (entry, false, true, 0); + + this.Add (vbox); + this.ShowAll (); + } + + TreeModel CreateCompletionModel () + { + ListStore store = new ListStore (typeof (string)); + + store.AppendValues ("GNOME"); + store.AppendValues ("total"); + store.AppendValues ("totally"); + + return store; + } +} + + + @@ -302,9 +352,9 @@ - To be added + GType Property. a - + Returns the native value for . @@ -332,7 +382,7 @@ System.Int32 - Setting this property generates acompletion list with just strings. + Setting this property generates a completion list with just strings. a @@ -446,4 +496,4 @@ - + \ No newline at end of file