[chronojump] video URL shown on contact tests
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] video URL shown on contact tests
- Date: Mon, 29 Sep 2014 14:46:27 +0000 (UTC)
commit 0dc44d75ac2e6ce702e25492b284b03c21105647
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Sep 29 16:46:08 2014 +0200
video URL shown on contact tests
glade/chronojump.glade | 168 ++++++++++++++++++++++++++++++++++++++++++------
src/gui/event.cs | 13 +++-
2 files changed, 158 insertions(+), 23 deletions(-)
---
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index f7b7ae6..19ff58a 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -6257,6 +6257,12 @@ Second Chronopic to platforms.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
@@ -6924,6 +6930,12 @@ Second Chronopic to platforms.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
<child>
@@ -7725,6 +7737,12 @@ Second Chronopic to platforms.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="position">2</property>
@@ -8285,6 +8303,12 @@ Second Chronopic to platforms.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="position">4</property>
@@ -17971,6 +17995,12 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -18439,6 +18469,12 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -18509,24 +18545,6 @@ by you</property>
<placeholder/>
</child>
<child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
<widget class="GtkLabel" id="label_tv_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -19178,9 +19196,6 @@ by you</property>
</packing>
</child>
<child>
- <placeholder/>
- </child>
- <child>
<widget class="GtkLabel" id="label_run_start_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -19389,6 +19404,51 @@ by you</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <widget class="GtkButton" id="button_video_url">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="xalign">0</property>
+ <signal name="clicked" handler="on_button_video_url_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkImage" id="image3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-info</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">14</property>
+ <property name="bottom_attach">15</property>
+ <property name="x_options"/>
+ <property name="y_options"/>
+ </packing>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
@@ -27598,6 +27658,42 @@ options</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -29456,6 +29552,12 @@ To differentiate between male and female, use the values 1/0, or m/f, or M/F on
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -29983,6 +30085,12 @@ To differentiate between male and female, use the values 1/0, or m/f, or M/F on
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -32483,6 +32591,12 @@ show elevation as:</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -32615,6 +32729,12 @@ show elevation as:</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
@@ -32762,6 +32882,12 @@ show elevation as:</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
</child>
</widget>
diff --git a/src/gui/event.cs b/src/gui/event.cs
index c6d919d..81edd7c 100644
--- a/src/gui/event.cs
+++ b/src/gui/event.cs
@@ -84,6 +84,7 @@ public class EditEventWindow
[Widget] protected Gtk.Label label_video_yes;
[Widget] protected Gtk.Label label_video_no;
[Widget] protected Gtk.Button button_video_watch;
+ [Widget] protected Gtk.Button button_video_url;
protected string videoFileName = "";
[Widget] protected Gtk.Entry entry_description;
@@ -150,7 +151,7 @@ public class EditEventWindow
EditEventWindowBox.edit_event.Show ();
return EditEventWindowBox;
-}
+ }
protected virtual void initializeValues () {
typeOfTest = Constants.TestTypes.JUMP;
@@ -298,17 +299,19 @@ public class EditEventWindow
label_video_yes.Visible = true;
label_video_no.Visible = false;
button_video_watch.Sensitive = true;
+ button_video_url.Sensitive = true;
} else {
label_video_yes.Visible = false;
label_video_no.Visible = true;
button_video_watch.Sensitive = false;
+ button_video_url.Sensitive = false;
}
}
private void on_button_video_watch_clicked (object o, EventArgs args) {
if(File.Exists(videoFileName)) {
Log.WriteLine("Exists and clicked " + videoFileName);
-
+
PlayerBin player = new PlayerBin();
player.Open(videoFileName);
@@ -321,6 +324,12 @@ public class EditEventWindow
player.Play();
}
}
+
+ private void on_button_video_url_clicked (object o, EventArgs args) {
+ new DialogMessage(Constants.MessageTypes.INFO,
+ Catalog.GetString("Video available here:") + "\n\n" +
+ videoFileName);
+ }
protected void fillWindowTitleAndLabelHeader() {
edit_event.Title = string.Format(Catalog.GetString("Edit {0}"), eventBigTypeString);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]