This commit is contained in:
parent
a37fefb9d7
commit
f20534e44f
2 changed files with 9 additions and 3 deletions
|
|
@ -356,6 +356,7 @@ namespace DMX2
|
|||
{
|
||||
int pos = sequenceur.SauveEffet("Nouvel Effet", TimeSpan.Zero,TimeSpan.FromSeconds(5));
|
||||
UpdListeEffets();
|
||||
effetChange = true; Update(false);
|
||||
effetsListe.SetCursor(new TreePath( new int[1] {pos}) ,nomCol,true);
|
||||
}
|
||||
|
||||
|
|
@ -390,13 +391,14 @@ namespace DMX2
|
|||
if(pos==-1) return;
|
||||
sequenceur.RemplaceEffet(pos);
|
||||
UpdListeEffets();
|
||||
effetsListe.SetCursor(new TreePath( new int[1] {pos}) ,null,false);
|
||||
effetChange = true; Update(false);
|
||||
}
|
||||
|
||||
protected void OnSaveAfterActionActivated (object sender, EventArgs e)
|
||||
{
|
||||
int pos = sequenceur.InsereEffetApres(IndexEffetSelectionne(),"Nouvel Effet",TimeSpan.Zero,TimeSpan.FromSeconds(5));
|
||||
UpdListeEffets();
|
||||
effetChange = true; Update(false);
|
||||
effetsListe.SetCursor(new TreePath( new int[1] {pos}) ,nomCol,true);
|
||||
}
|
||||
|
||||
|
|
@ -406,6 +408,7 @@ namespace DMX2
|
|||
if(pos==-1) return;
|
||||
sequenceur.SupprimeEffet(pos);
|
||||
UpdListeEffets();
|
||||
effetChange = true; Update(false);
|
||||
}
|
||||
|
||||
protected void OnMoveUpActionActivated (object sender, EventArgs e)
|
||||
|
|
@ -414,7 +417,7 @@ namespace DMX2
|
|||
if(pos==-1) return;
|
||||
pos = sequenceur.MonteEffet(pos);
|
||||
UpdListeEffets();
|
||||
effetsListe.SetCursor(new TreePath( new int[1] {pos}) ,null,false);
|
||||
effetChange = true; Update(false);
|
||||
}
|
||||
|
||||
protected void OnMoveDownActionActivated (object sender, EventArgs e)
|
||||
|
|
@ -423,7 +426,7 @@ namespace DMX2
|
|||
if(pos==-1) return;
|
||||
pos = sequenceur.BaisseEffet(pos);
|
||||
UpdListeEffets();
|
||||
effetsListe.SetCursor(new TreePath( new int[1] {pos}) ,null,false);
|
||||
effetChange = true; Update(false);
|
||||
}
|
||||
|
||||
protected void OnSeqMasterScaleValueChanged (object sender, EventArgs e)
|
||||
|
|
|
|||
|
|
@ -301,6 +301,7 @@ namespace DMX2
|
|||
{
|
||||
lock (this) {
|
||||
effets.Add (effetcourrant = new Effet (nom, valeurscourantes, duree, transition));
|
||||
valeurschangees.Clear ();
|
||||
return effets.Count-1;
|
||||
}
|
||||
}
|
||||
|
|
@ -311,6 +312,7 @@ namespace DMX2
|
|||
int pos = index+1;
|
||||
if (pos >= effets.Count) return SauveEffet(nom,duree,transition);
|
||||
effets.Insert (pos,effetcourrant = new Effet (nom, valeurscourantes, duree, transition));
|
||||
valeurschangees.Clear ();
|
||||
CommandAdd(index);
|
||||
return pos;
|
||||
}
|
||||
|
|
@ -322,6 +324,7 @@ namespace DMX2
|
|||
Effet ef = effets[index];
|
||||
effets[index] = new Effet (ef.Nom, valeurscourantes, ef.Duree, ef.Transition);
|
||||
effetcourrant = effets[index];
|
||||
valeurschangees.Clear ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue