changeset 37:c7645414cb3e

* Add translatable CheckButton (checkbox) * Update package naming rules
author IBBoard <dev@ibboard.co.uk>
date Wed, 05 Oct 2011 21:02:19 +0100
parents 150e2b080a3f
children af65343516ba
files IBBoard.GtkSharp.csproj Translatable/TranslatableCheckButton.cs
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/IBBoard.GtkSharp.csproj	Sat Sep 24 11:58:12 2011 +0100
+++ b/IBBoard.GtkSharp.csproj	Wed Oct 05 21:02:19 2011 +0100
@@ -42,6 +42,7 @@
     <Compile Include="Translatable\TranslatableLabel.cs" />
     <Compile Include="Translatable\TranslatableButton.cs" />
     <Compile Include="GtkSharp.cs" />
+    <Compile Include="Translatable\TranslatableCheckButton.cs" />
   </ItemGroup>
   <ItemGroup>
     <None Include="COPYING.GPL" />
@@ -69,6 +70,7 @@
       <Properties>
         <Policies>
           <StandardHeader Text=" This file (${FileName}) is a part of the ${ProjectName} project and is copyright ${Year} ${CopyrightHolder}&#xA;&#xA;// 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." IncludeInNewFiles="True" />
+          <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedHierarchical" ResourceNamePolicy="FileFormatDefault" />
         </Policies>
       </Properties>
     </MonoDevelop>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Translatable/TranslatableCheckButton.cs	Wed Oct 05 21:02:19 2011 +0100
@@ -0,0 +1,25 @@
+//  This file (TranslatableCheckbox.cs) is a part of the IBBoard.GtkSharp project and is copyright 2011 IBBoard
+// 
+// // 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.
+using System;
+using Gtk;
+using IBBoard.Lang;
+
+namespace IBBoard.GtkSharp.Translatable
+{
+	public class TranslatableCheckButton : CheckButton, ITranslatable
+	{
+		public string Text
+		{
+			get
+			{
+				return Label;
+			}
+			set
+			{
+				Label = value;
+			}
+		}
+	}
+}
+