[chronojump] JUmpsWeightFVProfile can save image
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] JUmpsWeightFVProfile can save image
- Date: Thu, 2 Jan 2020 12:43:27 +0000 (UTC)
commit b295c78f741c49484689757191a2df1650617b1b
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jan 2 13:43:07 2020 +0100
JUmpsWeightFVProfile can save image
glade/app1.glade | 1 +
src/gui/cairo/jumpsDjOptimalFall.cs | 2 +-
src/gui/cairo/jumpsWeightFVProfile.cs | 2 +-
src/gui/encoder.cs | 12 ++++++++++--
4 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 9488ffdf..4a4c9bb8 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -18926,6 +18926,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_weight_fv_profile_save_image_clicked" swapped="no"/>
<child>
<widget class="GtkVBox" id="vbox162">
<property name="visible">True</property>
diff --git a/src/gui/cairo/jumpsDjOptimalFall.cs b/src/gui/cairo/jumpsDjOptimalFall.cs
index 8f5ec661..87a41b6b 100644
--- a/src/gui/cairo/jumpsDjOptimalFall.cs
+++ b/src/gui/cairo/jumpsDjOptimalFall.cs
@@ -36,7 +36,7 @@ public class JumpsDjOptimalFallGraph : CairoXY
initGraph();
g.SetFontSize(16);
- printText(area.Allocation.Width /2, area.Allocation.Height /2, 24, textHeight, "Need to
execute jumps DjOptimalFall BORRAR", g, true);
+ printText(area.Allocation.Width /2, area.Allocation.Height /2, 24, textHeight, "Need to
execute jumps DjOptimalFall", g, true);
endGraph();
}
diff --git a/src/gui/cairo/jumpsWeightFVProfile.cs b/src/gui/cairo/jumpsWeightFVProfile.cs
index f136dc20..d9e637b7 100644
--- a/src/gui/cairo/jumpsWeightFVProfile.cs
+++ b/src/gui/cairo/jumpsWeightFVProfile.cs
@@ -36,7 +36,7 @@ public class JumpsWeightFVProfileGraph : CairoXY
initGraph();
g.SetFontSize(16);
- printText(area.Allocation.Width /2, area.Allocation.Height /2, 24, textHeight, "Need to
execute jumps weightFV BORRAR", g, true);
+ printText(area.Allocation.Width /2, area.Allocation.Height /2, 24, textHeight, "Need to
execute jumps weightFV", g, true);
endGraph();
}
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index ba30a24f..1694a4a7 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -2034,6 +2034,7 @@ public partial class ChronoJumpWindow
else if(
checkFileOp == Constants.CheckFileOp.JUMPS_PROFILE_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.JUMPS_DJ_OPTIMAL_FALL_SAVE_IMAGE ||
+ checkFileOp == Constants.CheckFileOp.JUMPS_WEIGHT_FV_PROFILE_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.RUNS_SPRINT_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.ENCODER_ANALYZE_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.FORCESENSOR_SAVE_IMAGE_SIGNAL ||
@@ -2087,6 +2088,7 @@ public partial class ChronoJumpWindow
else if(
checkFileOp == Constants.CheckFileOp.JUMPS_PROFILE_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.JUMPS_DJ_OPTIMAL_FALL_SAVE_IMAGE ||
+ checkFileOp == Constants.CheckFileOp.JUMPS_WEIGHT_FV_PROFILE_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.RUNS_SPRINT_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.ENCODER_ANALYZE_SAVE_IMAGE ||
checkFileOp == Constants.CheckFileOp.FORCESENSOR_SAVE_IMAGE_SIGNAL ||
@@ -2121,7 +2123,7 @@ public partial class ChronoJumpWindow
else //ENCODER_ANALYZE_SAVE_IMAGE, FORCESENSOR_SAVE_IMAGE_SIGNAL,
//FORCESENSOR_SAVE_IMAGE_RFD_AUTO, FORCESENSOR_SAVE_IMAGE_RFD_MANUAL
exportFileName = Util.AddPngIfNeeded(exportFileName);
- try {
+// try {
if (File.Exists(exportFileName)) {
LogB.Information(string.Format(
"File {0} exists with attributes {1}, created
at {2}",
@@ -2139,6 +2141,9 @@ public partial class ChronoJumpWindow
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.JUMPS_WEIGHT_FV_PROFILE_SAVE_IMAGE)
+ confirmWin.Button_accept.Clicked +=
+ new
EventHandler(on_overwrite_file_jumps_weight_fv_profile_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);
@@ -2172,6 +2177,8 @@ public partial class ChronoJumpWindow
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.JUMPS_WEIGHT_FV_PROFILE_SAVE_IMAGE)
+ on_button_jumps_weight_fv_profile_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)
@@ -2199,11 +2206,12 @@ public partial class ChronoJumpWindow
myString +=
Constants.GetSpreadsheetString(preferences.CSVExportDecimalSeparator);
new DialogMessage(Constants.MessageTypes.INFO, myString);
}
- } catch {
+/* } catch {
string myString = string.Format(
Catalog.GetString("Cannot save file {0} "), exportFileName);
new DialogMessage(Constants.MessageTypes.WARNING, myString);
}
+ */
}
else {
LogB.Information("cancelled");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]