[chronojump] Encoder preferences updated on pref window
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Encoder preferences updated on pref window
- Date: Wed, 10 Apr 2013 16:00:03 +0000 (UTC)
commit a7289eb8dd195c5c7f3a726893dde3d63fc2a124
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Apr 10 17:59:30 2013 +0200
Encoder preferences updated on pref window
src/gui/chronojump.cs | 3 ++-
src/gui/preferences.cs | 8 ++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 7b0fd98..e51b5c5 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2586,7 +2586,8 @@ public partial class ChronoJumpWindow
prefsDigitsNumber, showHeight, showPower, showInitialSpeed, showAngle,
showQIndex, showDjIndex,
askDeletion, weightPercentPreferred, heightPreferred, metersSecondsPreferred,
//System.Threading.Thread.CurrentThread.CurrentUICulture.ToString(),
- SqlitePreferences.Select("language")
+ SqlitePreferences.Select("language"),
+ encoderPropulsive, encoderSmoothEccCon, encoderSmoothCon
);
myWin.Button_accept.Clicked += new EventHandler(on_preferences_accepted);
}
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 09a72b4..b5cdb8c 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -96,7 +96,7 @@ public class PreferencesWindow {
static public PreferencesWindow Show (int digitsNumber, bool showHeight, bool showPower,
bool showInitialSpeed, bool showAngle, bool showQIndex, bool showDjIndex,
bool askDeletion, bool weightStatsPercent, bool heightPreferred, bool
metersSecondsPreferred,
- string language)
+ string language, bool encoderPropulsive, double encoderSmoothEccCon, double
encoderSmoothCon)
{
if (PreferencesWindowBox == null) {
PreferencesWindowBox = new PreferencesWindow ();
@@ -172,7 +172,11 @@ public class PreferencesWindow {
PreferencesWindowBox.radio_speed_ms.Active = true;
else
PreferencesWindowBox.radio_speed_km.Active = true;
-
+
+ //encoder
+ PreferencesWindowBox.checkbutton_encoder_propulsive.Active = encoderPropulsive;
+ PreferencesWindowBox.spin_encoder_smooth_ecc_con.Value = encoderSmoothEccCon;
+ PreferencesWindowBox.spin_encoder_smooth_con.Value = encoderSmoothCon;
PreferencesWindowBox.preferences.Show ();
return PreferencesWindowBox;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]