Mercurial > repos > IBBoard.GtkSharp
comparison Translatable/TranslatableWindowWithActions.cs @ 20:06715f517af6
Re #47: Add translatable GTK# widgets
* Add ITranslatableWithActions interface to provide a common way to get at actions (WinForms menu items are widgets, GTK uses Actions and ActionGroups)
* Add implementation of interface for Windows (most likely candidate for having translatable actions)
* Translate actions as well as sub-widgets
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 27 Dec 2010 20:48:29 +0000 |
parents | |
children | 70c46caee508 |
comparison
equal
deleted
inserted
replaced
19:2ddde7f1730e | 20:06715f517af6 |
---|---|
1 // This file (TranslatableWindowWithActions.cs) is a part of the IBBoard.GtkSharp project and is copyright 2010 IBBoard | |
2 // | |
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. | |
4 | |
5 using System; | |
6 using System.Collections.Generic; | |
7 using Gtk; | |
8 | |
9 namespace IBBoard.GtkSharp.Translatable | |
10 { | |
11 public abstract class TranslatableWindowWithActions : TranslatableWindow, ITranslatableWithActions | |
12 { | |
13 | |
14 public TranslatableWindowWithActions(IntPtr ptr) : base(ptr) | |
15 { | |
16 //Do nothing extra | |
17 } | |
18 | |
19 public TranslatableWindowWithActions(Gtk.WindowType windowType) : base(windowType) | |
20 { | |
21 //Do nothing extra | |
22 } | |
23 | |
24 public TranslatableWindowWithActions(string windowTitle) : base(windowTitle) | |
25 { | |
26 //Do nothing extra | |
27 } | |
28 | |
29 public abstract ICollection<Action> Actions | |
30 { | |
31 get; | |
32 } | |
33 } | |
34 } | |
35 |