This commit is contained in:
parent
419a0fdf1f
commit
c30548a7b3
3 changed files with 4 additions and 73 deletions
|
|
@ -13,41 +13,12 @@ namespace DMX2
|
||||||
ConstruitListe();
|
ConstruitListe();
|
||||||
}
|
}
|
||||||
|
|
||||||
ListStore lsGrada;
|
|
||||||
ListStore lsCircuits;
|
|
||||||
|
|
||||||
void ConstruitListe ()
|
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)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1056,34 +1056,10 @@
|
||||||
<property name="MemberName" />
|
<property name="MemberName" />
|
||||||
<property name="Spacing">6</property>
|
<property name="Spacing">6</property>
|
||||||
<child>
|
<child>
|
||||||
<widget class="Gtk.Button" id="button162">
|
<placeholder />
|
||||||
<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>
|
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<widget class="Gtk.Button" id="button163">
|
<placeholder />
|
||||||
<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>
|
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<placeholder />
|
<placeholder />
|
||||||
|
|
@ -1092,26 +1068,10 @@
|
||||||
<packing>
|
<packing>
|
||||||
<property name="Position">0</property>
|
<property name="Position">0</property>
|
||||||
<property name="AutoSize">True</property>
|
<property name="AutoSize">True</property>
|
||||||
<property name="Expand">False</property>
|
|
||||||
<property name="Fill">False</property>
|
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
|
<placeholder />
|
||||||
<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>
|
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue