diff --git a/DMX-2.0/DMX-2.0.csproj b/DMX-2.0/DMX-2.0.csproj index 6578677..1167d22 100644 --- a/DMX-2.0/DMX-2.0.csproj +++ b/DMX-2.0/DMX-2.0.csproj @@ -149,6 +149,7 @@ + diff --git a/DMX-2.0/OSCMessage.cs b/DMX-2.0/OSCMessage.cs new file mode 100644 index 0000000..982581f --- /dev/null +++ b/DMX-2.0/OSCMessage.cs @@ -0,0 +1,323 @@ +using System; +namespace DMX2 +{ + public class OSCMessage + { + + public enum OSCType + { + Int32, + Float32, + String, + Blob + } + + + public abstract class OSCArg + { + protected OSCArg() { } + public abstract OSCType Type { get; } + public virtual string GetString() { throw new System.NotImplementedException(); } + public virtual float GetFloat() { throw new System.NotImplementedException(); } + public virtual int GetInt() { throw new System.NotImplementedException(); } + public virtual byte[] GetBlob() { throw new System.NotImplementedException(); } + } + + private class OSCStringArg : OSCArg + { + string _s; + public override OSCType Type + { + get + { + return OSCType.String; + } + } + public OSCStringArg(string s) + { + _s = s; + } + public override string GetString() + { + return _s; + } + public override float GetFloat() + { + float f; + if (float.TryParse(_s, out f)) return f; + return 0.0f; + } + public override int GetInt() + { + return (int)GetFloat(); + } + } + private class OSCIntArg : OSCArg + { + int _i; + public override OSCType Type + { + get + { + return OSCType.Int32; + } + } + public OSCIntArg(int i) + { + _i = i; + } + public override int GetInt() + { + return _i; + } + public override float GetFloat() + { + return (float)_i; + } + public override string GetString() + { + return _i.ToString(); + } + + } + private class OSCFloatArg : OSCArg + { + float _f; + public override OSCType Type + { + get + { + return OSCType.Float32; + } + } + public OSCFloatArg(float f) + { + _f = f; + } + public override int GetInt() + { + return (int)(_f); + } + public override float GetFloat() + { + return _f; + } + public override string GetString() + { + return _f.ToString(); + } + + } + private class OSCBlobArg : OSCArg + { + byte[] _b; + public override OSCType Type + { + get + { + return OSCType.Blob; + } + } + public OSCBlobArg(byte[] b) + { + _b = b; + } + public override byte[] GetBlob() + { + return _b; + } + + } + + static string DecodeString(byte[] b, ref int pos) + { + int end = Array.IndexOf(b, 0, pos); + if (end == -1) end = b.Length; + string ret = System.Text.Encoding.ASCII.GetString(b, pos, end - pos); + pos = (end / 4 + 1) * 4; + return ret; + } + + static float DecodeFloat(byte[] b, ref int pos) + { + if (BitConverter.IsLittleEndian) + Array.Reverse(b, pos, 4); + float ret = BitConverter.ToSingle(b, pos); + pos += 4; + return ret; + } + + static int DecodeInt(byte[] b, ref int pos) + { + if (BitConverter.IsLittleEndian) + Array.Reverse(b, pos, 4); + int ret = BitConverter.ToInt32(b, pos); + pos += 4; + return ret; + } + + public OSCMessage(byte[] bmsg) + { + int pos = 0; + Address = DecodeString(bmsg, ref pos); + string typestring = DecodeString(bmsg, ref pos); + + args = new OSCArg[typestring.Length - 1]; + + int idx = 0; + foreach (char c in typestring) + { + switch (c) + { + case 'f': + args[idx++] = new OSCFloatArg(DecodeFloat(bmsg, ref pos)); + break; + case 's': + args[idx++] = new OSCStringArg(DecodeString(bmsg, ref pos)); + break; + case 'i': + args[idx++] = new OSCIntArg(DecodeInt(bmsg, ref pos)); + break; + case 'b': + int len = DecodeInt(bmsg, ref pos) * 4; + byte[] b = new byte[len]; + bmsg.CopyTo(b, 0); + pos += len; + args[idx++] = new OSCBlobArg(b); + break; + + } + } + + } + + + public string Address + { + get; + private set; + } + + OSCArg[] args; + + public OSCArg[] Args + { + get + { + return args; + } + } + + + // Construction de message + public OSCMessage(string _address) + { + Address = _address; + } + + void AddArg(OSCArg arg) + { + if (args == null) + { + args = new OSCArg[1]; + } + else + { + OSCArg[] na = new OSCArg[args.Length + 1]; + args.CopyTo(na, 0); + args = na; + } + args[args.Length - 1] = arg; + } + + public void AddString(string arg) + { + AddArg(new OSCStringArg(arg)); + } + + public void AddInt(int arg) + { + AddArg(new OSCIntArg(arg)); + } + public void AddFloat(float arg) + { + AddArg(new OSCFloatArg(arg)); + } + + public byte[] Encode() + { + int len = System.Text.ASCIIEncoding.ASCII.GetByteCount(Address) / 4 + 1; + string typestring = ","; + foreach (var arg in args) + { + switch (arg.Type) + { + case OSCType.Int32: + len += 1; + typestring += "i"; + break; + case OSCType.Float32: + len += 1; + typestring += "f"; + break; + case OSCType.String: + len += System.Text.ASCIIEncoding.ASCII.GetByteCount(arg.GetString()) / 4 + 1; + typestring += "s"; + break; + } + } + + len += typestring.Length / 4 + 1; + byte[] res = new byte[len * 4]; + int pos = 0; + EncodeString(res, ref pos, Address); + EncodeString(res, ref pos, typestring); + foreach (var arg in args) + { + switch (arg.Type) + { + case OSCType.Int32: + EncodeInt(res, ref pos, arg.GetInt()); + break; + case OSCType.Float32: + EncodeFloat(res, ref pos, arg.GetFloat()); + break; + case OSCType.String: + EncodeString(res, ref pos, arg.GetString()); + break; + } + } + return res; + } + + void EncodeString(byte[] buff, ref int pos, string s) + { + pos += + System.Text.ASCIIEncoding.ASCII.GetBytes( + s, 0, s.Length, buff, pos); + do + { + buff[pos++] = 0; + } while (pos % 4 != 0); + } + + void EncodeInt(byte[] res, ref int pos, int i) + { + byte[] buff = BitConverter.GetBytes(i); + if (BitConverter.IsLittleEndian) + Array.Reverse(buff); + buff.CopyTo(res, pos); + pos += 4; + } + + void EncodeFloat(byte[] res, ref int pos, float f) + { + byte[] buff = BitConverter.GetBytes(f); + if (BitConverter.IsLittleEndian) + Array.Reverse(buff); + buff.CopyTo(res, pos); + pos += 4; + } + } + +} diff --git a/DMX-2.0/OSCServer.cs b/DMX-2.0/OSCServer.cs index 83f8400..691390e 100644 --- a/DMX-2.0/OSCServer.cs +++ b/DMX-2.0/OSCServer.cs @@ -13,294 +13,7 @@ namespace DMX2 Thread pollThread = null; bool running=true; - - enum OSCType { - Int32, - Float32, - String, - Blob - } - - class OSCMessage { - - public abstract class OSCArg{ - protected OSCArg(){} - public abstract OSCType Type{ get; } - public virtual string GetString(){ throw new System.NotImplementedException (); } - public virtual float GetFloat (){throw new System.NotImplementedException (); } - public virtual int GetInt(){throw new System.NotImplementedException (); } - public virtual byte[] GetBlob(){throw new System.NotImplementedException (); } - } - - private class OSCStringArg : OSCArg{ - string _s; - public override OSCType Type { - get { - return OSCType.String; - } - } - public OSCStringArg(string s){ - _s=s; - } - public override string GetString () - { - return _s; - } - public override float GetFloat () - { - float f; - if(float.TryParse(_s,out f)) return f; - return 0.0f; - } - public override int GetInt () - { - return (int)GetFloat(); - } - } - private class OSCIntArg : OSCArg{ - int _i; - public override OSCType Type { - get { - return OSCType.Int32; - } - } - public OSCIntArg(int i){ - _i=i; - } - public override int GetInt () - { - return _i; - } - public override float GetFloat () - { - return (float)_i; - } - public override string GetString () - { - return _i.ToString(); - } - - } - private class OSCFloatArg : OSCArg{ - float _f; - public override OSCType Type { - get { - return OSCType.Float32; - } - } - public OSCFloatArg(float f){ - _f=f; - } - public override int GetInt () - { - return (int)(_f); - } - public override float GetFloat () - { - return _f; - } - public override string GetString () - { - return _f.ToString(); - } - - } - private class OSCBlobArg : OSCArg{ - byte[] _b; - public override OSCType Type { - get { - return OSCType.Blob; - } - } - public OSCBlobArg(byte[] b){ - _b=b; - } - public override byte[] GetBlob () - { - return _b; - } - - } - - static string DecodeString (byte[] b, ref int pos) - { - int end = Array.IndexOf(b,0,pos); - if(end==-1) end = b.Length; - string ret = System.Text.Encoding.ASCII.GetString(b,pos,end-pos); - pos = (end/4+1)*4; - return ret; - } - - static float DecodeFloat (byte[] b, ref int pos) - { - if(BitConverter.IsLittleEndian) - Array.Reverse(b,pos,4); - float ret = BitConverter.ToSingle(b,pos); - pos+=4; - return ret; - } - - static int DecodeInt (byte[] b, ref int pos) - { - if(BitConverter.IsLittleEndian) - Array.Reverse(b,pos,4); - int ret = BitConverter.ToInt32(b, pos); - pos+=4; - return ret; - } - - public OSCMessage(byte[] bmsg){ - int pos = 0; - Address = DecodeString(bmsg,ref pos); - string typestring = DecodeString(bmsg,ref pos); - - args = new OSCArg[typestring.Length-1]; - - int idx=0; - foreach(char c in typestring){ - switch(c){ - case 'f': - args[idx++] = new OSCFloatArg(DecodeFloat(bmsg,ref pos)); - break; - case 's': - args[idx++] = new OSCStringArg(DecodeString(bmsg,ref pos)); - break; - case 'i': - args[idx++] = new OSCIntArg(DecodeInt(bmsg,ref pos)); - break; - case 'b': - int len=DecodeInt(bmsg,ref pos)*4; - byte[] b = new byte[len]; - bmsg.CopyTo(b,0); - pos+=len; - args[idx++] = new OSCBlobArg(b); - break; - - } - } - - } - - - public string Address{ - get; - private set; - } - - OSCArg[] args; - - public OSCArg[] Args { - get { - return args; - } - } - - - // Construction de message - public OSCMessage(string _address){ - Address=_address; - } - - void AddArg (OSCArg arg) - { - if (args == null) { - args = new OSCArg[1]; - } else { - OSCArg[] na = new OSCArg[args.Length+1]; - args.CopyTo(na,0); - args = na; - } - args[args.Length-1] = arg; - } - - public void AddString (string arg) - { - AddArg(new OSCStringArg(arg)); - } - - public void AddInt (int arg) - { - AddArg(new OSCIntArg(arg)); - } - public void AddFloat (float arg) - { - AddArg(new OSCFloatArg(arg)); - } - - public byte[] Encode () - { - int len = System.Text.ASCIIEncoding.ASCII.GetByteCount (Address) / 4+1; - string typestring = ","; - foreach (var arg in args) { - switch(arg.Type){ - case OSCType.Int32: - len +=1; - typestring+="i"; - break; - case OSCType.Float32: - len += 1; - typestring+="f"; - break; - case OSCType.String: - len += System.Text.ASCIIEncoding.ASCII.GetByteCount (arg.GetString())/4+1; - typestring+="s"; - break; - } - } - - len += typestring.Length/4 +1; - byte[] res = new byte[len*4]; - int pos=0; - EncodeString(res,ref pos,Address); - EncodeString(res,ref pos,typestring); - foreach (var arg in args) { - switch(arg.Type){ - case OSCType.Int32: - EncodeInt(res,ref pos,arg.GetInt()); - break; - case OSCType.Float32: - EncodeFloat(res,ref pos,arg.GetFloat()); - break; - case OSCType.String: - EncodeString(res,ref pos,arg.GetString()); - break; - } - } - return res; - } - - void EncodeString (byte[] buff, ref int pos, string s) - { - pos += - System.Text.ASCIIEncoding.ASCII.GetBytes ( - s, 0, s.Length, buff, pos); - do { - buff[pos++]=0; - } while (pos%4!=0); - } - - void EncodeInt (byte[] res, ref int pos, int i) - { - byte[] buff = BitConverter.GetBytes(i); - if(BitConverter.IsLittleEndian) - Array.Reverse(buff); - buff.CopyTo(res,pos); - pos+=4; - } - - void EncodeFloat (byte[] res, ref int pos, float f) - { - byte[] buff = BitConverter.GetBytes(f); - if(BitConverter.IsLittleEndian) - Array.Reverse(buff); - buff.CopyTo(res,pos); - pos+=4; - } - } - - - - public OSCServer () + public OSCServer () { pollThread = new Thread(new ThreadStart(Loop)); pollThread.Start(); diff --git a/DMX-2.0/SeqOscUI.cs b/DMX-2.0/SeqOscUI.cs index 6cbce26..e1d8f9d 100644 --- a/DMX-2.0/SeqOscUI.cs +++ b/DMX-2.0/SeqOscUI.cs @@ -270,6 +270,8 @@ namespace DMX2 posLabel.Text = string.Format("n°{0}",sequenceur.IndexLigneEnCours +1); + entryDest.Text = sequenceur.Destination; + fullUpdFlag=false; } @@ -335,7 +337,10 @@ namespace DMX2 actLabel.SetSizeRequest ( Math.Max(50, args.Allocation.Width - posLabel.Allocation.Width - timeLabel.Allocation.Width - 50),-1); } - + protected void OnEntryDestChanged(object sender, EventArgs e) + { + sequenceur.Destination = entryDest.Text; + } } } diff --git a/DMX-2.0/SequenceurOSC.cs b/DMX-2.0/SequenceurOSC.cs index 243f6f5..69e9f35 100644 --- a/DMX-2.0/SequenceurOSC.cs +++ b/DMX-2.0/SequenceurOSC.cs @@ -21,6 +21,8 @@ using System.Collections.Generic; using System.Xml; using System.Collections.ObjectModel; using System.Threading; +using System.Net.Sockets; +using System.Net; namespace DMX2 { @@ -98,10 +100,15 @@ namespace DMX2 actionEventTarget goNextEventTarget=null; actionEventTarget goBackEventTarget=null; + string destination=""; SeqOscUI ui = null; bool change = false; + UdpClient udpClient = new UdpClient(); + IPEndPoint iPEndPoint = null; + + bool paused=false; public bool Paused { @@ -113,6 +120,32 @@ namespace DMX2 } } + public string Destination + { + get + { + return destination; + } + set + { + destination = value; + SetEndpoint(); + } + } + + private void SetEndpoint() + { + IPAddress iPAddress; + int port; + string[] st = destination.Split(':'); + iPEndPoint = null; + if (st.Length != 2) return; + if (!IPAddress.TryParse(st[0], out iPAddress)) return; + if (!int.TryParse(st[1], out port)) return; + iPEndPoint = new IPEndPoint(iPAddress, port); + udpClient.Connect(iPEndPoint); + } + public SequenceurOSC () { @@ -258,16 +291,35 @@ namespace DMX2 } } aSuivre = null; - LanceCommandeMidi(); + LanceCommandeOSC(); if(ui!=null) ui.EffetChange(); } } - void LanceCommandeMidi () + void LanceCommandeOSC() { - Console.WriteLine (enCours.Commande); + + Console.WriteLine(enCours.Commande); + string[] data = enCours.Commande.Split(' '); + + int di; + float df; + + OSCMessage message = new OSCMessage(data[0]); + for (int i = 1; i < data.Length; i++) + { + if (int.TryParse(data[i], out di)) + message.AddInt(di); + else if (float.TryParse(data[i], out df)) + message.AddFloat(df); + else message.AddString(data[i]); + } + + + var buff = message.Encode(); + udpClient.Send(buff, buff.Length); } @@ -289,6 +341,7 @@ namespace DMX2 parent.AppendChild (el); el.SetAttribute ("id", ID.ToString ()); el.SetAttribute ("name", Name); + el.SetAttribute ("destination", Destination); //el.SetAttribute ("master", master.ToString ()); xmlEl = parent.OwnerDocument.CreateElement ("EffetSuivant"); @@ -350,6 +403,7 @@ namespace DMX2 { ID = int.Parse (el.GetAttribute ("id")); Name = el.GetAttribute ("name"); + Destination = el.TryGetAttribute("destination", "224.0.0.3:8888"); XmlElement xmlE; @@ -405,7 +459,7 @@ namespace DMX2 } aSuivre = null; - LanceCommandeMidi(); + LanceCommandeOSC(); if(ui!=null) ui.EffetChange(); diff --git a/DMX-2.0/gtk-gui/DMX2.About.cs b/DMX-2.0/gtk-gui/DMX2.About.cs index 68356da..39b9609 100644 --- a/DMX-2.0/gtk-gui/DMX2.About.cs +++ b/DMX-2.0/gtk-gui/DMX2.About.cs @@ -4,12 +4,13 @@ namespace DMX2 { public partial class About { - private global::Gtk.Label label1; + private global::Gtk.Label labelA; + private global::Gtk.Button buttonOk; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.About this.Name = "DMX2.About"; this.WindowPosition = ((global::Gtk.WindowPosition)(4)); @@ -19,11 +20,13 @@ namespace DMX2 w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild - this.label1 = new global::Gtk.Label (); - this.label1.Name = "label1"; - this.label1.LabelProp = "Loupiottes\n\nLogiciel de contrôle DMX 512\n\nCopyright (C) Arnaud Houdelette\t\t2012-2014\nCopyright (C) Emmanuel Langlois\t\t2012-2014\nhttp://www.loupiottes.fr\nLicence : GPL V2"; - w1.Add (this.label1); - global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1 [this.label1])); + this.labelA = new global::Gtk.Label(); + this.labelA.Name = "labelA"; + this.labelA.LabelProp = "Loupiottes\n\nLogiciel de contrôle DMX 512\n\nCopyright (C) Arnaud Houdelette\t\t2012-" + + "2014\nCopyright (C) Emmanuel Langlois\t\t2012-2014\nhttp://www.loupiottes.fr\nLicence" + + " : GPL V2"; + w1.Add(this.labelA); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1[this.labelA])); w2.Position = 0; w2.Expand = false; w2.Fill = false; @@ -34,24 +37,25 @@ namespace DMX2 w3.BorderWidth = ((uint)(5)); w3.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonOk = new global::Gtk.Button (); + this.buttonOk = new global::Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-close"; - this.AddActionWidget (this.buttonOk, -7); - global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3 [this.buttonOk])); + this.AddActionWidget(this.buttonOk, -7); + global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk])); w4.Expand = false; w4.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll (); + if ((this.Child != null)) + { + this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; - this.Show (); - this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked); + this.Show(); + this.buttonOk.Clicked += new global::System.EventHandler(this.OnButtonOkClicked); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.DriverBoitierV1UI.cs b/DMX-2.0/gtk-gui/DMX2.DriverBoitierV1UI.cs index 9c98093..89f1ee2 100644 --- a/DMX-2.0/gtk-gui/DMX2.DriverBoitierV1UI.cs +++ b/DMX-2.0/gtk-gui/DMX2.DriverBoitierV1UI.cs @@ -5,44 +5,52 @@ namespace DMX2 public partial class DriverBoitierV1UI { private global::Gtk.VBox vbox2; - private global::Gtk.Label label1; + + private global::Gtk.Label labelT; + private global::Gtk.Table table1; + private global::Gtk.ComboBox cbUnivers; + private global::Gtk.Label label4; + private global::Gtk.Label label5; + private global::Gtk.Label lblEtat; + private global::Gtk.HBox hbox1; + private global::Gtk.Button btnValider; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.DriverBoitierV1UI - global::Stetic.BinContainer.Attach (this); + global::Stetic.BinContainer.Attach(this); this.Name = "DMX2.DriverBoitierV1UI"; // Container child DMX2.DriverBoitierV1UI.Gtk.Container+ContainerChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.label1 = new global::Gtk.Label (); - this.label1.Name = "label1"; - this.label1.LabelProp = "Driver Boitier V1"; - this.vbox2.Add (this.label1); - global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.label1])); + this.labelT = new global::Gtk.Label(); + this.labelT.Name = "labelT"; + this.labelT.LabelProp = "Driver Boitier V1"; + this.vbox2.Add(this.labelT); + global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.labelT])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false); + this.table1 = new global::Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild - this.cbUnivers = global::Gtk.ComboBox.NewText (); + this.cbUnivers = global::Gtk.ComboBox.NewText(); this.cbUnivers.Name = "cbUnivers"; - this.table1.Add (this.cbUnivers); - global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1 [this.cbUnivers])); + this.table1.Add(this.cbUnivers); + global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1[this.cbUnivers])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.LeftAttach = ((uint)(1)); @@ -50,62 +58,63 @@ namespace DMX2 w2.XOptions = ((global::Gtk.AttachOptions)(4)); w2.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label4 = new global::Gtk.Label (); + this.label4 = new global::Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = "Univers DMX :"; - this.table1.Add (this.label4); - global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.label4])); + this.table1.Add(this.label4); + global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.label4])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.XOptions = ((global::Gtk.AttachOptions)(4)); w3.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label5 = new global::Gtk.Label (); + this.label5 = new global::Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = "Etat :"; - this.table1.Add (this.label5); - global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.label5])); + this.table1.Add(this.label5); + global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.label5])); w4.XOptions = ((global::Gtk.AttachOptions)(4)); w4.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.lblEtat = new global::Gtk.Label (); + this.lblEtat = new global::Gtk.Label(); this.lblEtat.Name = "lblEtat"; this.lblEtat.LabelProp = "Univer associé"; - this.table1.Add (this.lblEtat); - global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblEtat])); + this.table1.Add(this.lblEtat); + global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.lblEtat])); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((global::Gtk.AttachOptions)(4)); w5.YOptions = ((global::Gtk.AttachOptions)(4)); - this.vbox2.Add (this.table1); - global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.table1])); + this.vbox2.Add(this.table1); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.table1])); w6.Position = 1; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.btnValider = new global::Gtk.Button (); + this.btnValider = new global::Gtk.Button(); this.btnValider.CanFocus = true; this.btnValider.Name = "btnValider"; this.btnValider.UseUnderline = true; this.btnValider.Label = "Valider"; - this.hbox1.Add (this.btnValider); - global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnValider])); + this.hbox1.Add(this.btnValider); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.btnValider])); w7.Position = 1; w7.Expand = false; w7.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w8.Position = 2; w8.Expand = false; w8.Fill = false; - this.Add (this.vbox2); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.vbox2); + if ((this.Child != null)) + { + this.Child.ShowAll(); } - this.Hide (); - this.btnValider.Clicked += new global::System.EventHandler (this.OnBtnValiderClicked); + this.Hide(); + this.btnValider.Clicked += new global::System.EventHandler(this.OnBtnValiderClicked); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.DriverBoitierV2UI.cs b/DMX-2.0/gtk-gui/DMX2.DriverBoitierV2UI.cs index a261611..bda528c 100644 --- a/DMX-2.0/gtk-gui/DMX2.DriverBoitierV2UI.cs +++ b/DMX-2.0/gtk-gui/DMX2.DriverBoitierV2UI.cs @@ -5,57 +5,75 @@ namespace DMX2 public partial class DriverBoitierV2UI { private global::Gtk.VBox vbox2; - private global::Gtk.Label label1; + + private global::Gtk.Label labelT; + private global::Gtk.Table table1; + private global::Gtk.Entry caseBrk; + private global::Gtk.Entry caseMab; + private global::Gtk.ComboBox cbUnivers1; + private global::Gtk.ComboBox cbUnivers2; + private global::Gtk.CheckButton chkMerge1; + private global::Gtk.CheckButton chkMerge2; + private global::Gtk.Label label2; + private global::Gtk.Label label3; + private global::Gtk.Label label4; + private global::Gtk.Label label5; + private global::Gtk.Label label6; + private global::Gtk.Label label7; + private global::Gtk.Label label8; + private global::Gtk.HBox hbox1; + private global::Gtk.Button btnValider; + private global::Gtk.Button btnInit; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.DriverBoitierV2UI - global::Stetic.BinContainer.Attach (this); + global::Stetic.BinContainer.Attach(this); this.Name = "DMX2.DriverBoitierV2UI"; // Container child DMX2.DriverBoitierV2UI.Gtk.Container+ContainerChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.label1 = new global::Gtk.Label (); - this.label1.Name = "label1"; - this.label1.LabelProp = "Driver V2"; - this.vbox2.Add (this.label1); - global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.label1])); + this.labelT = new global::Gtk.Label(); + this.labelT.Name = "labelT"; + this.labelT.LabelProp = "Driver V2"; + this.vbox2.Add(this.labelT); + global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.labelT])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.table1 = new global::Gtk.Table (((uint)(4)), ((uint)(5)), false); + this.table1 = new global::Gtk.Table(((uint)(4)), ((uint)(5)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild - this.caseBrk = new global::Gtk.Entry (); + this.caseBrk = new global::Gtk.Entry(); this.caseBrk.CanFocus = true; this.caseBrk.Name = "caseBrk"; this.caseBrk.IsEditable = true; this.caseBrk.InvisibleChar = '•'; - this.table1.Add (this.caseBrk); - global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1 [this.caseBrk])); + this.table1.Add(this.caseBrk); + global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1[this.caseBrk])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.LeftAttach = ((uint)(2)); @@ -63,13 +81,13 @@ namespace DMX2 w2.XOptions = ((global::Gtk.AttachOptions)(4)); w2.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.caseMab = new global::Gtk.Entry (); + this.caseMab = new global::Gtk.Entry(); this.caseMab.CanFocus = true; this.caseMab.Name = "caseMab"; this.caseMab.IsEditable = true; this.caseMab.InvisibleChar = '•'; - this.table1.Add (this.caseMab); - global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.caseMab])); + this.table1.Add(this.caseMab); + global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.caseMab])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.LeftAttach = ((uint)(3)); @@ -77,10 +95,10 @@ namespace DMX2 w3.XOptions = ((global::Gtk.AttachOptions)(4)); w3.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.cbUnivers1 = global::Gtk.ComboBox.NewText (); + this.cbUnivers1 = global::Gtk.ComboBox.NewText(); this.cbUnivers1.Name = "cbUnivers1"; - this.table1.Add (this.cbUnivers1); - global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.cbUnivers1])); + this.table1.Add(this.cbUnivers1); + global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.cbUnivers1])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(1)); @@ -88,10 +106,10 @@ namespace DMX2 w4.XOptions = ((global::Gtk.AttachOptions)(4)); w4.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.cbUnivers2 = global::Gtk.ComboBox.NewText (); + this.cbUnivers2 = global::Gtk.ComboBox.NewText(); this.cbUnivers2.Name = "cbUnivers2"; - this.table1.Add (this.cbUnivers2); - global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.cbUnivers2])); + this.table1.Add(this.cbUnivers2); + global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.cbUnivers2])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); @@ -99,14 +117,14 @@ namespace DMX2 w5.XOptions = ((global::Gtk.AttachOptions)(4)); w5.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.chkMerge1 = new global::Gtk.CheckButton (); + this.chkMerge1 = new global::Gtk.CheckButton(); this.chkMerge1.CanFocus = true; this.chkMerge1.Name = "chkMerge1"; this.chkMerge1.Label = ""; this.chkMerge1.DrawIndicator = true; this.chkMerge1.UseUnderline = true; - this.table1.Add (this.chkMerge1); - global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.chkMerge1])); + this.table1.Add(this.chkMerge1); + global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.chkMerge1])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(4)); @@ -114,14 +132,14 @@ namespace DMX2 w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.chkMerge2 = new global::Gtk.CheckButton (); + this.chkMerge2 = new global::Gtk.CheckButton(); this.chkMerge2.CanFocus = true; this.chkMerge2.Name = "chkMerge2"; this.chkMerge2.Label = ""; this.chkMerge2.DrawIndicator = true; this.chkMerge2.UseUnderline = true; - this.table1.Add (this.chkMerge2); - global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1 [this.chkMerge2])); + this.table1.Add(this.chkMerge2); + global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.chkMerge2])); w7.TopAttach = ((uint)(2)); w7.BottomAttach = ((uint)(3)); w7.LeftAttach = ((uint)(4)); @@ -129,115 +147,116 @@ namespace DMX2 w7.XOptions = ((global::Gtk.AttachOptions)(4)); w7.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label2 = new global::Gtk.Label (); + this.label2 = new global::Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = "Etat"; - this.table1.Add (this.label2); - global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.label2])); + this.table1.Add(this.label2); + global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1[this.label2])); w8.XOptions = ((global::Gtk.AttachOptions)(4)); w8.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label3 = new global::Gtk.Label (); + this.label3 = new global::Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = "Univer associé"; - this.table1.Add (this.label3); - global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.label3])); + this.table1.Add(this.label3); + global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.label3])); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((global::Gtk.AttachOptions)(4)); w9.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label4 = new global::Gtk.Label (); + this.label4 = new global::Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = "Break"; - this.table1.Add (this.label4); - global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1 [this.label4])); + this.table1.Add(this.label4); + global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.label4])); w10.LeftAttach = ((uint)(2)); w10.RightAttach = ((uint)(3)); w10.XOptions = ((global::Gtk.AttachOptions)(4)); w10.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label5 = new global::Gtk.Label (); + this.label5 = new global::Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = "MAB"; - this.table1.Add (this.label5); - global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1 [this.label5])); + this.table1.Add(this.label5); + global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.label5])); w11.LeftAttach = ((uint)(3)); w11.RightAttach = ((uint)(4)); w11.XOptions = ((global::Gtk.AttachOptions)(4)); w11.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label6 = new global::Gtk.Label (); + this.label6 = new global::Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = "Block 1"; - this.table1.Add (this.label6); - global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1 [this.label6])); + this.table1.Add(this.label6); + global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.label6])); w12.TopAttach = ((uint)(1)); w12.BottomAttach = ((uint)(2)); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label7 = new global::Gtk.Label (); + this.label7 = new global::Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = "Block 2"; - this.table1.Add (this.label7); - global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1 [this.label7])); + this.table1.Add(this.label7); + global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.label7])); w13.TopAttach = ((uint)(2)); w13.BottomAttach = ((uint)(3)); w13.XOptions = ((global::Gtk.AttachOptions)(4)); w13.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label8 = new global::Gtk.Label (); + this.label8 = new global::Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = "Merge"; - this.table1.Add (this.label8); - global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1 [this.label8])); + this.table1.Add(this.label8); + global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1[this.label8])); w14.LeftAttach = ((uint)(4)); w14.RightAttach = ((uint)(5)); w14.XOptions = ((global::Gtk.AttachOptions)(4)); w14.YOptions = ((global::Gtk.AttachOptions)(4)); - this.vbox2.Add (this.table1); - global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.table1])); + this.vbox2.Add(this.table1); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.table1])); w15.Position = 1; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.btnValider = new global::Gtk.Button (); + this.btnValider = new global::Gtk.Button(); this.btnValider.CanFocus = true; this.btnValider.Name = "btnValider"; this.btnValider.UseUnderline = true; this.btnValider.Label = "Valider"; - this.hbox1.Add (this.btnValider); - global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnValider])); + this.hbox1.Add(this.btnValider); + global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.btnValider])); w16.Position = 1; w16.Expand = false; w16.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.btnInit = new global::Gtk.Button (); + this.btnInit = new global::Gtk.Button(); this.btnInit.CanFocus = true; this.btnInit.Name = "btnInit"; this.btnInit.UseUnderline = true; this.btnInit.Label = "Init Boitier"; - this.hbox1.Add (this.btnInit); - global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnInit])); + this.hbox1.Add(this.btnInit); + global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.btnInit])); w17.Position = 2; w17.Expand = false; w17.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w18.PackType = ((global::Gtk.PackType)(1)); w18.Position = 2; w18.Expand = false; w18.Fill = false; - this.Add (this.vbox2); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.vbox2); + if ((this.Child != null)) + { + this.Child.ShowAll(); } - this.Hide (); - this.btnValider.Clicked += new global::System.EventHandler (this.OnButtonValider); - this.btnInit.Clicked += new global::System.EventHandler (this.OnBtnInitClicked); + this.Hide(); + this.btnValider.Clicked += new global::System.EventHandler(this.OnButtonValider); + this.btnInit.Clicked += new global::System.EventHandler(this.OnBtnInitClicked); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.DriverBoitierV3UI.cs b/DMX-2.0/gtk-gui/DMX2.DriverBoitierV3UI.cs index d99e649..e585cb6 100644 --- a/DMX-2.0/gtk-gui/DMX2.DriverBoitierV3UI.cs +++ b/DMX-2.0/gtk-gui/DMX2.DriverBoitierV3UI.cs @@ -5,60 +5,81 @@ namespace DMX2 public partial class DriverBoitierV3UI { private global::Gtk.VBox vbox2; - private global::Gtk.Label label1; + + private global::Gtk.Label labelT; + private global::Gtk.Table table1; + private global::Gtk.Entry caseBrk; + private global::Gtk.Entry caseCircuits; + private global::Gtk.Entry caseDMXInt; + private global::Gtk.Entry caseMab; + private global::Gtk.Entry caseUSBRef; + private global::Gtk.ComboBox cbUnivers1; + private global::Gtk.CheckButton chkMerge1; + private global::Gtk.CheckButton chkSync; + private global::Gtk.Label label10; + private global::Gtk.Label label3; + private global::Gtk.Label label4; + private global::Gtk.Label label5; + private global::Gtk.Label label8; + private global::Gtk.Label label9; + private global::Gtk.Label labelsync; + private global::Gtk.Label lblDMX; + private global::Gtk.HBox hbox1; + private global::Gtk.Button btnValider; + private global::Gtk.Button btnInit; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.DriverBoitierV3UI - global::Stetic.BinContainer.Attach (this); + global::Stetic.BinContainer.Attach(this); this.Name = "DMX2.DriverBoitierV3UI"; // Container child DMX2.DriverBoitierV3UI.Gtk.Container+ContainerChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.label1 = new global::Gtk.Label (); - this.label1.Name = "label1"; - this.label1.LabelProp = "Driver V3"; - this.vbox2.Add (this.label1); - global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.label1])); + this.labelT = new global::Gtk.Label(); + this.labelT.Name = "labelT"; + this.labelT.LabelProp = "Driver V3"; + this.vbox2.Add(this.labelT); + global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.labelT])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.table1 = new global::Gtk.Table (((uint)(5)), ((uint)(4)), false); + this.table1 = new global::Gtk.Table(((uint)(5)), ((uint)(4)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild - this.caseBrk = new global::Gtk.Entry (); + this.caseBrk = new global::Gtk.Entry(); this.caseBrk.CanFocus = true; this.caseBrk.Name = "caseBrk"; this.caseBrk.IsEditable = true; this.caseBrk.InvisibleChar = '•'; - this.table1.Add (this.caseBrk); - global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1 [this.caseBrk])); + this.table1.Add(this.caseBrk); + global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1[this.caseBrk])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.LeftAttach = ((uint)(1)); @@ -66,50 +87,50 @@ namespace DMX2 w2.XOptions = ((global::Gtk.AttachOptions)(4)); w2.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.caseCircuits = new global::Gtk.Entry (); + this.caseCircuits = new global::Gtk.Entry(); this.caseCircuits.CanFocus = true; this.caseCircuits.Name = "caseCircuits"; this.caseCircuits.IsEditable = true; this.caseCircuits.InvisibleChar = '•'; - this.table1.Add (this.caseCircuits); - global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1 [this.caseCircuits])); + this.table1.Add(this.caseCircuits); + global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.caseCircuits])); w3.LeftAttach = ((uint)(3)); w3.RightAttach = ((uint)(4)); w3.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.caseDMXInt = new global::Gtk.Entry (); + this.caseDMXInt = new global::Gtk.Entry(); this.caseDMXInt.CanFocus = true; this.caseDMXInt.Name = "caseDMXInt"; this.caseDMXInt.IsEditable = true; this.caseDMXInt.InvisibleChar = '•'; - this.table1.Add (this.caseDMXInt); - global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.caseDMXInt])); + this.table1.Add(this.caseDMXInt); + global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.caseDMXInt])); w4.TopAttach = ((uint)(3)); w4.BottomAttach = ((uint)(4)); w4.LeftAttach = ((uint)(3)); w4.RightAttach = ((uint)(4)); w4.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.caseMab = new global::Gtk.Entry (); + this.caseMab = new global::Gtk.Entry(); this.caseMab.CanFocus = true; this.caseMab.Name = "caseMab"; this.caseMab.IsEditable = true; this.caseMab.InvisibleChar = '•'; - this.table1.Add (this.caseMab); - global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1 [this.caseMab])); + this.table1.Add(this.caseMab); + global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.caseMab])); w5.TopAttach = ((uint)(1)); w5.BottomAttach = ((uint)(2)); w5.LeftAttach = ((uint)(3)); w5.RightAttach = ((uint)(4)); w5.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.caseUSBRef = new global::Gtk.Entry (); + this.caseUSBRef = new global::Gtk.Entry(); this.caseUSBRef.CanFocus = true; this.caseUSBRef.Name = "caseUSBRef"; this.caseUSBRef.IsEditable = true; this.caseUSBRef.InvisibleChar = '•'; - this.table1.Add (this.caseUSBRef); - global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.caseUSBRef])); + this.table1.Add(this.caseUSBRef); + global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.caseUSBRef])); w6.TopAttach = ((uint)(3)); w6.BottomAttach = ((uint)(4)); w6.LeftAttach = ((uint)(1)); @@ -117,37 +138,37 @@ namespace DMX2 w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.cbUnivers1 = global::Gtk.ComboBox.NewText (); + this.cbUnivers1 = global::Gtk.ComboBox.NewText(); this.cbUnivers1.Name = "cbUnivers1"; - this.table1.Add (this.cbUnivers1); - global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1 [this.cbUnivers1])); + this.table1.Add(this.cbUnivers1); + global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.cbUnivers1])); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.XOptions = ((global::Gtk.AttachOptions)(4)); w7.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.chkMerge1 = new global::Gtk.CheckButton (); + this.chkMerge1 = new global::Gtk.CheckButton(); this.chkMerge1.CanFocus = true; this.chkMerge1.Name = "chkMerge1"; this.chkMerge1.Label = ""; this.chkMerge1.DrawIndicator = true; this.chkMerge1.UseUnderline = true; - this.table1.Add (this.chkMerge1); - global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.chkMerge1])); + this.table1.Add(this.chkMerge1); + global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1[this.chkMerge1])); w8.TopAttach = ((uint)(2)); w8.BottomAttach = ((uint)(3)); w8.LeftAttach = ((uint)(3)); w8.RightAttach = ((uint)(4)); w8.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.chkSync = new global::Gtk.CheckButton (); + this.chkSync = new global::Gtk.CheckButton(); this.chkSync.CanFocus = true; this.chkSync.Name = "chkSync"; this.chkSync.Label = ""; this.chkSync.DrawIndicator = true; this.chkSync.UseUnderline = true; - this.table1.Add (this.chkSync); - global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.chkSync])); + this.table1.Add(this.chkSync); + global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.chkSync])); w9.TopAttach = ((uint)(2)); w9.BottomAttach = ((uint)(3)); w9.LeftAttach = ((uint)(1)); @@ -155,39 +176,39 @@ namespace DMX2 w9.XOptions = ((global::Gtk.AttachOptions)(4)); w9.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label10 = new global::Gtk.Label (); + this.label10 = new global::Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = "Freq. USB (ms)"; - this.table1.Add (this.label10); - global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1 [this.label10])); + this.table1.Add(this.label10); + global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.label10])); w10.TopAttach = ((uint)(3)); w10.BottomAttach = ((uint)(4)); w10.XOptions = ((global::Gtk.AttachOptions)(4)); w10.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label3 = new global::Gtk.Label (); + this.label3 = new global::Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = "Univer associé"; - this.table1.Add (this.label3); - global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1 [this.label3])); + this.table1.Add(this.label3); + global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.label3])); w11.XOptions = ((global::Gtk.AttachOptions)(4)); w11.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label4 = new global::Gtk.Label (); + this.label4 = new global::Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = "Break (µs)"; - this.table1.Add (this.label4); - global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1 [this.label4])); + this.table1.Add(this.label4); + global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.label4])); w12.TopAttach = ((uint)(1)); w12.BottomAttach = ((uint)(2)); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label5 = new global::Gtk.Label (); + this.label5 = new global::Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = "MAB (µs)"; - this.table1.Add (this.label5); - global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1 [this.label5])); + this.table1.Add(this.label5); + global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1[this.label5])); w13.TopAttach = ((uint)(1)); w13.BottomAttach = ((uint)(2)); w13.LeftAttach = ((uint)(2)); @@ -195,11 +216,11 @@ namespace DMX2 w13.XOptions = ((global::Gtk.AttachOptions)(4)); w13.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label8 = new global::Gtk.Label (); + this.label8 = new global::Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = "Merge"; - this.table1.Add (this.label8); - global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1 [this.label8])); + this.table1.Add(this.label8); + global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1[this.label8])); w14.TopAttach = ((uint)(2)); w14.BottomAttach = ((uint)(3)); w14.LeftAttach = ((uint)(2)); @@ -207,83 +228,84 @@ namespace DMX2 w14.XOptions = ((global::Gtk.AttachOptions)(4)); w14.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.label9 = new global::Gtk.Label (); + this.label9 = new global::Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = "Circuits"; - this.table1.Add (this.label9); - global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1 [this.label9])); + this.table1.Add(this.label9); + global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1[this.label9])); w15.LeftAttach = ((uint)(2)); w15.RightAttach = ((uint)(3)); w15.XOptions = ((global::Gtk.AttachOptions)(4)); w15.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.labelsync = new global::Gtk.Label (); + this.labelsync = new global::Gtk.Label(); this.labelsync.Name = "labelsync"; this.labelsync.LabelProp = "Syncro\nDMX<->USB"; - this.table1.Add (this.labelsync); - global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelsync])); + this.table1.Add(this.labelsync); + global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1[this.labelsync])); w16.TopAttach = ((uint)(2)); w16.BottomAttach = ((uint)(3)); w16.XOptions = ((global::Gtk.AttachOptions)(4)); w16.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.lblDMX = new global::Gtk.Label (); + this.lblDMX = new global::Gtk.Label(); this.lblDMX.Name = "lblDMX"; this.lblDMX.LabelProp = "Intervale entre\ntrames DMX (ms)"; - this.table1.Add (this.lblDMX); - global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1 [this.lblDMX])); + this.table1.Add(this.lblDMX); + global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1[this.lblDMX])); w17.TopAttach = ((uint)(3)); w17.BottomAttach = ((uint)(4)); w17.LeftAttach = ((uint)(2)); w17.RightAttach = ((uint)(3)); w17.XOptions = ((global::Gtk.AttachOptions)(4)); w17.YOptions = ((global::Gtk.AttachOptions)(4)); - this.vbox2.Add (this.table1); - global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.table1])); + this.vbox2.Add(this.table1); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.table1])); w18.Position = 1; w18.Expand = false; w18.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.btnValider = new global::Gtk.Button (); + this.btnValider = new global::Gtk.Button(); this.btnValider.CanFocus = true; this.btnValider.Name = "btnValider"; this.btnValider.UseUnderline = true; this.btnValider.Label = "Valider"; - this.hbox1.Add (this.btnValider); - global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnValider])); + this.hbox1.Add(this.btnValider); + global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.btnValider])); w19.Position = 1; w19.Expand = false; w19.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.btnInit = new global::Gtk.Button (); + this.btnInit = new global::Gtk.Button(); this.btnInit.CanFocus = true; this.btnInit.Name = "btnInit"; this.btnInit.UseUnderline = true; this.btnInit.Label = "Init Boitier"; - this.hbox1.Add (this.btnInit); - global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnInit])); + this.hbox1.Add(this.btnInit); + global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.btnInit])); w20.Position = 2; w20.Expand = false; w20.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w21.PackType = ((global::Gtk.PackType)(1)); w21.Position = 2; w21.Expand = false; w21.Fill = false; - this.Add (this.vbox2); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.vbox2); + if ((this.Child != null)) + { + this.Child.ShowAll(); } - this.Hide (); - this.chkSync.Toggled += new global::System.EventHandler (this.OnChkSyncToggled); - this.caseUSBRef.Changed += new global::System.EventHandler (this.OnCaseUSBRefChanged); - this.btnValider.Clicked += new global::System.EventHandler (this.OnButtonValider); - this.btnInit.Clicked += new global::System.EventHandler (this.OnBtnInitClicked); + this.Hide(); + this.chkSync.Toggled += new global::System.EventHandler(this.OnChkSyncToggled); + this.caseUSBRef.Changed += new global::System.EventHandler(this.OnCaseUSBRefChanged); + this.btnValider.Clicked += new global::System.EventHandler(this.OnButtonValider); + this.btnInit.Clicked += new global::System.EventHandler(this.OnBtnInitClicked); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.EditionUnivers.cs b/DMX-2.0/gtk-gui/DMX2.EditionUnivers.cs index c565f93..5774c45 100644 --- a/DMX-2.0/gtk-gui/DMX2.EditionUnivers.cs +++ b/DMX-2.0/gtk-gui/DMX2.EditionUnivers.cs @@ -5,42 +5,69 @@ namespace DMX2 public partial class EditionUnivers { private global::Gtk.UIManager UIManager; + private global::Gtk.HBox hbox2; - private global::Gtk.Label label1; + + private global::Gtk.Label labelU; + private global::Gtk.ComboBox cbUnivers; + private global::Gtk.HBox hbox3; + private global::Gtk.Button btAdd; + private global::Gtk.Button btDel; + private global::Gtk.Button btReset; + private global::Gtk.Button btPatchDroit; + private global::Gtk.HSeparator hseparator1; + private global::Gtk.HBox hbox1; + private global::Gtk.ToggleButton btAllume; + private global::Gtk.SpinButton spinDimmer; + private global::Gtk.Label label6; + private global::Gtk.ComboBox cbCircuit; + private global::Gtk.ComboBox cbFT; + private global::Gtk.Label lbParam1; + private global::Gtk.Entry txtParam1; + private global::Gtk.Label lbParam2; + private global::Gtk.Entry txtParam2; + private global::Gtk.Notebook notebook1; + private global::Gtk.ScrolledWindow GtkScrolledWindow; + private global::Gtk.TreeView tvDimm; + private global::Gtk.Label label2; + private global::Gtk.ScrolledWindow GtkScrolledWindow1; + private global::Gtk.TreeView tvCircuits; + private global::Gtk.Label label5; + private global::Gtk.Button buttonCancel; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.EditionUnivers - this.UIManager = new global::Gtk.UIManager (); - global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default"); - this.UIManager.InsertActionGroup (w1, 0); - this.AddAccelGroup (this.UIManager.AccelGroup); + this.UIManager = new global::Gtk.UIManager(); + global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default"); + this.UIManager.InsertActionGroup(w1, 0); + this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "DMX2.EditionUnivers"; this.TypeHint = ((global::Gdk.WindowTypeHint)(5)); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); @@ -49,341 +76,282 @@ namespace DMX2 w2.Name = "dialog1_VBox"; w2.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild - this.hbox2 = new global::Gtk.HBox (); + this.hbox2 = new global::Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild - this.label1 = new global::Gtk.Label (); - this.label1.Name = "label1"; - this.label1.LabelProp = "Univers :"; - this.hbox2.Add (this.label1); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.label1])); + this.labelU = new global::Gtk.Label(); + this.labelU.Name = "labelU"; + this.labelU.LabelProp = "Univers :"; + this.hbox2.Add(this.labelU); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.labelU])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.cbUnivers = global::Gtk.ComboBox.NewText (); + this.cbUnivers = global::Gtk.ComboBox.NewText(); this.cbUnivers.Name = "cbUnivers"; - this.hbox2.Add (this.cbUnivers); - global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.cbUnivers])); + this.hbox2.Add(this.cbUnivers); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.cbUnivers])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.hbox3 = new global::Gtk.HBox (); + this.hbox3 = new global::Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild - this.btAdd = new global::Gtk.Button (); + this.btAdd = new global::Gtk.Button(); this.btAdd.CanFocus = true; this.btAdd.Name = "btAdd"; this.btAdd.UseUnderline = true; - // Container child btAdd.Gtk.Container+ContainerChild - global::Gtk.Alignment w5 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w6 = new global::Gtk.HBox (); - w6.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w7 = new global::Gtk.Image (); - w7.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-add", global::Gtk.IconSize.Menu); - w6.Add (w7); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w9 = new global::Gtk.Label (); - w9.LabelProp = "Nouvel Univers"; - w9.UseUnderline = true; - w6.Add (w9); - w5.Add (w6); - this.btAdd.Add (w5); - this.hbox3.Add (this.btAdd); - global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btAdd])); - w13.Position = 0; - w13.Expand = false; - w13.Fill = false; + this.btAdd.Label = "Nouvel Univers"; + global::Gtk.Image w5 = new global::Gtk.Image(); + w5.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-add", global::Gtk.IconSize.Menu); + this.btAdd.Image = w5; + this.hbox3.Add(this.btAdd); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btAdd])); + w6.Position = 0; + w6.Expand = false; + w6.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btDel = new global::Gtk.Button (); + this.btDel = new global::Gtk.Button(); this.btDel.Sensitive = false; this.btDel.CanFocus = true; this.btDel.Name = "btDel"; this.btDel.UseUnderline = true; - // Container child btDel.Gtk.Container+ContainerChild - global::Gtk.Alignment w14 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w15 = new global::Gtk.HBox (); - w15.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w16 = new global::Gtk.Image (); - w16.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-remove", global::Gtk.IconSize.Menu); - w15.Add (w16); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w18 = new global::Gtk.Label (); - w18.LabelProp = "Supprimer"; - w18.UseUnderline = true; - w15.Add (w18); - w14.Add (w15); - this.btDel.Add (w14); - this.hbox3.Add (this.btDel); - global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btDel])); - w22.Position = 1; - w22.Expand = false; - w22.Fill = false; + this.btDel.Label = "Supprimer"; + global::Gtk.Image w7 = new global::Gtk.Image(); + w7.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-remove", global::Gtk.IconSize.Menu); + this.btDel.Image = w7; + this.hbox3.Add(this.btDel); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btDel])); + w8.Position = 1; + w8.Expand = false; + w8.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btReset = new global::Gtk.Button (); + this.btReset = new global::Gtk.Button(); this.btReset.CanFocus = true; this.btReset.Name = "btReset"; this.btReset.UseUnderline = true; - // Container child btReset.Gtk.Container+ContainerChild - global::Gtk.Alignment w23 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w24 = new global::Gtk.HBox (); - w24.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w25 = new global::Gtk.Image (); - w25.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-clear", global::Gtk.IconSize.Menu); - w24.Add (w25); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w27 = new global::Gtk.Label (); - w27.LabelProp = "Réinitialiser"; - w27.UseUnderline = true; - w24.Add (w27); - w23.Add (w24); - this.btReset.Add (w23); - this.hbox3.Add (this.btReset); - global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btReset])); - w31.PackType = ((global::Gtk.PackType)(1)); - w31.Position = 3; - w31.Expand = false; - w31.Fill = false; + this.btReset.Label = "Réinitialiser"; + global::Gtk.Image w9 = new global::Gtk.Image(); + w9.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-clear", global::Gtk.IconSize.Menu); + this.btReset.Image = w9; + this.hbox3.Add(this.btReset); + global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btReset])); + w10.PackType = ((global::Gtk.PackType)(1)); + w10.Position = 3; + w10.Expand = false; + w10.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btPatchDroit = new global::Gtk.Button (); + this.btPatchDroit = new global::Gtk.Button(); this.btPatchDroit.CanFocus = true; this.btPatchDroit.Name = "btPatchDroit"; this.btPatchDroit.UseUnderline = true; - // Container child btPatchDroit.Gtk.Container+ContainerChild - global::Gtk.Alignment w32 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w33 = new global::Gtk.HBox (); - w33.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w34 = new global::Gtk.Image (); - w34.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-sort-ascending", global::Gtk.IconSize.Menu); - w33.Add (w34); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w36 = new global::Gtk.Label (); - w36.LabelProp = "Patch Droit"; - w36.UseUnderline = true; - w33.Add (w36); - w32.Add (w33); - this.btPatchDroit.Add (w32); - this.hbox3.Add (this.btPatchDroit); - global::Gtk.Box.BoxChild w40 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btPatchDroit])); - w40.PackType = ((global::Gtk.PackType)(1)); - w40.Position = 4; - w40.Expand = false; - w40.Fill = false; - this.hbox2.Add (this.hbox3); - global::Gtk.Box.BoxChild w41 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.hbox3])); - w41.Position = 2; - w2.Add (this.hbox2); - global::Gtk.Box.BoxChild w42 = ((global::Gtk.Box.BoxChild)(w2 [this.hbox2])); - w42.Position = 0; - w42.Expand = false; - w42.Fill = false; + this.btPatchDroit.Label = "Patch Droit"; + global::Gtk.Image w11 = new global::Gtk.Image(); + w11.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-sort-ascending", global::Gtk.IconSize.Menu); + this.btPatchDroit.Image = w11; + this.hbox3.Add(this.btPatchDroit); + global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btPatchDroit])); + w12.PackType = ((global::Gtk.PackType)(1)); + w12.Position = 4; + w12.Expand = false; + w12.Fill = false; + this.hbox2.Add(this.hbox3); + global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.hbox3])); + w13.Position = 2; + w2.Add(this.hbox2); + global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(w2[this.hbox2])); + w14.Position = 0; + w14.Expand = false; + w14.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild - this.hseparator1 = new global::Gtk.HSeparator (); + this.hseparator1 = new global::Gtk.HSeparator(); this.hseparator1.HeightRequest = 24; this.hseparator1.Name = "hseparator1"; - w2.Add (this.hseparator1); - global::Gtk.Box.BoxChild w43 = ((global::Gtk.Box.BoxChild)(w2 [this.hseparator1])); - w43.Position = 1; - w43.Expand = false; - w43.Fill = false; + w2.Add(this.hseparator1); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(w2[this.hseparator1])); + w15.Position = 1; + w15.Expand = false; + w15.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.btAllume = new global::Gtk.ToggleButton (); + this.btAllume = new global::Gtk.ToggleButton(); this.btAllume.CanFocus = true; this.btAllume.Name = "btAllume"; this.btAllume.UseUnderline = true; - // Container child btAllume.Gtk.Container+ContainerChild - global::Gtk.Alignment w44 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w45 = new global::Gtk.HBox (); - w45.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w46 = new global::Gtk.Image (); - w46.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-find", global::Gtk.IconSize.Menu); - w45.Add (w46); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w48 = new global::Gtk.Label (); - w48.LabelProp = "Allumer !"; - w48.UseUnderline = true; - w45.Add (w48); - w44.Add (w45); - this.btAllume.Add (w44); - this.hbox1.Add (this.btAllume); - global::Gtk.Box.BoxChild w52 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btAllume])); - w52.Position = 0; - w52.Expand = false; - w52.Fill = false; + this.btAllume.Label = "Allumer !"; + global::Gtk.Image w16 = new global::Gtk.Image(); + w16.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-find", global::Gtk.IconSize.Menu); + this.btAllume.Image = w16; + this.hbox1.Add(this.btAllume); + global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.btAllume])); + w17.Position = 0; + w17.Expand = false; + w17.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.spinDimmer = new global::Gtk.SpinButton (1, 512, 1); + this.spinDimmer = new global::Gtk.SpinButton(1D, 512D, 1D); this.spinDimmer.CanFocus = true; this.spinDimmer.Name = "spinDimmer"; - this.spinDimmer.Adjustment.PageIncrement = 10; - this.spinDimmer.ClimbRate = 1; + this.spinDimmer.Adjustment.PageIncrement = 10D; + this.spinDimmer.ClimbRate = 1D; this.spinDimmer.Numeric = true; - this.spinDimmer.Value = 1; - this.hbox1.Add (this.spinDimmer); - global::Gtk.Box.BoxChild w53 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.spinDimmer])); - w53.Position = 1; - w53.Expand = false; - w53.Fill = false; + this.spinDimmer.Value = 1D; + this.hbox1.Add(this.spinDimmer); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.spinDimmer])); + w18.Position = 1; + w18.Expand = false; + w18.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.label6 = new global::Gtk.Label (); + this.label6 = new global::Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = "Circuit :"; - this.hbox1.Add (this.label6); - global::Gtk.Box.BoxChild w54 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label6])); - w54.Position = 2; - w54.Expand = false; - w54.Fill = false; + this.hbox1.Add(this.label6); + global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.label6])); + w19.Position = 2; + w19.Expand = false; + w19.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.cbCircuit = global::Gtk.ComboBox.NewText (); + this.cbCircuit = global::Gtk.ComboBox.NewText(); this.cbCircuit.Name = "cbCircuit"; - this.hbox1.Add (this.cbCircuit); - global::Gtk.Box.BoxChild w55 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.cbCircuit])); - w55.Position = 3; - w55.Expand = false; - w55.Fill = false; + this.hbox1.Add(this.cbCircuit); + global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.cbCircuit])); + w20.Position = 3; + w20.Expand = false; + w20.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.cbFT = global::Gtk.ComboBox.NewText (); + this.cbFT = global::Gtk.ComboBox.NewText(); this.cbFT.Name = "cbFT"; - this.hbox1.Add (this.cbFT); - global::Gtk.Box.BoxChild w56 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.cbFT])); - w56.Position = 4; - w56.Expand = false; - w56.Fill = false; + this.hbox1.Add(this.cbFT); + global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.cbFT])); + w21.Position = 4; + w21.Expand = false; + w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.lbParam1 = new global::Gtk.Label (); + this.lbParam1 = new global::Gtk.Label(); this.lbParam1.Name = "lbParam1"; this.lbParam1.LabelProp = "param 1"; - this.hbox1.Add (this.lbParam1); - global::Gtk.Box.BoxChild w57 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.lbParam1])); - w57.Position = 5; - w57.Expand = false; - w57.Fill = false; + this.hbox1.Add(this.lbParam1); + global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.lbParam1])); + w22.Position = 5; + w22.Expand = false; + w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.txtParam1 = new global::Gtk.Entry (); + this.txtParam1 = new global::Gtk.Entry(); this.txtParam1.CanFocus = true; this.txtParam1.Name = "txtParam1"; this.txtParam1.IsEditable = true; this.txtParam1.InvisibleChar = '•'; - this.hbox1.Add (this.txtParam1); - global::Gtk.Box.BoxChild w58 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.txtParam1])); - w58.Position = 6; + this.hbox1.Add(this.txtParam1); + global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.txtParam1])); + w23.Position = 6; // Container child hbox1.Gtk.Box+BoxChild - this.lbParam2 = new global::Gtk.Label (); + this.lbParam2 = new global::Gtk.Label(); this.lbParam2.Name = "lbParam2"; this.lbParam2.LabelProp = "param2"; - this.hbox1.Add (this.lbParam2); - global::Gtk.Box.BoxChild w59 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.lbParam2])); - w59.Position = 7; - w59.Expand = false; - w59.Fill = false; + this.hbox1.Add(this.lbParam2); + global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.lbParam2])); + w24.Position = 7; + w24.Expand = false; + w24.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.txtParam2 = new global::Gtk.Entry (); + this.txtParam2 = new global::Gtk.Entry(); this.txtParam2.CanFocus = true; this.txtParam2.Name = "txtParam2"; this.txtParam2.IsEditable = true; this.txtParam2.InvisibleChar = '•'; - this.hbox1.Add (this.txtParam2); - global::Gtk.Box.BoxChild w60 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.txtParam2])); - w60.Position = 8; - w2.Add (this.hbox1); - global::Gtk.Box.BoxChild w61 = ((global::Gtk.Box.BoxChild)(w2 [this.hbox1])); - w61.Position = 2; - w61.Expand = false; - w61.Fill = false; + this.hbox1.Add(this.txtParam2); + global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.txtParam2])); + w25.Position = 8; + w2.Add(this.hbox1); + global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(w2[this.hbox1])); + w26.Position = 2; + w26.Expand = false; + w26.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild - this.notebook1 = new global::Gtk.Notebook (); + this.notebook1 = new global::Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild - this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild - this.tvDimm = new global::Gtk.TreeView (); + this.tvDimm = new global::Gtk.TreeView(); this.tvDimm.CanFocus = true; this.tvDimm.Name = "tvDimm"; - this.GtkScrolledWindow.Add (this.tvDimm); - this.notebook1.Add (this.GtkScrolledWindow); + this.GtkScrolledWindow.Add(this.tvDimm); + this.notebook1.Add(this.GtkScrolledWindow); // Notebook tab - this.label2 = new global::Gtk.Label (); + this.label2 = new global::Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = "Patch"; - this.notebook1.SetTabLabel (this.GtkScrolledWindow, this.label2); - this.label2.ShowAll (); + this.notebook1.SetTabLabel(this.GtkScrolledWindow, this.label2); + this.label2.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild - this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild - this.tvCircuits = new global::Gtk.TreeView (); + this.tvCircuits = new global::Gtk.TreeView(); this.tvCircuits.CanFocus = true; this.tvCircuits.Name = "tvCircuits"; - this.GtkScrolledWindow1.Add (this.tvCircuits); - this.notebook1.Add (this.GtkScrolledWindow1); - global::Gtk.Notebook.NotebookChild w65 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.GtkScrolledWindow1])); - w65.Position = 1; + this.GtkScrolledWindow1.Add(this.tvCircuits); + this.notebook1.Add(this.GtkScrolledWindow1); + global::Gtk.Notebook.NotebookChild w30 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1[this.GtkScrolledWindow1])); + w30.Position = 1; // Notebook tab - this.label5 = new global::Gtk.Label (); + this.label5 = new global::Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = "Patch Rapide"; - this.notebook1.SetTabLabel (this.GtkScrolledWindow1, this.label5); - this.label5.ShowAll (); - w2.Add (this.notebook1); - global::Gtk.Box.BoxChild w66 = ((global::Gtk.Box.BoxChild)(w2 [this.notebook1])); - w66.Position = 3; + this.notebook1.SetTabLabel(this.GtkScrolledWindow1, this.label5); + this.label5.ShowAll(); + w2.Add(this.notebook1); + global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(w2[this.notebook1])); + w31.Position = 3; // Internal child DMX2.EditionUnivers.ActionArea - global::Gtk.HButtonBox w67 = this.ActionArea; - w67.Name = "dialog1_ActionArea"; - w67.Spacing = 10; - w67.BorderWidth = ((uint)(5)); - w67.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + global::Gtk.HButtonBox w32 = this.ActionArea; + w32.Name = "dialog1_ActionArea"; + w32.Spacing = 10; + w32.BorderWidth = ((uint)(5)); + w32.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonCancel = new global::Gtk.Button (); + this.buttonCancel = new global::Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-close"; - this.AddActionWidget (this.buttonCancel, -7); - global::Gtk.ButtonBox.ButtonBoxChild w68 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w67 [this.buttonCancel])); - w68.Expand = false; - w68.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll (); + this.AddActionWidget(this.buttonCancel, -7); + global::Gtk.ButtonBox.ButtonBoxChild w33 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w32[this.buttonCancel])); + w33.Expand = false; + w33.Fill = false; + if ((this.Child != null)) + { + this.Child.ShowAll(); } this.DefaultWidth = 771; this.DefaultHeight = 483; - this.Show (); - this.cbUnivers.Changed += new global::System.EventHandler (this.OnCbUniversChanged); - this.btAdd.Clicked += new global::System.EventHandler (this.OnBtAddClicked); - this.btPatchDroit.Clicked += new global::System.EventHandler (this.OnBtPatchDroitClicked); - this.btReset.Clicked += new global::System.EventHandler (this.OnBtResetClicked); - this.btAllume.Clicked += new global::System.EventHandler (this.OnBtAllumeClicked); - this.spinDimmer.ValueChanged += new global::System.EventHandler (this.OnSpinDimmerValueChanged); - this.cbCircuit.Changed += new global::System.EventHandler (this.OnCbCircuitChanged); - this.cbFT.Changed += new global::System.EventHandler (this.OnCbFTChanged); - this.txtParam1.Changed += new global::System.EventHandler (this.OnTxtParam1Changed); - this.txtParam2.Changed += new global::System.EventHandler (this.OnTxtParam2Changed); - this.tvDimm.CursorChanged += new global::System.EventHandler (this.OnTvDimmCursorChanged); - this.buttonCancel.Clicked += new global::System.EventHandler (this.OnButtonCancelClicked); + this.Show(); + this.cbUnivers.Changed += new global::System.EventHandler(this.OnCbUniversChanged); + this.btAdd.Clicked += new global::System.EventHandler(this.OnBtAddClicked); + this.btPatchDroit.Clicked += new global::System.EventHandler(this.OnBtPatchDroitClicked); + this.btReset.Clicked += new global::System.EventHandler(this.OnBtResetClicked); + this.btAllume.Clicked += new global::System.EventHandler(this.OnBtAllumeClicked); + this.spinDimmer.ValueChanged += new global::System.EventHandler(this.OnSpinDimmerValueChanged); + this.cbCircuit.Changed += new global::System.EventHandler(this.OnCbCircuitChanged); + this.cbFT.Changed += new global::System.EventHandler(this.OnCbFTChanged); + this.txtParam1.Changed += new global::System.EventHandler(this.OnTxtParam1Changed); + this.txtParam2.Changed += new global::System.EventHandler(this.OnTxtParam2Changed); + this.tvDimm.CursorChanged += new global::System.EventHandler(this.OnTvDimmCursorChanged); + this.buttonCancel.Clicked += new global::System.EventHandler(this.OnButtonCancelClicked); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.GestionCircuits.cs b/DMX-2.0/gtk-gui/DMX2.GestionCircuits.cs index 0537343..f1a0b5f 100644 --- a/DMX-2.0/gtk-gui/DMX2.GestionCircuits.cs +++ b/DMX-2.0/gtk-gui/DMX2.GestionCircuits.cs @@ -5,23 +5,29 @@ namespace DMX2 public partial class GestionCircuits { private global::Gtk.UIManager UIManager; + private global::Gtk.Action addAction; + private global::Gtk.VBox vbox2; + private global::Gtk.Toolbar toolbar1; + private global::Gtk.ScrolledWindow GtkScrolledWindow; + private global::Gtk.TreeView listeCircuits; + private global::Gtk.Button buttonOk; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.GestionCircuits - this.UIManager = new global::Gtk.UIManager (); - global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default"); - this.addAction = new global::Gtk.Action ("addAction", null, null, "gtk-add"); - w1.Add (this.addAction, null); - this.UIManager.InsertActionGroup (w1, 0); - this.AddAccelGroup (this.UIManager.AccelGroup); + this.UIManager = new global::Gtk.UIManager(); + global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default"); + this.addAction = new global::Gtk.Action("addAction", null, null, "gtk-add"); + w1.Add(this.addAction, null); + this.UIManager.InsertActionGroup(w1, 0); + this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "DMX2.GestionCircuits"; this.Title = "Circuits"; this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); @@ -33,63 +39,65 @@ namespace DMX2 w2.Name = "dialog1_VBox"; w2.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (""); - this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1"))); + this.UIManager.AddUiFromString(""); + this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; - this.vbox2.Add (this.toolbar1); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.toolbar1])); + this.vbox2.Add(this.toolbar1); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.toolbar1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild - this.listeCircuits = new global::Gtk.TreeView (); + this.listeCircuits = new global::Gtk.TreeView(); this.listeCircuits.CanFocus = true; this.listeCircuits.Name = "listeCircuits"; this.listeCircuits.EnableSearch = false; this.listeCircuits.Reorderable = true; - this.GtkScrolledWindow.Add (this.listeCircuits); - this.vbox2.Add (this.GtkScrolledWindow); - global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.GtkScrolledWindow])); + this.GtkScrolledWindow.Add(this.listeCircuits); + this.vbox2.Add(this.GtkScrolledWindow); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow])); w5.Position = 1; - w2.Add (this.vbox2); - global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(w2 [this.vbox2])); + w2.Add(this.vbox2); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(w2[this.vbox2])); w6.Position = 0; // Internal child DMX2.GestionCircuits.ActionArea global::Gtk.HButtonBox w7 = this.ActionArea; - w7.Name = "dialog1_ActionArea"; + w7.Name = "dialog_ActionArea"; w7.Spacing = 10; w7.BorderWidth = ((uint)(5)); w7.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); - // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonOk = new global::Gtk.Button (); + // Container child dialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild + this.buttonOk = new global::Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-close"; - this.AddActionWidget (this.buttonOk, -7); - global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7 [this.buttonOk])); + this.AddActionWidget(this.buttonOk, -7); + global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonOk])); w8.Expand = false; w8.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll (); + if ((this.Child != null)) + { + this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 456; this.buttonOk.HasDefault = true; - this.Hide (); - this.Response += new global::Gtk.ResponseHandler (this.OnResp); - this.addAction.Activated += new global::System.EventHandler (this.OnAddActionActivated); + this.Hide(); + this.Response += new global::Gtk.ResponseHandler(this.OnResp); + this.addAction.Activated += new global::System.EventHandler(this.OnAddActionActivated); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.GestionDriversUI.cs b/DMX-2.0/gtk-gui/DMX2.GestionDriversUI.cs index 5110119..b78cd77 100644 --- a/DMX-2.0/gtk-gui/DMX2.GestionDriversUI.cs +++ b/DMX-2.0/gtk-gui/DMX2.GestionDriversUI.cs @@ -5,19 +5,28 @@ namespace DMX2 public partial class GestionDriversUI { private global::Gtk.VBox vbox2; + private global::Gtk.TreeView listeUsb; + private global::Gtk.HBox hbox1; + private global::Gtk.ComboBox comboDriver; + private global::Gtk.Button btnDisconnect; + private global::Gtk.Button btnConnect; + private global::Gtk.Frame frmDrvUI; + private global::Gtk.Alignment frmDrvChild; + private global::Gtk.Label GtkLabel2; + private global::Gtk.Button buttonOk; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.GestionDriversUI this.Name = "DMX2.GestionDriversUI"; this.WindowPosition = ((global::Gtk.WindowPosition)(4)); @@ -26,81 +35,81 @@ namespace DMX2 w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.listeUsb = new global::Gtk.TreeView (); + this.listeUsb = new global::Gtk.TreeView(); this.listeUsb.HeightRequest = 87; this.listeUsb.CanFocus = true; this.listeUsb.Name = "listeUsb"; - this.vbox2.Add (this.listeUsb); - global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.listeUsb])); + this.vbox2.Add(this.listeUsb); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.listeUsb])); w2.Position = 0; w2.Expand = false; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.comboDriver = global::Gtk.ComboBox.NewText (); + this.comboDriver = global::Gtk.ComboBox.NewText(); this.comboDriver.Sensitive = false; this.comboDriver.Name = "comboDriver"; - this.hbox1.Add (this.comboDriver); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.comboDriver])); + this.hbox1.Add(this.comboDriver); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.comboDriver])); w3.Position = 0; // Container child hbox1.Gtk.Box+BoxChild - this.btnDisconnect = new global::Gtk.Button (); + this.btnDisconnect = new global::Gtk.Button(); this.btnDisconnect.Sensitive = false; this.btnDisconnect.CanFocus = true; this.btnDisconnect.Name = "btnDisconnect"; this.btnDisconnect.UseStock = true; this.btnDisconnect.UseUnderline = true; this.btnDisconnect.Label = "gtk-disconnect"; - this.hbox1.Add (this.btnDisconnect); - global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnDisconnect])); + this.hbox1.Add(this.btnDisconnect); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.btnDisconnect])); w4.PackType = ((global::Gtk.PackType)(1)); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.btnConnect = new global::Gtk.Button (); + this.btnConnect = new global::Gtk.Button(); this.btnConnect.Sensitive = false; this.btnConnect.CanFocus = true; this.btnConnect.Name = "btnConnect"; this.btnConnect.UseStock = true; this.btnConnect.UseUnderline = true; this.btnConnect.Label = "gtk-connect"; - this.hbox1.Add (this.btnConnect); - global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnConnect])); + this.hbox1.Add(this.btnConnect); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.btnConnect])); w5.PackType = ((global::Gtk.PackType)(1)); w5.Position = 2; w5.Expand = false; w5.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.frmDrvUI = new global::Gtk.Frame (); + this.frmDrvUI = new global::Gtk.Frame(); this.frmDrvUI.HeightRequest = 200; this.frmDrvUI.Name = "frmDrvUI"; this.frmDrvUI.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child frmDrvUI.Gtk.Container+ContainerChild - this.frmDrvChild = new global::Gtk.Alignment (0F, 0F, 1F, 1F); + this.frmDrvChild = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.frmDrvChild.Name = "frmDrvChild"; this.frmDrvChild.LeftPadding = ((uint)(12)); - this.frmDrvUI.Add (this.frmDrvChild); - this.GtkLabel2 = new global::Gtk.Label (); + this.frmDrvUI.Add(this.frmDrvChild); + this.GtkLabel2 = new global::Gtk.Label(); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.UseMarkup = true; this.frmDrvUI.LabelWidget = this.GtkLabel2; - this.vbox2.Add (this.frmDrvUI); - global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.frmDrvUI])); + this.vbox2.Add(this.frmDrvUI); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.frmDrvUI])); w8.Position = 2; - w1.Add (this.vbox2); - global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox2])); + w1.Add(this.vbox2); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1[this.vbox2])); w9.Position = 0; // Internal child DMX2.GestionDriversUI.ActionArea global::Gtk.HButtonBox w10 = this.ActionArea; @@ -109,27 +118,28 @@ namespace DMX2 w10.BorderWidth = ((uint)(5)); w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonOk = new global::Gtk.Button (); + this.buttonOk = new global::Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-close"; - this.AddActionWidget (this.buttonOk, -7); - global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10 [this.buttonOk])); + this.AddActionWidget(this.buttonOk, -7); + global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk])); w11.Expand = false; w11.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll (); + if ((this.Child != null)) + { + this.Child.ShowAll(); } this.DefaultWidth = 488; this.DefaultHeight = 420; - this.Show (); - this.listeUsb.CursorChanged += new global::System.EventHandler (this.OnListeUsbCursorChanged); - this.btnConnect.Clicked += new global::System.EventHandler (this.OnBtnConnectClicked); - this.btnDisconnect.Clicked += new global::System.EventHandler (this.OnBtnDisConnectClicked); - this.buttonOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked); + this.Show(); + this.listeUsb.CursorChanged += new global::System.EventHandler(this.OnListeUsbCursorChanged); + this.btnConnect.Clicked += new global::System.EventHandler(this.OnBtnConnectClicked); + this.btnDisconnect.Clicked += new global::System.EventHandler(this.OnBtnDisConnectClicked); + this.buttonOk.Clicked += new global::System.EventHandler(this.OnButtonOkClicked); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.GestionMidiUI.cs b/DMX-2.0/gtk-gui/DMX2.GestionMidiUI.cs index c67b852..9c3159f 100644 --- a/DMX-2.0/gtk-gui/DMX2.GestionMidiUI.cs +++ b/DMX-2.0/gtk-gui/DMX2.GestionMidiUI.cs @@ -5,43 +5,76 @@ namespace DMX2 public partial class GestionMidiUI { private global::Gtk.Table table1; + private global::Gtk.Frame frame2; + private global::Gtk.Alignment GtkAlignment3; + private global::Gtk.Table table2; + private global::Gtk.CheckButton chkFourteenBits; + private global::Gtk.CheckButton chkPg; + private global::Gtk.Label label3; + private global::Gtk.Label label4; + private global::Gtk.Label label5; + private global::Gtk.Label label6; + private global::Gtk.SpinButton spinMax14b; + private global::Gtk.SpinButton spinNbPage; + private global::Gtk.SpinButton spinPageDown; + private global::Gtk.SpinButton spinPageUp; + private global::Gtk.SpinButton spinUPCh; - private global::Gtk.Label GtkLabel6; + + private global::Gtk.Label GtkLabelT; + private global::Gtk.Frame frame3; + private global::Gtk.Alignment GtkAlignment2; + private global::Gtk.VBox vbox5; + private global::Gtk.CheckButton chkFB; + private global::Gtk.Label GtkLabel3; + private global::Gtk.HButtonBox hbuttonbox2; + private global::Gtk.Button btnActiv; + private global::Gtk.Button btnDesactiv; + private global::Gtk.VBox vbox2; + private global::Gtk.Label label1; + private global::Gtk.ScrolledWindow GtkScrolledWindow; + private global::Gtk.TreeView listDetect; + private global::Gtk.VBox vbox3; + private global::Gtk.Label label2; + private global::Gtk.ScrolledWindow GtkScrolledWindow1; + private global::Gtk.TreeView listKnown; + private global::Gtk.Button btnClearEvents; + private global::Gtk.Button buttonClose; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.GestionMidiUI this.Name = "DMX2.GestionMidiUI"; this.Title = "Connexions Midi"; @@ -51,102 +84,102 @@ namespace DMX2 w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild - this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false); + this.table1 = new global::Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild - this.frame2 = new global::Gtk.Frame (); + this.frame2 = new global::Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child frame2.Gtk.Container+ContainerChild - this.GtkAlignment3 = new global::Gtk.Alignment (0F, 0F, 1F, 1F); + this.GtkAlignment3 = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment3.Name = "GtkAlignment3"; this.GtkAlignment3.LeftPadding = ((uint)(12)); // Container child GtkAlignment3.Gtk.Container+ContainerChild - this.table2 = new global::Gtk.Table (((uint)(6)), ((uint)(2)), false); + this.table2 = new global::Gtk.Table(((uint)(6)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild - this.chkFourteenBits = new global::Gtk.CheckButton (); + this.chkFourteenBits = new global::Gtk.CheckButton(); this.chkFourteenBits.CanFocus = true; this.chkFourteenBits.Name = "chkFourteenBits"; this.chkFourteenBits.Label = "Mode 14bits (CC 1 à 32)"; this.chkFourteenBits.DrawIndicator = true; this.chkFourteenBits.UseUnderline = true; - this.table2.Add (this.chkFourteenBits); - global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table2 [this.chkFourteenBits])); + this.table2.Add(this.chkFourteenBits); + global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table2[this.chkFourteenBits])); w2.TopAttach = ((uint)(4)); w2.BottomAttach = ((uint)(5)); w2.XOptions = ((global::Gtk.AttachOptions)(4)); w2.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.chkPg = new global::Gtk.CheckButton (); + this.chkPg = new global::Gtk.CheckButton(); this.chkPg.CanFocus = true; this.chkPg.Name = "chkPg"; this.chkPg.Label = "ne pas paginer ce canal :"; this.chkPg.DrawIndicator = true; this.chkPg.UseUnderline = true; - this.table2.Add (this.chkPg); - global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table2 [this.chkPg])); + this.table2.Add(this.chkPg); + global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table2[this.chkPg])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.XOptions = ((global::Gtk.AttachOptions)(4)); w3.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.label3 = new global::Gtk.Label (); + this.label3 = new global::Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = "Nombre de pages"; - this.table2.Add (this.label3); - global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table2 [this.label3])); + this.table2.Add(this.label3); + global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table2[this.label3])); w4.XOptions = ((global::Gtk.AttachOptions)(4)); w4.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.label4 = new global::Gtk.Label (); + this.label4 = new global::Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = "CC page suivante :"; - this.table2.Add (this.label4); - global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table2 [this.label4])); + this.table2.Add(this.label4); + global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table2[this.label4])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.XOptions = ((global::Gtk.AttachOptions)(4)); w5.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.label5 = new global::Gtk.Label (); + this.label5 = new global::Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 0F; this.label5.LabelProp = "CC page précédente :"; - this.table2.Add (this.label5); - global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table2 [this.label5])); + this.table2.Add(this.label5); + global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table2[this.label5])); w6.TopAttach = ((uint)(3)); w6.BottomAttach = ((uint)(4)); w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.label6 = new global::Gtk.Label (); + this.label6 = new global::Gtk.Label(); this.label6.Name = "label6"; this.label6.Xpad = 20; this.label6.Xalign = 0F; this.label6.LabelProp = "Valeur entrée max :"; - this.table2.Add (this.label6); - global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table2 [this.label6])); + this.table2.Add(this.label6); + global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table2[this.label6])); w7.TopAttach = ((uint)(5)); w7.BottomAttach = ((uint)(6)); w7.XOptions = ((global::Gtk.AttachOptions)(4)); w7.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.spinMax14b = new global::Gtk.SpinButton (1, 16383, 1); + this.spinMax14b = new global::Gtk.SpinButton(1D, 16383D, 1D); this.spinMax14b.CanFocus = true; this.spinMax14b.Name = "spinMax14b"; - this.spinMax14b.Adjustment.PageIncrement = 10; - this.spinMax14b.ClimbRate = 1; + this.spinMax14b.Adjustment.PageIncrement = 10D; + this.spinMax14b.ClimbRate = 1D; this.spinMax14b.Numeric = true; - this.spinMax14b.Value = 127; - this.table2.Add (this.spinMax14b); - global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table2 [this.spinMax14b])); + this.spinMax14b.Value = 127D; + this.table2.Add(this.spinMax14b); + global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table2[this.spinMax14b])); w8.TopAttach = ((uint)(5)); w8.BottomAttach = ((uint)(6)); w8.LeftAttach = ((uint)(1)); @@ -154,29 +187,29 @@ namespace DMX2 w8.XOptions = ((global::Gtk.AttachOptions)(4)); w8.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.spinNbPage = new global::Gtk.SpinButton (1, 99, 1); + this.spinNbPage = new global::Gtk.SpinButton(1D, 99D, 1D); this.spinNbPage.CanFocus = true; this.spinNbPage.Name = "spinNbPage"; - this.spinNbPage.Adjustment.PageIncrement = 10; - this.spinNbPage.ClimbRate = 1; + this.spinNbPage.Adjustment.PageIncrement = 10D; + this.spinNbPage.ClimbRate = 1D; this.spinNbPage.Numeric = true; - this.spinNbPage.Value = 8; - this.table2.Add (this.spinNbPage); - global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table2 [this.spinNbPage])); + this.spinNbPage.Value = 8D; + this.table2.Add(this.spinNbPage); + global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table2[this.spinNbPage])); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((global::Gtk.AttachOptions)(4)); w9.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.spinPageDown = new global::Gtk.SpinButton (1, 127, 1); + this.spinPageDown = new global::Gtk.SpinButton(1D, 127D, 1D); this.spinPageDown.CanFocus = true; this.spinPageDown.Name = "spinPageDown"; - this.spinPageDown.Adjustment.PageIncrement = 10; - this.spinPageDown.ClimbRate = 1; + this.spinPageDown.Adjustment.PageIncrement = 10D; + this.spinPageDown.ClimbRate = 1D; this.spinPageDown.Numeric = true; - this.spinPageDown.Value = 126; - this.table2.Add (this.spinPageDown); - global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table2 [this.spinPageDown])); + this.spinPageDown.Value = 126D; + this.table2.Add(this.spinPageDown); + global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table2[this.spinPageDown])); w10.TopAttach = ((uint)(3)); w10.BottomAttach = ((uint)(4)); w10.LeftAttach = ((uint)(1)); @@ -184,15 +217,15 @@ namespace DMX2 w10.XOptions = ((global::Gtk.AttachOptions)(4)); w10.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.spinPageUp = new global::Gtk.SpinButton (1, 127, 1); + this.spinPageUp = new global::Gtk.SpinButton(1D, 127D, 1D); this.spinPageUp.CanFocus = true; this.spinPageUp.Name = "spinPageUp"; - this.spinPageUp.Adjustment.PageIncrement = 10; - this.spinPageUp.ClimbRate = 1; + this.spinPageUp.Adjustment.PageIncrement = 10D; + this.spinPageUp.ClimbRate = 1D; this.spinPageUp.Numeric = true; - this.spinPageUp.Value = 127; - this.table2.Add (this.spinPageUp); - global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table2 [this.spinPageUp])); + this.spinPageUp.Value = 127D; + this.table2.Add(this.spinPageUp); + global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table2[this.spinPageUp])); w11.TopAttach = ((uint)(2)); w11.BottomAttach = ((uint)(3)); w11.LeftAttach = ((uint)(1)); @@ -200,249 +233,226 @@ namespace DMX2 w11.XOptions = ((global::Gtk.AttachOptions)(4)); w11.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild - this.spinUPCh = new global::Gtk.SpinButton (1, 16, 1); + this.spinUPCh = new global::Gtk.SpinButton(1D, 16D, 1D); this.spinUPCh.CanFocus = true; this.spinUPCh.Name = "spinUPCh"; - this.spinUPCh.Adjustment.PageIncrement = 1; - this.spinUPCh.ClimbRate = 1; + this.spinUPCh.Adjustment.PageIncrement = 1D; + this.spinUPCh.ClimbRate = 1D; this.spinUPCh.Numeric = true; - this.spinUPCh.Value = 1; - this.table2.Add (this.spinUPCh); - global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table2 [this.spinUPCh])); + this.spinUPCh.Value = 1D; + this.table2.Add(this.spinUPCh); + global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table2[this.spinUPCh])); w12.TopAttach = ((uint)(1)); w12.BottomAttach = ((uint)(2)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); - this.GtkAlignment3.Add (this.table2); - this.frame2.Add (this.GtkAlignment3); - this.GtkLabel6 = new global::Gtk.Label (); - this.GtkLabel6.Name = "GtkLabel6"; - this.GtkLabel6.LabelProp = "Options Midi"; - this.GtkLabel6.UseMarkup = true; - this.frame2.LabelWidget = this.GtkLabel6; - this.table1.Add (this.frame2); - global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1 [this.frame2])); + this.GtkAlignment3.Add(this.table2); + this.frame2.Add(this.GtkAlignment3); + this.GtkLabelT = new global::Gtk.Label(); + this.GtkLabelT.Name = "GtkLabelT"; + this.GtkLabelT.LabelProp = "Options Midi"; + this.GtkLabelT.UseMarkup = true; + this.frame2.LabelWidget = this.GtkLabelT; + this.table1.Add(this.frame2); + global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1[this.frame2])); w15.XOptions = ((global::Gtk.AttachOptions)(4)); w15.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.frame3 = new global::Gtk.Frame (); + this.frame3 = new global::Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child frame3.Gtk.Container+ContainerChild - this.GtkAlignment2 = new global::Gtk.Alignment (0F, 0F, 1F, 1F); + this.GtkAlignment2 = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild - this.vbox5 = new global::Gtk.VBox (); + this.vbox5 = new global::Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild - this.chkFB = new global::Gtk.CheckButton (); + this.chkFB = new global::Gtk.CheckButton(); this.chkFB.Sensitive = false; this.chkFB.CanFocus = true; this.chkFB.Name = "chkFB"; this.chkFB.Label = "Feedback\n(interface motorisée)"; this.chkFB.DrawIndicator = true; this.chkFB.UseUnderline = true; - this.vbox5.Add (this.chkFB); - global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.chkFB])); + this.vbox5.Add(this.chkFB); + global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.chkFB])); w16.Position = 0; w16.Expand = false; w16.Fill = false; - this.GtkAlignment2.Add (this.vbox5); - this.frame3.Add (this.GtkAlignment2); - this.GtkLabel3 = new global::Gtk.Label (); + this.GtkAlignment2.Add(this.vbox5); + this.frame3.Add(this.GtkAlignment2); + this.GtkLabel3 = new global::Gtk.Label(); this.GtkLabel3.Name = "GtkLabel3"; - this.GtkLabel3.LabelProp = "Options de l'interface"; + this.GtkLabel3.LabelProp = "Options de l\'interface"; this.GtkLabel3.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel3; - this.table1.Add (this.frame3); - global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table1 [this.frame3])); + this.table1.Add(this.frame3); + global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table1[this.frame3])); w19.TopAttach = ((uint)(2)); w19.BottomAttach = ((uint)(3)); w19.XOptions = ((global::Gtk.AttachOptions)(4)); w19.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.hbuttonbox2 = new global::Gtk.HButtonBox (); + this.hbuttonbox2 = new global::Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild - this.btnActiv = new global::Gtk.Button (); + this.btnActiv = new global::Gtk.Button(); this.btnActiv.Sensitive = false; this.btnActiv.CanFocus = true; this.btnActiv.Name = "btnActiv"; this.btnActiv.UseUnderline = true; - // Container child btnActiv.Gtk.Container+ContainerChild - global::Gtk.Alignment w20 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w21 = new global::Gtk.HBox (); - w21.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w22 = new global::Gtk.Image (); - w22.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-down", global::Gtk.IconSize.Menu); - w21.Add (w22); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w24 = new global::Gtk.Label (); - w24.LabelProp = "Activer"; - w24.UseUnderline = true; - w21.Add (w24); - w20.Add (w21); - this.btnActiv.Add (w20); - this.hbuttonbox2.Add (this.btnActiv); - global::Gtk.ButtonBox.ButtonBoxChild w28 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.btnActiv])); - w28.Expand = false; - w28.Fill = false; + this.btnActiv.Label = "Activer"; + global::Gtk.Image w20 = new global::Gtk.Image(); + w20.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-go-down", global::Gtk.IconSize.Menu); + this.btnActiv.Image = w20; + this.hbuttonbox2.Add(this.btnActiv); + global::Gtk.ButtonBox.ButtonBoxChild w21 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.btnActiv])); + w21.Expand = false; + w21.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild - this.btnDesactiv = new global::Gtk.Button (); + this.btnDesactiv = new global::Gtk.Button(); this.btnDesactiv.Sensitive = false; this.btnDesactiv.CanFocus = true; this.btnDesactiv.Name = "btnDesactiv"; this.btnDesactiv.UseUnderline = true; - // Container child btnDesactiv.Gtk.Container+ContainerChild - global::Gtk.Alignment w29 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w30 = new global::Gtk.HBox (); - w30.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w31 = new global::Gtk.Image (); - w31.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-up", global::Gtk.IconSize.Menu); - w30.Add (w31); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w33 = new global::Gtk.Label (); - w33.LabelProp = "Désactiver"; - w33.UseUnderline = true; - w30.Add (w33); - w29.Add (w30); - this.btnDesactiv.Add (w29); - this.hbuttonbox2.Add (this.btnDesactiv); - global::Gtk.ButtonBox.ButtonBoxChild w37 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.btnDesactiv])); - w37.Position = 1; - w37.Expand = false; - w37.Fill = false; - this.table1.Add (this.hbuttonbox2); - global::Gtk.Table.TableChild w38 = ((global::Gtk.Table.TableChild)(this.table1 [this.hbuttonbox2])); - w38.TopAttach = ((uint)(1)); - w38.BottomAttach = ((uint)(2)); - w38.LeftAttach = ((uint)(1)); - w38.RightAttach = ((uint)(2)); - w38.XOptions = ((global::Gtk.AttachOptions)(0)); - w38.YOptions = ((global::Gtk.AttachOptions)(4)); + this.btnDesactiv.Label = "Désactiver"; + global::Gtk.Image w22 = new global::Gtk.Image(); + w22.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-go-up", global::Gtk.IconSize.Menu); + this.btnDesactiv.Image = w22; + this.hbuttonbox2.Add(this.btnDesactiv); + global::Gtk.ButtonBox.ButtonBoxChild w23 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.btnDesactiv])); + w23.Position = 1; + w23.Expand = false; + w23.Fill = false; + this.table1.Add(this.hbuttonbox2); + global::Gtk.Table.TableChild w24 = ((global::Gtk.Table.TableChild)(this.table1[this.hbuttonbox2])); + w24.TopAttach = ((uint)(1)); + w24.BottomAttach = ((uint)(2)); + w24.LeftAttach = ((uint)(1)); + w24.RightAttach = ((uint)(2)); + w24.XOptions = ((global::Gtk.AttachOptions)(0)); + w24.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.label1 = new global::Gtk.Label (); + this.label1 = new global::Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = "Interfaces disponibles :"; - this.vbox2.Add (this.label1); - global::Gtk.Box.BoxChild w39 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.label1])); - w39.Position = 0; - w39.Expand = false; - w39.Fill = false; + this.vbox2.Add(this.label1); + global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.label1])); + w25.Position = 0; + w25.Expand = false; + w25.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild - this.listDetect = new global::Gtk.TreeView (); + this.listDetect = new global::Gtk.TreeView(); this.listDetect.CanFocus = true; this.listDetect.Name = "listDetect"; this.listDetect.HeadersVisible = false; - this.GtkScrolledWindow.Add (this.listDetect); - this.vbox2.Add (this.GtkScrolledWindow); - global::Gtk.Box.BoxChild w41 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.GtkScrolledWindow])); - w41.Position = 1; - this.table1.Add (this.vbox2); - global::Gtk.Table.TableChild w42 = ((global::Gtk.Table.TableChild)(this.table1 [this.vbox2])); - w42.LeftAttach = ((uint)(1)); - w42.RightAttach = ((uint)(2)); + this.GtkScrolledWindow.Add(this.listDetect); + this.vbox2.Add(this.GtkScrolledWindow); + global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow])); + w27.Position = 1; + this.table1.Add(this.vbox2); + global::Gtk.Table.TableChild w28 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox2])); + w28.LeftAttach = ((uint)(1)); + w28.RightAttach = ((uint)(2)); // Container child table1.Gtk.Table+TableChild - this.vbox3 = new global::Gtk.VBox (); + this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild - this.label2 = new global::Gtk.Label (); + this.label2 = new global::Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = "Interfaces selectionnées : "; - this.vbox3.Add (this.label2); - global::Gtk.Box.BoxChild w43 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.label2])); - w43.Position = 0; - w43.Expand = false; - w43.Fill = false; + this.vbox3.Add(this.label2); + global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.label2])); + w29.Position = 0; + w29.Expand = false; + w29.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild - this.listKnown = new global::Gtk.TreeView (); + this.listKnown = new global::Gtk.TreeView(); this.listKnown.CanFocus = true; this.listKnown.Name = "listKnown"; this.listKnown.HeadersVisible = false; - this.GtkScrolledWindow1.Add (this.listKnown); - this.vbox3.Add (this.GtkScrolledWindow1); - global::Gtk.Box.BoxChild w45 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.GtkScrolledWindow1])); - w45.Position = 1; - this.table1.Add (this.vbox3); - global::Gtk.Table.TableChild w46 = ((global::Gtk.Table.TableChild)(this.table1 [this.vbox3])); - w46.TopAttach = ((uint)(2)); - w46.BottomAttach = ((uint)(3)); - w46.LeftAttach = ((uint)(1)); - w46.RightAttach = ((uint)(2)); - w1.Add (this.table1); - global::Gtk.Box.BoxChild w47 = ((global::Gtk.Box.BoxChild)(w1 [this.table1])); - w47.Position = 0; + this.GtkScrolledWindow1.Add(this.listKnown); + this.vbox3.Add(this.GtkScrolledWindow1); + global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow1])); + w31.Position = 1; + this.table1.Add(this.vbox3); + global::Gtk.Table.TableChild w32 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox3])); + w32.TopAttach = ((uint)(2)); + w32.BottomAttach = ((uint)(3)); + w32.LeftAttach = ((uint)(1)); + w32.RightAttach = ((uint)(2)); + w1.Add(this.table1); + global::Gtk.Box.BoxChild w33 = ((global::Gtk.Box.BoxChild)(w1[this.table1])); + w33.Position = 0; // Internal child DMX2.GestionMidiUI.ActionArea - global::Gtk.HButtonBox w48 = this.ActionArea; - w48.Name = "dialog1_ActionArea"; - w48.Spacing = 10; - w48.BorderWidth = ((uint)(5)); - w48.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + global::Gtk.HButtonBox w34 = this.ActionArea; + w34.Name = "dialog1_ActionArea"; + w34.Spacing = 10; + w34.BorderWidth = ((uint)(5)); + w34.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.btnClearEvents = new global::Gtk.Button (); + this.btnClearEvents = new global::Gtk.Button(); this.btnClearEvents.CanFocus = true; this.btnClearEvents.Name = "btnClearEvents"; this.btnClearEvents.UseUnderline = true; this.btnClearEvents.Label = "Delier tout les évenements"; - this.AddActionWidget (this.btnClearEvents, 0); - global::Gtk.ButtonBox.ButtonBoxChild w49 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w48 [this.btnClearEvents])); - w49.Expand = false; - w49.Fill = false; + this.AddActionWidget(this.btnClearEvents, 0); + global::Gtk.ButtonBox.ButtonBoxChild w35 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w34[this.btnClearEvents])); + w35.Expand = false; + w35.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonClose = new global::Gtk.Button (); + this.buttonClose = new global::Gtk.Button(); this.buttonClose.CanDefault = true; this.buttonClose.CanFocus = true; this.buttonClose.Name = "buttonClose"; this.buttonClose.UseStock = true; this.buttonClose.UseUnderline = true; this.buttonClose.Label = "gtk-close"; - this.AddActionWidget (this.buttonClose, -7); - global::Gtk.ButtonBox.ButtonBoxChild w50 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w48 [this.buttonClose])); - w50.Position = 1; - w50.Expand = false; - w50.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll (); + this.AddActionWidget(this.buttonClose, -7); + global::Gtk.ButtonBox.ButtonBoxChild w36 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w34[this.buttonClose])); + w36.Position = 1; + w36.Expand = false; + w36.Fill = false; + if ((this.Child != null)) + { + this.Child.ShowAll(); } this.DefaultWidth = 838; this.DefaultHeight = 567; - this.Show (); - this.listKnown.CursorChanged += new global::System.EventHandler (this.OnListKnownCursorChanged); - this.listDetect.CursorChanged += new global::System.EventHandler (this.OnListDetectCursorChanged); - this.btnActiv.Clicked += new global::System.EventHandler (this.OnBtnActivClicked); - this.btnDesactiv.Clicked += new global::System.EventHandler (this.OnBtnDesactivClicked); - this.chkFB.Toggled += new global::System.EventHandler (this.OnChkFBToggled); - this.spinUPCh.ValueChanged += new global::System.EventHandler (this.OnSpinUPChValueChanged); - this.spinPageUp.ValueChanged += new global::System.EventHandler (this.OnSpinPageUpValueChanged); - this.spinPageDown.ValueChanged += new global::System.EventHandler (this.OnSpinPageDownValueChanged); - this.spinMax14b.ValueChanged += new global::System.EventHandler (this.OnSpinMax14bValueChanged); - this.chkPg.Toggled += new global::System.EventHandler (this.OnChkPgToggled); - this.chkFourteenBits.Toggled += new global::System.EventHandler (this.OnChkFourteenBitsToggled); - this.btnClearEvents.Clicked += new global::System.EventHandler (this.OnBtnClearEventsClicked); - this.buttonClose.Clicked += new global::System.EventHandler (this.OnButtonCloseClicked); + this.Show(); + this.listKnown.CursorChanged += new global::System.EventHandler(this.OnListKnownCursorChanged); + this.listDetect.CursorChanged += new global::System.EventHandler(this.OnListDetectCursorChanged); + this.btnActiv.Clicked += new global::System.EventHandler(this.OnBtnActivClicked); + this.btnDesactiv.Clicked += new global::System.EventHandler(this.OnBtnDesactivClicked); + this.chkFB.Toggled += new global::System.EventHandler(this.OnChkFBToggled); + this.spinUPCh.ValueChanged += new global::System.EventHandler(this.OnSpinUPChValueChanged); + this.spinPageUp.ValueChanged += new global::System.EventHandler(this.OnSpinPageUpValueChanged); + this.spinPageDown.ValueChanged += new global::System.EventHandler(this.OnSpinPageDownValueChanged); + this.spinMax14b.ValueChanged += new global::System.EventHandler(this.OnSpinMax14bValueChanged); + this.chkPg.Toggled += new global::System.EventHandler(this.OnChkPgToggled); + this.chkFourteenBits.Toggled += new global::System.EventHandler(this.OnChkFourteenBitsToggled); + this.btnClearEvents.Clicked += new global::System.EventHandler(this.OnBtnClearEventsClicked); + this.buttonClose.Clicked += new global::System.EventHandler(this.OnButtonCloseClicked); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.MainWindow.cs b/DMX-2.0/gtk-gui/DMX2.MainWindow.cs index ec1a256..5de3acd 100644 --- a/DMX-2.0/gtk-gui/DMX2.MainWindow.cs +++ b/DMX-2.0/gtk-gui/DMX2.MainWindow.cs @@ -5,325 +5,325 @@ namespace DMX2 public partial class MainWindow { private global::Gtk.UIManager UIManager; - + private global::Gtk.Action openAction; - + private global::Gtk.Action saveAction; - + private global::Gtk.Action saveAsAction; - + private global::Gtk.Action quitAction; - + private global::Gtk.Action closeAction; - + private global::Gtk.Action TestAction; - + private global::Gtk.Action circAction; - + private global::Gtk.Action propertiesAction; - + private global::Gtk.Action FichierAction; - + private global::Gtk.Action newAction; - + private global::Gtk.Action seqLinAction; - + private global::Gtk.Action fullscreenAction; - + private global::Gtk.Action fullscreenAction1; - + private global::Gtk.Action showAllAction; - + private global::Gtk.Action universAction; - + private global::Gtk.Action connectAction; - + private global::Gtk.Action seqMacroAction; - + private global::Gtk.Action selectColorAction; - + private global::Gtk.Action aboutAction; - + private global::Gtk.Action midiAction; - + private global::Gtk.Action connectAction1; - + private global::Gtk.Action selectColorAction1; - + private global::Gtk.Action seqSonAction; - + private global::Gtk.Action selectColorAction2; - + private global::Gtk.Action seqMidiAction; - + private global::Gtk.VBox vbox1; - + private global::Gtk.HBox hbox1; - + private global::Gtk.VBox vbox2; - + private global::Gtk.Button btnGo; - + private global::Gtk.Button btnGoBack; - + private global::Gtk.Button btnAjoutLigne; - + private global::Gtk.Button btnRetireLigne; - + private global::Gtk.ToggleButton btnBlackOut; - + private global::Gtk.ToggleButton btnPause; - + private global::Gtk.EventBox evBBox; - + private global::Gtk.Label timeLabel; - + private global::Gtk.VScale masterScale; - + private global::Gtk.EventBox evBBox1; - + private global::Gtk.VBox vbox3; - + private global::Gtk.Label lblPage; - + private global::Gtk.Label lblpagesmall; - + private global::Gtk.VSeparator vseparator1; - + private global::Gtk.HPaned hpaned1; - + private global::Gtk.HPaned hpaned2; - + private global::Gtk.VBox vbox4; - + private global::Gtk.EventBox evBBox2; - + private global::Gtk.VBox vbox5; - + private global::Gtk.Label labelMasterPos; - + private global::Gtk.Label labelMasterNext; - + private global::Gtk.ScrolledWindow GtkScrolledWindow2; - + private global::Gtk.NodeView MatriceUI; - + private global::Gtk.ScrolledWindow scrolledwindow2; - + private global::Gtk.VBox vboxCircuits; - + private global::Gtk.HSeparator hseparator1; - + private global::Gtk.HBox hbox4; - + private global::Gtk.Toolbar toolbar7; - + private global::Gtk.EventBox evInfo; - + private global::Gtk.Label lblInfo; - + private global::Gtk.Toolbar toolbar8; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.MainWindow - this.UIManager = new global::Gtk.UIManager (); - global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default"); - this.openAction = new global::Gtk.Action ("openAction", "_Ouvrir", "Ouvrir", "gtk-open"); + this.UIManager = new global::Gtk.UIManager(); + global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default"); + this.openAction = new global::Gtk.Action("openAction", "_Ouvrir", "Ouvrir", "gtk-open"); this.openAction.ShortLabel = "_Ouvrir"; - w1.Add (this.openAction, null); - this.saveAction = new global::Gtk.Action ("saveAction", null, "Enregistrer", "gtk-save"); + w1.Add(this.openAction, null); + this.saveAction = new global::Gtk.Action("saveAction", null, "Enregistrer", "gtk-save"); this.saveAction.Sensitive = false; - w1.Add (this.saveAction, null); - this.saveAsAction = new global::Gtk.Action ("saveAsAction", null, "Enregistrer sous ...", "gtk-save-as"); + w1.Add(this.saveAction, null); + this.saveAsAction = new global::Gtk.Action("saveAsAction", null, "Enregistrer sous ...", "gtk-save-as"); this.saveAsAction.Sensitive = false; - w1.Add (this.saveAsAction, null); - this.quitAction = new global::Gtk.Action ("quitAction", null, "Quitter", "gtk-quit"); - w1.Add (this.quitAction, null); - this.closeAction = new global::Gtk.Action ("closeAction", null, "Fermer", "gtk-close"); + w1.Add(this.saveAsAction, null); + this.quitAction = new global::Gtk.Action("quitAction", null, "Quitter", "gtk-quit"); + w1.Add(this.quitAction, null); + this.closeAction = new global::Gtk.Action("closeAction", null, "Fermer", "gtk-close"); this.closeAction.Sensitive = false; - w1.Add (this.closeAction, null); - this.TestAction = new global::Gtk.Action ("TestAction", "Test", null, null); + w1.Add(this.closeAction, null); + this.TestAction = new global::Gtk.Action("TestAction", "Test", null, null); this.TestAction.ShortLabel = "Test"; - w1.Add (this.TestAction, null); - this.circAction = new global::Gtk.Action ("circAction", "Gestion des Circuits", "Gestion des Circuits", "circuits"); + w1.Add(this.TestAction, null); + this.circAction = new global::Gtk.Action("circAction", "Gestion des Circuits", "Gestion des Circuits", "circuits"); this.circAction.Sensitive = false; this.circAction.ShortLabel = "Circuits"; - w1.Add (this.circAction, null); - this.propertiesAction = new global::Gtk.Action ("propertiesAction", "Circuits", null, "gtk-properties"); + w1.Add(this.circAction, null); + this.propertiesAction = new global::Gtk.Action("propertiesAction", "Circuits", null, "gtk-properties"); this.propertiesAction.ShortLabel = "Circuits"; - w1.Add (this.propertiesAction, null); - this.FichierAction = new global::Gtk.Action ("FichierAction", "_Fichier", null, null); + w1.Add(this.propertiesAction, null); + this.FichierAction = new global::Gtk.Action("FichierAction", "_Fichier", null, null); this.FichierAction.ShortLabel = "_Fichier"; - w1.Add (this.FichierAction, null); - this.newAction = new global::Gtk.Action ("newAction", null, "Nouvelle Conduite", "gtk-new"); - w1.Add (this.newAction, null); - this.seqLinAction = new global::Gtk.Action ("seqLinAction", "Ajout Sequenceur", "Ajouter un sequenceur lineraire", "tirettes"); + w1.Add(this.FichierAction, null); + this.newAction = new global::Gtk.Action("newAction", null, "Nouvelle Conduite", "gtk-new"); + w1.Add(this.newAction, null); + this.seqLinAction = new global::Gtk.Action("seqLinAction", "Ajout Sequenceur", "Ajouter un sequenceur lineraire", "tirettes"); this.seqLinAction.Sensitive = false; this.seqLinAction.ShortLabel = "Ajout Sequenceur"; - w1.Add (this.seqLinAction, null); - this.fullscreenAction = new global::Gtk.Action ("fullscreenAction", "_Plein écran", null, "gtk-fullscreen"); + w1.Add(this.seqLinAction, null); + this.fullscreenAction = new global::Gtk.Action("fullscreenAction", "_Plein écran", null, "gtk-fullscreen"); this.fullscreenAction.ShortLabel = "_Plein écran"; - w1.Add (this.fullscreenAction, null); - this.fullscreenAction1 = new global::Gtk.Action ("fullscreenAction1", "_Plein écran", "Plein Ecran", "gtk-fullscreen"); + w1.Add(this.fullscreenAction, null); + this.fullscreenAction1 = new global::Gtk.Action("fullscreenAction1", "_Plein écran", "Plein Ecran", "gtk-fullscreen"); this.fullscreenAction1.ShortLabel = "_Plein écran"; - w1.Add (this.fullscreenAction1, null); - this.showAllAction = new global::Gtk.Action ("showAllAction", "ShowAll", "Tout réafficher", "gtk-refresh"); + w1.Add(this.fullscreenAction1, null); + this.showAllAction = new global::Gtk.Action("showAllAction", "ShowAll", "Tout réafficher", "gtk-refresh"); this.showAllAction.Sensitive = false; this.showAllAction.ShortLabel = "ShowAll"; - w1.Add (this.showAllAction, null); - this.universAction = new global::Gtk.Action ("universAction", "Univers", "Gestion des Univers", "gtk-execute"); + w1.Add(this.showAllAction, null); + this.universAction = new global::Gtk.Action("universAction", "Univers", "Gestion des Univers", "gtk-execute"); this.universAction.Sensitive = false; this.universAction.ShortLabel = "Univers"; - w1.Add (this.universAction, null); - this.connectAction = new global::Gtk.Action ("connectAction", null, "Connecter d\'un boitier", "gtk-connect"); - w1.Add (this.connectAction, null); - this.seqMacroAction = new global::Gtk.Action ("seqMacroAction", null, "Ajouter un sequenceur macro", "gtk-index"); + w1.Add(this.universAction, null); + this.connectAction = new global::Gtk.Action("connectAction", null, "Connecter d\'un boitier", "gtk-connect"); + w1.Add(this.connectAction, null); + this.seqMacroAction = new global::Gtk.Action("seqMacroAction", null, "Ajouter un sequenceur macro", "gtk-index"); this.seqMacroAction.Sensitive = false; - w1.Add (this.seqMacroAction, null); - this.selectColorAction = new global::Gtk.Action ("selectColorAction", null, "Recharger le theme", "gtk-select-color"); - w1.Add (this.selectColorAction, null); - this.aboutAction = new global::Gtk.Action ("aboutAction", null, null, "gtk-about"); - w1.Add (this.aboutAction, null); - this.midiAction = new global::Gtk.Action ("midiAction", null, null, "gtk-preferences"); - w1.Add (this.midiAction, null); - this.connectAction1 = new global::Gtk.Action ("connectAction1", "Connection Midi", null, "gtk-connect"); + w1.Add(this.seqMacroAction, null); + this.selectColorAction = new global::Gtk.Action("selectColorAction", null, "Recharger le theme", "gtk-select-color"); + w1.Add(this.selectColorAction, null); + this.aboutAction = new global::Gtk.Action("aboutAction", null, null, "gtk-about"); + w1.Add(this.aboutAction, null); + this.midiAction = new global::Gtk.Action("midiAction", null, null, "gtk-preferences"); + w1.Add(this.midiAction, null); + this.connectAction1 = new global::Gtk.Action("connectAction1", "Connection Midi", null, "gtk-connect"); this.connectAction1.ShortLabel = "Connection Midi"; - w1.Add (this.connectAction1, null); - this.selectColorAction1 = new global::Gtk.Action ("selectColorAction1", null, null, "gtk-select-color"); - w1.Add (this.selectColorAction1, null); - this.seqSonAction = new global::Gtk.Action ("seqSonAction", null, null, "gtk-cdrom"); + w1.Add(this.connectAction1, null); + this.selectColorAction1 = new global::Gtk.Action("selectColorAction1", null, null, "gtk-select-color"); + w1.Add(this.selectColorAction1, null); + this.seqSonAction = new global::Gtk.Action("seqSonAction", null, null, "gtk-cdrom"); this.seqSonAction.Sensitive = false; - w1.Add (this.seqSonAction, null); - this.selectColorAction2 = new global::Gtk.Action ("selectColorAction2", null, null, "gtk-select-color"); + w1.Add(this.seqSonAction, null); + this.selectColorAction2 = new global::Gtk.Action("selectColorAction2", null, null, "gtk-select-color"); this.selectColorAction2.Visible = false; this.selectColorAction2.VisibleHorizontal = false; this.selectColorAction2.VisibleVertical = false; this.selectColorAction2.VisibleOverflown = false; - w1.Add (this.selectColorAction2, null); - this.seqMidiAction = new global::Gtk.Action ("seqMidiAction", null, null, "MidiSeq"); + w1.Add(this.selectColorAction2, null); + this.seqMidiAction = new global::Gtk.Action("seqMidiAction", null, null, "MidiSeq"); this.seqMidiAction.Sensitive = false; - w1.Add (this.seqMidiAction, null); - this.UIManager.InsertActionGroup (w1, 0); - this.AddAccelGroup (this.UIManager.AccelGroup); + w1.Add(this.seqMidiAction, null); + this.UIManager.InsertActionGroup(w1, 0); + this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "DMX2.MainWindow"; this.Title = "MainWindow"; this.WindowPosition = ((global::Gtk.WindowPosition)(4)); this.BorderWidth = ((uint)(3)); // Container child DMX2.MainWindow.Gtk.Container+ContainerChild - this.vbox1 = new global::Gtk.VBox (); + this.vbox1 = new global::Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.btnGo = new global::Gtk.Button (); + this.btnGo = new global::Gtk.Button(); this.btnGo.CanFocus = true; this.btnGo.Name = "btnGo"; this.btnGo.UseUnderline = true; - global::Gtk.Image w2 = new global::Gtk.Image (); - w2.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-goto-last", global::Gtk.IconSize.Dnd); + global::Gtk.Image w2 = new global::Gtk.Image(); + w2.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-goto-last", global::Gtk.IconSize.Dnd); this.btnGo.Image = w2; - this.vbox2.Add (this.btnGo); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.btnGo])); + this.vbox2.Add(this.btnGo); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.btnGo])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.btnGoBack = new global::Gtk.Button (); + this.btnGoBack = new global::Gtk.Button(); this.btnGoBack.CanFocus = true; this.btnGoBack.Name = "btnGoBack"; this.btnGoBack.UseUnderline = true; - global::Gtk.Image w4 = new global::Gtk.Image (); - w4.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-goto-first", global::Gtk.IconSize.Dnd); + global::Gtk.Image w4 = new global::Gtk.Image(); + w4.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-goto-first", global::Gtk.IconSize.Dnd); this.btnGoBack.Image = w4; - this.vbox2.Add (this.btnGoBack); - global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.btnGoBack])); + this.vbox2.Add(this.btnGoBack); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.btnGoBack])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.btnAjoutLigne = new global::Gtk.Button (); + this.btnAjoutLigne = new global::Gtk.Button(); this.btnAjoutLigne.TooltipMarkup = "Ajoute ligne sous\ncelle selectionnée"; this.btnAjoutLigne.CanFocus = true; this.btnAjoutLigne.Name = "btnAjoutLigne"; this.btnAjoutLigne.UseUnderline = true; - global::Gtk.Image w6 = new global::Gtk.Image (); - w6.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-add", global::Gtk.IconSize.Dnd); + global::Gtk.Image w6 = new global::Gtk.Image(); + w6.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-add", global::Gtk.IconSize.Dnd); this.btnAjoutLigne.Image = w6; - this.vbox2.Add (this.btnAjoutLigne); - global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.btnAjoutLigne])); + this.vbox2.Add(this.btnAjoutLigne); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.btnAjoutLigne])); w7.Position = 2; w7.Expand = false; w7.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.btnRetireLigne = new global::Gtk.Button (); + this.btnRetireLigne = new global::Gtk.Button(); this.btnRetireLigne.TooltipMarkup = "Retire la ligne selectionnée"; this.btnRetireLigne.CanFocus = true; this.btnRetireLigne.Name = "btnRetireLigne"; this.btnRetireLigne.UseUnderline = true; - global::Gtk.Image w8 = new global::Gtk.Image (); - w8.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-remove", global::Gtk.IconSize.Dnd); + global::Gtk.Image w8 = new global::Gtk.Image(); + w8.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-remove", global::Gtk.IconSize.Dnd); this.btnRetireLigne.Image = w8; - this.vbox2.Add (this.btnRetireLigne); - global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.btnRetireLigne])); + this.vbox2.Add(this.btnRetireLigne); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.btnRetireLigne])); w9.Position = 3; w9.Expand = false; w9.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.btnBlackOut = new global::Gtk.ToggleButton (); + this.btnBlackOut = new global::Gtk.ToggleButton(); this.btnBlackOut.TooltipMarkup = "Blackout"; this.btnBlackOut.CanFocus = true; this.btnBlackOut.Name = "btnBlackOut"; this.btnBlackOut.UseUnderline = true; - global::Gtk.Image w10 = new global::Gtk.Image (); - w10.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-no", global::Gtk.IconSize.Dnd); + global::Gtk.Image w10 = new global::Gtk.Image(); + w10.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-no", global::Gtk.IconSize.Dnd); this.btnBlackOut.Image = w10; - this.vbox2.Add (this.btnBlackOut); - global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.btnBlackOut])); + this.vbox2.Add(this.btnBlackOut); + global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.btnBlackOut])); w11.Position = 4; w11.Expand = false; w11.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.btnPause = new global::Gtk.ToggleButton (); + this.btnPause = new global::Gtk.ToggleButton(); this.btnPause.TooltipMarkup = "Pause"; this.btnPause.CanFocus = true; this.btnPause.Name = "btnPause"; this.btnPause.UseUnderline = true; - global::Gtk.Image w12 = new global::Gtk.Image (); - w12.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-pause", global::Gtk.IconSize.Dnd); + global::Gtk.Image w12 = new global::Gtk.Image(); + w12.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-media-pause", global::Gtk.IconSize.Dnd); this.btnPause.Image = w12; - this.vbox2.Add (this.btnPause); - global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.btnPause])); + this.vbox2.Add(this.btnPause); + global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.btnPause])); w13.Position = 5; w13.Expand = false; w13.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.evBBox = new global::Gtk.EventBox (); + this.evBBox = new global::Gtk.EventBox(); this.evBBox.Name = "evBBox"; // Container child evBBox.Gtk.Container+ContainerChild - this.timeLabel = new global::Gtk.Label (); + this.timeLabel = new global::Gtk.Label(); this.timeLabel.Name = "timeLabel"; this.timeLabel.Ypad = 8; this.timeLabel.LabelProp = "0.00"; this.timeLabel.UseMarkup = true; this.timeLabel.Justify = ((global::Gtk.Justification)(2)); this.timeLabel.Angle = 90D; - this.evBBox.Add (this.timeLabel); - this.vbox2.Add (this.evBBox); - global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.evBBox])); + this.evBBox.Add(this.timeLabel); + this.vbox2.Add(this.evBBox); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.evBBox])); w15.Position = 6; w15.Expand = false; w15.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.masterScale = new global::Gtk.VScale (null); + this.masterScale = new global::Gtk.VScale(null); this.masterScale.TooltipMarkup = "Master"; this.masterScale.HeightRequest = 75; this.masterScale.Name = "masterScale"; @@ -335,234 +335,235 @@ namespace DMX2 this.masterScale.DrawValue = true; this.masterScale.Digits = 0; this.masterScale.ValuePos = ((global::Gtk.PositionType)(2)); - this.vbox2.Add (this.masterScale); - global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.masterScale])); + this.vbox2.Add(this.masterScale); + global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.masterScale])); w16.Position = 7; // Container child vbox2.Gtk.Box+BoxChild - this.evBBox1 = new global::Gtk.EventBox (); + this.evBBox1 = new global::Gtk.EventBox(); this.evBBox1.Name = "evBBox1"; // Container child evBBox1.Gtk.Container+ContainerChild - this.vbox3 = new global::Gtk.VBox (); + this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild - this.lblPage = new global::Gtk.Label (); + this.lblPage = new global::Gtk.Label(); this.lblPage.Name = "lblPage"; this.lblPage.LabelProp = "0"; - this.vbox3.Add (this.lblPage); - global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.lblPage])); + this.vbox3.Add(this.lblPage); + global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.lblPage])); w17.Position = 0; w17.Expand = false; w17.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.lblpagesmall = new global::Gtk.Label (); + this.lblpagesmall = new global::Gtk.Label(); this.lblpagesmall.HeightRequest = 28; this.lblpagesmall.Name = "lblpagesmall"; this.lblpagesmall.LabelProp = "midi\npage"; this.lblpagesmall.UseMarkup = true; - this.vbox3.Add (this.lblpagesmall); - global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.lblpagesmall])); + this.vbox3.Add(this.lblpagesmall); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.lblpagesmall])); w18.Position = 1; w18.Fill = false; - this.evBBox1.Add (this.vbox3); - this.vbox2.Add (this.evBBox1); - global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.evBBox1])); + this.evBBox1.Add(this.vbox3); + this.vbox2.Add(this.evBBox1); + global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.evBBox1])); w20.Position = 8; w20.Expand = false; w20.Fill = false; - this.hbox1.Add (this.vbox2); - global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox2])); + this.hbox1.Add(this.vbox2); + global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vbox2])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.vseparator1 = new global::Gtk.VSeparator (); + this.vseparator1 = new global::Gtk.VSeparator(); this.vseparator1.Name = "vseparator1"; - this.hbox1.Add (this.vseparator1); - global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vseparator1])); + this.hbox1.Add(this.vseparator1); + global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vseparator1])); w22.Position = 1; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.hpaned1 = new global::Gtk.HPaned (); + this.hpaned1 = new global::Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 776; // Container child hpaned1.Gtk.Paned+PanedChild - this.hpaned2 = new global::Gtk.HPaned (); + this.hpaned2 = new global::Gtk.HPaned(); this.hpaned2.CanFocus = true; this.hpaned2.Name = "hpaned2"; this.hpaned2.Position = 177; // Container child hpaned2.Gtk.Paned+PanedChild - this.vbox4 = new global::Gtk.VBox (); + this.vbox4 = new global::Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild - this.evBBox2 = new global::Gtk.EventBox (); + this.evBBox2 = new global::Gtk.EventBox(); this.evBBox2.Name = "evBBox2"; // Container child evBBox2.Gtk.Container+ContainerChild - this.vbox5 = new global::Gtk.VBox (); + this.vbox5 = new global::Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild - this.labelMasterPos = new global::Gtk.Label (); + this.labelMasterPos = new global::Gtk.Label(); this.labelMasterPos.Name = "labelMasterPos"; this.labelMasterPos.Xpad = 4; this.labelMasterPos.Ypad = 1; this.labelMasterPos.Xalign = 0F; this.labelMasterPos.LabelProp = "\t"; - this.vbox5.Add (this.labelMasterPos); - global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.labelMasterPos])); + this.vbox5.Add(this.labelMasterPos); + global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.labelMasterPos])); w23.Position = 0; w23.Expand = false; w23.Fill = false; // Container child vbox5.Gtk.Box+BoxChild - this.labelMasterNext = new global::Gtk.Label (); + this.labelMasterNext = new global::Gtk.Label(); this.labelMasterNext.Name = "labelMasterNext"; this.labelMasterNext.Xpad = 20; this.labelMasterNext.Xalign = 0F; this.labelMasterNext.LabelProp = "\t"; - this.vbox5.Add (this.labelMasterNext); - global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox5 [this.labelMasterNext])); + this.vbox5.Add(this.labelMasterNext); + global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.labelMasterNext])); w24.Position = 1; w24.Expand = false; w24.Fill = false; - this.evBBox2.Add (this.vbox5); - this.vbox4.Add (this.evBBox2); - global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.evBBox2])); + this.evBBox2.Add(this.vbox5); + this.vbox4.Add(this.evBBox2); + global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.evBBox2])); w26.Position = 0; w26.Expand = false; w26.Fill = false; // Container child vbox4.Gtk.Box+BoxChild - this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild - this.MatriceUI = new global::Gtk.NodeView (); + this.MatriceUI = new global::Gtk.NodeView(); this.MatriceUI.CanFocus = true; this.MatriceUI.Name = "MatriceUI"; this.MatriceUI.RulesHint = true; - this.GtkScrolledWindow2.Add (this.MatriceUI); - this.vbox4.Add (this.GtkScrolledWindow2); - global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.GtkScrolledWindow2])); + this.GtkScrolledWindow2.Add(this.MatriceUI); + this.vbox4.Add(this.GtkScrolledWindow2); + global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.GtkScrolledWindow2])); w28.Position = 1; - this.hpaned2.Add (this.vbox4); - global::Gtk.Paned.PanedChild w29 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.vbox4])); + this.hpaned2.Add(this.vbox4); + global::Gtk.Paned.PanedChild w29 = ((global::Gtk.Paned.PanedChild)(this.hpaned2[this.vbox4])); w29.Resize = false; - this.hpaned1.Add (this.hpaned2); - global::Gtk.Paned.PanedChild w30 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.hpaned2])); + this.hpaned1.Add(this.hpaned2); + global::Gtk.Paned.PanedChild w30 = ((global::Gtk.Paned.PanedChild)(this.hpaned1[this.hpaned2])); w30.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild - this.scrolledwindow2 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow2 = new global::Gtk.ScrolledWindow(); this.scrolledwindow2.WidthRequest = 150; this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild - global::Gtk.Viewport w31 = new global::Gtk.Viewport (); + global::Gtk.Viewport w31 = new global::Gtk.Viewport(); w31.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child GtkViewport1.Gtk.Container+ContainerChild - this.vboxCircuits = new global::Gtk.VBox (); + this.vboxCircuits = new global::Gtk.VBox(); this.vboxCircuits.Name = "vboxCircuits"; this.vboxCircuits.Spacing = 2; - w31.Add (this.vboxCircuits); - this.scrolledwindow2.Add (w31); - this.hpaned1.Add (this.scrolledwindow2); - global::Gtk.Paned.PanedChild w34 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.scrolledwindow2])); + w31.Add(this.vboxCircuits); + this.scrolledwindow2.Add(w31); + this.hpaned1.Add(this.scrolledwindow2); + global::Gtk.Paned.PanedChild w34 = ((global::Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow2])); w34.Resize = false; w34.Shrink = false; - this.hbox1.Add (this.hpaned1); - global::Gtk.Box.BoxChild w35 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.hpaned1])); + this.hbox1.Add(this.hpaned1); + global::Gtk.Box.BoxChild w35 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.hpaned1])); w35.Position = 2; - this.vbox1.Add (this.hbox1); - global::Gtk.Box.BoxChild w36 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1])); + this.vbox1.Add(this.hbox1); + global::Gtk.Box.BoxChild w36 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w36.Position = 0; // Container child vbox1.Gtk.Box+BoxChild - this.hseparator1 = new global::Gtk.HSeparator (); + this.hseparator1 = new global::Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; - this.vbox1.Add (this.hseparator1); - global::Gtk.Box.BoxChild w37 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hseparator1])); + this.vbox1.Add(this.hseparator1); + global::Gtk.Box.BoxChild w37 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hseparator1])); w37.Position = 1; w37.Expand = false; w37.Fill = false; // Container child vbox1.Gtk.Box+BoxChild - this.hbox4 = new global::Gtk.HBox (); + this.hbox4 = new global::Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (@""); - this.toolbar7 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar7"))); + this.UIManager.AddUiFromString(@""); + this.toolbar7 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar7"))); this.toolbar7.Name = "toolbar7"; this.toolbar7.ShowArrow = false; this.toolbar7.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); - this.hbox4.Add (this.toolbar7); - global::Gtk.Box.BoxChild w38 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.toolbar7])); + this.hbox4.Add(this.toolbar7); + global::Gtk.Box.BoxChild w38 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.toolbar7])); w38.Position = 0; w38.Expand = false; w38.Fill = false; // Container child hbox4.Gtk.Box+BoxChild - this.evInfo = new global::Gtk.EventBox (); + this.evInfo = new global::Gtk.EventBox(); this.evInfo.Name = "evInfo"; // Container child evInfo.Gtk.Container+ContainerChild - this.lblInfo = new global::Gtk.Label (); + this.lblInfo = new global::Gtk.Label(); this.lblInfo.Name = "lblInfo"; this.lblInfo.LabelProp = "info"; - this.evInfo.Add (this.lblInfo); - this.hbox4.Add (this.evInfo); - global::Gtk.Box.BoxChild w40 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.evInfo])); + this.evInfo.Add(this.lblInfo); + this.hbox4.Add(this.evInfo); + global::Gtk.Box.BoxChild w40 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.evInfo])); w40.Position = 1; // Container child hbox4.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (@""); - this.toolbar8 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar8"))); + this.UIManager.AddUiFromString(@""); + this.toolbar8 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar8"))); this.toolbar8.Name = "toolbar8"; this.toolbar8.ShowArrow = false; this.toolbar8.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); - this.hbox4.Add (this.toolbar8); - global::Gtk.Box.BoxChild w41 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.toolbar8])); + this.hbox4.Add(this.toolbar8); + global::Gtk.Box.BoxChild w41 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.toolbar8])); w41.Position = 2; w41.Expand = false; w41.Fill = false; - this.vbox1.Add (this.hbox4); - global::Gtk.Box.BoxChild w42 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox4])); + this.vbox1.Add(this.hbox4); + global::Gtk.Box.BoxChild w42 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox4])); w42.Position = 2; w42.Expand = false; w42.Fill = false; - this.Add (this.vbox1); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.vbox1); + if ((this.Child != null)) + { + this.Child.ShowAll(); } this.DefaultWidth = 1027; this.DefaultHeight = 709; - this.Show (); - this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); - this.openAction.Activated += new global::System.EventHandler (this.OnOpenActionActivated); - this.saveAction.Activated += new global::System.EventHandler (this.OnSaveActionActivated); - this.saveAsAction.Activated += new global::System.EventHandler (this.OnSaveAsActionActivated); - this.quitAction.Activated += new global::System.EventHandler (this.OnQuitActionActivated); - this.closeAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated); - this.circAction.Activated += new global::System.EventHandler (this.OnCircuitsActionActivated); - this.newAction.Activated += new global::System.EventHandler (this.OnNewActionActivated); - this.seqLinAction.Activated += new global::System.EventHandler (this.OnSeqLinActionActivated); - this.fullscreenAction1.Activated += new global::System.EventHandler (this.OnFullscreenAction1Activated); - this.showAllAction.Activated += new global::System.EventHandler (this.OnShowAllActionActivated); - this.universAction.Activated += new global::System.EventHandler (this.OnUniversActionActivated); - this.connectAction.Activated += new global::System.EventHandler (this.OnConnectActionActivated); - this.seqMacroAction.Activated += new global::System.EventHandler (this.OnSeqMacroActionActivated); - this.selectColorAction.Activated += new global::System.EventHandler (this.OnSelectColorActionActivated); - this.aboutAction.Activated += new global::System.EventHandler (this.OnAboutActionActivated); - this.midiAction.Activated += new global::System.EventHandler (this.OnMidiActionActivated); - this.selectColorAction1.Activated += new global::System.EventHandler (this.OnSelectColorActionActivated); - this.seqSonAction.Activated += new global::System.EventHandler (this.OnSeqSonActionActivated); - this.selectColorAction2.Activated += new global::System.EventHandler (this.OnSelectColorActionActivated); - this.seqMidiAction.Activated += new global::System.EventHandler (this.OnSeqMidiActionActivated); - this.btnGo.Clicked += new global::System.EventHandler (this.OnBtnGoClicked); - this.btnGoBack.Clicked += new global::System.EventHandler (this.OnBtnGoBackClicked); - this.btnAjoutLigne.Clicked += new global::System.EventHandler (this.OnBtnAjoutLigneClicked); - this.btnRetireLigne.Clicked += new global::System.EventHandler (this.OnBtnRetireLigneClicked); - this.btnBlackOut.Toggled += new global::System.EventHandler (this.OnBtnBlackOutToggled); - this.btnPause.Toggled += new global::System.EventHandler (this.OnBtnPauseToggled); - this.masterScale.ValueChanged += new global::System.EventHandler (this.OnMasterScaleValueChanged); - this.MatriceUI.CursorChanged += new global::System.EventHandler (this.OnMatriceUICursorChanged); + this.Show(); + this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent); + this.openAction.Activated += new global::System.EventHandler(this.OnOpenActionActivated); + this.saveAction.Activated += new global::System.EventHandler(this.OnSaveActionActivated); + this.saveAsAction.Activated += new global::System.EventHandler(this.OnSaveAsActionActivated); + this.quitAction.Activated += new global::System.EventHandler(this.OnQuitActionActivated); + this.closeAction.Activated += new global::System.EventHandler(this.OnCloseActionActivated); + this.circAction.Activated += new global::System.EventHandler(this.OnCircuitsActionActivated); + this.newAction.Activated += new global::System.EventHandler(this.OnNewActionActivated); + this.seqLinAction.Activated += new global::System.EventHandler(this.OnSeqLinActionActivated); + this.fullscreenAction1.Activated += new global::System.EventHandler(this.OnFullscreenAction1Activated); + this.showAllAction.Activated += new global::System.EventHandler(this.OnShowAllActionActivated); + this.universAction.Activated += new global::System.EventHandler(this.OnUniversActionActivated); + this.connectAction.Activated += new global::System.EventHandler(this.OnConnectActionActivated); + this.seqMacroAction.Activated += new global::System.EventHandler(this.OnSeqMacroActionActivated); + this.selectColorAction.Activated += new global::System.EventHandler(this.OnSelectColorActionActivated); + this.aboutAction.Activated += new global::System.EventHandler(this.OnAboutActionActivated); + this.midiAction.Activated += new global::System.EventHandler(this.OnMidiActionActivated); + this.selectColorAction1.Activated += new global::System.EventHandler(this.OnSelectColorActionActivated); + this.seqSonAction.Activated += new global::System.EventHandler(this.OnSeqSonActionActivated); + this.selectColorAction2.Activated += new global::System.EventHandler(this.OnSelectColorActionActivated); + this.seqMidiAction.Activated += new global::System.EventHandler(this.OnSeqMidiActionActivated); + this.btnGo.Clicked += new global::System.EventHandler(this.OnBtnGoClicked); + this.btnGoBack.Clicked += new global::System.EventHandler(this.OnBtnGoBackClicked); + this.btnAjoutLigne.Clicked += new global::System.EventHandler(this.OnBtnAjoutLigneClicked); + this.btnRetireLigne.Clicked += new global::System.EventHandler(this.OnBtnRetireLigneClicked); + this.btnBlackOut.Toggled += new global::System.EventHandler(this.OnBtnBlackOutToggled); + this.btnPause.Toggled += new global::System.EventHandler(this.OnBtnPauseToggled); + this.masterScale.ValueChanged += new global::System.EventHandler(this.OnMasterScaleValueChanged); + this.MatriceUI.CursorChanged += new global::System.EventHandler(this.OnMatriceUICursorChanged); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.SelSeqCircuits.cs b/DMX-2.0/gtk-gui/DMX2.SelSeqCircuits.cs index 8799344..36feef9 100644 --- a/DMX-2.0/gtk-gui/DMX2.SelSeqCircuits.cs +++ b/DMX-2.0/gtk-gui/DMX2.SelSeqCircuits.cs @@ -5,23 +5,36 @@ namespace DMX2 public partial class SelSeqCircuits { private global::Gtk.HBox hbox1; + private global::Gtk.ScrolledWindow GtkScrolledWindow; + private global::Gtk.TreeView listeToutCircuits; - private global::Gtk.VButtonBox vbuttonbox1; + + private global::Gtk.VButtonBox vbuttonbox; + private global::Gtk.Button ajtBut; + private global::Gtk.Button supBt; + private global::Gtk.Button supToutBut; + private global::Gtk.Button button90; + private global::Gtk.Button mvHautBt; + private global::Gtk.Button mvBasBt; + private global::Gtk.ScrolledWindow GtkScrolledWindow1; + private global::Gtk.TreeView listeSelCircuits; + private global::Gtk.Button buttonCancel; + private global::Gtk.Button buttonOk; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.SelSeqCircuits this.Name = "DMX2.SelSeqCircuits"; this.Title = "Selection des Circuits"; @@ -35,229 +48,169 @@ namespace DMX2 w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild - this.listeToutCircuits = new global::Gtk.TreeView (); + this.listeToutCircuits = new global::Gtk.TreeView(); this.listeToutCircuits.CanFocus = true; this.listeToutCircuits.Name = "listeToutCircuits"; - this.GtkScrolledWindow.Add (this.listeToutCircuits); - this.hbox1.Add (this.GtkScrolledWindow); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow])); + this.GtkScrolledWindow.Add(this.listeToutCircuits); + this.hbox1.Add(this.GtkScrolledWindow); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); w3.Position = 0; // Container child hbox1.Gtk.Box+BoxChild - this.vbuttonbox1 = new global::Gtk.VButtonBox (); - this.vbuttonbox1.Name = "vbuttonbox1"; - this.vbuttonbox1.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); - // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild - this.ajtBut = new global::Gtk.Button (); + this.vbuttonbox = new global::Gtk.VButtonBox(); + this.vbuttonbox.Name = "vbuttonbox"; + this.vbuttonbox.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); + // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild + this.ajtBut = new global::Gtk.Button(); this.ajtBut.CanFocus = true; this.ajtBut.Name = "ajtBut"; this.ajtBut.UseUnderline = true; - // Container child ajtBut.Gtk.Container+ContainerChild - global::Gtk.Alignment w4 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w5 = new global::Gtk.HBox (); - w5.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w6 = new global::Gtk.Image (); - w6.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-forward", global::Gtk.IconSize.Menu); - w5.Add (w6); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w8 = new global::Gtk.Label (); - w8.LabelProp = "Ajouter"; - w8.UseUnderline = true; - w5.Add (w8); - w4.Add (w5); - this.ajtBut.Add (w4); - this.vbuttonbox1.Add (this.ajtBut); - global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1 [this.ajtBut])); - w12.Expand = false; - w12.Fill = false; - // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild - this.supBt = new global::Gtk.Button (); + this.ajtBut.Label = "Ajouter"; + global::Gtk.Image w4 = new global::Gtk.Image(); + w4.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-go-forward", global::Gtk.IconSize.Menu); + this.ajtBut.Image = w4; + this.vbuttonbox.Add(this.ajtBut); + global::Gtk.ButtonBox.ButtonBoxChild w5 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.ajtBut])); + w5.Expand = false; + w5.Fill = false; + // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild + this.supBt = new global::Gtk.Button(); this.supBt.CanFocus = true; this.supBt.Name = "supBt"; this.supBt.UseUnderline = true; - // Container child supBt.Gtk.Container+ContainerChild - global::Gtk.Alignment w13 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w14 = new global::Gtk.HBox (); - w14.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w15 = new global::Gtk.Image (); - w15.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-back", global::Gtk.IconSize.Menu); - w14.Add (w15); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w17 = new global::Gtk.Label (); - w17.LabelProp = "Enlever"; - w17.UseUnderline = true; - w14.Add (w17); - w13.Add (w14); - this.supBt.Add (w13); - this.vbuttonbox1.Add (this.supBt); - global::Gtk.ButtonBox.ButtonBoxChild w21 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1 [this.supBt])); - w21.Position = 1; - w21.Expand = false; - w21.Fill = false; - // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild - this.supToutBut = new global::Gtk.Button (); + this.supBt.Label = "Enlever"; + global::Gtk.Image w6 = new global::Gtk.Image(); + w6.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-go-back", global::Gtk.IconSize.Menu); + this.supBt.Image = w6; + this.vbuttonbox.Add(this.supBt); + global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.supBt])); + w7.Position = 1; + w7.Expand = false; + w7.Fill = false; + // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild + this.supToutBut = new global::Gtk.Button(); this.supToutBut.CanFocus = true; this.supToutBut.Name = "supToutBut"; this.supToutBut.UseUnderline = true; - // Container child supToutBut.Gtk.Container+ContainerChild - global::Gtk.Alignment w22 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w23 = new global::Gtk.HBox (); - w23.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w24 = new global::Gtk.Image (); - w24.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-back", global::Gtk.IconSize.Menu); - w23.Add (w24); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w26 = new global::Gtk.Label (); - w26.LabelProp = "Tout Enlever"; - w26.UseUnderline = true; - w23.Add (w26); - w22.Add (w23); - this.supToutBut.Add (w22); - this.vbuttonbox1.Add (this.supToutBut); - global::Gtk.ButtonBox.ButtonBoxChild w30 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1 [this.supToutBut])); - w30.Position = 2; - w30.Expand = false; - w30.Fill = false; - // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild - this.button90 = new global::Gtk.Button (); + this.supToutBut.Label = "Tout Enlever"; + global::Gtk.Image w8 = new global::Gtk.Image(); + w8.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-go-back", global::Gtk.IconSize.Menu); + this.supToutBut.Image = w8; + this.vbuttonbox.Add(this.supToutBut); + global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.supToutBut])); + w9.Position = 2; + w9.Expand = false; + w9.Fill = false; + // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild + this.button90 = new global::Gtk.Button(); this.button90.Sensitive = false; this.button90.CanFocus = true; this.button90.Name = "button90"; this.button90.UseUnderline = true; this.button90.Relief = ((global::Gtk.ReliefStyle)(2)); - this.button90.Label = ""; - this.vbuttonbox1.Add (this.button90); - global::Gtk.ButtonBox.ButtonBoxChild w31 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1 [this.button90])); - w31.Position = 3; - w31.Expand = false; - w31.Fill = false; - // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild - this.mvHautBt = new global::Gtk.Button (); + this.vbuttonbox.Add(this.button90); + global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.button90])); + w10.Position = 3; + w10.Expand = false; + w10.Fill = false; + // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild + this.mvHautBt = new global::Gtk.Button(); this.mvHautBt.CanFocus = true; this.mvHautBt.Name = "mvHautBt"; this.mvHautBt.UseUnderline = true; - // Container child mvHautBt.Gtk.Container+ContainerChild - global::Gtk.Alignment w32 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w33 = new global::Gtk.HBox (); - w33.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w34 = new global::Gtk.Image (); - w34.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-up", global::Gtk.IconSize.Menu); - w33.Add (w34); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w36 = new global::Gtk.Label (); - w36.LabelProp = "Monter"; - w36.UseUnderline = true; - w33.Add (w36); - w32.Add (w33); - this.mvHautBt.Add (w32); - this.vbuttonbox1.Add (this.mvHautBt); - global::Gtk.ButtonBox.ButtonBoxChild w40 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1 [this.mvHautBt])); - w40.Position = 4; - w40.Expand = false; - w40.Fill = false; - // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild - this.mvBasBt = new global::Gtk.Button (); + this.mvHautBt.Label = "Monter"; + global::Gtk.Image w11 = new global::Gtk.Image(); + w11.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-go-up", global::Gtk.IconSize.Menu); + this.mvHautBt.Image = w11; + this.vbuttonbox.Add(this.mvHautBt); + global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.mvHautBt])); + w12.Position = 4; + w12.Expand = false; + w12.Fill = false; + // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild + this.mvBasBt = new global::Gtk.Button(); this.mvBasBt.CanFocus = true; this.mvBasBt.Name = "mvBasBt"; this.mvBasBt.UseUnderline = true; - // Container child mvBasBt.Gtk.Container+ContainerChild - global::Gtk.Alignment w41 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w42 = new global::Gtk.HBox (); - w42.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w43 = new global::Gtk.Image (); - w43.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-go-down", global::Gtk.IconSize.Menu); - w42.Add (w43); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w45 = new global::Gtk.Label (); - w45.LabelProp = "Descendre"; - w45.UseUnderline = true; - w42.Add (w45); - w41.Add (w42); - this.mvBasBt.Add (w41); - this.vbuttonbox1.Add (this.mvBasBt); - global::Gtk.ButtonBox.ButtonBoxChild w49 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1 [this.mvBasBt])); - w49.Position = 5; - w49.Expand = false; - w49.Fill = false; - this.hbox1.Add (this.vbuttonbox1); - global::Gtk.Box.BoxChild w50 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbuttonbox1])); - w50.Position = 1; - w50.Expand = false; - w50.Fill = false; + this.mvBasBt.Label = "Descendre"; + global::Gtk.Image w13 = new global::Gtk.Image(); + w13.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-go-down", global::Gtk.IconSize.Menu); + this.mvBasBt.Image = w13; + this.vbuttonbox.Add(this.mvBasBt); + global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.mvBasBt])); + w14.Position = 5; + w14.Expand = false; + w14.Fill = false; + this.hbox1.Add(this.vbuttonbox); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vbuttonbox])); + w15.Position = 1; + w15.Expand = false; + w15.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild - this.listeSelCircuits = new global::Gtk.TreeView (); + this.listeSelCircuits = new global::Gtk.TreeView(); this.listeSelCircuits.CanFocus = true; this.listeSelCircuits.Name = "listeSelCircuits"; - this.GtkScrolledWindow1.Add (this.listeSelCircuits); - this.hbox1.Add (this.GtkScrolledWindow1); - global::Gtk.Box.BoxChild w52 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow1])); - w52.Position = 2; - w1.Add (this.hbox1); - global::Gtk.Box.BoxChild w53 = ((global::Gtk.Box.BoxChild)(w1 [this.hbox1])); - w53.Position = 0; + this.GtkScrolledWindow1.Add(this.listeSelCircuits); + this.hbox1.Add(this.GtkScrolledWindow1); + global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow1])); + w17.Position = 2; + w1.Add(this.hbox1); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(w1[this.hbox1])); + w18.Position = 0; // Internal child DMX2.SelSeqCircuits.ActionArea - global::Gtk.HButtonBox w54 = this.ActionArea; - w54.Name = "dialog1_ActionArea"; - w54.Spacing = 10; - w54.BorderWidth = ((uint)(5)); - w54.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + global::Gtk.HButtonBox w19 = this.ActionArea; + w19.Name = "dialog1_ActionArea"; + w19.Spacing = 10; + w19.BorderWidth = ((uint)(5)); + w19.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonCancel = new global::Gtk.Button (); + this.buttonCancel = new global::Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; - this.AddActionWidget (this.buttonCancel, -6); - global::Gtk.ButtonBox.ButtonBoxChild w55 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w54 [this.buttonCancel])); - w55.Expand = false; - w55.Fill = false; + this.AddActionWidget(this.buttonCancel, -6); + global::Gtk.ButtonBox.ButtonBoxChild w20 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w19[this.buttonCancel])); + w20.Expand = false; + w20.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.buttonOk = new global::Gtk.Button (); + this.buttonOk = new global::Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; - this.AddActionWidget (this.buttonOk, -5); - global::Gtk.ButtonBox.ButtonBoxChild w56 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w54 [this.buttonOk])); - w56.Position = 1; - w56.Expand = false; - w56.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll (); + this.AddActionWidget(this.buttonOk, -5); + global::Gtk.ButtonBox.ButtonBoxChild w21 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w19[this.buttonOk])); + w21.Position = 1; + w21.Expand = false; + w21.Fill = false; + if ((this.Child != null)) + { + this.Child.ShowAll(); } this.DefaultWidth = 740; this.DefaultHeight = 587; - this.Hide (); - this.ajtBut.Clicked += new global::System.EventHandler (this.OnAjtButClicked); - this.supBt.Clicked += new global::System.EventHandler (this.OnSupBtClicked); - this.supToutBut.Clicked += new global::System.EventHandler (this.OnSupToutButClicked); - this.mvHautBt.Clicked += new global::System.EventHandler (this.OnMvHautBtClicked); - this.mvBasBt.Clicked += new global::System.EventHandler (this.OnMvBasBtClicked); + this.Hide(); + this.ajtBut.Clicked += new global::System.EventHandler(this.OnAjtButClicked); + this.supBt.Clicked += new global::System.EventHandler(this.OnSupBtClicked); + this.supToutBut.Clicked += new global::System.EventHandler(this.OnSupToutButClicked); + this.mvHautBt.Clicked += new global::System.EventHandler(this.OnMvHautBtClicked); + this.mvBasBt.Clicked += new global::System.EventHandler(this.OnMvBasBtClicked); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.SeqLinUI.cs b/DMX-2.0/gtk-gui/DMX2.SeqLinUI.cs index 7a54214..6c1bbe9 100644 --- a/DMX-2.0/gtk-gui/DMX2.SeqLinUI.cs +++ b/DMX-2.0/gtk-gui/DMX2.SeqLinUI.cs @@ -5,116 +5,149 @@ namespace DMX2 public partial class SeqLinUI { private global::Gtk.UIManager UIManager; + private global::Gtk.Action goBackAction; + private global::Gtk.Action goForwardAction; + private global::Gtk.Action applyAction; + private global::Gtk.Action mediaPauseAction; + private global::Gtk.Action mediaNextAction; + private global::Gtk.Action saveAction; + private global::Gtk.Action saveAfterAction; + private global::Gtk.Action deleteAction; + private global::Gtk.Action moveUpAction; + private global::Gtk.Action moveDownAction; + private global::Gtk.Action circuitsAction; + private global::Gtk.Action closeAction; + private global::Gtk.ToggleAction pourcentBtn; + private global::Gtk.Frame frame1; + private global::Gtk.Alignment GtkAlignment; + private global::Gtk.VBox vbox2; + private global::Gtk.HBox hbox1; + private global::Gtk.VBox vbox4; + private global::Gtk.EventBox evBBox; + private global::Gtk.HBox hbox2; + private global::Gtk.Label posLabel; + private global::Gtk.Label timeLabel; + private global::Gtk.HScale seqMasterScale; + private global::Gtk.ProgressBar pbTrans; + private global::Gtk.ProgressBar pbDuree; + private global::Gtk.Toolbar toolbar1; + private global::Gtk.Toolbar toolbar2; + private global::Gtk.ScrolledWindow GtkScrolledWindow; + private global::Gtk.TreeView effetsListe; + private global::Gtk.Toolbar toolbar3; + private global::Gtk.ScrolledWindow GtkScrolledWindow1; + private global::Gtk.Fixed zoneWid; + private global::Gtk.Label titreLabel; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.SeqLinUI - Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this); - this.UIManager = new global::Gtk.UIManager (); - global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default"); - this.goBackAction = new global::Gtk.Action ("goBackAction", null, null, "gtk-go-back"); - w2.Add (this.goBackAction, null); - this.goForwardAction = new global::Gtk.Action ("goForwardAction", null, null, "gtk-go-forward"); - w2.Add (this.goForwardAction, null); - this.applyAction = new global::Gtk.Action ("applyAction", null, "Ecrase l'effet selectionné.", "gtk-apply"); - w2.Add (this.applyAction, null); - this.mediaPauseAction = new global::Gtk.Action ("mediaPauseAction", null, "Pause", "gtk-media-pause"); - w2.Add (this.mediaPauseAction, null); - this.mediaNextAction = new global::Gtk.Action ("mediaNextAction", null, "Fin de transition", "gtk-media-next"); - w2.Add (this.mediaNextAction, null); - this.saveAction = new global::Gtk.Action ("saveAction", null, "Enregistre l'effet à la fin.", "gtk-save"); - w2.Add (this.saveAction, null); - this.saveAfterAction = new global::Gtk.Action ("saveAfterAction", null, "Insère un effet sous celui selectionné.", "gtk-save-as"); - w2.Add (this.saveAfterAction, null); - this.deleteAction = new global::Gtk.Action ("deleteAction", null, "Supprime l'effet selectionné.", "gtk-delete"); - w2.Add (this.deleteAction, null); - this.moveUpAction = new global::Gtk.Action ("moveUpAction", null, "", "gtk-go-up"); - w2.Add (this.moveUpAction, null); - this.moveDownAction = new global::Gtk.Action ("moveDownAction", null, null, "gtk-go-down"); - w2.Add (this.moveDownAction, null); - this.circuitsAction = new global::Gtk.Action ("circuitsAction", null, "Association des circuits\nau sequenceur", "circuits"); - w2.Add (this.circuitsAction, null); - this.closeAction = new global::Gtk.Action ("closeAction", null, null, "gtk-close"); - w2.Add (this.closeAction, null); - this.pourcentBtn = new global::Gtk.ToggleAction ("pourcentBtn", null, null, "gtk-zoom-100"); - w2.Add (this.pourcentBtn, null); - this.UIManager.InsertActionGroup (w2, 0); + Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach(this); + this.UIManager = new global::Gtk.UIManager(); + global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup("Default"); + this.goBackAction = new global::Gtk.Action("goBackAction", null, null, "gtk-go-back"); + w2.Add(this.goBackAction, null); + this.goForwardAction = new global::Gtk.Action("goForwardAction", null, null, "gtk-go-forward"); + w2.Add(this.goForwardAction, null); + this.applyAction = new global::Gtk.Action("applyAction", null, "Ecrase l\'effet selectionné.", "gtk-apply"); + w2.Add(this.applyAction, null); + this.mediaPauseAction = new global::Gtk.Action("mediaPauseAction", null, "Pause", "gtk-media-pause"); + w2.Add(this.mediaPauseAction, null); + this.mediaNextAction = new global::Gtk.Action("mediaNextAction", null, "Fin de transition", "gtk-media-next"); + w2.Add(this.mediaNextAction, null); + this.saveAction = new global::Gtk.Action("saveAction", null, "Enregistre l\'effet à la fin.", "gtk-save"); + w2.Add(this.saveAction, null); + this.saveAfterAction = new global::Gtk.Action("saveAfterAction", null, "Insère un effet sous celui selectionné.", "gtk-save-as"); + w2.Add(this.saveAfterAction, null); + this.deleteAction = new global::Gtk.Action("deleteAction", null, "Supprime l\'effet selectionné.", "gtk-delete"); + w2.Add(this.deleteAction, null); + this.moveUpAction = new global::Gtk.Action("moveUpAction", null, "", "gtk-go-up"); + w2.Add(this.moveUpAction, null); + this.moveDownAction = new global::Gtk.Action("moveDownAction", null, null, "gtk-go-down"); + w2.Add(this.moveDownAction, null); + this.circuitsAction = new global::Gtk.Action("circuitsAction", null, "Association des circuits\nau sequenceur", "circuits"); + w2.Add(this.circuitsAction, null); + this.closeAction = new global::Gtk.Action("closeAction", null, null, "gtk-close"); + w2.Add(this.closeAction, null); + this.pourcentBtn = new global::Gtk.ToggleAction("pourcentBtn", null, null, "gtk-zoom-100"); + w2.Add(this.pourcentBtn, null); + this.UIManager.InsertActionGroup(w2, 0); this.Name = "DMX2.SeqLinUI"; // Container child DMX2.SeqLinUI.Gtk.Container+ContainerChild - this.frame1 = new global::Gtk.Frame (); + this.frame1 = new global::Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child frame1.Gtk.Container+ContainerChild - this.GtkAlignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F); + this.GtkAlignment = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.vbox4 = new global::Gtk.VBox (); + this.vbox4 = new global::Gtk.VBox(); this.vbox4.Name = "vbox4"; // Container child vbox4.Gtk.Box+BoxChild - this.evBBox = new global::Gtk.EventBox (); + this.evBBox = new global::Gtk.EventBox(); this.evBBox.Name = "evBBox"; // Container child evBBox.Gtk.Container+ContainerChild - this.hbox2 = new global::Gtk.HBox (); + this.hbox2 = new global::Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild - this.posLabel = new global::Gtk.Label (); + this.posLabel = new global::Gtk.Label(); this.posLabel.HeightRequest = 33; this.posLabel.Name = "posLabel"; this.posLabel.Xpad = 15; this.posLabel.Xalign = 0F; this.posLabel.LabelProp = "n°0"; this.posLabel.UseMarkup = true; - this.hbox2.Add (this.posLabel); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.posLabel])); + this.hbox2.Add(this.posLabel); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.posLabel])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.timeLabel = new global::Gtk.Label (); + this.timeLabel = new global::Gtk.Label(); this.timeLabel.HeightRequest = 33; this.timeLabel.Name = "timeLabel"; this.timeLabel.Xpad = 15; @@ -122,157 +155,158 @@ namespace DMX2 this.timeLabel.LabelProp = "0.00"; this.timeLabel.UseMarkup = true; this.timeLabel.Justify = ((global::Gtk.Justification)(1)); - this.hbox2.Add (this.timeLabel); - global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.timeLabel])); + this.hbox2.Add(this.timeLabel); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.timeLabel])); w4.PackType = ((global::Gtk.PackType)(1)); w4.Position = 1; w4.Expand = false; w4.Fill = false; - this.evBBox.Add (this.hbox2); - this.vbox4.Add (this.evBBox); - global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.evBBox])); + this.evBBox.Add(this.hbox2); + this.vbox4.Add(this.evBBox); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.evBBox])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child vbox4.Gtk.Box+BoxChild - this.seqMasterScale = new global::Gtk.HScale (null); + this.seqMasterScale = new global::Gtk.HScale(null); this.seqMasterScale.CanFocus = true; this.seqMasterScale.Name = "seqMasterScale"; - this.seqMasterScale.Adjustment.Upper = 100; - this.seqMasterScale.Adjustment.PageIncrement = 10; - this.seqMasterScale.Adjustment.StepIncrement = 1; - this.seqMasterScale.Adjustment.Value = 100; + this.seqMasterScale.Adjustment.Upper = 100D; + this.seqMasterScale.Adjustment.PageIncrement = 10D; + this.seqMasterScale.Adjustment.StepIncrement = 1D; + this.seqMasterScale.Adjustment.Value = 100D; this.seqMasterScale.DrawValue = true; this.seqMasterScale.Digits = 0; this.seqMasterScale.ValuePos = ((global::Gtk.PositionType)(1)); - this.vbox4.Add (this.seqMasterScale); - global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.seqMasterScale])); + this.vbox4.Add(this.seqMasterScale); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.seqMasterScale])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox4.Gtk.Box+BoxChild - this.pbTrans = new global::Gtk.ProgressBar (); + this.pbTrans = new global::Gtk.ProgressBar(); this.pbTrans.HeightRequest = 15; this.pbTrans.Name = "pbTrans"; - this.vbox4.Add (this.pbTrans); - global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.pbTrans])); + this.vbox4.Add(this.pbTrans); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.pbTrans])); w8.Position = 2; w8.Expand = false; w8.Fill = false; // Container child vbox4.Gtk.Box+BoxChild - this.pbDuree = new global::Gtk.ProgressBar (); + this.pbDuree = new global::Gtk.ProgressBar(); this.pbDuree.HeightRequest = 15; this.pbDuree.Name = "pbDuree"; - this.vbox4.Add (this.pbDuree); - global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.pbDuree])); + this.vbox4.Add(this.pbDuree); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.pbDuree])); w9.Position = 3; w9.Expand = false; w9.Fill = false; // Container child vbox4.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (""); - this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1"))); + this.UIManager.AddUiFromString(@""); + this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((global::Gtk.IconSize)(2)); - this.vbox4.Add (this.toolbar1); - global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.toolbar1])); + this.vbox4.Add(this.toolbar1); + global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.toolbar1])); w10.Position = 4; w10.Expand = false; w10.Fill = false; // Container child vbox4.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (""); - this.toolbar2 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar2"))); + this.UIManager.AddUiFromString(@""); + this.toolbar2 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar2"))); this.toolbar2.Name = "toolbar2"; this.toolbar2.ShowArrow = false; this.toolbar2.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar2.IconSize = ((global::Gtk.IconSize)(2)); - this.vbox4.Add (this.toolbar2); - global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.toolbar2])); + this.vbox4.Add(this.toolbar2); + global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox4[this.toolbar2])); w11.Position = 5; w11.Expand = false; w11.Fill = false; - this.hbox1.Add (this.vbox4); - global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox4])); + this.hbox1.Add(this.vbox4); + global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vbox4])); w12.Position = 0; w12.Expand = false; w12.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.HscrollbarPolicy = ((global::Gtk.PolicyType)(2)); this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild - this.effetsListe = new global::Gtk.TreeView (); + this.effetsListe = new global::Gtk.TreeView(); this.effetsListe.CanFocus = true; this.effetsListe.Name = "effetsListe"; this.effetsListe.RulesHint = true; - this.GtkScrolledWindow.Add (this.effetsListe); - this.hbox1.Add (this.GtkScrolledWindow); - global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow])); + this.GtkScrolledWindow.Add(this.effetsListe); + this.hbox1.Add(this.GtkScrolledWindow); + global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); w14.Position = 1; // Container child hbox1.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (""); - this.toolbar3 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar3"))); + this.UIManager.AddUiFromString(@""); + this.toolbar3 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar3"))); this.toolbar3.Name = "toolbar3"; this.toolbar3.Orientation = ((global::Gtk.Orientation)(1)); this.toolbar3.ShowArrow = false; this.toolbar3.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar3.IconSize = ((global::Gtk.IconSize)(2)); - this.hbox1.Add (this.toolbar3); - global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.toolbar3])); + this.hbox1.Add(this.toolbar3); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.toolbar3])); w15.Position = 2; w15.Expand = false; w15.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w16.Position = 0; w16.Expand = false; w16.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild - global::Gtk.Viewport w17 = new global::Gtk.Viewport (); + global::Gtk.Viewport w17 = new global::Gtk.Viewport(); w17.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild - this.zoneWid = new global::Gtk.Fixed (); + this.zoneWid = new global::Gtk.Fixed(); this.zoneWid.HeightRequest = 0; this.zoneWid.Name = "zoneWid"; this.zoneWid.HasWindow = false; - w17.Add (this.zoneWid); - this.GtkScrolledWindow1.Add (w17); - this.vbox2.Add (this.GtkScrolledWindow1); - global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.GtkScrolledWindow1])); + w17.Add(this.zoneWid); + this.GtkScrolledWindow1.Add(w17); + this.vbox2.Add(this.GtkScrolledWindow1); + global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w20.Position = 1; - this.GtkAlignment.Add (this.vbox2); - this.frame1.Add (this.GtkAlignment); - this.titreLabel = new global::Gtk.Label (); + this.GtkAlignment.Add(this.vbox2); + this.frame1.Add(this.GtkAlignment); + this.titreLabel = new global::Gtk.Label(); this.titreLabel.Name = "titreLabel"; this.titreLabel.LabelProp = "Sequenceur Lineaire"; this.titreLabel.UseMarkup = true; this.frame1.LabelWidget = this.titreLabel; - this.Add (this.frame1); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.frame1); + if ((this.Child != null)) + { + this.Child.ShowAll(); } - w1.SetUiManager (UIManager); - this.Show (); - this.goBackAction.Activated += new global::System.EventHandler (this.OnGoBackActionActivated); - this.goForwardAction.Activated += new global::System.EventHandler (this.OnGoForwardActionActivated); - this.applyAction.Activated += new global::System.EventHandler (this.OnApplyActionActivated); - this.mediaPauseAction.Activated += new global::System.EventHandler (this.OnMediaPauseActionActivated); - this.mediaNextAction.Activated += new global::System.EventHandler (this.OnMediaNextActionActivated); - this.saveAction.Activated += new global::System.EventHandler (this.OnSaveActionActivated); - this.saveAfterAction.Activated += new global::System.EventHandler (this.OnSaveAfterActionActivated); - this.deleteAction.Activated += new global::System.EventHandler (this.OnDeleteActionActivated); - this.moveUpAction.Activated += new global::System.EventHandler (this.OnMoveUpActionActivated); - this.moveDownAction.Activated += new global::System.EventHandler (this.OnMoveDownActionActivated); - this.circuitsAction.Activated += new global::System.EventHandler (this.OnCircuitsActionActivated); - this.closeAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated); - this.pourcentBtn.Toggled += new global::System.EventHandler (this.OnPourcentBtnToggled); - this.seqMasterScale.ValueChanged += new global::System.EventHandler (this.OnSeqMasterScaleValueChanged); - this.zoneWid.SizeAllocated += new global::Gtk.SizeAllocatedHandler (this.OnZoneWidSizeAllocated); + w1.SetUiManager(UIManager); + this.Show(); + this.goBackAction.Activated += new global::System.EventHandler(this.OnGoBackActionActivated); + this.goForwardAction.Activated += new global::System.EventHandler(this.OnGoForwardActionActivated); + this.applyAction.Activated += new global::System.EventHandler(this.OnApplyActionActivated); + this.mediaPauseAction.Activated += new global::System.EventHandler(this.OnMediaPauseActionActivated); + this.mediaNextAction.Activated += new global::System.EventHandler(this.OnMediaNextActionActivated); + this.saveAction.Activated += new global::System.EventHandler(this.OnSaveActionActivated); + this.saveAfterAction.Activated += new global::System.EventHandler(this.OnSaveAfterActionActivated); + this.deleteAction.Activated += new global::System.EventHandler(this.OnDeleteActionActivated); + this.moveUpAction.Activated += new global::System.EventHandler(this.OnMoveUpActionActivated); + this.moveDownAction.Activated += new global::System.EventHandler(this.OnMoveDownActionActivated); + this.circuitsAction.Activated += new global::System.EventHandler(this.OnCircuitsActionActivated); + this.closeAction.Activated += new global::System.EventHandler(this.OnCloseActionActivated); + this.pourcentBtn.Toggled += new global::System.EventHandler(this.OnPourcentBtnToggled); + this.seqMasterScale.ValueChanged += new global::System.EventHandler(this.OnSeqMasterScaleValueChanged); + this.zoneWid.SizeAllocated += new global::Gtk.SizeAllocatedHandler(this.OnZoneWidSizeAllocated); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.SeqMacroUI.cs b/DMX-2.0/gtk-gui/DMX2.SeqMacroUI.cs index eaf944d..2aa7453 100644 --- a/DMX-2.0/gtk-gui/DMX2.SeqMacroUI.cs +++ b/DMX-2.0/gtk-gui/DMX2.SeqMacroUI.cs @@ -5,162 +5,162 @@ namespace DMX2 public partial class SeqMacroUI { private global::Gtk.UIManager UIManager; - + private global::Gtk.ToggleAction closeAction; - + private global::Gtk.Action circuitsAction; - + private global::Gtk.Action goForwardAction; - + private global::Gtk.Action goBackAction; - + private global::Gtk.Action mediaPauseAction; - + private global::Gtk.Action mediaNextAction; - + private global::Gtk.Action btnAjoutLigne; - + private global::Gtk.Action btnRetireligne; - + private global::Gtk.Frame frame1; - + private global::Gtk.Alignment GtkAlignment; - + private global::Gtk.Alignment alignment1; - + private global::Gtk.VBox vbox2; - + private global::Gtk.HBox hbox1; - + private global::Gtk.VBox vbox3; - + private global::Gtk.EventBox evBBox; - + private global::Gtk.HBox hbox2; - + private global::Gtk.Label posLabel; - + private global::Gtk.Label actLabel; - + private global::Gtk.Label timeLabel; - + private global::Gtk.HScale seqMasterScale; - + private global::Gtk.HBox hbox3; - + private global::Gtk.Entry txtCommand; - + private global::Gtk.Button btnCommand; - + private global::Gtk.Toolbar toolbar; - + private global::Gtk.Toolbar toolbar1; - + private global::Gtk.ScrolledWindow scrolledwindow1; - + private global::Gtk.TreeView effetsListe; - + private global::Gtk.Label titreLabel; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.SeqMacroUI - Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this); - this.UIManager = new global::Gtk.UIManager (); - global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default"); - this.closeAction = new global::Gtk.ToggleAction ("closeAction", " ", null, "gtk-close"); + Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach(this); + this.UIManager = new global::Gtk.UIManager(); + global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup("Default"); + this.closeAction = new global::Gtk.ToggleAction("closeAction", " ", null, "gtk-close"); this.closeAction.ShortLabel = " "; - w2.Add (this.closeAction, null); - this.circuitsAction = new global::Gtk.Action ("circuitsAction", null, "Association des circuits\nau sequenceur", "circuits"); - w2.Add (this.circuitsAction, null); - this.goForwardAction = new global::Gtk.Action ("goForwardAction", null, null, "gtk-go-forward"); - w2.Add (this.goForwardAction, null); - this.goBackAction = new global::Gtk.Action ("goBackAction", null, null, "gtk-go-back"); - w2.Add (this.goBackAction, null); - this.mediaPauseAction = new global::Gtk.Action ("mediaPauseAction", null, null, "gtk-media-pause"); - w2.Add (this.mediaPauseAction, null); - this.mediaNextAction = new global::Gtk.Action ("mediaNextAction", null, null, "gtk-media-next"); - w2.Add (this.mediaNextAction, null); - this.btnAjoutLigne = new global::Gtk.Action ("btnAjoutLigne", null, null, "gtk-add"); - w2.Add (this.btnAjoutLigne, null); - this.btnRetireligne = new global::Gtk.Action ("btnRetireligne", null, null, "gtk-remove"); - w2.Add (this.btnRetireligne, null); - this.UIManager.InsertActionGroup (w2, 0); + w2.Add(this.closeAction, null); + this.circuitsAction = new global::Gtk.Action("circuitsAction", null, "Association des circuits\nau sequenceur", "circuits"); + w2.Add(this.circuitsAction, null); + this.goForwardAction = new global::Gtk.Action("goForwardAction", null, null, "gtk-go-forward"); + w2.Add(this.goForwardAction, null); + this.goBackAction = new global::Gtk.Action("goBackAction", null, null, "gtk-go-back"); + w2.Add(this.goBackAction, null); + this.mediaPauseAction = new global::Gtk.Action("mediaPauseAction", null, null, "gtk-media-pause"); + w2.Add(this.mediaPauseAction, null); + this.mediaNextAction = new global::Gtk.Action("mediaNextAction", null, null, "gtk-media-next"); + w2.Add(this.mediaNextAction, null); + this.btnAjoutLigne = new global::Gtk.Action("btnAjoutLigne", null, null, "gtk-add"); + w2.Add(this.btnAjoutLigne, null); + this.btnRetireligne = new global::Gtk.Action("btnRetireligne", null, null, "gtk-remove"); + w2.Add(this.btnRetireligne, null); + this.UIManager.InsertActionGroup(w2, 0); this.Name = "DMX2.SeqMacroUI"; // Container child DMX2.SeqMacroUI.Gtk.Container+ContainerChild - this.frame1 = new global::Gtk.Frame (); + this.frame1 = new global::Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child frame1.Gtk.Container+ContainerChild - this.GtkAlignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F); + this.GtkAlignment = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild - this.alignment1 = new global::Gtk.Alignment (0.5F, 0.5F, 1F, 1F); + this.alignment1 = new global::Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; // Container child alignment1.Gtk.Container+ContainerChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.vbox3 = new global::Gtk.VBox (); + this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; // Container child vbox3.Gtk.Box+BoxChild - this.evBBox = new global::Gtk.EventBox (); + this.evBBox = new global::Gtk.EventBox(); this.evBBox.Name = "evBBox"; // Container child evBBox.Gtk.Container+ContainerChild - this.hbox2 = new global::Gtk.HBox (); + this.hbox2 = new global::Gtk.HBox(); this.hbox2.WidthRequest = 300; this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild - this.posLabel = new global::Gtk.Label (); + this.posLabel = new global::Gtk.Label(); this.posLabel.HeightRequest = 33; this.posLabel.Name = "posLabel"; this.posLabel.Xpad = 15; this.posLabel.Xalign = 0F; this.posLabel.LabelProp = "n° 0"; this.posLabel.UseMarkup = true; - this.hbox2.Add (this.posLabel); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.posLabel])); + this.hbox2.Add(this.posLabel); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.posLabel])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.actLabel = new global::Gtk.Label (); + this.actLabel = new global::Gtk.Label(); this.actLabel.Name = "actLabel"; this.actLabel.UseMarkup = true; this.actLabel.Wrap = true; - this.hbox2.Add (this.actLabel); - global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.actLabel])); + this.hbox2.Add(this.actLabel); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.actLabel])); w4.Position = 1; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.timeLabel = new global::Gtk.Label (); + this.timeLabel = new global::Gtk.Label(); this.timeLabel.HeightRequest = 33; this.timeLabel.Name = "timeLabel"; this.timeLabel.Xpad = 15; this.timeLabel.LabelProp = "00.0"; this.timeLabel.UseMarkup = true; - this.hbox2.Add (this.timeLabel); - global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.timeLabel])); + this.hbox2.Add(this.timeLabel); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.timeLabel])); w5.PackType = ((global::Gtk.PackType)(1)); w5.Position = 2; w5.Expand = false; w5.Fill = false; - this.evBBox.Add (this.hbox2); - this.vbox3.Add (this.evBBox); - global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.evBBox])); + this.evBBox.Add(this.hbox2); + this.vbox3.Add(this.evBBox); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.evBBox])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.seqMasterScale = new global::Gtk.HScale (null); + this.seqMasterScale = new global::Gtk.HScale(null); this.seqMasterScale.CanFocus = true; this.seqMasterScale.Name = "seqMasterScale"; this.seqMasterScale.Adjustment.Upper = 100D; @@ -170,117 +170,118 @@ namespace DMX2 this.seqMasterScale.DrawValue = true; this.seqMasterScale.Digits = 0; this.seqMasterScale.ValuePos = ((global::Gtk.PositionType)(1)); - this.vbox3.Add (this.seqMasterScale); - global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.seqMasterScale])); + this.vbox3.Add(this.seqMasterScale); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.seqMasterScale])); w8.Position = 1; w8.Expand = false; w8.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.hbox3 = new global::Gtk.HBox (); + this.hbox3 = new global::Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild - this.txtCommand = new global::Gtk.Entry (); + this.txtCommand = new global::Gtk.Entry(); this.txtCommand.CanFocus = true; this.txtCommand.Name = "txtCommand"; this.txtCommand.IsEditable = true; this.txtCommand.InvisibleChar = '●'; - this.hbox3.Add (this.txtCommand); - global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.txtCommand])); + this.hbox3.Add(this.txtCommand); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.txtCommand])); w9.Position = 0; // Container child hbox3.Gtk.Box+BoxChild - this.btnCommand = new global::Gtk.Button (); + this.btnCommand = new global::Gtk.Button(); this.btnCommand.CanFocus = true; this.btnCommand.Name = "btnCommand"; this.btnCommand.UseUnderline = true; this.btnCommand.Label = "Ok"; - global::Gtk.Image w10 = new global::Gtk.Image (); - w10.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-ok", global::Gtk.IconSize.Menu); + global::Gtk.Image w10 = new global::Gtk.Image(); + w10.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-ok", global::Gtk.IconSize.Menu); this.btnCommand.Image = w10; - this.hbox3.Add (this.btnCommand); - global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnCommand])); + this.hbox3.Add(this.btnCommand); + global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnCommand])); w11.Position = 1; w11.Expand = false; w11.Fill = false; - this.vbox3.Add (this.hbox3); - global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox3])); + this.vbox3.Add(this.hbox3); + global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w12.Position = 2; w12.Expand = false; w12.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (@""); - this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar"))); + this.UIManager.AddUiFromString(@""); + this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar"))); this.toolbar.Name = "toolbar"; this.toolbar.ShowArrow = false; this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar.IconSize = ((global::Gtk.IconSize)(2)); - this.vbox3.Add (this.toolbar); - global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.toolbar])); + this.vbox3.Add(this.toolbar); + global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.toolbar])); w13.Position = 3; w13.Expand = false; w13.Fill = false; - this.hbox1.Add (this.vbox3); - global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox3])); + this.hbox1.Add(this.vbox3); + global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vbox3])); w14.Position = 0; // Container child hbox1.Gtk.Box+BoxChild - this.UIManager.AddUiFromString ("<" + - "toolitem name=\'circuitsAction\' action=\'circuitsAction\'/>"); - this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1"))); + this.UIManager.AddUiFromString("<" + + "toolitem name=\'circuitsAction\' action=\'circuitsAction\'/>"); + this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.Orientation = ((global::Gtk.Orientation)(1)); this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((global::Gtk.IconSize)(2)); - this.hbox1.Add (this.toolbar1); - global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.toolbar1])); + this.hbox1.Add(this.toolbar1); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.toolbar1])); w15.PackType = ((global::Gtk.PackType)(1)); w15.Position = 1; w15.Expand = false; w15.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w16.Position = 0; w16.Expand = false; w16.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.scrolledwindow1 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow1 = new global::Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild - this.effetsListe = new global::Gtk.TreeView (); + this.effetsListe = new global::Gtk.TreeView(); this.effetsListe.CanFocus = true; this.effetsListe.Name = "effetsListe"; this.effetsListe.RulesHint = true; - this.scrolledwindow1.Add (this.effetsListe); - this.vbox2.Add (this.scrolledwindow1); - global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.scrolledwindow1])); + this.scrolledwindow1.Add(this.effetsListe); + this.vbox2.Add(this.scrolledwindow1); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1])); w18.Position = 1; - this.alignment1.Add (this.vbox2); - this.GtkAlignment.Add (this.alignment1); - this.frame1.Add (this.GtkAlignment); - this.titreLabel = new global::Gtk.Label (); + this.alignment1.Add(this.vbox2); + this.GtkAlignment.Add(this.alignment1); + this.frame1.Add(this.GtkAlignment); + this.titreLabel = new global::Gtk.Label(); this.titreLabel.Name = "titreLabel"; this.titreLabel.LabelProp = "Séquenceur Macro"; this.titreLabel.UseMarkup = true; this.frame1.LabelWidget = this.titreLabel; - this.Add (this.frame1); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.frame1); + if ((this.Child != null)) + { + this.Child.ShowAll(); } - w1.SetUiManager (UIManager); - this.Hide (); - this.closeAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated); - this.circuitsAction.Activated += new global::System.EventHandler (this.OnCircuitsActionActivated); - this.goForwardAction.Activated += new global::System.EventHandler (this.OnGoForwardActionActivated); - this.goBackAction.Activated += new global::System.EventHandler (this.OnGoBackActionActivated); - this.mediaPauseAction.Activated += new global::System.EventHandler (this.OnMediaPauseActionActivated); - this.btnAjoutLigne.Activated += new global::System.EventHandler (this.OnBtnAjoutLigneActivated); - this.btnRetireligne.Activated += new global::System.EventHandler (this.OnRemoveLigneActivated); - this.hbox2.SizeAllocated += new global::Gtk.SizeAllocatedHandler (this.OnHbox2SizeAllocated); - this.seqMasterScale.ValueChanged += new global::System.EventHandler (this.OnSeqMasterScaleValueChanged); - this.btnCommand.Clicked += new global::System.EventHandler (this.OnBtnCommandClicked); - this.effetsListe.CursorChanged += new global::System.EventHandler (this.OnEffetsListeCursorChanged); + w1.SetUiManager(UIManager); + this.Hide(); + this.closeAction.Activated += new global::System.EventHandler(this.OnCloseActionActivated); + this.circuitsAction.Activated += new global::System.EventHandler(this.OnCircuitsActionActivated); + this.goForwardAction.Activated += new global::System.EventHandler(this.OnGoForwardActionActivated); + this.goBackAction.Activated += new global::System.EventHandler(this.OnGoBackActionActivated); + this.mediaPauseAction.Activated += new global::System.EventHandler(this.OnMediaPauseActionActivated); + this.btnAjoutLigne.Activated += new global::System.EventHandler(this.OnBtnAjoutLigneActivated); + this.btnRetireligne.Activated += new global::System.EventHandler(this.OnRemoveLigneActivated); + this.hbox2.SizeAllocated += new global::Gtk.SizeAllocatedHandler(this.OnHbox2SizeAllocated); + this.seqMasterScale.ValueChanged += new global::System.EventHandler(this.OnSeqMasterScaleValueChanged); + this.btnCommand.Clicked += new global::System.EventHandler(this.OnBtnCommandClicked); + this.effetsListe.CursorChanged += new global::System.EventHandler(this.OnEffetsListeCursorChanged); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.SeqMidiUI.cs b/DMX-2.0/gtk-gui/DMX2.SeqMidiUI.cs index a1f872f..dd8be9c 100644 --- a/DMX-2.0/gtk-gui/DMX2.SeqMidiUI.cs +++ b/DMX-2.0/gtk-gui/DMX2.SeqMidiUI.cs @@ -5,237 +5,238 @@ namespace DMX2 public partial class SeqMidiUI { private global::Gtk.UIManager UIManager; - + private global::Gtk.ToggleAction closeAction; - + private global::Gtk.Action goForwardAction; - + private global::Gtk.Action goBackAction; - + private global::Gtk.Action mediaPauseAction; - + private global::Gtk.Action mediaNextAction; - + private global::Gtk.Action btnAjoutLigne; - + private global::Gtk.Action btnRetireligne; - + private global::Gtk.Action Action; - + private global::Gtk.Frame frame1; - + private global::Gtk.Alignment GtkAlignment; - + private global::Gtk.Alignment alignment1; - + private global::Gtk.VBox vbox2; - + private global::Gtk.HBox hbox1; - + private global::Gtk.VBox vbox3; - + private global::Gtk.EventBox evBBox; - + private global::Gtk.HBox hbox2; - + private global::Gtk.Label posLabel; - + private global::Gtk.Label actLabel; - + private global::Gtk.Label timeLabel; - + private global::Gtk.Toolbar toolbar; - + private global::Gtk.Toolbar toolbar1; - + private global::Gtk.ScrolledWindow scrolledwindow1; - + private global::Gtk.TreeView cmdList; - + private global::Gtk.Label lblText; - + private global::Gtk.Label titreLabel; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.SeqMidiUI - Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this); - this.UIManager = new global::Gtk.UIManager (); - global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default"); - this.closeAction = new global::Gtk.ToggleAction ("closeAction", " ", null, "gtk-close"); + Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach(this); + this.UIManager = new global::Gtk.UIManager(); + global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup("Default"); + this.closeAction = new global::Gtk.ToggleAction("closeAction", " ", null, "gtk-close"); this.closeAction.ShortLabel = " "; - w2.Add (this.closeAction, null); - this.goForwardAction = new global::Gtk.Action ("goForwardAction", null, null, "gtk-go-forward"); - w2.Add (this.goForwardAction, null); - this.goBackAction = new global::Gtk.Action ("goBackAction", null, null, "gtk-go-back"); - w2.Add (this.goBackAction, null); - this.mediaPauseAction = new global::Gtk.Action ("mediaPauseAction", null, null, "gtk-media-pause"); - w2.Add (this.mediaPauseAction, null); - this.mediaNextAction = new global::Gtk.Action ("mediaNextAction", null, null, "gtk-media-next"); - w2.Add (this.mediaNextAction, null); - this.btnAjoutLigne = new global::Gtk.Action ("btnAjoutLigne", null, null, "gtk-add"); - w2.Add (this.btnAjoutLigne, null); - this.btnRetireligne = new global::Gtk.Action ("btnRetireligne", null, null, "gtk-remove"); - w2.Add (this.btnRetireligne, null); - this.Action = new global::Gtk.Action ("Action", null, null, null); - w2.Add (this.Action, null); - this.UIManager.InsertActionGroup (w2, 0); + w2.Add(this.closeAction, null); + this.goForwardAction = new global::Gtk.Action("goForwardAction", null, null, "gtk-go-forward"); + w2.Add(this.goForwardAction, null); + this.goBackAction = new global::Gtk.Action("goBackAction", null, null, "gtk-go-back"); + w2.Add(this.goBackAction, null); + this.mediaPauseAction = new global::Gtk.Action("mediaPauseAction", null, null, "gtk-media-pause"); + w2.Add(this.mediaPauseAction, null); + this.mediaNextAction = new global::Gtk.Action("mediaNextAction", null, null, "gtk-media-next"); + w2.Add(this.mediaNextAction, null); + this.btnAjoutLigne = new global::Gtk.Action("btnAjoutLigne", null, null, "gtk-add"); + w2.Add(this.btnAjoutLigne, null); + this.btnRetireligne = new global::Gtk.Action("btnRetireligne", null, null, "gtk-remove"); + w2.Add(this.btnRetireligne, null); + this.Action = new global::Gtk.Action("Action", null, null, null); + w2.Add(this.Action, null); + this.UIManager.InsertActionGroup(w2, 0); this.Name = "DMX2.SeqMidiUI"; // Container child DMX2.SeqMidiUI.Gtk.Container+ContainerChild - this.frame1 = new global::Gtk.Frame (); + this.frame1 = new global::Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child frame1.Gtk.Container+ContainerChild - this.GtkAlignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F); + this.GtkAlignment = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild - this.alignment1 = new global::Gtk.Alignment (0.5F, 0.5F, 1F, 1F); + this.alignment1 = new global::Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; // Container child alignment1.Gtk.Container+ContainerChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.vbox3 = new global::Gtk.VBox (); + this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; // Container child vbox3.Gtk.Box+BoxChild - this.evBBox = new global::Gtk.EventBox (); + this.evBBox = new global::Gtk.EventBox(); this.evBBox.Name = "evBBox"; // Container child evBBox.Gtk.Container+ContainerChild - this.hbox2 = new global::Gtk.HBox (); + this.hbox2 = new global::Gtk.HBox(); this.hbox2.WidthRequest = 300; this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild - this.posLabel = new global::Gtk.Label (); + this.posLabel = new global::Gtk.Label(); this.posLabel.HeightRequest = 33; this.posLabel.Name = "posLabel"; this.posLabel.Xpad = 15; this.posLabel.Xalign = 0F; this.posLabel.LabelProp = "n° 0"; this.posLabel.UseMarkup = true; - this.hbox2.Add (this.posLabel); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.posLabel])); + this.hbox2.Add(this.posLabel); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.posLabel])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.actLabel = new global::Gtk.Label (); + this.actLabel = new global::Gtk.Label(); this.actLabel.Name = "actLabel"; this.actLabel.UseMarkup = true; this.actLabel.Wrap = true; - this.hbox2.Add (this.actLabel); - global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.actLabel])); + this.hbox2.Add(this.actLabel); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.actLabel])); w4.Position = 1; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.timeLabel = new global::Gtk.Label (); + this.timeLabel = new global::Gtk.Label(); this.timeLabel.HeightRequest = 33; this.timeLabel.Name = "timeLabel"; this.timeLabel.Xpad = 15; this.timeLabel.LabelProp = "00.0"; this.timeLabel.UseMarkup = true; - this.hbox2.Add (this.timeLabel); - global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.timeLabel])); + this.hbox2.Add(this.timeLabel); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.timeLabel])); w5.PackType = ((global::Gtk.PackType)(1)); w5.Position = 2; w5.Expand = false; w5.Fill = false; - this.evBBox.Add (this.hbox2); - this.vbox3.Add (this.evBBox); - global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.evBBox])); + this.evBBox.Add(this.hbox2); + this.vbox3.Add(this.evBBox); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.evBBox])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (@""); - this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar"))); + this.UIManager.AddUiFromString(@""); + this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar"))); this.toolbar.Name = "toolbar"; this.toolbar.ShowArrow = false; this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar.IconSize = ((global::Gtk.IconSize)(2)); - this.vbox3.Add (this.toolbar); - global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.toolbar])); + this.vbox3.Add(this.toolbar); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.toolbar])); w8.Position = 1; w8.Expand = false; w8.Fill = false; - this.hbox1.Add (this.vbox3); - global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox3])); + this.hbox1.Add(this.vbox3); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vbox3])); w9.Position = 0; // Container child hbox1.Gtk.Box+BoxChild - this.UIManager.AddUiFromString ("<" + - "/toolbar>"); - this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1"))); + this.UIManager.AddUiFromString("<" + + "/toolbar>"); + this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.Orientation = ((global::Gtk.Orientation)(1)); this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((global::Gtk.IconSize)(2)); - this.hbox1.Add (this.toolbar1); - global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.toolbar1])); + this.hbox1.Add(this.toolbar1); + global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.toolbar1])); w10.PackType = ((global::Gtk.PackType)(1)); w10.Position = 1; w10.Expand = false; w10.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.scrolledwindow1 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow1 = new global::Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild - this.cmdList = new global::Gtk.TreeView (); + this.cmdList = new global::Gtk.TreeView(); this.cmdList.CanFocus = true; this.cmdList.Name = "cmdList"; this.cmdList.RulesHint = true; - this.scrolledwindow1.Add (this.cmdList); - this.vbox2.Add (this.scrolledwindow1); - global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.scrolledwindow1])); + this.scrolledwindow1.Add(this.cmdList); + this.vbox2.Add(this.scrolledwindow1); + global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1])); w13.Position = 1; // Container child vbox2.Gtk.Box+BoxChild - this.lblText = new global::Gtk.Label (); + this.lblText = new global::Gtk.Label(); this.lblText.Name = "lblText"; this.lblText.Xalign = 0F; this.lblText.LabelProp = "CC : Control Change (ex: CC12,100)\nPC : Program Change (ex: PC5)\nN : Note On/Off " + - "(ex: N64+127 ou N12-)\nGT : Go To (ex: GT4)\nr: loop"; + "(ex: N64+127 ou N12-)\nGT : Go To (ex: GT4)\nr: loop"; this.lblText.UseMarkup = true; - this.vbox2.Add (this.lblText); - global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.lblText])); + this.vbox2.Add(this.lblText); + global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.lblText])); w14.Position = 2; w14.Expand = false; w14.Fill = false; - this.alignment1.Add (this.vbox2); - this.GtkAlignment.Add (this.alignment1); - this.frame1.Add (this.GtkAlignment); - this.titreLabel = new global::Gtk.Label (); + this.alignment1.Add(this.vbox2); + this.GtkAlignment.Add(this.alignment1); + this.frame1.Add(this.GtkAlignment); + this.titreLabel = new global::Gtk.Label(); this.titreLabel.Name = "titreLabel"; this.titreLabel.LabelProp = "Séquenceur Midi"; this.titreLabel.UseMarkup = true; this.frame1.LabelWidget = this.titreLabel; - this.Add (this.frame1); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.frame1); + if ((this.Child != null)) + { + this.Child.ShowAll(); } - w1.SetUiManager (UIManager); - this.Hide (); - this.closeAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated); - this.goForwardAction.Activated += new global::System.EventHandler (this.OnGoForwardActionActivated); - this.goBackAction.Activated += new global::System.EventHandler (this.OnGoBackActionActivated); - this.mediaPauseAction.Activated += new global::System.EventHandler (this.OnMediaPauseActionActivated); - this.btnAjoutLigne.Activated += new global::System.EventHandler (this.OnBtnAjoutLigneActivated); - this.btnRetireligne.Activated += new global::System.EventHandler (this.OnRemoveLigneActivated); - this.hbox2.SizeAllocated += new global::Gtk.SizeAllocatedHandler (this.OnHbox2SizeAllocated); - this.cmdList.CursorChanged += new global::System.EventHandler (this.OnCmdListeCursorChanged); + w1.SetUiManager(UIManager); + this.Hide(); + this.closeAction.Activated += new global::System.EventHandler(this.OnCloseActionActivated); + this.goForwardAction.Activated += new global::System.EventHandler(this.OnGoForwardActionActivated); + this.goBackAction.Activated += new global::System.EventHandler(this.OnGoBackActionActivated); + this.mediaPauseAction.Activated += new global::System.EventHandler(this.OnMediaPauseActionActivated); + this.btnAjoutLigne.Activated += new global::System.EventHandler(this.OnBtnAjoutLigneActivated); + this.btnRetireligne.Activated += new global::System.EventHandler(this.OnRemoveLigneActivated); + this.hbox2.SizeAllocated += new global::Gtk.SizeAllocatedHandler(this.OnHbox2SizeAllocated); + this.cmdList.CursorChanged += new global::System.EventHandler(this.OnCmdListeCursorChanged); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.SeqOscUI.cs b/DMX-2.0/gtk-gui/DMX2.SeqOscUI.cs index 25e1149..0026e3c 100644 --- a/DMX-2.0/gtk-gui/DMX2.SeqOscUI.cs +++ b/DMX-2.0/gtk-gui/DMX2.SeqOscUI.cs @@ -5,227 +5,248 @@ namespace DMX2 public partial class SeqOscUI { private global::Gtk.UIManager UIManager; - + private global::Gtk.ToggleAction closeAction; - - private global::Gtk.Action circuitsAction; - + private global::Gtk.Action goForwardAction; - + private global::Gtk.Action goBackAction; - + private global::Gtk.Action mediaPauseAction; - + private global::Gtk.Action mediaNextAction; - + private global::Gtk.Action btnAjoutLigne; - + private global::Gtk.Action btnRetireligne; - + private global::Gtk.Action Action; - + private global::Gtk.Frame frame1; - + private global::Gtk.Alignment GtkAlignment; - + private global::Gtk.Alignment alignment1; - + private global::Gtk.VBox vbox2; - + private global::Gtk.HBox hbox1; - + private global::Gtk.VBox vbox3; - + private global::Gtk.EventBox evBBox; - + private global::Gtk.HBox hbox2; - + private global::Gtk.Label posLabel; - + private global::Gtk.Label actLabel; - + private global::Gtk.Label timeLabel; - + + private global::Gtk.HBox hbox3; + private global::Gtk.Toolbar toolbar; - + + private global::Gtk.Entry entryDest; + private global::Gtk.Toolbar toolbar1; - + private global::Gtk.ScrolledWindow scrolledwindow1; - + private global::Gtk.TreeView cmdList; - + private global::Gtk.Label titreLabel; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.SeqOscUI - Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this); - this.UIManager = new global::Gtk.UIManager (); - global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default"); - this.closeAction = new global::Gtk.ToggleAction ("closeAction", " ", null, "gtk-close"); + Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach(this); + this.UIManager = new global::Gtk.UIManager(); + global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup("Default"); + this.closeAction = new global::Gtk.ToggleAction("closeAction", " ", null, "gtk-close"); this.closeAction.ShortLabel = " "; - w2.Add (this.closeAction, null); - this.circuitsAction = new global::Gtk.Action ("circuitsAction", null, "Association des circuits\nau sequenceur", "circuits"); - w2.Add (this.circuitsAction, null); - this.goForwardAction = new global::Gtk.Action ("goForwardAction", null, null, "gtk-go-forward"); - w2.Add (this.goForwardAction, null); - this.goBackAction = new global::Gtk.Action ("goBackAction", null, null, "gtk-go-back"); - w2.Add (this.goBackAction, null); - this.mediaPauseAction = new global::Gtk.Action ("mediaPauseAction", null, null, "gtk-media-pause"); - w2.Add (this.mediaPauseAction, null); - this.mediaNextAction = new global::Gtk.Action ("mediaNextAction", null, null, "gtk-media-next"); - w2.Add (this.mediaNextAction, null); - this.btnAjoutLigne = new global::Gtk.Action ("btnAjoutLigne", null, null, "gtk-add"); - w2.Add (this.btnAjoutLigne, null); - this.btnRetireligne = new global::Gtk.Action ("btnRetireligne", null, null, "gtk-remove"); - w2.Add (this.btnRetireligne, null); - this.Action = new global::Gtk.Action ("Action", null, null, null); - w2.Add (this.Action, null); - this.UIManager.InsertActionGroup (w2, 0); + w2.Add(this.closeAction, null); + this.goForwardAction = new global::Gtk.Action("goForwardAction", null, null, "gtk-go-forward"); + w2.Add(this.goForwardAction, null); + this.goBackAction = new global::Gtk.Action("goBackAction", null, null, "gtk-go-back"); + w2.Add(this.goBackAction, null); + this.mediaPauseAction = new global::Gtk.Action("mediaPauseAction", null, null, "gtk-media-pause"); + w2.Add(this.mediaPauseAction, null); + this.mediaNextAction = new global::Gtk.Action("mediaNextAction", null, null, "gtk-media-next"); + w2.Add(this.mediaNextAction, null); + this.btnAjoutLigne = new global::Gtk.Action("btnAjoutLigne", null, null, "gtk-add"); + w2.Add(this.btnAjoutLigne, null); + this.btnRetireligne = new global::Gtk.Action("btnRetireligne", null, null, "gtk-remove"); + w2.Add(this.btnRetireligne, null); + this.Action = new global::Gtk.Action("Action", null, null, null); + w2.Add(this.Action, null); + this.UIManager.InsertActionGroup(w2, 0); this.Name = "DMX2.SeqOscUI"; // Container child DMX2.SeqOscUI.Gtk.Container+ContainerChild - this.frame1 = new global::Gtk.Frame (); + this.frame1 = new global::Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child frame1.Gtk.Container+ContainerChild - this.GtkAlignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F); + this.GtkAlignment = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild - this.alignment1 = new global::Gtk.Alignment (0.5F, 0.5F, 1F, 1F); + this.alignment1 = new global::Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; // Container child alignment1.Gtk.Container+ContainerChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.vbox3 = new global::Gtk.VBox (); + this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; // Container child vbox3.Gtk.Box+BoxChild - this.evBBox = new global::Gtk.EventBox (); + this.evBBox = new global::Gtk.EventBox(); this.evBBox.Name = "evBBox"; // Container child evBBox.Gtk.Container+ContainerChild - this.hbox2 = new global::Gtk.HBox (); + this.hbox2 = new global::Gtk.HBox(); this.hbox2.WidthRequest = 300; this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild - this.posLabel = new global::Gtk.Label (); + this.posLabel = new global::Gtk.Label(); this.posLabel.HeightRequest = 33; this.posLabel.Name = "posLabel"; this.posLabel.Xpad = 15; this.posLabel.Xalign = 0F; this.posLabel.LabelProp = "n° 0"; this.posLabel.UseMarkup = true; - this.hbox2.Add (this.posLabel); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.posLabel])); + this.hbox2.Add(this.posLabel); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.posLabel])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.actLabel = new global::Gtk.Label (); + this.actLabel = new global::Gtk.Label(); this.actLabel.Name = "actLabel"; this.actLabel.UseMarkup = true; this.actLabel.Wrap = true; - this.hbox2.Add (this.actLabel); - global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.actLabel])); + this.hbox2.Add(this.actLabel); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.actLabel])); w4.Position = 1; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.timeLabel = new global::Gtk.Label (); + this.timeLabel = new global::Gtk.Label(); this.timeLabel.HeightRequest = 33; this.timeLabel.Name = "timeLabel"; this.timeLabel.Xpad = 15; this.timeLabel.LabelProp = "00.0"; this.timeLabel.UseMarkup = true; - this.hbox2.Add (this.timeLabel); - global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.timeLabel])); + this.hbox2.Add(this.timeLabel); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.timeLabel])); w5.PackType = ((global::Gtk.PackType)(1)); w5.Position = 2; w5.Expand = false; w5.Fill = false; - this.evBBox.Add (this.hbox2); - this.vbox3.Add (this.evBBox); - global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.evBBox])); + this.evBBox.Add(this.hbox2); + this.vbox3.Add(this.evBBox); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.evBBox])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (@""); - this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar"))); + this.hbox3 = new global::Gtk.HBox(); + this.hbox3.Name = "hbox3"; + this.hbox3.Spacing = 6; + // Container child hbox3.Gtk.Box+BoxChild + this.UIManager.AddUiFromString(@""); + this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar"))); this.toolbar.Name = "toolbar"; this.toolbar.ShowArrow = false; this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar.IconSize = ((global::Gtk.IconSize)(2)); - this.vbox3.Add (this.toolbar); - global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.toolbar])); - w8.Position = 1; - w8.Expand = false; - w8.Fill = false; - this.hbox1.Add (this.vbox3); - global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox3])); - w9.Position = 0; + this.hbox3.Add(this.toolbar); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.toolbar])); + w8.Position = 0; + // Container child hbox3.Gtk.Box+BoxChild + this.entryDest = new global::Gtk.Entry(); + this.entryDest.WidthRequest = 220; + this.entryDest.CanFocus = true; + this.entryDest.Name = "entryDest"; + this.entryDest.IsEditable = true; + this.entryDest.InvisibleChar = '●'; + this.hbox3.Add(this.entryDest); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.entryDest])); + w9.Position = 2; + w9.Expand = false; + w9.Fill = false; + this.vbox3.Add(this.hbox3); + global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); + w10.Position = 1; + w10.Expand = false; + w10.Fill = false; + this.hbox1.Add(this.vbox3); + global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vbox3])); + w11.Position = 0; // Container child hbox1.Gtk.Box+BoxChild - this.UIManager.AddUiFromString ("<" + - "/toolbar>"); - this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1"))); + this.UIManager.AddUiFromString("<" + + "/toolbar>"); + this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.Orientation = ((global::Gtk.Orientation)(1)); this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((global::Gtk.IconSize)(2)); - this.hbox1.Add (this.toolbar1); - global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.toolbar1])); - w10.PackType = ((global::Gtk.PackType)(1)); - w10.Position = 1; - w10.Expand = false; - w10.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); - w11.Position = 0; - w11.Expand = false; - w11.Fill = false; + this.hbox1.Add(this.toolbar1); + global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.toolbar1])); + w12.PackType = ((global::Gtk.PackType)(1)); + w12.Position = 1; + w12.Expand = false; + w12.Fill = false; + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); + w13.Position = 0; + w13.Expand = false; + w13.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.scrolledwindow1 = new global::Gtk.ScrolledWindow (); + this.scrolledwindow1 = new global::Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild - this.cmdList = new global::Gtk.TreeView (); + this.cmdList = new global::Gtk.TreeView(); this.cmdList.CanFocus = true; this.cmdList.Name = "cmdList"; this.cmdList.RulesHint = true; - this.scrolledwindow1.Add (this.cmdList); - this.vbox2.Add (this.scrolledwindow1); - global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.scrolledwindow1])); - w13.Position = 1; - this.alignment1.Add (this.vbox2); - this.GtkAlignment.Add (this.alignment1); - this.frame1.Add (this.GtkAlignment); - this.titreLabel = new global::Gtk.Label (); + this.scrolledwindow1.Add(this.cmdList); + this.vbox2.Add(this.scrolledwindow1); + global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1])); + w15.Position = 1; + this.alignment1.Add(this.vbox2); + this.GtkAlignment.Add(this.alignment1); + this.frame1.Add(this.GtkAlignment); + this.titreLabel = new global::Gtk.Label(); this.titreLabel.Name = "titreLabel"; - this.titreLabel.LabelProp = "Séquenceur Midi"; + this.titreLabel.LabelProp = "Séquenceur OSC"; this.titreLabel.UseMarkup = true; this.frame1.LabelWidget = this.titreLabel; - this.Add (this.frame1); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.frame1); + if ((this.Child != null)) + { + this.Child.ShowAll(); } - w1.SetUiManager (UIManager); - this.Hide (); - this.closeAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated); - this.goForwardAction.Activated += new global::System.EventHandler (this.OnGoForwardActionActivated); - this.goBackAction.Activated += new global::System.EventHandler (this.OnGoBackActionActivated); - this.mediaPauseAction.Activated += new global::System.EventHandler (this.OnMediaPauseActionActivated); - this.btnAjoutLigne.Activated += new global::System.EventHandler (this.OnBtnAjoutLigneActivated); - this.btnRetireligne.Activated += new global::System.EventHandler (this.OnRemoveLigneActivated); - this.hbox2.SizeAllocated += new global::Gtk.SizeAllocatedHandler (this.OnHbox2SizeAllocated); - this.cmdList.CursorChanged += new global::System.EventHandler (this.OnCmdListeCursorChanged); + w1.SetUiManager(UIManager); + this.Hide(); + this.closeAction.Activated += new global::System.EventHandler(this.OnCloseActionActivated); + this.goForwardAction.Activated += new global::System.EventHandler(this.OnGoForwardActionActivated); + this.goBackAction.Activated += new global::System.EventHandler(this.OnGoBackActionActivated); + this.mediaPauseAction.Activated += new global::System.EventHandler(this.OnMediaPauseActionActivated); + this.btnAjoutLigne.Activated += new global::System.EventHandler(this.OnBtnAjoutLigneActivated); + this.btnRetireligne.Activated += new global::System.EventHandler(this.OnRemoveLigneActivated); + this.hbox2.SizeAllocated += new global::Gtk.SizeAllocatedHandler(this.OnHbox2SizeAllocated); + this.entryDest.Changed += new global::System.EventHandler(this.OnEntryDestChanged); + this.cmdList.CursorChanged += new global::System.EventHandler(this.OnCmdListeCursorChanged); } } } diff --git a/DMX-2.0/gtk-gui/DMX2.SeqSonUI.cs b/DMX-2.0/gtk-gui/DMX2.SeqSonUI.cs index 3ab3843..cc9f342 100644 --- a/DMX-2.0/gtk-gui/DMX2.SeqSonUI.cs +++ b/DMX-2.0/gtk-gui/DMX2.SeqSonUI.cs @@ -5,447 +5,414 @@ namespace DMX2 public partial class SeqSonUI { private global::Gtk.UIManager UIManager; + private global::Gtk.Action closeAction; + private global::Gtk.Action mediaPlayAction; + private global::Gtk.Action mediaPauseAction; + private global::Gtk.Action mediaStopAction; + private global::Gtk.Action mediaPreviousAction; + private global::Gtk.Action mediaRewindAction; + private global::Gtk.Action mediaForwardAction; + private global::Gtk.Action mediaNextAction; + private global::Gtk.Action actAddFile; + private global::Gtk.Action actDelFile; + private global::Gtk.Action preferencesAction; + private global::Gtk.Action closeAction1; + private global::Gtk.Action preferencesAction1; + private global::Gtk.Frame frame1; + private global::Gtk.Alignment GtkAlignment; + private global::Gtk.VBox vbox2; + private global::Gtk.HBox hbox1; + private global::Gtk.VBox vbox3; + private global::Gtk.EventBox evBBox; + private global::Gtk.HBox hbox2; + private global::Gtk.Label posLabel; + private global::Gtk.Label titleLabel; + private global::Gtk.Label timeLabel; + private global::Gtk.ProgressBar pbCur; + private global::Gtk.HBox hbox3; + private global::Gtk.Button btnPlay; + private global::Gtk.Button btnPause; + private global::Gtk.Button btnStop; + private global::Gtk.Button btnPrev; + private global::Gtk.Button btnRewind; + private global::Gtk.Button btnForward; + private global::Gtk.Button btnNext; + private global::Gtk.Entry txtGoto; + private global::Gtk.Button btnGoto; + private global::Gtk.VScale sclVolume; + private global::Gtk.Toolbar toolbar4; + private global::Gtk.ScrolledWindow GtkScrolledWindow; + private global::Gtk.NodeView listFiles; + private global::Gtk.Label label1; + private global::Gtk.Label titreLabel; - protected virtual void Build () + protected virtual void Build() { - global::Stetic.Gui.Initialize (this); + global::Stetic.Gui.Initialize(this); // Widget DMX2.SeqSonUI - Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach (this); - this.UIManager = new global::Gtk.UIManager (); - global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup ("Default"); - this.closeAction = new global::Gtk.Action ("closeAction", null, null, "gtk-close"); - w2.Add (this.closeAction, null); - this.mediaPlayAction = new global::Gtk.Action ("mediaPlayAction", null, null, "gtk-media-play"); - w2.Add (this.mediaPlayAction, null); - this.mediaPauseAction = new global::Gtk.Action ("mediaPauseAction", null, null, "gtk-media-pause"); - w2.Add (this.mediaPauseAction, null); - this.mediaStopAction = new global::Gtk.Action ("mediaStopAction", null, null, "gtk-media-stop"); - w2.Add (this.mediaStopAction, null); - this.mediaPreviousAction = new global::Gtk.Action ("mediaPreviousAction", null, null, "gtk-media-previous"); - w2.Add (this.mediaPreviousAction, null); - this.mediaRewindAction = new global::Gtk.Action ("mediaRewindAction", null, null, "gtk-media-rewind"); - w2.Add (this.mediaRewindAction, null); - this.mediaForwardAction = new global::Gtk.Action ("mediaForwardAction", null, null, "gtk-media-forward"); - w2.Add (this.mediaForwardAction, null); - this.mediaNextAction = new global::Gtk.Action ("mediaNextAction", null, null, "gtk-media-next"); - w2.Add (this.mediaNextAction, null); - this.actAddFile = new global::Gtk.Action ("actAddFile", null, null, "gtk-add"); - w2.Add (this.actAddFile, null); - this.actDelFile = new global::Gtk.Action ("actDelFile", null, null, "gtk-remove"); - w2.Add (this.actDelFile, null); - this.preferencesAction = new global::Gtk.Action ("preferencesAction", null, null, "gtk-preferences"); - w2.Add (this.preferencesAction, null); - this.closeAction1 = new global::Gtk.Action ("closeAction1", null, null, "gtk-close"); - w2.Add (this.closeAction1, null); - this.preferencesAction1 = new global::Gtk.Action ("preferencesAction1", null, null, "gtk-preferences"); - w2.Add (this.preferencesAction1, null); - this.UIManager.InsertActionGroup (w2, 0); + Stetic.BinContainer w1 = global::Stetic.BinContainer.Attach(this); + this.UIManager = new global::Gtk.UIManager(); + global::Gtk.ActionGroup w2 = new global::Gtk.ActionGroup("Default"); + this.closeAction = new global::Gtk.Action("closeAction", null, null, "gtk-close"); + w2.Add(this.closeAction, null); + this.mediaPlayAction = new global::Gtk.Action("mediaPlayAction", null, null, "gtk-media-play"); + w2.Add(this.mediaPlayAction, null); + this.mediaPauseAction = new global::Gtk.Action("mediaPauseAction", null, null, "gtk-media-pause"); + w2.Add(this.mediaPauseAction, null); + this.mediaStopAction = new global::Gtk.Action("mediaStopAction", null, null, "gtk-media-stop"); + w2.Add(this.mediaStopAction, null); + this.mediaPreviousAction = new global::Gtk.Action("mediaPreviousAction", null, null, "gtk-media-previous"); + w2.Add(this.mediaPreviousAction, null); + this.mediaRewindAction = new global::Gtk.Action("mediaRewindAction", null, null, "gtk-media-rewind"); + w2.Add(this.mediaRewindAction, null); + this.mediaForwardAction = new global::Gtk.Action("mediaForwardAction", null, null, "gtk-media-forward"); + w2.Add(this.mediaForwardAction, null); + this.mediaNextAction = new global::Gtk.Action("mediaNextAction", null, null, "gtk-media-next"); + w2.Add(this.mediaNextAction, null); + this.actAddFile = new global::Gtk.Action("actAddFile", null, null, "gtk-add"); + w2.Add(this.actAddFile, null); + this.actDelFile = new global::Gtk.Action("actDelFile", null, null, "gtk-remove"); + w2.Add(this.actDelFile, null); + this.preferencesAction = new global::Gtk.Action("preferencesAction", null, null, "gtk-preferences"); + w2.Add(this.preferencesAction, null); + this.closeAction1 = new global::Gtk.Action("closeAction1", null, null, "gtk-close"); + w2.Add(this.closeAction1, null); + this.preferencesAction1 = new global::Gtk.Action("preferencesAction1", null, null, "gtk-preferences"); + w2.Add(this.preferencesAction1, null); + this.UIManager.InsertActionGroup(w2, 0); this.Name = "DMX2.SeqSonUI"; // Container child DMX2.SeqSonUI.Gtk.Container+ContainerChild - this.frame1 = new global::Gtk.Frame (); + this.frame1 = new global::Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child frame1.Gtk.Container+ContainerChild - this.GtkAlignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F); + this.GtkAlignment = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild - this.vbox2 = new global::Gtk.VBox (); + this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new global::Gtk.HBox (); + this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild - this.vbox3 = new global::Gtk.VBox (); + this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild - this.evBBox = new global::Gtk.EventBox (); + this.evBBox = new global::Gtk.EventBox(); this.evBBox.Name = "evBBox"; // Container child evBBox.Gtk.Container+ContainerChild - this.hbox2 = new global::Gtk.HBox (); + this.hbox2 = new global::Gtk.HBox(); this.hbox2.WidthRequest = 300; this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild - this.posLabel = new global::Gtk.Label (); + this.posLabel = new global::Gtk.Label(); this.posLabel.HeightRequest = 33; this.posLabel.Name = "posLabel"; this.posLabel.Xpad = 15; this.posLabel.Xalign = 0F; this.posLabel.LabelProp = "n° 0"; this.posLabel.UseMarkup = true; - this.hbox2.Add (this.posLabel); - global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.posLabel])); + this.hbox2.Add(this.posLabel); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.posLabel])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.titleLabel = new global::Gtk.Label (); + this.titleLabel = new global::Gtk.Label(); this.titleLabel.Name = "titleLabel"; this.titleLabel.UseMarkup = true; this.titleLabel.Wrap = true; - this.hbox2.Add (this.titleLabel); - global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.titleLabel])); + this.hbox2.Add(this.titleLabel); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.titleLabel])); w4.Position = 1; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild - this.timeLabel = new global::Gtk.Label (); + this.timeLabel = new global::Gtk.Label(); this.timeLabel.HeightRequest = 33; this.timeLabel.Name = "timeLabel"; this.timeLabel.Xpad = 15; this.timeLabel.LabelProp = "00.0"; this.timeLabel.UseMarkup = true; this.timeLabel.Justify = ((global::Gtk.Justification)(1)); - this.hbox2.Add (this.timeLabel); - global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.timeLabel])); + this.hbox2.Add(this.timeLabel); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.timeLabel])); w5.PackType = ((global::Gtk.PackType)(1)); w5.Position = 2; w5.Expand = false; w5.Fill = false; - this.evBBox.Add (this.hbox2); - this.vbox3.Add (this.evBBox); - global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.evBBox])); + this.evBBox.Add(this.hbox2); + this.vbox3.Add(this.evBBox); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.evBBox])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.pbCur = new global::Gtk.ProgressBar (); + this.pbCur = new global::Gtk.ProgressBar(); this.pbCur.Name = "pbCur"; - this.vbox3.Add (this.pbCur); - global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.pbCur])); + this.vbox3.Add(this.pbCur); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.pbCur])); w8.Position = 1; w8.Expand = false; w8.Fill = false; // Container child vbox3.Gtk.Box+BoxChild - this.hbox3 = new global::Gtk.HBox (); + this.hbox3 = new global::Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild - this.btnPlay = new global::Gtk.Button (); + this.btnPlay = new global::Gtk.Button(); this.btnPlay.CanFocus = true; this.btnPlay.Name = "btnPlay"; this.btnPlay.UseUnderline = true; - // Container child btnPlay.Gtk.Container+ContainerChild - global::Gtk.Alignment w9 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w10 = new global::Gtk.HBox (); - w10.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w11 = new global::Gtk.Image (); - w11.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-play", global::Gtk.IconSize.Button); - w10.Add (w11); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w13 = new global::Gtk.Label (); - w10.Add (w13); - w9.Add (w10); - this.btnPlay.Add (w9); - this.hbox3.Add (this.btnPlay); - global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnPlay])); - w17.Position = 0; - w17.Expand = false; - w17.Fill = false; + global::Gtk.Image w9 = new global::Gtk.Image(); + w9.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-media-play", global::Gtk.IconSize.Button); + this.btnPlay.Image = w9; + this.hbox3.Add(this.btnPlay); + global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnPlay])); + w10.Position = 0; + w10.Expand = false; + w10.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btnPause = new global::Gtk.Button (); + this.btnPause = new global::Gtk.Button(); this.btnPause.CanFocus = true; this.btnPause.Name = "btnPause"; this.btnPause.UseUnderline = true; - // Container child btnPause.Gtk.Container+ContainerChild - global::Gtk.Alignment w18 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w19 = new global::Gtk.HBox (); - w19.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w20 = new global::Gtk.Image (); - w20.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-pause", global::Gtk.IconSize.Button); - w19.Add (w20); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w22 = new global::Gtk.Label (); - w19.Add (w22); - w18.Add (w19); - this.btnPause.Add (w18); - this.hbox3.Add (this.btnPause); - global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnPause])); - w26.Position = 1; - w26.Expand = false; - w26.Fill = false; + global::Gtk.Image w11 = new global::Gtk.Image(); + w11.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-media-pause", global::Gtk.IconSize.Button); + this.btnPause.Image = w11; + this.hbox3.Add(this.btnPause); + global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnPause])); + w12.Position = 1; + w12.Expand = false; + w12.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btnStop = new global::Gtk.Button (); + this.btnStop = new global::Gtk.Button(); this.btnStop.CanFocus = true; this.btnStop.Name = "btnStop"; this.btnStop.UseUnderline = true; - // Container child btnStop.Gtk.Container+ContainerChild - global::Gtk.Alignment w27 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w28 = new global::Gtk.HBox (); - w28.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w29 = new global::Gtk.Image (); - w29.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-stop", global::Gtk.IconSize.Button); - w28.Add (w29); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w31 = new global::Gtk.Label (); - w28.Add (w31); - w27.Add (w28); - this.btnStop.Add (w27); - this.hbox3.Add (this.btnStop); - global::Gtk.Box.BoxChild w35 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnStop])); - w35.Position = 2; - w35.Expand = false; - w35.Fill = false; + global::Gtk.Image w13 = new global::Gtk.Image(); + w13.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-media-stop", global::Gtk.IconSize.Button); + this.btnStop.Image = w13; + this.hbox3.Add(this.btnStop); + global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnStop])); + w14.Position = 2; + w14.Expand = false; + w14.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btnPrev = new global::Gtk.Button (); + this.btnPrev = new global::Gtk.Button(); this.btnPrev.CanFocus = true; this.btnPrev.Name = "btnPrev"; this.btnPrev.UseUnderline = true; - // Container child btnPrev.Gtk.Container+ContainerChild - global::Gtk.Alignment w36 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w37 = new global::Gtk.HBox (); - w37.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w38 = new global::Gtk.Image (); - w38.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-previous", global::Gtk.IconSize.Button); - w37.Add (w38); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w40 = new global::Gtk.Label (); - w37.Add (w40); - w36.Add (w37); - this.btnPrev.Add (w36); - this.hbox3.Add (this.btnPrev); - global::Gtk.Box.BoxChild w44 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnPrev])); - w44.Position = 3; - w44.Expand = false; - w44.Fill = false; + global::Gtk.Image w15 = new global::Gtk.Image(); + w15.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-media-previous", global::Gtk.IconSize.Button); + this.btnPrev.Image = w15; + this.hbox3.Add(this.btnPrev); + global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnPrev])); + w16.Position = 3; + w16.Expand = false; + w16.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btnRewind = new global::Gtk.Button (); + this.btnRewind = new global::Gtk.Button(); this.btnRewind.CanFocus = true; this.btnRewind.Name = "btnRewind"; this.btnRewind.UseUnderline = true; - // Container child btnRewind.Gtk.Container+ContainerChild - global::Gtk.Alignment w45 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w46 = new global::Gtk.HBox (); - w46.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w47 = new global::Gtk.Image (); - w47.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-rewind", global::Gtk.IconSize.Button); - w46.Add (w47); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w49 = new global::Gtk.Label (); - w46.Add (w49); - w45.Add (w46); - this.btnRewind.Add (w45); - this.hbox3.Add (this.btnRewind); - global::Gtk.Box.BoxChild w53 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnRewind])); - w53.Position = 4; - w53.Expand = false; - w53.Fill = false; + global::Gtk.Image w17 = new global::Gtk.Image(); + w17.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-media-rewind", global::Gtk.IconSize.Button); + this.btnRewind.Image = w17; + this.hbox3.Add(this.btnRewind); + global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnRewind])); + w18.Position = 4; + w18.Expand = false; + w18.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btnForward = new global::Gtk.Button (); + this.btnForward = new global::Gtk.Button(); this.btnForward.CanFocus = true; this.btnForward.Name = "btnForward"; this.btnForward.UseUnderline = true; - // Container child btnForward.Gtk.Container+ContainerChild - global::Gtk.Alignment w54 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w55 = new global::Gtk.HBox (); - w55.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w56 = new global::Gtk.Image (); - w56.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-forward", global::Gtk.IconSize.Button); - w55.Add (w56); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w58 = new global::Gtk.Label (); - w55.Add (w58); - w54.Add (w55); - this.btnForward.Add (w54); - this.hbox3.Add (this.btnForward); - global::Gtk.Box.BoxChild w62 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnForward])); - w62.Position = 5; - w62.Expand = false; - w62.Fill = false; + global::Gtk.Image w19 = new global::Gtk.Image(); + w19.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-media-forward", global::Gtk.IconSize.Button); + this.btnForward.Image = w19; + this.hbox3.Add(this.btnForward); + global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnForward])); + w20.Position = 5; + w20.Expand = false; + w20.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.btnNext = new global::Gtk.Button (); + this.btnNext = new global::Gtk.Button(); this.btnNext.CanFocus = true; this.btnNext.Name = "btnNext"; this.btnNext.UseUnderline = true; - // Container child btnNext.Gtk.Container+ContainerChild - global::Gtk.Alignment w63 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 0F); - // Container child GtkAlignment.Gtk.Container+ContainerChild - global::Gtk.HBox w64 = new global::Gtk.HBox (); - w64.Spacing = 2; - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Image w65 = new global::Gtk.Image (); - w65.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-media-next", global::Gtk.IconSize.Button); - w64.Add (w65); - // Container child GtkHBox.Gtk.Container+ContainerChild - global::Gtk.Label w67 = new global::Gtk.Label (); - w64.Add (w67); - w63.Add (w64); - this.btnNext.Add (w63); - this.hbox3.Add (this.btnNext); - global::Gtk.Box.BoxChild w71 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnNext])); - w71.Position = 6; - w71.Expand = false; - w71.Fill = false; + global::Gtk.Image w21 = new global::Gtk.Image(); + w21.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-media-next", global::Gtk.IconSize.Button); + this.btnNext.Image = w21; + this.hbox3.Add(this.btnNext); + global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnNext])); + w22.Position = 6; + w22.Expand = false; + w22.Fill = false; // Container child hbox3.Gtk.Box+BoxChild - this.txtGoto = new global::Gtk.Entry (); + this.txtGoto = new global::Gtk.Entry(); this.txtGoto.CanFocus = true; this.txtGoto.Name = "txtGoto"; this.txtGoto.IsEditable = true; this.txtGoto.InvisibleChar = '•'; - this.hbox3.Add (this.txtGoto); - global::Gtk.Box.BoxChild w72 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.txtGoto])); - w72.Position = 7; + this.hbox3.Add(this.txtGoto); + global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.txtGoto])); + w23.Position = 7; // Container child hbox3.Gtk.Box+BoxChild - this.btnGoto = new global::Gtk.Button (); + this.btnGoto = new global::Gtk.Button(); this.btnGoto.CanFocus = true; this.btnGoto.Name = "btnGoto"; this.btnGoto.UseUnderline = true; this.btnGoto.Label = "Cmd"; - this.hbox3.Add (this.btnGoto); - global::Gtk.Box.BoxChild w73 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnGoto])); - w73.Position = 8; - w73.Expand = false; - w73.Fill = false; - this.vbox3.Add (this.hbox3); - global::Gtk.Box.BoxChild w74 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox3])); - w74.Position = 2; - w74.Expand = false; - w74.Fill = false; - this.hbox1.Add (this.vbox3); - global::Gtk.Box.BoxChild w75 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox3])); - w75.Position = 0; + this.hbox3.Add(this.btnGoto); + global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.btnGoto])); + w24.Position = 8; + w24.Expand = false; + w24.Fill = false; + this.vbox3.Add(this.hbox3); + global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); + w25.Position = 2; + w25.Expand = false; + w25.Fill = false; + this.hbox1.Add(this.vbox3); + global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.vbox3])); + w26.Position = 0; // Container child hbox1.Gtk.Box+BoxChild - this.sclVolume = new global::Gtk.VScale (null); + this.sclVolume = new global::Gtk.VScale(null); this.sclVolume.WidthRequest = 20; this.sclVolume.CanFocus = true; this.sclVolume.Name = "sclVolume"; this.sclVolume.Inverted = true; - this.sclVolume.Adjustment.Upper = 100; - this.sclVolume.Adjustment.PageIncrement = 10; - this.sclVolume.Adjustment.StepIncrement = 1; - this.sclVolume.Adjustment.Value = 100; + this.sclVolume.Adjustment.Upper = 100D; + this.sclVolume.Adjustment.PageIncrement = 10D; + this.sclVolume.Adjustment.StepIncrement = 1D; + this.sclVolume.Adjustment.Value = 100D; this.sclVolume.DrawValue = true; this.sclVolume.Digits = 0; this.sclVolume.ValuePos = ((global::Gtk.PositionType)(3)); - this.hbox1.Add (this.sclVolume); - global::Gtk.Box.BoxChild w76 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.sclVolume])); - w76.Position = 1; - w76.Expand = false; - w76.Fill = false; + this.hbox1.Add(this.sclVolume); + global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.sclVolume])); + w27.Position = 1; + w27.Expand = false; + w27.Fill = false; // Container child hbox1.Gtk.Box+BoxChild - this.UIManager.AddUiFromString (""); - this.toolbar4 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar4"))); + this.UIManager.AddUiFromString(""); + this.toolbar4 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar4"))); this.toolbar4.Name = "toolbar4"; this.toolbar4.Orientation = ((global::Gtk.Orientation)(1)); this.toolbar4.ShowArrow = false; this.toolbar4.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar4.IconSize = ((global::Gtk.IconSize)(2)); - this.hbox1.Add (this.toolbar4); - global::Gtk.Box.BoxChild w77 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.toolbar4])); - w77.Position = 2; - w77.Expand = false; - w77.Fill = false; - this.vbox2.Add (this.hbox1); - global::Gtk.Box.BoxChild w78 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); - w78.Position = 0; - w78.Expand = false; - w78.Fill = false; + this.hbox1.Add(this.toolbar4); + global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.toolbar4])); + w28.Position = 2; + w28.Expand = false; + w28.Fill = false; + this.vbox2.Add(this.hbox1); + global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); + w29.Position = 0; + w29.Expand = false; + w29.Fill = false; // Container child vbox2.Gtk.Box+BoxChild - this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); + this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild - this.listFiles = new global::Gtk.NodeView (); + this.listFiles = new global::Gtk.NodeView(); this.listFiles.CanFocus = true; this.listFiles.Name = "listFiles"; this.listFiles.RulesHint = true; - this.GtkScrolledWindow.Add (this.listFiles); - this.vbox2.Add (this.GtkScrolledWindow); - global::Gtk.Box.BoxChild w80 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.GtkScrolledWindow])); - w80.Position = 1; + this.GtkScrolledWindow.Add(this.listFiles); + this.vbox2.Add(this.GtkScrolledWindow); + global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow])); + w31.Position = 1; // Container child vbox2.Gtk.Box+BoxChild - this.label1 = new global::Gtk.Label (); + this.label1 = new global::Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; - this.label1.LabelProp = "Commands : \n[XX][gMM:SS.f][vVOL,T][p|ps|s]\n(FileNumber)(g=goto)(v=volume,fade in/out time)(p=play,ps=pause,s=stop)"; + this.label1.LabelProp = "Commands : \n[XX][gMM:SS.f][vVOL,T][p|ps|s]\n(FileNumber)(g=goto)(v=volume,fade in/" + + "out time)(p=play,ps=pause,s=stop)"; this.label1.UseMarkup = true; - this.vbox2.Add (this.label1); - global::Gtk.Box.BoxChild w81 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.label1])); - w81.Position = 2; - w81.Expand = false; - w81.Fill = false; - this.GtkAlignment.Add (this.vbox2); - this.frame1.Add (this.GtkAlignment); - this.titreLabel = new global::Gtk.Label (); + this.vbox2.Add(this.label1); + global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.label1])); + w32.Position = 2; + w32.Expand = false; + w32.Fill = false; + this.GtkAlignment.Add(this.vbox2); + this.frame1.Add(this.GtkAlignment); + this.titreLabel = new global::Gtk.Label(); this.titreLabel.Name = "titreLabel"; this.titreLabel.LabelProp = "Sequenceur Son"; this.titreLabel.UseMarkup = true; this.frame1.LabelWidget = this.titreLabel; - this.Add (this.frame1); - if ((this.Child != null)) { - this.Child.ShowAll (); + this.Add(this.frame1); + if ((this.Child != null)) + { + this.Child.ShowAll(); } - w1.SetUiManager (UIManager); - this.Hide (); - this.actAddFile.Activated += new global::System.EventHandler (this.OnActAddFileActivated); - this.actDelFile.Activated += new global::System.EventHandler (this.OnActDelFileActivated); - this.btnPlay.Clicked += new global::System.EventHandler (this.OnBtnPlayClicked); - this.btnPause.Clicked += new global::System.EventHandler (this.OnBtnPauseClicked); - this.btnStop.Clicked += new global::System.EventHandler (this.OnBtnStopClicked); - this.btnPrev.Clicked += new global::System.EventHandler (this.OnBtnPrevClicked); - this.btnRewind.Pressed += new global::System.EventHandler (this.OnBtnRewindPressed); - this.btnRewind.Released += new global::System.EventHandler (this.OnBtnRewindReleased); - this.btnForward.Pressed += new global::System.EventHandler (this.OnBtnForwardPressed); - this.btnForward.Released += new global::System.EventHandler (this.OnBtnForwardReleased); - this.btnNext.Clicked += new global::System.EventHandler (this.OnBtnNextClicked); - this.btnGoto.Clicked += new global::System.EventHandler (this.OnBtnGotoClicked); - this.sclVolume.ValueChanged += new global::System.EventHandler (this.OnSclVolumeValueChanged); - this.listFiles.CursorChanged += new global::System.EventHandler (this.OnListFilesCursorChanged); + w1.SetUiManager(UIManager); + this.Hide(); + this.actAddFile.Activated += new global::System.EventHandler(this.OnActAddFileActivated); + this.actDelFile.Activated += new global::System.EventHandler(this.OnActDelFileActivated); + this.btnPlay.Clicked += new global::System.EventHandler(this.OnBtnPlayClicked); + this.btnPause.Clicked += new global::System.EventHandler(this.OnBtnPauseClicked); + this.btnStop.Clicked += new global::System.EventHandler(this.OnBtnStopClicked); + this.btnPrev.Clicked += new global::System.EventHandler(this.OnBtnPrevClicked); + this.btnRewind.Pressed += new global::System.EventHandler(this.OnBtnRewindPressed); + this.btnRewind.Released += new global::System.EventHandler(this.OnBtnRewindReleased); + this.btnForward.Pressed += new global::System.EventHandler(this.OnBtnForwardPressed); + this.btnForward.Released += new global::System.EventHandler(this.OnBtnForwardReleased); + this.btnNext.Clicked += new global::System.EventHandler(this.OnBtnNextClicked); + this.btnGoto.Clicked += new global::System.EventHandler(this.OnBtnGotoClicked); + this.sclVolume.ValueChanged += new global::System.EventHandler(this.OnSclVolumeValueChanged); + this.listFiles.CursorChanged += new global::System.EventHandler(this.OnListFilesCursorChanged); } } } diff --git a/DMX-2.0/gtk-gui/generated.cs b/DMX-2.0/gtk-gui/generated.cs index d1ab735..19494a5 100644 --- a/DMX-2.0/gtk-gui/generated.cs +++ b/DMX-2.0/gtk-gui/generated.cs @@ -6,114 +6,124 @@ namespace Stetic { private static bool initialized; - internal static void Initialize (Gtk.Widget iconRenderer) + internal static void Initialize(Gtk.Widget iconRenderer) { - if ((Stetic.Gui.initialized == false)) { + if ((Stetic.Gui.initialized == false)) + { Stetic.Gui.initialized = true; - global::Gtk.IconFactory w1 = new global::Gtk.IconFactory (); - global::Gtk.IconSet w2 = new global::Gtk.IconSet (); - global::Gtk.IconSource w3 = new global::Gtk.IconSource (); - w3.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.ictir.16.png"); + global::Gtk.IconFactory w1 = new global::Gtk.IconFactory(); + global::Gtk.IconSet w2 = new global::Gtk.IconSet(); + global::Gtk.IconSource w3 = new global::Gtk.IconSource(); + w3.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.ictir.16.png"); w3.SizeWildcarded = false; w3.Size = global::Gtk.IconSize.SmallToolbar; - w2.AddSource (w3); - global::Gtk.IconSource w4 = new global::Gtk.IconSource (); - w4.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.ictir.24.png"); + w2.AddSource(w3); + global::Gtk.IconSource w4 = new global::Gtk.IconSource(); + w4.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.ictir.24.png"); w4.SizeWildcarded = false; w4.Size = global::Gtk.IconSize.LargeToolbar; - w2.AddSource (w4); - global::Gtk.IconSource w5 = new global::Gtk.IconSource (); - w5.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.ictir.32.png"); + w2.AddSource(w4); + global::Gtk.IconSource w5 = new global::Gtk.IconSource(); + w5.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.ictir.32.png"); w5.SizeWildcarded = false; w5.Size = global::Gtk.IconSize.Dnd; - w2.AddSource (w5); - global::Gtk.IconSource w6 = new global::Gtk.IconSource (); - w6.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.ictir.48.png"); + w2.AddSource(w5); + global::Gtk.IconSource w6 = new global::Gtk.IconSource(); + w6.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.ictir.48.png"); w6.SizeWildcarded = false; w6.Size = global::Gtk.IconSize.Dialog; - w2.AddSource (w6); - global::Gtk.IconSource w7 = new global::Gtk.IconSource (); - w7.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.ictir.16.png"); + w2.AddSource(w6); + global::Gtk.IconSource w7 = new global::Gtk.IconSource(); + w7.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.ictir.16.png"); w7.SizeWildcarded = false; w7.Size = global::Gtk.IconSize.Button; - w2.AddSource (w7); - global::Gtk.IconSource w8 = new global::Gtk.IconSource (); - w8.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.ictir.16.png"); + w2.AddSource(w7); + global::Gtk.IconSource w8 = new global::Gtk.IconSource(); + w8.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.ictir.16.png"); w8.SizeWildcarded = false; w8.Size = global::Gtk.IconSize.Menu; - w2.AddSource (w8); - w1.Add ("tirettes", w2); - global::Gtk.IconSet w9 = new global::Gtk.IconSet (); - global::Gtk.IconSource w10 = new global::Gtk.IconSource (); - w10.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.docListe.16.png"); + w2.AddSource(w8); + w1.Add("tirettes", w2); + global::Gtk.IconSet w9 = new global::Gtk.IconSet(); + global::Gtk.IconSource w10 = new global::Gtk.IconSource(); + w10.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.docListe.16.png"); w10.SizeWildcarded = false; w10.Size = global::Gtk.IconSize.Menu; - w9.AddSource (w10); - global::Gtk.IconSource w11 = new global::Gtk.IconSource (); - w11.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.docListe.48.png"); + w9.AddSource(w10); + global::Gtk.IconSource w11 = new global::Gtk.IconSource(); + w11.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.docListe.48.png"); w11.SizeWildcarded = false; w11.Size = global::Gtk.IconSize.Dialog; - w9.AddSource (w11); - global::Gtk.IconSource w12 = new global::Gtk.IconSource (); - w12.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.docListe.16.png"); + w9.AddSource(w11); + global::Gtk.IconSource w12 = new global::Gtk.IconSource(); + w12.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.docListe.16.png"); w12.SizeWildcarded = false; w12.Size = global::Gtk.IconSize.Button; - w9.AddSource (w12); - global::Gtk.IconSource w13 = new global::Gtk.IconSource (); - w13.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.docListe.24.png"); + w9.AddSource(w12); + global::Gtk.IconSource w13 = new global::Gtk.IconSource(); + w13.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.docListe.24.png"); w13.SizeWildcarded = false; w13.Size = global::Gtk.IconSize.LargeToolbar; - w9.AddSource (w13); - global::Gtk.IconSource w14 = new global::Gtk.IconSource (); - w14.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.docListe.16.png"); + w9.AddSource(w13); + global::Gtk.IconSource w14 = new global::Gtk.IconSource(); + w14.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.docListe.16.png"); w14.SizeWildcarded = false; w14.Size = global::Gtk.IconSize.SmallToolbar; - w9.AddSource (w14); - global::Gtk.IconSource w15 = new global::Gtk.IconSource (); - w15.Pixbuf = global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.docListe.32.png"); + w9.AddSource(w14); + global::Gtk.IconSource w15 = new global::Gtk.IconSource(); + w15.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.docListe.32.png"); w15.SizeWildcarded = false; w15.Size = global::Gtk.IconSize.Dnd; - w9.AddSource (w15); - w1.Add ("circuits", w9); - global::Gtk.IconSet w16 = new global::Gtk.IconSet (global::Gdk.Pixbuf.LoadFromResource ("DMX2.icons.midiseq.audio-x-generic.svg")); - w1.Add ("MidiSeq", w16); - w1.AddDefault (); + w9.AddSource(w15); + w1.Add("circuits", w9); + global::Gtk.IconSet w16 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("DMX2.icons.midiseq.audio-x-generic.svg")); + w1.Add("MidiSeq", w16); + w1.AddDefault(); } } } internal class IconLoader { - public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size) + public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size) { - Gdk.Pixbuf res = widget.RenderIcon (name, size, null); - if ((res != null)) { + Gdk.Pixbuf res = widget.RenderIcon(name, size, null); + if ((res != null)) + { return res; - } else { + } + else + { int sz; int sy; - global::Gtk.Icon.SizeLookup (size, out sz, out sy); - try { - return Gtk.IconTheme.Default.LoadIcon (name, sz, 0); - } catch (System.Exception) { - if ((name != "gtk-missing-image")) { - return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size); - } else { - Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz); - Gdk.GC gc = new Gdk.GC (pmap); - gc.RgbFgColor = new Gdk.Color (255, 255, 255); - pmap.DrawRectangle (gc, true, 0, 0, sz, sz); - gc.RgbFgColor = new Gdk.Color (0, 0, 0); - pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1)); - gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round); - gc.RgbFgColor = new Gdk.Color (255, 0, 0); - pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - - (sz / 4)), ((sz - 1) - - (sz / 4))); - pmap.DrawLine (gc, ((sz - 1) - - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - - (sz / 4))); - return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz); + global::Gtk.Icon.SizeLookup(size, out sz, out sy); + try + { + return Gtk.IconTheme.Default.LoadIcon(name, sz, 0); + } + catch (System.Exception) + { + if ((name != "gtk-missing-image")) + { + return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size); + } + else + { + Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz); + Gdk.GC gc = new Gdk.GC(pmap); + gc.RgbFgColor = new Gdk.Color(255, 255, 255); + pmap.DrawRectangle(gc, true, 0, 0, sz, sz); + gc.RgbFgColor = new Gdk.Color(0, 0, 0); + pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1)); + gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round); + gc.RgbFgColor = new Gdk.Color(255, 0, 0); + pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) + - (sz / 4)), ((sz - 1) + - (sz / 4))); + pmap.DrawLine(gc, ((sz - 1) + - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) + - (sz / 4))); + return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz); } } } @@ -123,51 +133,55 @@ namespace Stetic internal class BinContainer { private Gtk.Widget child; - + private Gtk.UIManager uimanager; - public static BinContainer Attach (Gtk.Bin bin) + public static BinContainer Attach(Gtk.Bin bin) { - BinContainer bc = new BinContainer (); - bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested); - bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated); - bin.Added += new Gtk.AddedHandler (bc.OnAdded); + BinContainer bc = new BinContainer(); + bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested); + bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated); + bin.Added += new Gtk.AddedHandler(bc.OnAdded); return bc; } - private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args) + private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs args) { - if ((this.child != null)) { - args.Requisition = this.child.SizeRequest (); + if ((this.child != null)) + { + args.Requisition = this.child.SizeRequest(); } } - private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args) + private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs args) { - if ((this.child != null)) { + if ((this.child != null)) + { this.child.Allocation = args.Allocation; } } - private void OnAdded (object sender, Gtk.AddedArgs args) + private void OnAdded(object sender, Gtk.AddedArgs args) { this.child = args.Widget; } - public void SetUiManager (Gtk.UIManager uim) + public void SetUiManager(Gtk.UIManager uim) { this.uimanager = uim; - this.child.Realized += new System.EventHandler (this.OnRealized); + this.child.Realized += new System.EventHandler(this.OnRealized); } - private void OnRealized (object sender, System.EventArgs args) + private void OnRealized(object sender, System.EventArgs args) { - if ((this.uimanager != null)) { + if ((this.uimanager != null)) + { Gtk.Widget w; w = this.child.Toplevel; if (((w != null) - && typeof(Gtk.Window).IsInstanceOfType (w))) { - ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup); + && typeof(Gtk.Window).IsInstanceOfType(w))) + { + ((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup); this.uimanager = null; } } @@ -176,12 +190,12 @@ namespace Stetic internal class ActionGroups { - public static Gtk.ActionGroup GetActionGroup (System.Type type) + public static Gtk.ActionGroup GetActionGroup(System.Type type) { - return Stetic.ActionGroups.GetActionGroup (type.FullName); + return Stetic.ActionGroups.GetActionGroup(type.FullName); } - public static Gtk.ActionGroup GetActionGroup (string name) + public static Gtk.ActionGroup GetActionGroup(string name) { return null; } diff --git a/DMX-2.0/gtk-gui/gui.stetic b/DMX-2.0/gtk-gui/gui.stetic index e0e0cd0..dbae9e1 100644 --- a/DMX-2.0/gtk-gui/gui.stetic +++ b/DMX-2.0/gtk-gui/gui.stetic @@ -770,7 +770,7 @@ page - + 10 5 @@ -1180,7 +1180,7 @@ au sequenceur - + 6 Start @@ -1371,7 +1371,7 @@ au sequenceur 6 - + Univers : @@ -2416,19 +2416,48 @@ r: loop - + - False - Icons - SmallToolbar - - - - - - - - + 6 + + + + False + Icons + SmallToolbar + + + + + + + + + + + 0 + True + + + + + + + + + 220 + True + True + + + + + 2 + False + False + False + + 1 @@ -2498,7 +2527,7 @@ r: loop - Séquenceur Midi + Séquenceur OSC True @@ -2670,7 +2699,7 @@ r: loop 6 - + Driver Boitier V1 @@ -2822,7 +2851,7 @@ r: loop 6 - + Driver V2 @@ -3200,7 +3229,7 @@ r: loop 2 - + Loupiottes @@ -3247,7 +3276,7 @@ Licence : GPL V2 - + False @@ -3255,7 +3284,7 @@ Licence : GPL V2 6 - + Driver V3 @@ -3997,7 +4026,7 @@ trames DMX (ms) - + <b>Options Midi</b> True