This commit is contained in:
tzim 2013-05-07 20:31:06 +00:00
parent 419a0fdf1f
commit c30548a7b3
3 changed files with 4 additions and 73 deletions

View file

@ -13,41 +13,12 @@ namespace DMX2
ConstruitListe();
}
ListStore lsGrada;
ListStore lsCircuits;
void ConstruitListe ()
{
var cellNum = new CellRendererText();
var cellCircuit = new CellRendererCombo();
var cellAllume = new CellRendererToggle();
lsGrada = new ListStore(typeof(UniversDMX.Grada));
lsCircuits = new ListStore(typeof(Circuit));
listeGradas.AppendColumn("N°",cellNum);
var colCircuit = listeGradas.AppendColumn("Circuit Associé",cellCircuit);
listeGradas.AppendColumn("Allume",cellAllume);
listeGradas.Model = lsGrada;
cellCircuit.Model = lsCircuits;
cellCircuit.Editable = true;
colCircuit.SetCellDataFunc(cellCircuit, new TreeCellDataFunc(SetCellCircuitData));
cellCircuit.EditingStarted += CellCircuitData;
}
void CellCircuitData (object o, EditingStartedArgs args)
{
}
void SetCellCircuitData (TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter)
{
}
}
}

View file

@ -34,7 +34,7 @@ namespace DMX2
this.Title = "DMX 2.0";
}
}
protected void MajCircuits (bool full)
{

View file

@ -1056,34 +1056,10 @@
<property name="MemberName" />
<property name="Spacing">6</property>
<child>
<widget class="Gtk.Button" id="button162">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Type">TextOnly</property>
<property name="Label" translatable="yes">1 Circuit = 1 Grada</property>
<property name="UseUnderline">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>
<placeholder />
</child>
<child>
<widget class="Gtk.Button" id="button163">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="Type">TextOnly</property>
<property name="Label" translatable="yes">Tout Réinitialiser</property>
<property name="UseUnderline">True</property>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
<property name="Expand">False</property>
<property name="Fill">False</property>
</packing>
<placeholder />
</child>
<child>
<placeholder />
@ -1092,26 +1068,10 @@
<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="listeGradas">
<property name="MemberName" />
<property name="CanFocus">True</property>
<property name="ShowScrollbars">True</property>
</widget>
</child>
</widget>
<packing>
<property name="Position">1</property>
<property name="AutoSize">True</property>
</packing>
<placeholder />
</child>
</widget>
</child>