[chronojump] JumpsDjOptimal save image implemented
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] JumpsDjOptimal save image implemented
- Date: Tue, 24 Dec 2019 12:56:59 +0000 (UTC)
commit ffffe7ff7732e47701e29cb199bf0adb4810f48f
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Dec 24 13:56:50 2019 +0100
JumpsDjOptimal save image implemented
glade/app1.glade | 33 +++++++++++++++++-----------
src/constants.cs | 2 +-
src/gui/app1/chronojumpJumpsDjOptimalFall.cs | 2 +-
src/gui/encoder.cs | 7 ++++++
4 files changed, 29 insertions(+), 15 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index c275f206..68daa48d 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -18669,7 +18669,7 @@ Concentric</property>
</packing>
</child>
<child>
- <widget class="GtkVBox" id="vbox27">
+ <widget class="GtkVBox" id="vbox_jumps_dj_optimal_fall">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
@@ -18699,6 +18699,7 @@ Concentric</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip" translatable="yes">Save
image</property>
+ <signal name="clicked"
handler="on_button_jumps_dj_optimal_fall_save_image_clicked" swapped="no"/>
<child>
<widget class="GtkVBox" id="vbox161">
<property name="visible">True</property>
@@ -22320,6 +22321,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -24567,6 +24571,18 @@ Concentric</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
+ <widget class="GtkLabel"
id="label_video_encoder_tests_will_be_filmed">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Tests
will be filmed</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkHBox"
id="hbox_video_encoder_capturing">
<property name="can_focus">False</property>
<property name="spacing">4</property>
@@ -24603,18 +24619,6 @@ Concentric</property>
</packing>
</child>
<child>
- <widget class="GtkLabel"
id="label_video_encoder_tests_will_be_filmed">
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Tests
will be filmed</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
<widget class="GtkHBox"
id="hbox_video_encoder_no_capturing">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -31826,6 +31830,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/constants.cs b/src/constants.cs
index beecaf1e..460aa556 100644
--- a/src/constants.cs
+++ b/src/constants.cs
@@ -1069,7 +1069,7 @@ public class Constants
public enum EncoderGI {ALL, GRAVITATORY, INERTIAL}
public enum CheckFileOp {
- JUMPS_PROFILE_SAVE_IMAGE,
+ JUMPS_PROFILE_SAVE_IMAGE, JUMPS_DJ_OPTIMAL_FALL_SAVE_IMAGE,
RUNS_SPRINT_SAVE_IMAGE,
ENCODER_CAPTURE_EXPORT_ALL, ENCODER_ANALYZE_SAVE_IMAGE,
ENCODER_ANALYZE_SEND_IMAGE, //like save image but just defines the name exportFileName to be
sended
diff --git a/src/gui/app1/chronojumpJumpsDjOptimalFall.cs b/src/gui/app1/chronojumpJumpsDjOptimalFall.cs
index 3943b28e..ec8346d7 100644
--- a/src/gui/app1/chronojumpJumpsDjOptimalFall.cs
+++ b/src/gui/app1/chronojumpJumpsDjOptimalFall.cs
@@ -63,7 +63,7 @@ public partial class ChronoJumpWindow
private void on_button_jumps_dj_optimal_fall_save_image_clicked (object o, EventArgs args)
{
- checkFile(Constants.CheckFileOp.JUMPS_PROFILE_SAVE_IMAGE);
+ checkFile(Constants.CheckFileOp.JUMPS_DJ_OPTIMAL_FALL_SAVE_IMAGE);
}
private void on_button_jumps_dj_optimal_fall_save_image_selected (string destination)
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 4fa46be6..81d363e8 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -2033,6 +2033,7 @@ public partial class ChronoJumpWindow
exportString = Catalog.GetString ("Export set in CSV format");
else if(
checkFileOp == Constants.CheckFileOp.JUMPS_PROFILE_SAVE_IMAGE ||
+ checkFileOp == Constants.CheckFileOp.JUMPS_DJ_OPTIMAL_FALL_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.RUNS_SPRINT_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.ENCODER_ANALYZE_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.FORCESENSOR_SAVE_IMAGE_SIGNAL ||
@@ -2080,6 +2081,7 @@ public partial class ChronoJumpWindow
nameString += "_encoder_set_export.csv";
else if(
checkFileOp == Constants.CheckFileOp.JUMPS_PROFILE_SAVE_IMAGE ||
+ checkFileOp == Constants.CheckFileOp.JUMPS_DJ_OPTIMAL_FALL_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.RUNS_SPRINT_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.ENCODER_ANALYZE_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.FORCESENSOR_SAVE_IMAGE_SIGNAL ||
@@ -2129,6 +2131,9 @@ public partial class ChronoJumpWindow
if(checkFileOp == Constants.CheckFileOp.JUMPS_PROFILE_SAVE_IMAGE)
confirmWin.Button_accept.Clicked +=
new
EventHandler(on_overwrite_file_jumps_profile_save_image_accepted);
+ if(checkFileOp ==
Constants.CheckFileOp.JUMPS_DJ_OPTIMAL_FALL_SAVE_IMAGE)
+ confirmWin.Button_accept.Clicked +=
+ new
EventHandler(on_overwrite_file_jumps_dj_optimal_fall_save_image_accepted);
if(checkFileOp == Constants.CheckFileOp.RUNS_SPRINT_SAVE_IMAGE)
confirmWin.Button_accept.Clicked +=
new
EventHandler(on_overwrite_file_runs_sprint_save_image_accepted);
@@ -2160,6 +2165,8 @@ public partial class ChronoJumpWindow
} else {
if(checkFileOp == Constants.CheckFileOp.JUMPS_PROFILE_SAVE_IMAGE)
on_button_jumps_profile_save_image_selected (exportFileName);
+ else if(checkFileOp ==
Constants.CheckFileOp.JUMPS_DJ_OPTIMAL_FALL_SAVE_IMAGE)
+ on_button_jumps_dj_optimal_fall_save_image_selected
(exportFileName);
else if(checkFileOp == Constants.CheckFileOp.RUNS_SPRINT_SAVE_IMAGE)
on_button_runs_sprint_save_image_selected (exportFileName);
else if(checkFileOp ==
Constants.CheckFileOp.ENCODER_CAPTURE_EXPORT_ALL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]