Mercurial > repos > IBBoard.Windows.Forms
changeset 12:7274f305eb49
Fixes #28: Create translatable toolbar items for new toolbars
* Create translatable toolstrip button and split toolstrip button (we already had old-school toolbar buttons and needed toolstrip buttons)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 09 Mar 2010 21:00:42 +0000 |
parents | d052bc59cb22 |
children | ac5dc16fba1f |
files | IBBoard.Windows.Forms.csproj Windows/Forms/IBBToolStripButton.cs Windows/Forms/IBBToolStripSplitButton.cs |
diffstat | 3 files changed, 45 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/IBBoard.Windows.Forms.csproj Sun Mar 07 20:52:18 2010 +0000 +++ b/IBBoard.Windows.Forms.csproj Tue Mar 09 21:00:42 2010 +0000 @@ -98,9 +98,15 @@ <Compile Include="Windows\Forms\IBBToolBarButton.cs"> <SubType>Component</SubType> </Compile> + <Compile Include="Windows\Forms\IBBToolStripButton.cs"> + <SubType>Component</SubType> + </Compile> <Compile Include="Windows\Forms\IBBToolStripMenuItem.cs"> <SubType>Component</SubType> </Compile> + <Compile Include="Windows\Forms\IBBToolStripSplitButton.cs"> + <SubType>Component</SubType> + </Compile> <Compile Include="Windows\Forms\ListViewColumnSorter.cs"> <SubType>Code</SubType> </Compile>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Windows/Forms/IBBToolStripButton.cs Tue Mar 09 21:00:42 2010 +0000 @@ -0,0 +1,22 @@ +// This file (IBBToolStripButton.cs) is a part of the IBBoard.Windows.Forms library and is copyright 2009 IBBoard. +// +// The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license. + +using System; +using System.Collections; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Windows.Forms; +using IBBoard.Lang; + +namespace IBBoard.Windows.Forms +{ + /// <summary> + /// A translatable ToolStripButton using IBBoard's ITranslatable interface. + /// </summary> + public class IBBToolStripButton : System.Windows.Forms.ToolStripButton, ITranslatable + { + //Marker interface for translations + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Windows/Forms/IBBToolStripSplitButton.cs Tue Mar 09 21:00:42 2010 +0000 @@ -0,0 +1,17 @@ +// This file (IBBToolStripSplitButton.cs) is a part of the IBBoard.Windows.Forms library and is copyright 2009 IBBoard. +// +// The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license. + +using System.Windows.Forms; +using IBBoard.Lang; + +namespace IBBoard.Windows.Forms +{ + /// <summary> + /// A translatable ToolStripButton using IBBoard's ITranslatable interface. + /// </summary> + public class IBBToolStripSplitButton : ToolStripSplitButton, ITranslatable + { + //Marker interface for translations + } +}