Mercurial > repos > IBBoard.WarFoundry.GUI.GTK
comparison FrmExportXml.cs @ 122:2479414b16f6
Re #361: Add XML output to GTK GUI
* Add initial form and load XSLT file list
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 27 Sep 2011 21:01:49 +0100 |
parents | |
children | a647afc19fe9 |
comparison
equal
deleted
inserted
replaced
121:3ec818926241 | 122:2479414b16f6 |
---|---|
1 // This file (FrmExportXml.cs) is a part of the IBBoard.WarFoundry.GUI.GTK project and is copyright 2011 IBBoard | |
2 // | |
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL 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 using System; | |
5 using System.IO; | |
6 using IBBoard.GtkSharp; | |
7 using System.Collections.Generic; | |
8 | |
9 namespace IBBoard.WarFoundry.GUI.GTK | |
10 { | |
11 public partial class FrmExportXml : Gtk.Dialog | |
12 { | |
13 public FrmExportXml() | |
14 { | |
15 this.Build(); | |
16 FillXsltList(); | |
17 } | |
18 | |
19 private void FillXsltList() | |
20 { | |
21 DirectoryInfo dir = new DirectoryInfo(System.IO.Path.Combine(Constants.ExecutablePath, "xsl")); | |
22 List<FileInfo> files = new List<FileInfo>(dir.GetFiles("*.xsl")); | |
23 ComboBoxUtils.FillCombo(transformList, files, delegate(FileInfo file) { return file.Name; }); | |
24 } | |
25 | |
26 protected void OnDoTransformWidgetToggled (object sender, System.EventArgs e) | |
27 { | |
28 bool enabled = doTransformWidget.Active; | |
29 lblTransform.Sensitive = enabled; | |
30 transformList.Sensitive = enabled; | |
31 } | |
32 } | |
33 } | |
34 |