annotate Translatable/TranslatableDialog.cs @ 42:f04e973e5ea0 default tip

* Drop back to old Tooltips to support GTK# before 2.12 * Make sure we're not 2.12 specific to allow building on the server (running 2.10)
author IBBoard <dev@ibboard.co.uk>
date Sun, 07 Oct 2012 19:58:40 +0100
parents 3da8cf449717
children
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 {
24
3da8cf449717 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents: 16
diff changeset
12 protected virtual void Translate()
3da8cf449717 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents: 16
diff changeset
13 {
3da8cf449717 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents: 16
diff changeset
14 ControlTranslator.TranslateWidget(this);
3da8cf449717 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents: 16
diff changeset
15 }
3da8cf449717 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents: 16
diff changeset
16
16
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 public string Text
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 {
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 get
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 {
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 return Title;
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 set
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 {
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 Title = value;
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 }
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 }
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 }
c9aeaeaa3ea2 Re #47: Add translatable GTK# widgets
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 }