Ajout gestion circuits - debut

This commit is contained in:
tzim 2013-04-09 22:20:02 +00:00
parent f3df8dc82c
commit ae242bfde0
8 changed files with 548 additions and 175 deletions

View file

@ -2,18 +2,172 @@
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|x86" />
<MonoDevelop.Ide.Workbench ActiveDocument="DMX-2.0/MainWindow.cs">
<Files>
<File FileName="DMX-2.0/MainWindow.cs" Line="21" Column="24" />
<File FileName="DMX-2.0/Conduite.cs" Line="9" Column="3" />
<File FileName="DMX-2.0/MainWindow.cs" Line="28" Column="13" />
<File FileName="DMX-2.0/Conduite.cs" Line="21" Column="48" />
<File FileName="DMX-2.0/AssemblyInfo.cs" Line="1" Column="1" />
<File FileName="DMX-2.0/UniversDMX.cs" Line="20" Column="13" />
<File FileName="DMX-2.0/Sequenceur.cs" Line="39" Column="37" />
<File FileName="DMX-2.0/SequenceurLineaire.cs" Line="30" Column="18" />
<File FileName="DMX-2.0/SequenceurLineaire.cs" Line="89" Column="31" />
<File FileName="DMX-2.0/IDriverDMX.cs" Line="13" Column="1" />
<File FileName="DMX-2.0/Main.cs" Line="17" Column="4" />
<File FileName="DMX-2.0/GestionCircuits.cs" Line="26" Column="4" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
<BreakpointStore>
<Catchpoint exceptionName="Glade.HandlerNotFoundException" />
<Catchpoint exceptionName="GLib.GException" />
<Catchpoint exceptionName="GLib.MissingIntPtrCtorException" />
<Catchpoint exceptionName="Mono.Unix.UnixIOException" />
<Catchpoint exceptionName="Mono.Xml.SmallXmlParserException" />
<Catchpoint exceptionName="Mono.Xml.XPath.yyParser.yyException" />
<Catchpoint exceptionName="Mono.Xml.XPath.yyParser.yyUnexpectedEof" />
<Catchpoint exceptionName="Mono.Xml.Xsl.yyParser.yyException" />
<Catchpoint exceptionName="Mono.Xml.Xsl.yyParser.yyUnexpectedEof" />
<Catchpoint exceptionName="System.AccessViolationException" />
<Catchpoint exceptionName="System.AggregateException" />
<Catchpoint exceptionName="System.AppDomainUnloadedException" />
<Catchpoint exceptionName="System.ApplicationException" />
<Catchpoint exceptionName="System.ArgumentException" />
<Catchpoint exceptionName="System.ArgumentNullException" />
<Catchpoint exceptionName="System.ArgumentOutOfRangeException" />
<Catchpoint exceptionName="System.ArithmeticException" />
<Catchpoint exceptionName="System.ArrayTypeMismatchException" />
<Catchpoint exceptionName="System.BadImageFormatException" />
<Catchpoint exceptionName="System.CannotUnloadAppDomainException" />
<Catchpoint exceptionName="System.Collections.Generic.KeyNotFoundException" />
<Catchpoint exceptionName="System.ComponentModel.Design.CheckoutException" />
<Catchpoint exceptionName="System.ComponentModel.InvalidAsynchronousStateException" />
<Catchpoint exceptionName="System.ComponentModel.InvalidEnumArgumentException" />
<Catchpoint exceptionName="System.ComponentModel.LicenseException" />
<Catchpoint exceptionName="System.ComponentModel.WarningException" />
<Catchpoint exceptionName="System.ComponentModel.Win32Exception" />
<Catchpoint exceptionName="System.Configuration.ConfigurationException" />
<Catchpoint exceptionName="System.Configuration.SettingsPropertyIsReadOnlyException" />
<Catchpoint exceptionName="System.Configuration.SettingsPropertyNotFoundException" />
<Catchpoint exceptionName="System.Configuration.SettingsPropertyWrongTypeException" />
<Catchpoint exceptionName="System.ContextMarshalException" />
<Catchpoint exceptionName="System.DataMisalignedException" />
<Catchpoint exceptionName="System.Diagnostics.Contracts.ContractException" />
<Catchpoint exceptionName="System.Diagnostics.Contracts.ContractShouldAssertException" />
<Catchpoint exceptionName="System.DivideByZeroException" />
<Catchpoint exceptionName="System.DllNotFoundException" />
<Catchpoint exceptionName="System.DuplicateWaitObjectException" />
<Catchpoint exceptionName="System.EntryPointNotFoundException" />
<Catchpoint exceptionName="System.Exception" />
<Catchpoint exceptionName="System.ExecutionEngineException" />
<Catchpoint exceptionName="System.FieldAccessException" />
<Catchpoint exceptionName="System.FormatException" />
<Catchpoint exceptionName="System.Globalization.CultureNotFoundException" />
<Catchpoint exceptionName="System.IndexOutOfRangeException" />
<Catchpoint exceptionName="System.InsufficientExecutionStackException" />
<Catchpoint exceptionName="System.InsufficientMemoryException" />
<Catchpoint exceptionName="System.InvalidCastException" />
<Catchpoint exceptionName="System.InvalidOperationException" />
<Catchpoint exceptionName="System.InvalidProgramException" />
<Catchpoint exceptionName="System.InvalidTimeZoneException" />
<Catchpoint exceptionName="System.IO.DirectoryNotFoundException" />
<Catchpoint exceptionName="System.IO.DriveNotFoundException" />
<Catchpoint exceptionName="System.IO.EndOfStreamException" />
<Catchpoint exceptionName="System.IO.FileLoadException" />
<Catchpoint exceptionName="System.IO.FileNotFoundException" />
<Catchpoint exceptionName="System.IO.InternalBufferOverflowException" />
<Catchpoint exceptionName="System.IO.InvalidDataException" />
<Catchpoint exceptionName="System.IO.IOException" />
<Catchpoint exceptionName="System.IO.IsolatedStorage.IsolatedStorageException" />
<Catchpoint exceptionName="System.IO.PathTooLongException" />
<Catchpoint exceptionName="System.MemberAccessException" />
<Catchpoint exceptionName="System.MethodAccessException" />
<Catchpoint exceptionName="System.MissingFieldException" />
<Catchpoint exceptionName="System.MissingMemberException" />
<Catchpoint exceptionName="System.MissingMethodException" />
<Catchpoint exceptionName="System.MulticastNotSupportedException" />
<Catchpoint exceptionName="System.Net.CookieException" />
<Catchpoint exceptionName="System.Net.HttpListenerException" />
<Catchpoint exceptionName="System.Net.Mail.SmtpClient+CancellationException" />
<Catchpoint exceptionName="System.Net.Mail.SmtpException" />
<Catchpoint exceptionName="System.Net.Mail.SmtpFailedRecipientException" />
<Catchpoint exceptionName="System.Net.Mail.SmtpFailedRecipientsException" />
<Catchpoint exceptionName="System.Net.NetworkInformation.NetworkInformationException" />
<Catchpoint exceptionName="System.Net.NetworkInformation.PingException" />
<Catchpoint exceptionName="System.Net.ProtocolViolationException" />
<Catchpoint exceptionName="System.Net.Sockets.SocketException" />
<Catchpoint exceptionName="System.Net.WebException" />
<Catchpoint exceptionName="System.NotFiniteNumberException" />
<Catchpoint exceptionName="System.NotImplementedException" />
<Catchpoint exceptionName="System.NotSupportedException" />
<Catchpoint exceptionName="System.NullReferenceException" />
<Catchpoint exceptionName="System.ObjectDisposedException" />
<Catchpoint exceptionName="System.OperationCanceledException" />
<Catchpoint exceptionName="System.OutOfMemoryException" />
<Catchpoint exceptionName="System.OverflowException" />
<Catchpoint exceptionName="System.PlatformNotSupportedException" />
<Catchpoint exceptionName="System.RankException" />
<Catchpoint exceptionName="System.Reflection.AmbiguousMatchException" />
<Catchpoint exceptionName="System.Reflection.CustomAttributeFormatException" />
<Catchpoint exceptionName="System.Reflection.InvalidFilterCriteriaException" />
<Catchpoint exceptionName="System.Reflection.ReflectionTypeLoadException" />
<Catchpoint exceptionName="System.Reflection.TargetException" />
<Catchpoint exceptionName="System.Reflection.TargetInvocationException" />
<Catchpoint exceptionName="System.Reflection.TargetParameterCountException" />
<Catchpoint exceptionName="System.Resources.MissingManifestResourceException" />
<Catchpoint exceptionName="System.Resources.MissingSatelliteAssemblyException" />
<Catchpoint exceptionName="System.Runtime.CompilerServices.RuntimeWrappedException" />
<Catchpoint exceptionName="System.Runtime.InteropServices.COMException" />
<Catchpoint exceptionName="System.Runtime.InteropServices.ExternalException" />
<Catchpoint exceptionName="System.Runtime.InteropServices.InvalidComObjectException" />
<Catchpoint exceptionName="System.Runtime.InteropServices.InvalidOleVariantTypeException" />
<Catchpoint exceptionName="System.Runtime.InteropServices.MarshalDirectiveException" />
<Catchpoint exceptionName="System.Runtime.InteropServices.SafeArrayRankMismatchException" />
<Catchpoint exceptionName="System.Runtime.InteropServices.SafeArrayTypeMismatchException" />
<Catchpoint exceptionName="System.Runtime.InteropServices.SEHException" />
<Catchpoint exceptionName="System.Runtime.Remoting.RemotingException" />
<Catchpoint exceptionName="System.Runtime.Remoting.RemotingTimeoutException" />
<Catchpoint exceptionName="System.Runtime.Remoting.ServerException" />
<Catchpoint exceptionName="System.Runtime.Serialization.SerializationException" />
<Catchpoint exceptionName="System.Security.AccessControl.PrivilegeNotHeldException" />
<Catchpoint exceptionName="System.Security.Authentication.AuthenticationException" />
<Catchpoint exceptionName="System.Security.Authentication.InvalidCredentialException" />
<Catchpoint exceptionName="System.Security.Cryptography.CryptographicException" />
<Catchpoint exceptionName="System.Security.Cryptography.CryptographicUnexpectedOperationException" />
<Catchpoint exceptionName="System.Security.HostProtectionException" />
<Catchpoint exceptionName="System.Security.Policy.PolicyException" />
<Catchpoint exceptionName="System.Security.Principal.IdentityNotMappedException" />
<Catchpoint exceptionName="System.Security.SecurityException" />
<Catchpoint exceptionName="System.Security.VerificationException" />
<Catchpoint exceptionName="System.Security.XmlSyntaxException" />
<Catchpoint exceptionName="System.StackOverflowException" />
<Catchpoint exceptionName="System.SystemException" />
<Catchpoint exceptionName="System.Text.DecoderFallbackException" />
<Catchpoint exceptionName="System.Text.EncoderFallbackException" />
<Catchpoint exceptionName="System.Threading.AbandonedMutexException" />
<Catchpoint exceptionName="System.Threading.BarrierPostPhaseException" />
<Catchpoint exceptionName="System.Threading.LockRecursionException" />
<Catchpoint exceptionName="System.Threading.SemaphoreFullException" />
<Catchpoint exceptionName="System.Threading.SynchronizationLockException" />
<Catchpoint exceptionName="System.Threading.Tasks.TaskCanceledException" />
<Catchpoint exceptionName="System.Threading.Tasks.TaskSchedulerException" />
<Catchpoint exceptionName="System.Threading.ThreadAbortException" />
<Catchpoint exceptionName="System.Threading.ThreadInterruptedException" />
<Catchpoint exceptionName="System.Threading.ThreadStartException" />
<Catchpoint exceptionName="System.Threading.ThreadStateException" />
<Catchpoint exceptionName="System.Threading.WaitHandleCannotBeOpenedException" />
<Catchpoint exceptionName="System.TimeoutException" />
<Catchpoint exceptionName="System.TimeZoneNotFoundException" />
<Catchpoint exceptionName="System.TypeAccessException" />
<Catchpoint exceptionName="System.TypeInitializationException" />
<Catchpoint exceptionName="System.TypeLoadException" />
<Catchpoint exceptionName="System.TypeUnloadedException" />
<Catchpoint exceptionName="System.UnauthorizedAccessException" />
<Catchpoint exceptionName="System.UriFormatException" />
<Catchpoint exceptionName="System.Xml.Schema.XmlSchemaException" />
<Catchpoint exceptionName="System.Xml.Schema.XmlSchemaInferenceException" />
<Catchpoint exceptionName="System.Xml.Schema.XmlSchemaValidationException" />
<Catchpoint exceptionName="System.Xml.XmlException" />
<Catchpoint exceptionName="System.Xml.XPath.XPathException" />
<Catchpoint exceptionName="System.Xml.Xsl.XsltCompileException" />
<Catchpoint exceptionName="System.Xml.Xsl.XsltException" />
</BreakpointStore>
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>

View file

@ -1,31 +1,52 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Collections.ObjectModel;
namespace DMX2
{
public class Conduite
public class Conduite : IComparer<Circuit>
{
public static Conduite ConduiteCourante = null;
public static Conduite Courante = new Conduite();
public Conduite()
{
}
Dictionary<int,Circuit> circuits = new Dictionary<int, Circuit>();
List<Circuit> circuits = new List<Circuit>();
public Dictionary<int,Circuit> Circuits {
public ReadOnlyCollection<Circuit> Circuits {
get {
return circuits;
return circuits.AsReadOnly();
}
}
Dictionary<int, Sequenceur> sequenceurs= new Dictionary<int, Sequenceur>();
public Circuit NouveauCircuit ()
{
Circuit c = new Circuit();
circuits.Add (c);
return c;
}
public Dictionary<int, Sequenceur> Sequenceurs {
public void SupprimeCircuit(Circuit c)
{
circuits.Remove(c);
}
int IComparer<Circuit>.Compare (Circuit x, Circuit y)
{
return Conduite.Courante.circuits.IndexOf(x) -
Conduite.Courante.circuits.IndexOf(y);
}
List<Sequenceur> sequenceurs= new List<Sequenceur>();
public List<Sequenceur> Sequenceurs {
get {
return sequenceurs;
}
@ -49,6 +70,7 @@ namespace DMX2
public Circuit()
{
id=maxid++;
Name = "Circuit n°" + id.ToString();
}
public string Name {

View file

@ -75,6 +75,8 @@
<Compile Include="Sequenceur.cs" />
<Compile Include="SequenceurLineaire.cs" />
<Compile Include="IDriverDMX.cs" />
<Compile Include="GestionCircuits.cs" />
<Compile Include="gtk-gui\DMX2.GestionCircuits.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>

View file

@ -0,0 +1,78 @@
using System;
namespace DMX2
{
public partial class GestionCircuits : Gtk.Dialog
{
Gtk.ListStore ls;
public GestionCircuits ()
{
this.Build ();
Gtk.TreeViewColumn nameCol = new Gtk.TreeViewColumn();
Gtk.CellRendererText nameCell = new Gtk.CellRendererText();
nameCol.Title = "Circuit";
nameCol.PackStart(nameCell,true);
nameCol.SetCellDataFunc(nameCell, new Gtk.TreeCellDataFunc(
new Gtk.TreeCellDataFunc(RenderCircuitName)
));
nameCell.Editable =true;
nameCell.Edited += OnNameCellEdited;
this.listeCircuits.AppendColumn(nameCol);
ls = new Gtk.ListStore(typeof (Circuit));
this.listeCircuits.Model = ls;
UpdateListeCircuits();
listeCircuits.Selection.Mode = Gtk.SelectionMode.Multiple;
}
void OnNameCellEdited (object o, Gtk.EditedArgs args)
{
Gtk.TreeIter iter;
ls.GetIter (out iter, new Gtk.TreePath (args.Path));
Circuit c = ls.GetValue(iter,0) as Circuit;
c.Name = args.NewText;
}
private void RenderCircuitName(Gtk.TreeViewColumn tree_column, Gtk.CellRenderer cell, Gtk.TreeModel tree_model, Gtk.TreeIter iter) {
Circuit c = tree_model.GetValue (iter, 0) as Circuit;
(cell as Gtk.CellRendererText).Text = c.Name;
}
protected void UpdateListeCircuits ()
{
ls.Clear();
foreach(Circuit c in Conduite.Courante.Circuits)
ls.AppendValues(c);
}
protected void OnAddActionActivated (object sender, EventArgs e)
{
Gtk.Dialog dlg = new Gtk.Dialog("Test", this, Gtk.DialogFlags.DestroyWithParent);
Gtk.VBox vb = new Gtk.VBox();
var etry = new Gtk.Entry();
dlg.Add(vb);
vb.Add(etry);
vb.Add(dlg.AddButton("Close",Gtk.ResponseType.Close));
dlg.Run ();
dlg.Destroy();
Conduite.Courante.NouveauCircuit();
UpdateListeCircuits();
}
protected void OnRemoveActionActivated (object sender, EventArgs e)
{
throw new System.NotImplementedException ();
}
protected void OnResp (object o, Gtk.ResponseArgs args)
{
Hide ();
Destroy();
}
}
}

View file

@ -21,6 +21,14 @@ namespace DMX2
Application.Quit ();
}
protected void OnCircuitsActionActivated (object sender, EventArgs e)
{
GestionCircuits gc= new GestionCircuits();
gc.Parent=this;
gc.Run();
}
}
}

View file

@ -0,0 +1,97 @@
// This file has been generated by the GUI designer. Do not modify.
namespace DMX2
{
public partial class GestionCircuits
{
private global::Gtk.UIManager UIManager;
private global::Gtk.Action addAction;
private global::Gtk.Action removeAction;
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 ()
{
global::Stetic.Gui.Initialize (this);
// Widget DMX2.GestionCircuits
this.UIManager = new global::Gtk.UIManager ();
global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default");
this.addAction = new global::Gtk.Action ("addAction", null, null, "gtk-add");
w1.Add (this.addAction, null);
this.removeAction = new global::Gtk.Action ("removeAction", null, null, "gtk-remove");
w1.Add (this.removeAction, null);
this.UIManager.InsertActionGroup (w1, 0);
this.AddAccelGroup (this.UIManager.AccelGroup);
this.Name = "DMX2.GestionCircuits";
this.Title = global::Mono.Unix.Catalog.GetString ("Circuits");
this.TypeHint = ((global::Gdk.WindowTypeHint)(1));
this.DestroyWithParent = true;
this.Gravity = ((global::Gdk.Gravity)(10));
// Internal child DMX2.GestionCircuits.VBox
global::Gtk.VBox w2 = this.VBox;
w2.Name = "dialog1_VBox";
w2.BorderWidth = ((uint)(2));
// Container child dialog1_VBox.Gtk.Box+BoxChild
this.vbox2 = new global::Gtk.VBox ();
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'/><toolitem name='removeAction' action='removeAction'/></toolbar></ui>");
this.toolbar1 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar1")));
this.toolbar1.Name = "toolbar1";
this.toolbar1.ShowArrow = false;
this.vbox2.Add (this.toolbar1);
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.toolbar1]));
w3.Position = 0;
w3.Expand = false;
w3.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow.Name = "GtkScrolledWindow";
this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
this.listeCircuits = new global::Gtk.TreeView ();
this.listeCircuits.CanFocus = true;
this.listeCircuits.Name = "listeCircuits";
this.listeCircuits.EnableSearch = false;
this.listeCircuits.Reorderable = true;
this.GtkScrolledWindow.Add (this.listeCircuits);
this.vbox2.Add (this.GtkScrolledWindow);
global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.GtkScrolledWindow]));
w5.Position = 1;
w2.Add (this.vbox2);
global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(w2 [this.vbox2]));
w6.Position = 0;
// Internal child DMX2.GestionCircuits.ActionArea
global::Gtk.HButtonBox w7 = this.ActionArea;
w7.Name = "dialog1_ActionArea";
w7.Spacing = 10;
w7.BorderWidth = ((uint)(5));
w7.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.buttonOk = new global::Gtk.Button ();
this.buttonOk.CanDefault = true;
this.buttonOk.CanFocus = true;
this.buttonOk.Name = "buttonOk";
this.buttonOk.UseStock = true;
this.buttonOk.UseUnderline = true;
this.buttonOk.Label = "gtk-close";
this.AddActionWidget (this.buttonOk, -7);
global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w7 [this.buttonOk]));
w8.Expand = false;
w8.Fill = false;
if ((this.Child != null)) {
this.Child.ShowAll ();
}
this.DefaultWidth = 400;
this.DefaultHeight = 456;
this.Show ();
this.Response += new global::Gtk.ResponseHandler (this.OnResp);
this.addAction.Activated += new global::System.EventHandler (this.OnAddActionActivated);
this.removeAction.Activated += new global::System.EventHandler (this.OnRemoveActionActivated);
}
}
}

View file

@ -5,21 +5,17 @@ namespace DMX2
public partial class MainWindow
{
private global::Gtk.UIManager UIManager;
private global::Gtk.Action newAction;
private global::Gtk.Action openAction;
private global::Gtk.Action saveAction;
private global::Gtk.Action saveAsAction;
private global::Gtk.Action quitAction;
private global::Gtk.Action closeAction;
private global::Gtk.Action TestAction;
private global::Gtk.Action FileAction;
private global::Gtk.Action newAction3;
private global::Gtk.Action CircuitsAction;
private global::Gtk.Action UniversDMXAction;
private global::Gtk.Action propertiesAction;
private global::Gtk.Action FichierAction;
private global::Gtk.Action newAction2;
private global::Gtk.Action newAction;
private global::Gtk.VBox vbox1;
private global::Gtk.MenuBar menubar34;
private global::Gtk.HBox hbox1;
private global::Gtk.Fixed fixed2;
private global::Gtk.VSeparator vseparator1;
@ -30,8 +26,6 @@ namespace DMX2
private global::Gtk.ScrolledWindow GtkScrolledWindow;
private global::Gtk.NodeView nodeview1;
private global::Gtk.VBox vbox2;
private global::Gtk.Button button15;
private global::Gtk.Image image5;
private global::Gtk.ProgressBar progressbar1;
private global::Gtk.ProgressBar progressbar2;
private global::Gtk.ProgressBar progressbar3;
@ -47,9 +41,6 @@ namespace DMX2
// Widget DMX2.MainWindow
this.UIManager = new global::Gtk.UIManager ();
global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default");
this.newAction = new global::Gtk.Action ("newAction", global::Mono.Unix.Catalog.GetString ("_Nouveau"), null, "gtk-new");
this.newAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Nouveau");
w1.Add (this.newAction, null);
this.openAction = new global::Gtk.Action ("openAction", global::Mono.Unix.Catalog.GetString ("_Ouvrir"), null, "gtk-open");
this.openAction.Sensitive = false;
this.openAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Ouvrir");
@ -68,23 +59,17 @@ namespace DMX2
this.TestAction = new global::Gtk.Action ("TestAction", global::Mono.Unix.Catalog.GetString ("Test"), null, null);
this.TestAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Test");
w1.Add (this.TestAction, null);
this.FileAction = new global::Gtk.Action ("FileAction", global::Mono.Unix.Catalog.GetString ("File"), null, null);
this.FileAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("File");
w1.Add (this.FileAction, null);
this.newAction3 = new global::Gtk.Action ("newAction3", global::Mono.Unix.Catalog.GetString ("_Nouveau"), null, "gtk-new");
this.newAction3.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Nouveau");
w1.Add (this.newAction3, null);
this.CircuitsAction = new global::Gtk.Action ("CircuitsAction", global::Mono.Unix.Catalog.GetString ("Circuits"), null, "circuits");
this.CircuitsAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Circuits");
w1.Add (this.CircuitsAction, null);
this.UniversDMXAction = new global::Gtk.Action ("UniversDMXAction", null, null, "UniversDMX");
w1.Add (this.UniversDMXAction, null);
this.FichierAction = new global::Gtk.Action ("FichierAction", global::Mono.Unix.Catalog.GetString ("Fichier"), null, null);
this.FichierAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Fichier");
this.propertiesAction = new global::Gtk.Action ("propertiesAction", global::Mono.Unix.Catalog.GetString ("Circuits"), null, "gtk-properties");
this.propertiesAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Circuits");
w1.Add (this.propertiesAction, null);
this.FichierAction = new global::Gtk.Action ("FichierAction", global::Mono.Unix.Catalog.GetString ("_Fichier"), null, null);
this.FichierAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Fichier");
w1.Add (this.FichierAction, null);
this.newAction2 = new global::Gtk.Action ("newAction2", global::Mono.Unix.Catalog.GetString ("_Nouveau"), null, "gtk-new");
this.newAction2.ShortLabel = global::Mono.Unix.Catalog.GetString ("_Nouveau");
w1.Add (this.newAction2, null);
this.newAction = new global::Gtk.Action ("newAction", null, null, "gtk-new");
w1.Add (this.newAction, null);
this.UIManager.InsertActionGroup (w1, 0);
this.AddAccelGroup (this.UIManager.AccelGroup);
this.Name = "DMX2.MainWindow";
@ -95,15 +80,6 @@ namespace DMX2
this.vbox1.Name = "vbox1";
this.vbox1.Spacing = 6;
// Container child vbox1.Gtk.Box+BoxChild
this.UIManager.AddUiFromString ("<ui><menubar name='menubar34'/></ui>");
this.menubar34 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar34")));
this.menubar34.Name = "menubar34";
this.vbox1.Add (this.menubar34);
global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.menubar34]));
w2.Position = 0;
w2.Expand = false;
w2.Fill = false;
// Container child vbox1.Gtk.Box+BoxChild
this.hbox1 = new global::Gtk.HBox ();
this.hbox1.Name = "hbox1";
this.hbox1.Spacing = 6;
@ -113,18 +89,18 @@ namespace DMX2
this.fixed2.Name = "fixed2";
this.fixed2.HasWindow = false;
this.hbox1.Add (this.fixed2);
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.fixed2]));
w3.Position = 0;
w3.Expand = false;
w3.Fill = false;
global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.fixed2]));
w2.Position = 0;
w2.Expand = false;
w2.Fill = false;
// Container child hbox1.Gtk.Box+BoxChild
this.vseparator1 = new global::Gtk.VSeparator ();
this.vseparator1.Name = "vseparator1";
this.hbox1.Add (this.vseparator1);
global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vseparator1]));
w4.Position = 1;
w4.Expand = false;
w4.Fill = false;
global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vseparator1]));
w3.Position = 1;
w3.Expand = false;
w3.Fill = false;
// Container child hbox1.Gtk.Box+BoxChild
this.hpaned1 = new global::Gtk.HPaned ();
this.hpaned1.CanFocus = true;
@ -141,17 +117,17 @@ namespace DMX2
this.scrolledwindow1.Name = "scrolledwindow1";
this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
// Container child scrolledwindow1.Gtk.Container+ContainerChild
global::Gtk.Viewport w5 = new global::Gtk.Viewport ();
w5.ShadowType = ((global::Gtk.ShadowType)(0));
global::Gtk.Viewport w4 = new global::Gtk.Viewport ();
w4.ShadowType = ((global::Gtk.ShadowType)(0));
// Container child GtkViewport.Gtk.Container+ContainerChild
this.vbox3 = new global::Gtk.VBox ();
this.vbox3.Name = "vbox3";
this.vbox3.Spacing = 6;
w5.Add (this.vbox3);
this.scrolledwindow1.Add (w5);
w4.Add (this.vbox3);
this.scrolledwindow1.Add (w4);
this.hpaned2.Add (this.scrolledwindow1);
global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.scrolledwindow1]));
w8.Resize = false;
global::Gtk.Paned.PanedChild w7 = ((global::Gtk.Paned.PanedChild)(this.hpaned2 [this.scrolledwindow1]));
w7.Resize = false;
// Container child hpaned2.Gtk.Paned+PanedChild
this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
this.GtkScrolledWindow.Name = "GtkScrolledWindow";
@ -163,86 +139,71 @@ namespace DMX2
this.GtkScrolledWindow.Add (this.nodeview1);
this.hpaned2.Add (this.GtkScrolledWindow);
this.hpaned1.Add (this.hpaned2);
global::Gtk.Paned.PanedChild w11 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.hpaned2]));
w11.Resize = false;
global::Gtk.Paned.PanedChild w10 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.hpaned2]));
w10.Resize = false;
// Container child hpaned1.Gtk.Paned+PanedChild
this.vbox2 = new global::Gtk.VBox ();
this.vbox2.WidthRequest = 150;
this.vbox2.Name = "vbox2";
this.vbox2.Spacing = 2;
// Container child vbox2.Gtk.Box+BoxChild
this.button15 = new global::Gtk.Button ();
this.button15.CanFocus = true;
this.button15.Name = "button15";
// Container child button15.Gtk.Container+ContainerChild
this.image5 = new global::Gtk.Image ();
this.image5.Name = "image5";
this.image5.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-properties", global::Gtk.IconSize.Button);
this.button15.Add (this.image5);
this.button15.Label = null;
this.vbox2.Add (this.button15);
global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.button15]));
w13.Position = 0;
w13.Expand = false;
w13.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild
this.progressbar1 = new global::Gtk.ProgressBar ();
this.progressbar1.Name = "progressbar1";
this.vbox2.Add (this.progressbar1);
global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.progressbar1]));
w14.Position = 1;
w14.Expand = false;
w14.Fill = false;
global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.progressbar1]));
w11.Position = 0;
w11.Expand = false;
w11.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild
this.progressbar2 = new global::Gtk.ProgressBar ();
this.progressbar2.Name = "progressbar2";
this.vbox2.Add (this.progressbar2);
global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.progressbar2]));
w15.Position = 2;
w15.Expand = false;
w15.Fill = false;
global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.progressbar2]));
w12.Position = 1;
w12.Expand = false;
w12.Fill = false;
// Container child vbox2.Gtk.Box+BoxChild
this.progressbar3 = new global::Gtk.ProgressBar ();
this.progressbar3.Name = "progressbar3";
this.vbox2.Add (this.progressbar3);
global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.progressbar3]));
w16.Position = 3;
w16.Expand = false;
w16.Fill = false;
global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.progressbar3]));
w13.Position = 2;
w13.Expand = false;
w13.Fill = false;
this.hpaned1.Add (this.vbox2);
this.hbox1.Add (this.hpaned1);
global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.hpaned1]));
w18.Position = 2;
global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.hpaned1]));
w15.Position = 2;
this.vbox1.Add (this.hbox1);
global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1]));
w19.Position = 1;
global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1]));
w16.Position = 0;
// Container child vbox1.Gtk.Box+BoxChild
this.hseparator1 = new global::Gtk.HSeparator ();
this.hseparator1.Name = "hseparator1";
this.vbox1.Add (this.hseparator1);
global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hseparator1]));
w20.Position = 2;
w20.Expand = false;
w20.Fill = false;
global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hseparator1]));
w17.Position = 1;
w17.Expand = false;
w17.Fill = false;
// Container child vbox1.Gtk.Box+BoxChild
this.hbox2 = new global::Gtk.HBox ();
this.hbox2.Name = "hbox2";
this.hbox2.Spacing = 6;
// Container child hbox2.Gtk.Box+BoxChild
this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar3'><toolitem name='CircuitsAction' action='CircuitsAction'/><toolitem name='UniversDMXAction' action='UniversDMXAction'/></toolbar></ui>");
this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar3'><toolitem name='CircuitsAction' action='CircuitsAction'/></toolbar></ui>");
this.toolbar3 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar3")));
this.toolbar3.Name = "toolbar3";
this.toolbar3.ShowArrow = false;
this.hbox2.Add (this.toolbar3);
global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.toolbar3]));
w21.Position = 0;
global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.toolbar3]));
w18.Position = 0;
// Container child hbox2.Gtk.Box+BoxChild
this.fixed3 = new global::Gtk.Fixed ();
this.fixed3.Name = "fixed3";
this.fixed3.HasWindow = false;
this.hbox2.Add (this.fixed3);
global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.fixed3]));
w22.Position = 1;
global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.fixed3]));
w19.Position = 1;
// Container child hbox2.Gtk.Box+BoxChild
this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar2'><toolitem name='newAction' action='newAction'/><toolitem name='openAction' action='openAction'/><toolitem name='saveAction' action='saveAction'/><toolitem name='saveAsAction' action='saveAsAction'/><toolitem name='closeAction' action='closeAction'/><toolitem name='quitAction' action='quitAction'/></toolbar></ui>");
this.toolbar2 = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar2")));
@ -250,25 +211,25 @@ namespace DMX2
this.toolbar2.ShowArrow = false;
this.toolbar2.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
this.hbox2.Add (this.toolbar2);
global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.toolbar2]));
w23.Position = 2;
w23.Expand = false;
w23.Fill = false;
global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.toolbar2]));
w20.Position = 2;
w20.Expand = false;
w20.Fill = false;
this.vbox1.Add (this.hbox2);
global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox2]));
w24.Position = 3;
w24.Expand = false;
w24.Fill = false;
global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox2]));
w21.Position = 2;
w21.Expand = false;
w21.Fill = false;
this.Add (this.vbox1);
if ((this.Child != null)) {
this.Child.ShowAll ();
}
this.DefaultWidth = 1027;
this.DefaultHeight = 709;
this.menubar34.Hide ();
this.Show ();
this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
this.quitAction.Activated += new global::System.EventHandler (this.OnQuitActionActivated);
this.CircuitsAction.Activated += new global::System.EventHandler (this.OnCircuitsActionActivated);
}
}
}

View file

@ -34,12 +34,6 @@
</icon-factory>
<widget class="Gtk.Window" id="DMX2.MainWindow" design-size="1027 709">
<action-group name="Default">
<action id="newAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes">_Nouveau</property>
<property name="ShortLabel" translatable="yes">_Nouveau</property>
<property name="StockId">gtk-new</property>
</action>
<action id="openAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes">_Ouvrir</property>
@ -76,37 +70,27 @@
<property name="Label" translatable="yes">Test</property>
<property name="ShortLabel" translatable="yes">Test</property>
</action>
<action id="FileAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes">File</property>
<property name="ShortLabel" translatable="yes">File</property>
</action>
<action id="newAction3">
<property name="Type">Action</property>
<property name="Label" translatable="yes">_Nouveau</property>
<property name="ShortLabel" translatable="yes">_Nouveau</property>
<property name="StockId">gtk-new</property>
</action>
<action id="CircuitsAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes">Circuits</property>
<property name="ShortLabel" translatable="yes">Circuits</property>
<property name="StockId">circuits</property>
<signal name="Activated" handler="OnCircuitsActionActivated" />
</action>
<action id="UniversDMXAction">
<action id="propertiesAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes" />
<property name="StockId">UniversDMX</property>
<property name="Label" translatable="yes">Circuits</property>
<property name="ShortLabel" translatable="yes">Circuits</property>
<property name="StockId">gtk-properties</property>
</action>
<action id="FichierAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes">Fichier</property>
<property name="ShortLabel" translatable="yes">Fichier</property>
<property name="Label" translatable="yes">_Fichier</property>
<property name="ShortLabel" translatable="yes">_Fichier</property>
</action>
<action id="newAction2">
<action id="newAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes">_Nouveau</property>
<property name="ShortLabel" translatable="yes">_Nouveau</property>
<property name="Label" translatable="yes" />
<property name="StockId">gtk-new</property>
</action>
</action-group>
@ -118,19 +102,6 @@
<widget class="Gtk.VBox" id="vbox1">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.MenuBar" id="menubar34">
<property name="MemberName" />
<property name="Visible">False</property>
<node name="__gtksharp_162_Stetic_Editor_ActionMenuBar" type="Menubar" />
</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.HBox" id="hbox1">
<property name="MemberName" />
@ -223,31 +194,12 @@
<property name="MemberName" />
<property name="WidthRequest">150</property>
<property name="Spacing">2</property>
<child>
<widget class="Gtk.Button" id="button15">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Type">Custom</property>
<child>
<widget class="Gtk.Image" id="image5">
<property name="MemberName" />
<property name="Pixbuf">stock:gtk-properties Button</property>
</widget>
</child>
</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.ProgressBar" id="progressbar1">
<property name="MemberName" />
</widget>
<packing>
<property name="Position">1</property>
<property name="Position">0</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
@ -258,7 +210,7 @@
<property name="MemberName" />
</widget>
<packing>
<property name="Position">2</property>
<property name="Position">1</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
@ -269,7 +221,7 @@
<property name="MemberName" />
</widget>
<packing>
<property name="Position">3</property>
<property name="Position">2</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
@ -285,7 +237,7 @@
</child>
</widget>
<packing>
<property name="Position">1</property>
<property name="Position">0</property>
<property name="AutoSize">False</property>
</packing>
</child>
@ -294,7 +246,7 @@
<property name="MemberName" />
</widget>
<packing>
<property name="Position">2</property>
<property name="Position">1</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
@ -308,9 +260,8 @@
<widget class="Gtk.Toolbar" id="toolbar3">
<property name="MemberName" />
<property name="ShowArrow">False</property>
<node name="__gtksharp_157_Stetic_Editor_ActionToolbar" type="Toolbar">
<node name="toolbar3" type="Toolbar">
<node type="Toolitem" action="CircuitsAction" />
<node type="Toolitem" action="UniversDMXAction" />
</node>
</widget>
<packing>
@ -333,7 +284,7 @@
<property name="MemberName" />
<property name="ShowArrow">False</property>
<property name="ButtonStyle">Icons</property>
<node name="__gtksharp_157_Stetic_Editor_ActionToolbar" type="Toolbar">
<node name="toolbar2" type="Toolbar">
<node type="Toolitem" action="newAction" />
<node type="Toolitem" action="openAction" />
<node type="Toolitem" action="saveAction" />
@ -351,7 +302,7 @@
</child>
</widget>
<packing>
<property name="Position">3</property>
<property name="Position">2</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
@ -360,4 +311,104 @@
</widget>
</child>
</widget>
<widget class="Gtk.Dialog" id="DMX2.GestionCircuits" design-size="400 456">
<action-group name="Default">
<action id="addAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes" />
<property name="StockId">gtk-add</property>
<signal name="Activated" handler="OnAddActionActivated" />
</action>
<action id="removeAction">
<property name="Type">Action</property>
<property name="Label" translatable="yes" />
<property name="StockId">gtk-remove</property>
<signal name="Activated" handler="OnRemoveActionActivated" />
</action>
</action-group>
<property name="MemberName" />
<property name="Title" translatable="yes">Circuits</property>
<property name="TypeHint">Dialog</property>
<property name="DestroyWithParent">True</property>
<property name="Gravity">Static</property>
<property name="Buttons">1</property>
<property name="HelpButton">False</property>
<signal name="Response" handler="OnResp" />
<child internal-child="VBox">
<widget class="Gtk.VBox" id="dialog1_VBox">
<property name="MemberName" />
<property name="BorderWidth">2</property>
<child>
<widget class="Gtk.VBox" id="vbox2">
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Toolbar" id="toolbar1">
<property name="MemberName" />
<property name="ShowArrow">False</property>
<node name="toolbar1" type="Toolbar">
<node type="Toolitem" action="addAction" />
<node type="Toolitem" action="removeAction" />
</node>
</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.ScrolledWindow" id="GtkScrolledWindow">
<property name="MemberName" />
<property name="ShadowType">In</property>
<child>
<widget class="Gtk.TreeView" id="listeCircuits">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
<property name="EnableSearch">False</property>
<property name="Reorderable">True</property>
</widget>
</child>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
</packing>
</child>
</widget>
<packing>
<property name="Position">0</property>
<property name="AutoSize">True</property>
</packing>
</child>
</widget>
</child>
<child internal-child="ActionArea">
<widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
<property name="MemberName" />
<property name="Spacing">10</property>
<property name="BorderWidth">5</property>
<property name="Size">1</property>
<property name="LayoutStyle">End</property>
<child>
<widget class="Gtk.Button" id="buttonOk">
<property name="MemberName" />
<property name="CanDefault">True</property>
<property name="CanFocus">True</property>
<property name="UseStock">True</property>
<property name="Type">StockItem</property>
<property name="StockId">gtk-close</property>
<property name="ResponseId">-7</property>
<property name="label">gtk-close</property>
</widget>
<packing>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
</child>
</widget>
</child>
</widget>
</stetic-interface>