Correction Style GTK et sequenceur Son
This commit is contained in:
parent
a21b917e94
commit
bf09b34093
5 changed files with 28 additions and 20 deletions
|
|
@ -53,6 +53,10 @@ namespace DMX2
|
||||||
Build ();
|
Build ();
|
||||||
MajWidgets();
|
MajWidgets();
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
// selectColorAction2.Visible = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
ContextMenuHelper ctxHelper = new ContextMenuHelper();
|
ContextMenuHelper ctxHelper = new ContextMenuHelper();
|
||||||
ctxHelper.ContextMenu += EventPopup;
|
ctxHelper.ContextMenu += EventPopup;
|
||||||
ctxHelper.AttachToWidget(btnGo);
|
ctxHelper.AttachToWidget(btnGo);
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,11 @@ namespace DMX2
|
||||||
get{ return volume;}
|
get{ return volume;}
|
||||||
set {
|
set {
|
||||||
volume=value;
|
volume=value;
|
||||||
|
if (mplayerProcess != null && !mplayerProcess.HasExited)
|
||||||
|
{
|
||||||
|
if (!Paused)
|
||||||
mplayerProcess.StandardInput.WriteLine("volume {0} 1", volume);
|
mplayerProcess.StandardInput.WriteLine("volume {0} 1", volume);
|
||||||
|
}
|
||||||
volumeEventTarget.FeedBack ();
|
volumeEventTarget.FeedBack ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -141,7 +145,11 @@ namespace DMX2
|
||||||
public TimeSpan PlayTime {
|
public TimeSpan PlayTime {
|
||||||
get{
|
get{
|
||||||
if (mplayerProcess != null && !mplayerProcess.HasExited)
|
if (mplayerProcess != null && !mplayerProcess.HasExited)
|
||||||
|
{
|
||||||
|
if (!Paused)
|
||||||
mplayerProcess.StandardInput.WriteLine("get_time_pos");
|
mplayerProcess.StandardInput.WriteLine("get_time_pos");
|
||||||
|
|
||||||
|
}
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
set{
|
set{
|
||||||
|
|
@ -171,13 +179,14 @@ namespace DMX2
|
||||||
|
|
||||||
curfile = files[pos];
|
curfile = files[pos];
|
||||||
Stop();
|
Stop();
|
||||||
mplayerProcess.StandardInput.WriteLine ("volume 0 1");
|
//mplayerProcess.StandardInput.WriteLine ("volume 0 1");
|
||||||
mplayerProcess.StandardInput.WriteLine ("loadfile \"{0}\" 0", curfile);
|
|
||||||
mplayerProcess.StandardInput.WriteLine ("get_time_length");
|
|
||||||
//mplayerProcess.StandardInput.WriteLine ("pausing seek 0 2");
|
|
||||||
mplayerProcess.StandardInput.WriteLine ("pause");
|
|
||||||
mplayerProcess.StandardInput.WriteLine ("seek 0 2");
|
|
||||||
mplayerProcess.StandardInput.WriteLine ("volume {0} 1", volume);
|
mplayerProcess.StandardInput.WriteLine ("volume {0} 1", volume);
|
||||||
|
mplayerProcess.StandardInput.WriteLine ("pausing loadfile \"{0}\"", curfile);
|
||||||
|
mplayerProcess.StandardInput.WriteLine ("pausing get_time_length");
|
||||||
|
//mplayerProcess.StandardInput.WriteLine ("pausing seek 0 2");
|
||||||
|
//mplayerProcess.StandardInput.WriteLine ("pause");
|
||||||
|
//mplayerProcess.StandardInput.WriteLine ("seek 0 2");
|
||||||
|
//mplayerProcess.StandardInput.WriteLine ("volume {0} 1", volume);
|
||||||
Paused = true;
|
Paused = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -188,6 +197,7 @@ namespace DMX2
|
||||||
if (!CheckMplayer ())
|
if (!CheckMplayer ())
|
||||||
return;
|
return;
|
||||||
mplayerProcess.StandardInput.WriteLine ("pause");
|
mplayerProcess.StandardInput.WriteLine ("pause");
|
||||||
|
mplayerProcess.StandardInput.WriteLine ("volume {0} 1", volume);
|
||||||
Paused = false;
|
Paused = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -198,9 +198,6 @@ namespace DMX2
|
||||||
w1.Add(this.seqSonAction, null);
|
w1.Add(this.seqSonAction, null);
|
||||||
this.selectColorAction2 = new global::Gtk.Action("selectColorAction2", null, null, "gtk-select-color");
|
this.selectColorAction2 = new global::Gtk.Action("selectColorAction2", null, null, "gtk-select-color");
|
||||||
this.selectColorAction2.Visible = false;
|
this.selectColorAction2.Visible = false;
|
||||||
this.selectColorAction2.VisibleHorizontal = false;
|
|
||||||
this.selectColorAction2.VisibleVertical = false;
|
|
||||||
this.selectColorAction2.VisibleOverflown = false;
|
|
||||||
w1.Add(this.selectColorAction2, null);
|
w1.Add(this.selectColorAction2, null);
|
||||||
this.seqMidiAction = new global::Gtk.Action("seqMidiAction", null, null, "MidiSeq");
|
this.seqMidiAction = new global::Gtk.Action("seqMidiAction", null, null, "MidiSeq");
|
||||||
this.seqMidiAction.Sensitive = false;
|
this.seqMidiAction.Sensitive = false;
|
||||||
|
|
|
||||||
|
|
@ -238,9 +238,6 @@
|
||||||
<property name="Label" translatable="yes" />
|
<property name="Label" translatable="yes" />
|
||||||
<property name="StockId">gtk-select-color</property>
|
<property name="StockId">gtk-select-color</property>
|
||||||
<property name="Visible">False</property>
|
<property name="Visible">False</property>
|
||||||
<property name="VisibleHorizontal">False</property>
|
|
||||||
<property name="VisibleVertical">False</property>
|
|
||||||
<property name="VisibleOverflown">False</property>
|
|
||||||
<signal name="Activated" handler="OnSelectColorActionActivated" />
|
<signal name="Activated" handler="OnSelectColorActionActivated" />
|
||||||
</action>
|
</action>
|
||||||
<action id="seqMidiAction">
|
<action id="seqMidiAction">
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ style "sombre"
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkTreeView::odd-row-color = "#66666F"
|
GtkTreeView::odd-row-color = "#66666F"
|
||||||
#GtkTreeView::even-row-color = "#595959"
|
GtkTreeView::even-row-color = "#595959"
|
||||||
}
|
}
|
||||||
|
|
||||||
style "scale-s" = "sombre" {
|
style "scale-s" = "sombre" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue