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