annotate Translatable/TranslatableCheckButton.cs @ 38:af65343516ba

* Add attributes to TranslatableCheckButton to make it show in GUI editor
author IBBoard <dev@ibboard.co.uk>
date Sat, 08 Oct 2011 20:29:21 +0100
parents c7645414cb3e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
37
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file (TranslatableCheckbox.cs) is a part of the IBBoard.GtkSharp project and is copyright 2011 IBBoard
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
c7645414cb3e * Add translatable CheckButton (checkbox)
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.
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 using System;
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using Gtk;
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 using IBBoard.Lang;
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 namespace IBBoard.GtkSharp.Translatable
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 {
38
af65343516ba * Add attributes to TranslatableCheckButton to make it show in GUI editor
IBBoard <dev@ibboard.co.uk>
parents: 37
diff changeset
10 [System.ComponentModel.ToolboxItem(true)]
af65343516ba * Add attributes to TranslatableCheckButton to make it show in GUI editor
IBBoard <dev@ibboard.co.uk>
parents: 37
diff changeset
11 [System.ComponentModel.Category("Translatable")]
37
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 public class TranslatableCheckButton : CheckButton, ITranslatable
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 {
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 public string Text
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 {
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 get
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 {
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 return Label;
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 }
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 set
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 {
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 Label = value;
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 }
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 }
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 }
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 }
c7645414cb3e * Add translatable CheckButton (checkbox)
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27