[chronojump] Removed string extended options (disabled since 1.7.0) on preferences encoder inertial
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Removed string extended options (disabled since 1.7.0) on preferences encoder inertial
- Date: Thu, 15 Feb 2018 12:51:39 +0000 (UTC)
commit 07e5f06369d6f87efacba0523422233fac117aad
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Feb 14 17:38:24 2018 +0100
Removed string extended options (disabled since 1.7.0) on preferences encoder inertial
glade/preferences_win.glade | 121 +------------------------------------------
src/gui/preferences.cs | 20 -------
2 files changed, 1 insertions(+), 140 deletions(-)
---
diff --git a/glade/preferences_win.glade b/glade/preferences_win.glade
index acafdee..f99dc70 100644
--- a/glade/preferences_win.glade
+++ b/glade/preferences_win.glade
@@ -2000,7 +2000,7 @@ It starts before and arrives there with some speed.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Minimal
height</property>
+ <property name="label" translatable="yes">Minimal
length</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -2065,125 +2065,6 @@ It starts before and arrives there with some speed.</property>
<property name="position">0</property>
</packing>
</child>
- <child>
- <widget class="GtkVBox" id="vbox21">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">8</property>
- <child>
- <widget class="GtkCheckButton"
id="checkbutton_encoder_capture_fully_extended">
- <property name="label" translatable="yes">Check if string is
fully extended at start of capture.</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <signal name="toggled"
handler="on_checkbutton_encoder_capture_fully_extended_toggled" swapped="no"/>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkAlignment" id="alignment8">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="left_padding">12</property>
- <child>
- <widget class="GtkHBox"
id="hbox_encoder_capture_fully_extended">
- <property name="can_focus">False</property>
- <property name="tooltip" translatable="yes">If string is not
extended by this value or more, signal will be corrected.</property>
- <property name="spacing">10</property>
- <child>
- <widget class="GtkLabel" id="label56">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label"
translatable="yes">Turns</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkSpinButton"
id="spin_encoder_capture_fully_extended">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">●</property>
- <property name="width_chars">2</property>
- <property name="invisible_char_set">True</property>
- <property
name="primary_icon_activatable">False</property>
- <property
name="secondary_icon_activatable">False</property>
- <property name="primary_icon_sensitive">True</property>
- <property name="secondary_icon_sensitive">True</property>
- <property name="adjustment">4 1 20 1 1 0</property>
- <property name="climb_rate">1</property>
- <property name="snap_to_ticks">True</property>
- <property name="numeric">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox20">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">10</property>
- <child>
- <widget class="GtkLabel" id="label57">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label"
translatable="yes">Recommended:</property>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label58">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label">4</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="padding">20</property>
- <property name="position">2</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
</widget>
</child>
</widget>
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 760067d..5c30bdd 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -115,9 +115,6 @@ public class PreferencesWindow
[Widget] Gtk.VBox vbox_encoder_inertial; //change Visible param to not have a vertical big first page
with only one row of info
[Widget] Gtk.SpinButton spin_encoder_capture_min_height_gravitatory;
[Widget] Gtk.SpinButton spin_encoder_capture_min_height_inertial;
- [Widget] Gtk.CheckButton checkbutton_encoder_capture_fully_extended;
- [Widget] Gtk.HBox hbox_encoder_capture_fully_extended;
- [Widget] Gtk.SpinButton spin_encoder_capture_fully_extended;
[Widget] Gtk.RadioButton radio_encoder_auto_save_curve_best;
[Widget] Gtk.RadioButton radio_encoder_auto_save_curve_4top;
[Widget] Gtk.RadioButton radio_encoder_auto_save_curve_all;
@@ -493,9 +490,6 @@ public class PreferencesWindow
PreferencesWindowBox.spin_encoder_capture_min_height_gravitatory.Value =
preferences.encoderCaptureMinHeightGravitatory;
PreferencesWindowBox.spin_encoder_capture_min_height_inertial.Value =
preferences.encoderCaptureMinHeightInertial;
- PreferencesWindowBox.checkbutton_encoder_capture_fully_extended.Active =
preferences.encoderCaptureCheckFullyExtended;
- PreferencesWindowBox.spin_encoder_capture_fully_extended.Value =
preferences.encoderCaptureCheckFullyExtendedValue;
- PreferencesWindowBox.hbox_encoder_capture_fully_extended.Visible =
preferences.encoderCaptureCheckFullyExtended;
if(preferences.encoderAutoSaveCurve == Constants.EncoderAutoSaveCurve.BEST)
PreferencesWindowBox.radio_encoder_auto_save_curve_best.Active = true;
@@ -654,10 +648,6 @@ public class PreferencesWindow
alignment_restart.Visible = ! check_appearance_encoder_only_bars.Active;
}
- private void on_checkbutton_encoder_capture_fully_extended_toggled(object obj, EventArgs args) {
- hbox_encoder_capture_fully_extended.Visible =
checkbutton_encoder_capture_fully_extended.Active;
- }
-
// ---- Force sensor stuff
@@ -1698,16 +1688,6 @@ public class PreferencesWindow
preferences.encoderCaptureMinHeightInertial,
(int) PreferencesWindowBox.spin_encoder_capture_min_height_inertial.Value);
- preferences.encoderCaptureCheckFullyExtended = preferencesChange(
- "encoderCaptureCheckFullyExtended",
- preferences.encoderCaptureCheckFullyExtended,
- PreferencesWindowBox.checkbutton_encoder_capture_fully_extended.Active);
-
- preferences.encoderCaptureCheckFullyExtendedValue = preferencesChange(
- "encoderCaptureCheckFullyExtendedValue",
- preferences.encoderCaptureCheckFullyExtendedValue,
- (int) PreferencesWindowBox.spin_encoder_capture_fully_extended.Value);
-
if(PreferencesWindowBox.radio_encoder_auto_save_curve_best.Active) {
SqlitePreferences.Update("encoderAutoSaveCurve",
Constants.EncoderAutoSaveCurve.BEST.ToString(), true);
preferences.encoderAutoSaveCurve = Constants.EncoderAutoSaveCurve.BEST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]