[chronojump] Sprint export: width/height to SQL and in sync with spinbuttons: forceSensor, runEncoder
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Sprint export: width/height to SQL and in sync with spinbuttons: forceSensor, runEncoder
- Date: Thu, 25 Mar 2021 11:44:31 +0000 (UTC)
commit 8a645ec91766f6514f699785d0b5e58652785233
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 25 12:43:39 2021 +0100
Sprint export: width/height to SQL and in sync with spinbuttons: forceSensor, runEncoder
src/gui/sprint.cs | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/sprint.cs b/src/gui/sprint.cs
index 0b189085..3f0a44cb 100644
--- a/src/gui/sprint.cs
+++ b/src/gui/sprint.cs
@@ -332,8 +332,24 @@ public partial class ChronoJumpWindow
{
//continue based on: private void button_run_encoder_export_session (int personID)
//TODO: sensitive stuff (false)
- //TODO: store new width/height if changed
- //TODO: change also spinbuttons of export sprint and forceSensor
+
+ //store new width/height if changed
+ Sqlite.Open();
+ preferences.exportGraphWidth = Preferences.PreferencesChange(
+ SqlitePreferences.ExportGraphWidth,
+ preferences.exportGraphWidth,
Convert.ToInt32(spinbutton_sprint_export_image_width.Value));
+ preferences.exportGraphHeight = Preferences.PreferencesChange(
+ SqlitePreferences.ExportGraphHeight,
+ preferences.exportGraphHeight,
Convert.ToInt32(spinbutton_sprint_export_image_height.Value));
+ Sqlite.Close();
+
+ //change also spinbuttons of export forceSensor and runEncoder
+ spinbutton_force_sensor_export_image_width.Value = spinbutton_sprint_export_image_width.Value;
+ spinbutton_force_sensor_export_image_height.Value =
spinbutton_sprint_export_image_height.Value;
+
+ spinbutton_run_encoder_export_image_width.Value = spinbutton_sprint_export_image_width.Value;
+ spinbutton_run_encoder_export_image_height.Value =
spinbutton_sprint_export_image_height.Value;
+
sprintExport = new SprintExport(
notebook_sprint_export,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]