annotate Translatable/TranslatableDialog.cs @ 16:c9aeaeaa3ea2

Re #47: Add translatable GTK# widgets * Add initial "translatable dialog" * Add basics of a control translator that will cascade through widgets
author IBBoard <dev@ibboard.co.uk>
date Tue, 23 Nov 2010 21:01:28 +0000
parents
children 3da8cf449717
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file (TranslatableDialog.cs) is a part of the IBBoard.GtkSharp project and is copyright 2010 IBBoard
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using Gtk;
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 using IBBoard.Lang;
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 namespace IBBoard.GtkSharp.Translatable
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 {
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 public abstract class TranslatableDialog : Dialog, ITranslatable
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 {
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 public string Text
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 {
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 get
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 {
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 return Title;
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 }
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 set
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 {
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 Title = value;
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 }
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 }
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 }
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 }