This commit is contained in:
tzim 2013-05-21 20:43:55 +00:00
parent bb4d376e87
commit f698ab599f
9 changed files with 259 additions and 97 deletions

View file

@ -23,6 +23,8 @@ namespace DMX2
List<DriverDMX> drivers = new List<DriverDMX>(); List<DriverDMX> drivers = new List<DriverDMX>();
SequenceurMaitre seqmaitre = new SequenceurMaitre();
public Conduite() public Conduite()
{ {
@ -80,6 +82,12 @@ namespace DMX2
} }
} }
public SequenceurMaitre SequenceurMaitre {
get {
return seqmaitre;
}
}
public List<DriverDMX> Drivers { public List<DriverDMX> Drivers {
get { get {
return drivers; return drivers;

View file

@ -106,6 +106,7 @@
<Compile Include="gtk-gui\DMX2.EditionUnivers.cs" /> <Compile Include="gtk-gui\DMX2.EditionUnivers.cs" />
<Compile Include="DriverDMX.cs" /> <Compile Include="DriverDMX.cs" />
<Compile Include="DriverBoitierV1.cs" /> <Compile Include="DriverBoitierV1.cs" />
<Compile Include="SequenceurMaitre.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View file

@ -28,7 +28,6 @@ namespace DMX2
outputbuffer[4]=255; outputbuffer[4]=255;
} }
void Start () void Start ()
{ {
OpenPort(); OpenPort();
@ -106,7 +105,7 @@ namespace DMX2
if(!serial.IsOpen) return; if(!serial.IsOpen) return;
serial.Read(inputbuffer,0,inputbuffer.Length); serial.Read(inputbuffer,0,inputbuffer.Length);
Console.WriteLine(inputbuffer[0]); //Console.WriteLine(inputbuffer[0]);
} catch (TimeoutException ex) { } catch (TimeoutException ex) {
serial.Close(); serial.Close();

View file

@ -257,6 +257,8 @@ namespace DMX2
} }
} }
seqMasterScale.Value = sequenceur.Master;
fullUpdFlag=false; fullUpdFlag=false;
} }
@ -273,7 +275,7 @@ namespace DMX2
{ {
updating = true; updating = true;
foreach (Circuit c in tirettes.Keys) { foreach (Circuit c in tirettes.Keys) {
tirettes[c].Value = sequenceur.ValeurCircuit(c); tirettes[c].Value = sequenceur.ValeurBruteCircuit(c);
} }
updating=false; updating=false;
} }
@ -363,6 +365,14 @@ namespace DMX2
UpdListeEffets(); UpdListeEffets();
effetsListe.SetCursor(new TreePath( new int[1] {pos}) ,null,false); effetsListe.SetCursor(new TreePath( new int[1] {pos}) ,null,false);
} }
protected void OnSeqMasterScaleValueChanged (object sender, EventArgs e)
{
if (fullUpdFlag)return;
sequenceur.Master = (int)(seqMasterScale.Value);
}
} }
} }

View file

@ -75,6 +75,17 @@ namespace DMX2
Dictionary<Circuit,bool> valeurschangees = new Dictionary<Circuit, bool> (); Dictionary<Circuit,bool> valeurschangees = new Dictionary<Circuit, bool> ();
SeqLinUI ui = null; SeqLinUI ui = null;
int master = 100;
public int Master {
get {
return master;
}
set {
master = value;
}
}
public SequenceurLineaire () public SequenceurLineaire ()
{ {
effetcourrant = new Effet ("",valeurscourantes , TimeSpan.Zero, TimeSpan.Zero); effetcourrant = new Effet ("",valeurscourantes , TimeSpan.Zero, TimeSpan.Zero);
@ -146,6 +157,15 @@ namespace DMX2
} }
public override int ValeurCircuit (Circuit c) public override int ValeurCircuit (Circuit c)
{
if (!circuitsSeq.Contains (c))
return 0;
if(master !=100)
return valeurscourantes [c] * master /100;
return valeurscourantes [c];
}
public int ValeurBruteCircuit (Circuit c)
{ {
if (!circuitsSeq.Contains (c)) if (!circuitsSeq.Contains (c))
return 0; return 0;

View file

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
namespace DMX2
{
public class SequenceurMaitre
{
public class Ligne {
public Ligne(){}
Dictionary<Sequenceur,int> data = new Dictionary<Sequenceur, int>();
public int this [Sequenceur index] {
get {
int value;
if(!data.TryGetValue(index, out value)) return -1;
return value;
}
set {
data[index] = value;
}
}
}
List<Ligne> lignes = new List<Ligne>();
public List<Ligne> Lignes {
get {
return lignes;
}
}
public SequenceurMaitre ()
{
}
}
}

View file

@ -33,10 +33,10 @@ namespace DMX2
private global::Gtk.VSeparator vseparator1; private global::Gtk.VSeparator vseparator1;
private global::Gtk.HPaned hpaned1; private global::Gtk.HPaned hpaned1;
private global::Gtk.HPaned hpaned2; private global::Gtk.HPaned hpaned2;
private global::Gtk.ScrolledWindow GtkScrolledWindow;
private global::Gtk.VBox seqUiVbox;
private global::Gtk.ScrolledWindow GtkScrolledWindow2; private global::Gtk.ScrolledWindow GtkScrolledWindow2;
private global::Gtk.NodeView nodeview1; private global::Gtk.NodeView nodeview1;
private global::Gtk.ScrolledWindow GtkScrolledWindow;
private global::Gtk.VBox seqUiVbox;
private global::Gtk.ScrolledWindow scrolledwindow2; private global::Gtk.ScrolledWindow scrolledwindow2;
private global::Gtk.VBox vboxCircuits; private global::Gtk.VBox vboxCircuits;
private global::Gtk.HSeparator hseparator1; private global::Gtk.HSeparator hseparator1;
@ -268,28 +268,12 @@ namespace DMX2
this.hpaned1 = new global::Gtk.HPaned (); this.hpaned1 = new global::Gtk.HPaned ();
this.hpaned1.CanFocus = true; this.hpaned1.CanFocus = true;
this.hpaned1.Name = "hpaned1"; this.hpaned1.Name = "hpaned1";
this.hpaned1.Position = 727; this.hpaned1.Position = 781;
// Container child hpaned1.Gtk.Paned+PanedChild // Container child hpaned1.Gtk.Paned+PanedChild
this.hpaned2 = new global::Gtk.HPaned (); this.hpaned2 = new global::Gtk.HPaned ();
this.hpaned2.CanFocus = true; this.hpaned2.CanFocus = true;
this.hpaned2.Name = "hpaned2"; this.hpaned2.Name = "hpaned2";
this.hpaned2.Position = 561; this.hpaned2.Position = 177;
// Container child hpaned2.Gtk.Paned+PanedChild
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow.Name = "GtkScrolledWindow";
this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
global::Gtk.Viewport w50 = new global::Gtk.Viewport ();
w50.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child GtkViewport.Gtk.Container+ContainerChild
this.seqUiVbox = new global::Gtk.VBox ();
this.seqUiVbox.Name = "seqUiVbox";
this.seqUiVbox.Spacing = 6;
w50.Add (this.seqUiVbox);
this.GtkScrolledWindow.Add (w50);
this.hpaned2.Add (this.GtkScrolledWindow);
global::Gtk.Paned.PanedChild w53 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.GtkScrolledWindow]));
w53.Resize = false;
// Container child hpaned2.Gtk.Paned+PanedChild // Container child hpaned2.Gtk.Paned+PanedChild
this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow (); this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
@ -300,9 +284,22 @@ namespace DMX2
this.nodeview1.Name = "nodeview1"; this.nodeview1.Name = "nodeview1";
this.GtkScrolledWindow2.Add (this.nodeview1); this.GtkScrolledWindow2.Add (this.nodeview1);
this.hpaned2.Add (this.GtkScrolledWindow2); this.hpaned2.Add (this.GtkScrolledWindow2);
global::Gtk.Paned.PanedChild w55 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.GtkScrolledWindow2])); global::Gtk.Paned.PanedChild w51 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.GtkScrolledWindow2]));
w55.Resize = false; w51.Resize = false;
w55.Shrink = false; // Container child hpaned2.Gtk.Paned+PanedChild
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow.Name = "GtkScrolledWindow";
this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
global::Gtk.Viewport w52 = new global::Gtk.Viewport ();
w52.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child GtkViewport.Gtk.Container+ContainerChild
this.seqUiVbox = new global::Gtk.VBox ();
this.seqUiVbox.Name = "seqUiVbox";
this.seqUiVbox.Spacing = 6;
w52.Add (this.seqUiVbox);
this.GtkScrolledWindow.Add (w52);
this.hpaned2.Add (this.GtkScrolledWindow);
this.hpaned1.Add (this.hpaned2); this.hpaned1.Add (this.hpaned2);
global::Gtk.Paned.PanedChild w56 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.hpaned2])); global::Gtk.Paned.PanedChild w56 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.hpaned2]));
w56.Resize = false; w56.Resize = false;

View file

@ -22,7 +22,10 @@ namespace DMX2
private global::Gtk.VBox vbox2; private global::Gtk.VBox vbox2;
private global::Gtk.HBox hbox1; private global::Gtk.HBox hbox1;
private global::Gtk.VBox vbox4; private global::Gtk.VBox vbox4;
private global::Gtk.HBox hbox2;
private global::Gtk.Label posLabel;
private global::Gtk.Label timeLabel; private global::Gtk.Label timeLabel;
private global::Gtk.HScale seqMasterScale;
private global::Gtk.ProgressBar pbTrans; private global::Gtk.ProgressBar pbTrans;
private global::Gtk.ProgressBar pbDuree; private global::Gtk.ProgressBar pbDuree;
private global::Gtk.Toolbar toolbar1; private global::Gtk.Toolbar toolbar1;
@ -86,34 +89,74 @@ namespace DMX2
this.vbox4 = new global::Gtk.VBox (); this.vbox4 = new global::Gtk.VBox ();
this.vbox4.Name = "vbox4"; this.vbox4.Name = "vbox4";
// Container child vbox4.Gtk.Box+BoxChild // Container child vbox4.Gtk.Box+BoxChild
this.timeLabel = new global::Gtk.Label (); this.hbox2 = new global::Gtk.HBox ();
this.timeLabel.HeightRequest = 33; this.hbox2.Name = "hbox2";
this.timeLabel.Name = "timeLabel"; this.hbox2.Spacing = 6;
this.timeLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("<big>0.00</big>"); // Container child hbox2.Gtk.Box+BoxChild
this.timeLabel.UseMarkup = true; this.posLabel = new global::Gtk.Label ();
this.vbox4.Add (this.timeLabel); this.posLabel.Name = "posLabel";
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.timeLabel])); this.posLabel.Xpad = 10;
this.posLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("<big>n°0</big>");
this.posLabel.UseMarkup = true;
this.hbox2.Add (this.posLabel);
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.posLabel]));
w3.Position = 0; w3.Position = 0;
w3.Expand = false; w3.Expand = false;
w3.Fill = false; w3.Fill = false;
// Container child hbox2.Gtk.Box+BoxChild
this.timeLabel = new global::Gtk.Label ();
this.timeLabel.HeightRequest = 33;
this.timeLabel.Name = "timeLabel";
this.timeLabel.Xpad = 30;
this.timeLabel.Xalign = 1F;
this.timeLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("<big>0.00</big>");
this.timeLabel.UseMarkup = true;
this.timeLabel.Justify = ((global::Gtk.Justification)(1));
this.hbox2.Add (this.timeLabel);
global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.timeLabel]));
w4.PackType = ((global::Gtk.PackType)(1));
w4.Position = 1;
w4.Expand = false;
w4.Fill = false;
this.vbox4.Add (this.hbox2);
global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.hbox2]));
w5.Position = 0;
w5.Expand = false;
w5.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild
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.DrawValue = true;
this.seqMasterScale.Digits = 0;
this.seqMasterScale.ValuePos = ((global::Gtk.PositionType)(1));
this.vbox4.Add (this.seqMasterScale);
global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.seqMasterScale]));
w6.Position = 1;
w6.Expand = false;
w6.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild // Container child vbox4.Gtk.Box+BoxChild
this.pbTrans = new global::Gtk.ProgressBar (); this.pbTrans = new global::Gtk.ProgressBar ();
this.pbTrans.HeightRequest = 15; this.pbTrans.HeightRequest = 15;
this.pbTrans.Name = "pbTrans"; this.pbTrans.Name = "pbTrans";
this.vbox4.Add (this.pbTrans); this.vbox4.Add (this.pbTrans);
global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.pbTrans])); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.pbTrans]));
w4.Position = 1; w7.Position = 2;
w4.Expand = false; w7.Expand = false;
w4.Fill = false; w7.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild // Container child vbox4.Gtk.Box+BoxChild
this.pbDuree = new global::Gtk.ProgressBar (); this.pbDuree = new global::Gtk.ProgressBar ();
this.pbDuree.HeightRequest = 15; this.pbDuree.HeightRequest = 15;
this.pbDuree.Name = "pbDuree"; this.pbDuree.Name = "pbDuree";
this.vbox4.Add (this.pbDuree); this.vbox4.Add (this.pbDuree);
global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.pbDuree])); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.pbDuree]));
w5.Position = 2; w8.Position = 3;
w5.Expand = false; w8.Expand = false;
w5.Fill = false; w8.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild // 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 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1")));
@ -122,10 +165,10 @@ namespace DMX2
this.toolbar1.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar1.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
this.toolbar1.IconSize = ((global::Gtk.IconSize)(2)); this.toolbar1.IconSize = ((global::Gtk.IconSize)(2));
this.vbox4.Add (this.toolbar1); this.vbox4.Add (this.toolbar1);
global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.toolbar1])); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.toolbar1]));
w6.Position = 3; w9.Position = 4;
w6.Expand = false; w9.Expand = false;
w6.Fill = false; w9.Fill = false;
// Container child vbox4.Gtk.Box+BoxChild // 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 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar2")));
@ -133,15 +176,15 @@ namespace DMX2
this.toolbar2.ShowArrow = false; this.toolbar2.ShowArrow = false;
this.toolbar2.IconSize = ((global::Gtk.IconSize)(2)); this.toolbar2.IconSize = ((global::Gtk.IconSize)(2));
this.vbox4.Add (this.toolbar2); this.vbox4.Add (this.toolbar2);
global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.toolbar2])); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.toolbar2]));
w7.Position = 4; w10.Position = 5;
w7.Expand = false; w10.Expand = false;
w7.Fill = false; w10.Fill = false;
this.hbox1.Add (this.vbox4); this.hbox1.Add (this.vbox4);
global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox4])); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox4]));
w8.Position = 0; w11.Position = 0;
w8.Expand = false; w11.Expand = false;
w8.Fill = false; w11.Fill = false;
// Container child hbox1.Gtk.Box+BoxChild // Container child hbox1.Gtk.Box+BoxChild
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.Name = "GtkScrolledWindow";
@ -153,8 +196,8 @@ namespace DMX2
this.effetsListe.Name = "effetsListe"; this.effetsListe.Name = "effetsListe";
this.GtkScrolledWindow.Add (this.effetsListe); this.GtkScrolledWindow.Add (this.effetsListe);
this.hbox1.Add (this.GtkScrolledWindow); this.hbox1.Add (this.GtkScrolledWindow);
global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow])); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow]));
w10.Position = 1; w13.Position = 1;
// Container child hbox1.Gtk.Box+BoxChild // 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'/></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'/></toolbar></ui>");
this.toolbar3 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar3"))); this.toolbar3 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar3")));
@ -164,25 +207,25 @@ namespace DMX2
this.toolbar3.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); this.toolbar3.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
this.toolbar3.IconSize = ((global::Gtk.IconSize)(2)); this.toolbar3.IconSize = ((global::Gtk.IconSize)(2));
this.hbox1.Add (this.toolbar3); this.hbox1.Add (this.toolbar3);
global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.toolbar3])); global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.toolbar3]));
w11.Position = 2; w14.Position = 2;
w11.Expand = false; w14.Expand = false;
w11.Fill = false; w14.Fill = false;
this.vbox2.Add (this.hbox1); this.vbox2.Add (this.hbox1);
global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
w12.Position = 0; w15.Position = 0;
w12.Expand = false; w15.Expand = false;
w12.Fill = false; w15.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild // Container child vbox2.Gtk.Box+BoxChild
this.zoneWid = new global::Gtk.Fixed (); this.zoneWid = new global::Gtk.Fixed ();
this.zoneWid.HeightRequest = 0; this.zoneWid.HeightRequest = 0;
this.zoneWid.Name = "zoneWid"; this.zoneWid.Name = "zoneWid";
this.zoneWid.HasWindow = false; this.zoneWid.HasWindow = false;
this.vbox2.Add (this.zoneWid); this.vbox2.Add (this.zoneWid);
global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.zoneWid])); global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.zoneWid]));
w13.Position = 1; w16.Position = 1;
w13.Expand = false; w16.Expand = false;
w13.Fill = false; w16.Fill = false;
this.GtkAlignment.Add (this.vbox2); this.GtkAlignment.Add (this.vbox2);
this.frame1.Add (this.GtkAlignment); this.frame1.Add (this.GtkAlignment);
this.titreLabel = new global::Gtk.Label (); this.titreLabel = new global::Gtk.Label ();
@ -208,6 +251,7 @@ namespace DMX2
this.moveDownAction.Activated += new global::System.EventHandler (this.OnMoveDownActionActivated); this.moveDownAction.Activated += new global::System.EventHandler (this.OnMoveDownActionActivated);
this.circuitsAction.Activated += new global::System.EventHandler (this.OnCircuitsActionActivated); this.circuitsAction.Activated += new global::System.EventHandler (this.OnCircuitsActionActivated);
this.closeAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated); this.closeAction.Activated += new global::System.EventHandler (this.OnCloseActionActivated);
this.seqMasterScale.ValueChanged += new global::System.EventHandler (this.OnSeqMasterScaleValueChanged);
this.zoneWid.SizeAllocated += new global::Gtk.SizeAllocatedHandler (this.OnZoneWidSizeAllocated); this.zoneWid.SizeAllocated += new global::Gtk.SizeAllocatedHandler (this.OnZoneWidSizeAllocated);
} }
} }

View file

@ -306,12 +306,28 @@
<widget class="Gtk.HPaned" id="hpaned1"> <widget class="Gtk.HPaned" id="hpaned1">
<property name="MemberName" /> <property name="MemberName" />
<property name="CanFocus">True</property> <property name="CanFocus">True</property>
<property name="Position">727</property> <property name="Position">781</property>
<child> <child>
<widget class="Gtk.HPaned" id="hpaned2"> <widget class="Gtk.HPaned" id="hpaned2">
<property name="MemberName" /> <property name="MemberName" />
<property name="CanFocus">True</property> <property name="CanFocus">True</property>
<property name="Position">561</property> <property name="Position">177</property>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow2">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.NodeView" id="nodeview1">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
</widget>
</child>
</widget>
<packing>
<property name="Resize">False</property>
</packing>
</child>
<child> <child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> <widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
<property name="MemberName" /> <property name="MemberName" />
@ -339,26 +355,6 @@
</widget> </widget>
</child> </child>
</widget> </widget>
<packing>
<property name="Resize">False</property>
</packing>
</child>
<child>
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow2">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.NodeView" id="nodeview1">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
</widget>
</child>
</widget>
<packing>
<property name="Resize">False</property>
<property name="Shrink">False</property>
</packing>
</child> </child>
</widget> </widget>
<packing> <packing>
@ -687,11 +683,41 @@
<widget class="Gtk.VBox" id="vbox4"> <widget class="Gtk.VBox" id="vbox4">
<property name="MemberName" /> <property name="MemberName" />
<child> <child>
<widget class="Gtk.Label" id="timeLabel"> <widget class="Gtk.HBox" id="hbox2">
<property name="MemberName" /> <property name="MemberName" />
<property name="HeightRequest">33</property> <property name="Spacing">6</property>
<property name="LabelProp" translatable="yes">&lt;big&gt;0.00&lt;/big&gt;</property> <child>
<property name="UseMarkup">True</property> <widget class="Gtk.Label" id="posLabel">
<property name="MemberName" />
<property name="Xpad">10</property>
<property name="LabelProp" translatable="yes">&lt;big&gt;n°0&lt;/big&gt;</property>
<property name="UseMarkup">True</property>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child>
<widget class="Gtk.Label" id="timeLabel">
<property name="MemberName" />
<property name="HeightRequest">33</property>
<property name="Xpad">30</property>
<property name="Xalign">1</property>
<property name="LabelProp" translatable="yes">&lt;big&gt;0.00&lt;/big&gt;</property>
<property name="UseMarkup">True</property>
<property name="Justify">Right</property>
</widget>
<packing>
<property name="PackType">End</property>
<property name="Position">1</property>
<property name="AutoSize">False</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
</widget> </widget>
<packing> <packing>
<property name="Position">0</property> <property name="Position">0</property>
@ -700,13 +726,33 @@
<property name="Fill">False</property> <property name="Fill">False</property>
</packing> </packing>
</child> </child>
<child>
<widget class="Gtk.HScale" id="seqMasterScale">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Upper">100</property>
<property name="PageIncrement">10</property>
<property name="StepIncrement">1</property>
<property name="Value">100</property>
<property name="DrawValue">True</property>
<property name="Digits">0</property>
<property name="ValuePos">Right</property>
<signal name="ValueChanged" handler="OnSeqMasterScaleValueChanged" />
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
<child> <child>
<widget class="Gtk.ProgressBar" id="pbTrans"> <widget class="Gtk.ProgressBar" id="pbTrans">
<property name="MemberName" /> <property name="MemberName" />
<property name="HeightRequest">15</property> <property name="HeightRequest">15</property>
</widget> </widget>
<packing> <packing>
<property name="Position">1</property> <property name="Position">2</property>
<property name="AutoSize">True</property> <property name="AutoSize">True</property>
<property name="Expand">False</property> <property name="Expand">False</property>
<property name="Fill">False</property> <property name="Fill">False</property>
@ -718,7 +764,7 @@
<property name="HeightRequest">15</property> <property name="HeightRequest">15</property>
</widget> </widget>
<packing> <packing>
<property name="Position">2</property> <property name="Position">3</property>
<property name="AutoSize">True</property> <property name="AutoSize">True</property>
<property name="Expand">False</property> <property name="Expand">False</property>
<property name="Fill">False</property> <property name="Fill">False</property>
@ -738,7 +784,7 @@
</node> </node>
</widget> </widget>
<packing> <packing>
<property name="Position">3</property> <property name="Position">4</property>
<property name="AutoSize">True</property> <property name="AutoSize">True</property>
<property name="Expand">False</property> <property name="Expand">False</property>
<property name="Fill">False</property> <property name="Fill">False</property>
@ -757,7 +803,7 @@
</node> </node>
</widget> </widget>
<packing> <packing>
<property name="Position">4</property> <property name="Position">5</property>
<property name="AutoSize">True</property> <property name="AutoSize">True</property>
<property name="Expand">False</property> <property name="Expand">False</property>
<property name="Fill">False</property> <property name="Fill">False</property>