Implementation seq OSC

This commit is contained in:
arnaud.houdelette 2018-10-04 17:12:24 +02:00
parent e91e43b76c
commit dac480d5bf
22 changed files with 2435 additions and 2268 deletions

View file

@ -149,6 +149,7 @@
<Compile Include="gtk-gui\DMX2.SeqOscUI.cs" />
<Compile Include="SequenceurOSC.cs" />
<Compile Include="AlsaSeqLib.MidiPort.cs" />
<Compile Include="OSCMessage.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>

323
DMX-2.0/OSCMessage.cs Normal file
View file

@ -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<byte>(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;
}
}
}

View file

@ -13,293 +13,6 @@ 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<byte>(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 ()
{
pollThread = new Thread(new ThreadStart(Loop));

View file

@ -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;
}
}
}

View file

@ -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);
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();

View file

@ -4,7 +4,8 @@ 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()
@ -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;
@ -45,7 +48,8 @@ namespace DMX2
global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk]));
w4.Expand = false;
w4.Fill = false;
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
this.DefaultWidth = 400;

View file

@ -5,13 +5,21 @@ 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()
@ -25,11 +33,11 @@ namespace DMX2
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;
@ -101,7 +109,8 @@ namespace DMX2
w8.Expand = false;
w8.Fill = false;
this.Add(this.vbox2);
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
this.Hide();

View file

@ -5,23 +5,41 @@ 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()
@ -35,11 +53,11 @@ namespace DMX2
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;
@ -232,7 +250,8 @@ namespace DMX2
w18.Expand = false;
w18.Fill = false;
this.Add(this.vbox2);
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
this.Hide();

View file

@ -5,26 +5,47 @@ 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()
@ -38,11 +59,11 @@ namespace DMX2
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;
@ -276,7 +297,8 @@ namespace DMX2
w21.Expand = false;
w21.Fill = false;
this.Add(this.vbox2);
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
this.Hide();

View file

@ -5,32 +5,59 @@ 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()
@ -53,11 +80,11 @@ namespace DMX2
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;
@ -78,125 +105,77 @@ namespace DMX2
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.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 w13 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btAdd]));
w13.Position = 0;
w13.Expand = false;
w13.Fill = false;
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.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.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 w22 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btDel]));
w22.Position = 1;
w22.Expand = false;
w22.Fill = false;
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.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.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 w31 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btReset]));
w31.PackType = ((global::Gtk.PackType)(1));
w31.Position = 3;
w31.Expand = false;
w31.Fill = false;
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.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.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 w40 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btPatchDroit]));
w40.PackType = ((global::Gtk.PackType)(1));
w40.Position = 4;
w40.Expand = false;
w40.Fill = false;
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 w41 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.hbox3]));
w41.Position = 2;
global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.hbox3]));
w13.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;
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.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;
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.Name = "hbox1";
@ -206,74 +185,62 @@ namespace DMX2
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.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 w52 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btAllume]));
w52.Position = 0;
w52.Expand = false;
w52.Fill = false;
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.spinDimmer.Value = 1D;
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;
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.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;
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.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;
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.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;
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.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;
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.CanFocus = true;
@ -281,17 +248,17 @@ namespace DMX2
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;
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.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;
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.CanFocus = true;
@ -299,13 +266,13 @@ namespace DMX2
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;
global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.txtParam2]));
w25.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;
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.CanFocus = true;
@ -337,8 +304,8 @@ namespace DMX2
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;
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.Name = "label5";
@ -346,14 +313,14 @@ namespace DMX2
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;
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.CanDefault = true;
@ -363,10 +330,11 @@ namespace DMX2
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)) {
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;

View file

@ -5,11 +5,17 @@ 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()
@ -37,7 +43,8 @@ namespace DMX2
this.vbox2.Name = "vbox2";
this.vbox2.Spacing = 6;
// Container child vbox2.Gtk.Box+BoxChild
this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar1'><toolitem name='addAction' action='addAction'/></toolbar></ui>");
this.UIManager.AddUiFromString("<ui><toolbar name=\'toolbar1\'><toolitem name=\'addAction\' action=\'addAction\'/></too" +
"lbar></ui>");
this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
this.toolbar1.Name = "toolbar1";
this.toolbar1.ShowArrow = false;
@ -65,11 +72,11 @@ namespace DMX2
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
// Container child dialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.buttonOk = new global::Gtk.Button();
this.buttonOk.CanDefault = true;
this.buttonOk.CanFocus = true;
@ -81,7 +88,8 @@ namespace DMX2
global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonOk]));
w8.Expand = false;
w8.Fill = false;
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
this.DefaultWidth = 400;

View file

@ -5,14 +5,23 @@ 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()
@ -120,7 +129,8 @@ namespace DMX2
global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk]));
w11.Expand = false;
w11.Fill = false;
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
this.DefaultWidth = 488;

View file

@ -5,38 +5,71 @@ 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()
@ -138,13 +171,13 @@ namespace DMX2
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.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));
@ -154,13 +187,13 @@ 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.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));
@ -168,13 +201,13 @@ namespace DMX2
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.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));
@ -184,13 +217,13 @@ 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.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));
@ -200,13 +233,13 @@ 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.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));
@ -217,11 +250,11 @@ namespace DMX2
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 = "<b>Options Midi</b>";
this.GtkLabel6.UseMarkup = true;
this.frame2.LabelWidget = this.GtkLabel6;
this.GtkLabelT = new global::Gtk.Label();
this.GtkLabelT.Name = "GtkLabelT";
this.GtkLabelT.LabelProp = "<b>Options Midi</b>";
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));
@ -255,7 +288,7 @@ namespace DMX2
this.frame3.Add(this.GtkAlignment2);
this.GtkLabel3 = new global::Gtk.Label();
this.GtkLabel3.Name = "GtkLabel3";
this.GtkLabel3.LabelProp = "<b>Options de l'interface</b>";
this.GtkLabel3.LabelProp = "<b>Options de l\'interface</b>";
this.GtkLabel3.UseMarkup = true;
this.frame3.LabelWidget = this.GtkLabel3;
this.table1.Add(this.frame3);
@ -273,61 +306,37 @@ namespace DMX2
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.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 w28 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.btnActiv]));
w28.Expand = false;
w28.Fill = false;
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.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.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 w37 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.btnDesactiv]));
w37.Position = 1;
w37.Expand = false;
w37.Fill = false;
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 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));
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.Name = "vbox2";
@ -338,10 +347,10 @@ namespace DMX2
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;
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.Name = "GtkScrolledWindow";
@ -353,12 +362,12 @@ namespace DMX2
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;
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 w42 = ((global::Gtk.Table.TableChild)(this.table1 [this.vbox2]));
w42.LeftAttach = ((uint)(1));
w42.RightAttach = ((uint)(2));
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.Name = "vbox3";
@ -369,10 +378,10 @@ namespace DMX2
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;
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.Name = "GtkScrolledWindow1";
@ -384,23 +393,23 @@ namespace DMX2
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;
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 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));
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 w47 = ((global::Gtk.Box.BoxChild)(w1 [this.table1]));
w47.Position = 0;
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.CanFocus = true;
@ -408,9 +417,9 @@ namespace DMX2
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;
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.CanDefault = true;
@ -420,11 +429,12 @@ namespace DMX2
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)) {
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;

View file

@ -528,7 +528,8 @@ namespace DMX2
w42.Expand = false;
w42.Fill = false;
this.Add(this.vbox1);
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
this.DefaultWidth = 1027;

View file

@ -5,18 +5,31 @@ 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()
@ -51,156 +64,95 @@ namespace DMX2
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.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.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.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.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.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.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.Name = "GtkScrolledWindow1";
@ -211,17 +163,17 @@ namespace DMX2
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;
global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow1]));
w17.Position = 2;
w1.Add(this.hbox1);
global::Gtk.Box.BoxChild w53 = ((global::Gtk.Box.BoxChild)(w1 [this.hbox1]));
w53.Position = 0;
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.CanDefault = true;
@ -231,9 +183,9 @@ namespace DMX2
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;
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.CanDefault = true;
@ -243,11 +195,12 @@ namespace DMX2
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)) {
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;

View file

@ -5,38 +5,71 @@ 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()
@ -50,17 +83,17 @@ namespace DMX2
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");
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");
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");
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);
@ -138,10 +171,10 @@ namespace DMX2
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));
@ -169,7 +202,7 @@ namespace DMX2
w9.Expand = false;
w9.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild
this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar1'><toolitem name='goForwardAction' action='goForwardAction'/><toolitem name='goBackAction' action='goBackAction'/><toolitem name='mediaPauseAction' action='mediaPauseAction'/><toolitem name='mediaNextAction' action='mediaNextAction'/></toolbar></ui>");
this.UIManager.AddUiFromString(@"<ui><toolbar name='toolbar1'><toolitem name='goForwardAction' action='goForwardAction'/><toolitem name='goBackAction' action='goBackAction'/><toolitem name='mediaPauseAction' action='mediaPauseAction'/><toolitem name='mediaNextAction' action='mediaNextAction'/></toolbar></ui>");
this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
this.toolbar1.Name = "toolbar1";
this.toolbar1.ShowArrow = false;
@ -181,7 +214,7 @@ namespace DMX2
w10.Expand = false;
w10.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild
this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar2'><toolitem name='saveAction' action='saveAction'/><toolitem name='saveAfterAction' action='saveAfterAction'/><toolitem name='applyAction' action='applyAction'/><toolitem name='deleteAction' action='deleteAction'/></toolbar></ui>");
this.UIManager.AddUiFromString(@"<ui><toolbar name='toolbar2'><toolitem name='saveAction' action='saveAction'/><toolitem name='saveAfterAction' action='saveAfterAction'/><toolitem name='applyAction' action='applyAction'/><toolitem name='deleteAction' action='deleteAction'/></toolbar></ui>");
this.toolbar2 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar2")));
this.toolbar2.Name = "toolbar2";
this.toolbar2.ShowArrow = false;
@ -212,7 +245,7 @@ namespace DMX2
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 ("<ui><toolbar name='toolbar3'><toolitem name='closeAction' action='closeAction'/><toolitem name='circuitsAction' action='circuitsAction'/><toolitem name='moveUpAction' action='moveUpAction'/><toolitem name='moveDownAction' action='moveDownAction'/><toolitem name='pourcentBtn' action='pourcentBtn'/></toolbar></ui>");
this.UIManager.AddUiFromString(@"<ui><toolbar name='toolbar3'><toolitem name='closeAction' action='closeAction'/><toolitem name='circuitsAction' action='circuitsAction'/><toolitem name='moveUpAction' action='moveUpAction'/><toolitem name='moveDownAction' action='moveDownAction'/><toolitem name='pourcentBtn' action='pourcentBtn'/></toolbar></ui>");
this.toolbar3 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar3")));
this.toolbar3.Name = "toolbar3";
this.toolbar3.Orientation = ((global::Gtk.Orientation)(1));
@ -253,7 +286,8 @@ namespace DMX2
this.titreLabel.UseMarkup = true;
this.frame1.LabelWidget = this.titreLabel;
this.Add(this.frame1);
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
w1.SetUiManager(UIManager);

View file

@ -265,7 +265,8 @@ namespace DMX2
this.titreLabel.UseMarkup = true;
this.frame1.LabelWidget = this.titreLabel;
this.Add(this.frame1);
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
w1.SetUiManager(UIManager);

View file

@ -223,7 +223,8 @@ namespace DMX2
this.titreLabel.UseMarkup = true;
this.frame1.LabelWidget = this.titreLabel;
this.Add(this.frame1);
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
w1.SetUiManager(UIManager);

View file

@ -8,8 +8,6 @@ namespace DMX2
private global::Gtk.ToggleAction closeAction;
private global::Gtk.Action circuitsAction;
private global::Gtk.Action goForwardAction;
private global::Gtk.Action goBackAction;
@ -46,8 +44,12 @@ namespace DMX2
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;
@ -66,8 +68,6 @@ namespace DMX2
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");
@ -156,20 +156,39 @@ namespace DMX2
w7.Expand = false;
w7.Fill = false;
// Container child vbox3.Gtk.Box+BoxChild
this.hbox3 = new global::Gtk.HBox();
this.hbox3.Name = "hbox3";
this.hbox3.Spacing = 6;
// Container child hbox3.Gtk.Box+BoxChild
this.UIManager.AddUiFromString(@"<ui><toolbar name='toolbar'><toolitem name='goForwardAction' action='goForwardAction'/><toolitem name='goBackAction' action='goBackAction'/><toolitem name='mediaPauseAction' action='mediaPauseAction'/><toolitem name='btnAjoutLigne' action='btnAjoutLigne'/><toolitem name='btnRetireligne' action='btnRetireligne'/><toolitem name='Action' action='Action'/></toolbar></ui>");
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.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 w9 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox3]));
w9.Position = 0;
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("<ui><toolbar name=\'toolbar1\'><toolitem name=\'closeAction\' action=\'closeAction\'/><" +
"/toolbar></ui>");
@ -180,16 +199,16 @@ namespace DMX2
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;
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 w11 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
w11.Position = 0;
w11.Expand = false;
w11.Fill = false;
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.CanFocus = true;
@ -202,18 +221,19 @@ namespace DMX2
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;
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)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
w1.SetUiManager(UIManager);
@ -225,6 +245,7 @@ namespace DMX2
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);
}
}

View file

@ -5,45 +5,85 @@ 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()
@ -168,169 +208,92 @@ namespace DMX2
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);
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 w17 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnPlay]));
w17.Position = 0;
w17.Expand = false;
w17.Fill = false;
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.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);
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 w26 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnPause]));
w26.Position = 1;
w26.Expand = false;
w26.Fill = false;
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.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);
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 w35 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnStop]));
w35.Position = 2;
w35.Expand = false;
w35.Fill = false;
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.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);
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 w44 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnPrev]));
w44.Position = 3;
w44.Expand = false;
w44.Fill = false;
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.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);
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 w53 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnRewind]));
w53.Position = 4;
w53.Expand = false;
w53.Fill = false;
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.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);
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 w62 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnForward]));
w62.Position = 5;
w62.Expand = false;
w62.Fill = false;
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.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);
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 w71 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.btnNext]));
w71.Position = 6;
w71.Expand = false;
w71.Fill = false;
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.CanFocus = true;
@ -338,8 +301,8 @@ namespace DMX2
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;
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.CanFocus = true;
@ -347,38 +310,40 @@ namespace DMX2
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;
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 w74 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.hbox3]));
w74.Position = 2;
w74.Expand = false;
w74.Fill = false;
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 w75 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox3]));
w75.Position = 0;
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.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;
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 ("<ui><toolbar name='toolbar4'><toolitem name='closeAction1' action='closeAction1'/><toolitem name='actAddFile' action='actAddFile'/><toolitem name='actDelFile' action='actDelFile'/></toolbar></ui>");
this.UIManager.AddUiFromString("<ui><toolbar name=\'toolbar4\'><toolitem name=\'closeAction1\' action=\'closeAction1\'/" +
"><toolitem name=\'actAddFile\' action=\'actAddFile\'/><toolitem name=\'actDelFile\' ac" +
"tion=\'actDelFile\'/></toolbar></ui>");
this.toolbar4 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar4")));
this.toolbar4.Name = "toolbar4";
this.toolbar4.Orientation = ((global::Gtk.Orientation)(1));
@ -386,15 +351,15 @@ namespace DMX2
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;
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 w78 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
w78.Position = 0;
w78.Expand = false;
w78.Fill = false;
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.Name = "GtkScrolledWindow";
@ -406,19 +371,20 @@ namespace DMX2
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;
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.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;
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();
@ -427,7 +393,8 @@ namespace DMX2
this.titreLabel.UseMarkup = true;
this.frame1.LabelWidget = this.titreLabel;
this.Add(this.frame1);
if ((this.Child != null)) {
if ((this.Child != null))
{
this.Child.ShowAll();
}
w1.SetUiManager(UIManager);

View file

@ -8,7 +8,8 @@ namespace Stetic
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();
@ -87,18 +88,27 @@ namespace Stetic
public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size)
{
Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
if ((res != null)) {
if ((res != null))
{
return res;
} else {
}
else
{
int sz;
int sy;
global::Gtk.Icon.SizeLookup(size, out sz, out sy);
try {
try
{
return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
} catch (System.Exception) {
if ((name != "gtk-missing-image")) {
}
catch (System.Exception)
{
if ((name != "gtk-missing-image"))
{
return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size);
} else {
}
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);
@ -137,14 +147,16 @@ namespace Stetic
private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs args)
{
if ((this.child != null)) {
if ((this.child != null))
{
args.Requisition = this.child.SizeRequest();
}
}
private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs args)
{
if ((this.child != null)) {
if ((this.child != null))
{
this.child.Allocation = args.Allocation;
}
}
@ -162,11 +174,13 @@ namespace Stetic
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))) {
&& typeof(Gtk.Window).IsInstanceOfType(w)))
{
((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup);
this.uimanager = null;
}

View file

@ -770,7 +770,7 @@ page</property>
</widget>
</child>
<child internal-child="ActionArea">
<widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
<widget class="Gtk.HButtonBox" id="dialog_ActionArea">
<property name="MemberName" />
<property name="Spacing">10</property>
<property name="BorderWidth">5</property>
@ -1180,7 +1180,7 @@ au sequenceur</property>
</packing>
</child>
<child>
<widget class="Gtk.VButtonBox" id="vbuttonbox1">
<widget class="Gtk.VButtonBox" id="vbuttonbox">
<property name="MemberName" />
<property name="Size">6</property>
<property name="LayoutStyle">Start</property>
@ -1371,7 +1371,7 @@ au sequenceur</property>
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Label" id="label1">
<widget class="Gtk.Label" id="labelU">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Univers :</property>
</widget>
@ -2415,6 +2415,10 @@ r: loop</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.HBox" id="hbox3">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Toolbar" id="toolbar">
<property name="MemberName" />
@ -2430,6 +2434,31 @@ r: loop</property>
<node type="Toolitem" action="Action" />
</node>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
</packing>
</child>
<child>
<placeholder />
</child>
<child>
<widget class="Gtk.Entry" id="entryDest">
<property name="MemberName" />
<property name="WidthRequest">220</property>
<property name="CanFocus">True</property>
<property name="IsEditable">True</property>
<property name="InvisibleChar">●</property>
<signal name="Changed" handler="OnEntryDestChanged" />
</widget>
<packing>
<property name="Position">2</property>
<property name="AutoSize">False</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
@ -2498,7 +2527,7 @@ r: loop</property>
<child>
<widget class="Gtk.Label" id="titreLabel">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Séquenceur Midi</property>
<property name="LabelProp" translatable="yes">Séquenceur OSC</property>
<property name="UseMarkup">True</property>
</widget>
<packing>
@ -2670,7 +2699,7 @@ r: loop</property>
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Label" id="label1">
<widget class="Gtk.Label" id="labelT">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Driver Boitier V1</property>
</widget>
@ -2822,7 +2851,7 @@ r: loop</property>
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Label" id="label1">
<widget class="Gtk.Label" id="labelT">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Driver V2</property>
</widget>
@ -3200,7 +3229,7 @@ r: loop</property>
<property name="MemberName" />
<property name="BorderWidth">2</property>
<child>
<widget class="Gtk.Label" id="label1">
<widget class="Gtk.Label" id="labelA">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Loupiottes
@ -3247,7 +3276,7 @@ Licence : GPL V2</property>
</widget>
</child>
</widget>
<widget class="Gtk.Bin" id="DMX2.DriverBoitierV3UI" design-size="546 300">
<widget class="Gtk.Bin" id="DMX2.DriverBoitierV3UI" design-size="548 300">
<property name="MemberName" />
<property name="Visible">False</property>
<child>
@ -3255,7 +3284,7 @@ Licence : GPL V2</property>
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Label" id="label1">
<widget class="Gtk.Label" id="labelT">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">Driver V3</property>
</widget>
@ -3997,7 +4026,7 @@ trames DMX (ms)</property>
</widget>
</child>
<child>
<widget class="Gtk.Label" id="GtkLabel6">
<widget class="Gtk.Label" id="GtkLabelT">
<property name="MemberName" />
<property name="LabelProp" translatable="yes">&lt;b&gt;Options Midi&lt;/b&gt;</property>
<property name="UseMarkup">True</property>