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 diff
     1.1 --- a/IBBoard.GtkSharp.csproj	Sat Sep 24 11:58:12 2011 +0100
     1.2 +++ b/IBBoard.GtkSharp.csproj	Wed Oct 05 21:02:19 2011 +0100
     1.3 @@ -42,6 +42,7 @@
     1.4      <Compile Include="Translatable\TranslatableLabel.cs" />
     1.5      <Compile Include="Translatable\TranslatableButton.cs" />
     1.6      <Compile Include="GtkSharp.cs" />
     1.7 +    <Compile Include="Translatable\TranslatableCheckButton.cs" />
     1.8    </ItemGroup>
     1.9    <ItemGroup>
    1.10      <None Include="COPYING.GPL" />
    1.11 @@ -69,6 +70,7 @@
    1.12        <Properties>
    1.13          <Policies>
    1.14            <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" />
    1.15 +          <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedHierarchical" ResourceNamePolicy="FileFormatDefault" />
    1.16          </Policies>
    1.17        </Properties>
    1.18      </MonoDevelop>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/Translatable/TranslatableCheckButton.cs	Wed Oct 05 21:02:19 2011 +0100
     2.3 @@ -0,0 +1,25 @@
     2.4 +//  This file (TranslatableCheckbox.cs) is a part of the IBBoard.GtkSharp project and is copyright 2011 IBBoard
     2.5 +// 
     2.6 +// // 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.
     2.7 +using System;
     2.8 +using Gtk;
     2.9 +using IBBoard.Lang;
    2.10 +
    2.11 +namespace IBBoard.GtkSharp.Translatable
    2.12 +{
    2.13 +	public class TranslatableCheckButton : CheckButton, ITranslatable
    2.14 +	{
    2.15 +		public string Text
    2.16 +		{
    2.17 +			get
    2.18 +			{
    2.19 +				return Label;
    2.20 +			}
    2.21 +			set
    2.22 +			{
    2.23 +				Label = value;
    2.24 +			}
    2.25 +		}
    2.26 +	}
    2.27 +}
    2.28 +