[chronojump] On compujump, encoderConfiguration cannot be changed



commit 906f8ad54059eabfd0b5a5d989bc20ad764401d8
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jun 28 22:03:14 2017 +0200

    On compujump, encoderConfiguration cannot be changed

 glade/app1.glade    |   12 +++++++++---
 src/gui/networks.cs |    9 +++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 4e075d8..9a008ee 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1331,6 +1331,9 @@
                                                             <placeholder/>
                                                             </child>
                                                             <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkLabel" 
id="label_start_selector_jumps">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -16992,14 +16995,14 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkLabel" id="label111">
+                                                            <widget class="GtkLabel" 
id="label_encoder_exercise_encoder">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="label" 
translatable="yes">Encoder</property>
                                                             </widget>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkVSeparator" id="vseparator6">
+                                                            <widget class="GtkVSeparator" 
id="vseparator_encoder_exercise_encoder">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             </widget>
@@ -17009,7 +17012,7 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkHBox" id="hbox16">
+                                                            <widget class="GtkHBox" 
id="hbox_encoder_exercise_encoder">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">8</property>
@@ -20782,6 +20785,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 3992ce3..b2ea0ac 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -58,6 +58,9 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Button button_encoder_person_change;
 
        //encoder exercise stuff
+       [Widget] Gtk.Label label_encoder_exercise_encoder;
+       [Widget] Gtk.VSeparator vseparator_encoder_exercise_encoder;
+       [Widget] Gtk.HBox hbox_encoder_exercise_encoder;
        [Widget] Gtk.Button button_encoder_exercise_edit;
        [Widget] Gtk.Button button_encoder_exercise_add;
 
@@ -104,6 +107,12 @@ public partial class ChronoJumpWindow
                        //button_encoder_person_change.Visible = false;
                        //TODO: don't allow edit person on person treeview
 
+                       //don't allow to change encoderConfiguration
+                       label_encoder_exercise_encoder.Visible = false;
+                       vseparator_encoder_exercise_encoder.Visible = false;
+                       hbox_encoder_exercise_encoder.Visible = false;
+
+                       //don't allow to edit exercises
                        button_encoder_exercise_edit.Visible = false;
                        button_encoder_exercise_add.Visible = false;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]