[chronojump] button_encoder_monthly_change_current_session for compujump admin user
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] button_encoder_monthly_change_current_session for compujump admin user
- Date: Tue, 8 Jan 2019 16:54:24 +0000 (UTC)
commit a4c9ab6e7f919d3490bc12679527ac359878e95c
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jan 8 17:52:03 2019 +0100
button_encoder_monthly_change_current_session for compujump admin user
glade/app1.glade | 62 ++++++++++++++++++++++-------------------------------
src/gui/encoder.cs | 14 +++++++++---
src/gui/networks.cs | 3 +++
3 files changed, 40 insertions(+), 39 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 59d4ac2c..78f86ee5 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1811,6 +1811,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>
@@ -19185,42 +19188,6 @@ Concentric</property>
<placeholder/>
</child>
<child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
<widget class="GtkLabel"
id="label_force_sensor_ai_rfd_a">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -19529,6 +19496,9 @@ Concentric</property>
<placeholder/>
</child>
<child>
+ <placeholder/>
+ </child>
+ <child>
<widget class="GtkCheckButton"
id="checkbutton_force_sensor_ai_b">
<property name="width_request">30</property>
<property name="visible">True</property>
@@ -19635,6 +19605,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -24390,6 +24363,20 @@ then click this button.</property>
<property name="position">3</property>
</packing>
</child>
+ <child>
+ <widget class="GtkButton"
id="button_encoder_monthly_change_current_session">
+ <property name="label" translatable="yes">Change
current session</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked"
handler="on_open_activate" swapped="no"/>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="left_attach">1</property>
@@ -27910,6 +27897,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index f92856b5..a4a8eb68 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -3214,7 +3214,9 @@ public partial class ChronoJumpWindow
hbox_encoder_analyze_intersession.Visible = false;
check_encoder_separate_session_in_days.Active = false;
check_encoder_separate_session_in_days.Visible = false;
-
+
+ button_encoder_monthly_change_current_session.Visible = false;
+
button_encoder_analyze_sensitiveness();
hbox_encoder_analyze_current_signal.Visible = true;
@@ -3267,7 +3269,9 @@ public partial class ChronoJumpWindow
hbox_encoder_analyze_intersession.Visible = false;
check_encoder_separate_session_in_days.Active = false;
check_encoder_separate_session_in_days.Visible = false;
-
+
+ button_encoder_monthly_change_current_session.Visible =
configChronojump.CompujumpUserIsAdmin(currentPerson);
+
button_encoder_analyze_sensitiveness();
hbox_encoder_analyze_current_signal.Visible = false;
@@ -3308,6 +3312,8 @@ public partial class ChronoJumpWindow
radiobutton_encoder_analyze_superpose.Visible = false;
radiobutton_encoder_analyze_neuromuscular_profile.Visible = false;
+ button_encoder_monthly_change_current_session.Visible = false;
+
showTriggerTab(false);
}
@@ -3332,7 +3338,7 @@ public partial class ChronoJumpWindow
hbox_encoder_analyze_intersession.Visible = false;
check_encoder_separate_session_in_days.Active = false;
check_encoder_separate_session_in_days.Visible = false;
-
+
//this analysis only when not comparing
radiobutton_encoder_analyze_instantaneous.Visible = false;
radiobutton_encoder_analyze_powerbars.Visible = false;
@@ -3342,6 +3348,8 @@ public partial class ChronoJumpWindow
radiobutton_encoder_analyze_superpose.Visible = false;
radiobutton_encoder_analyze_neuromuscular_profile.Visible = false;
+ button_encoder_monthly_change_current_session.Visible = false;
+
showTriggerTab(false);
}
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index d950d1e5..2d4c48d5 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -73,6 +73,9 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Notebook notebook_encoder_capture_main;
[Widget] Gtk.VBox vbox_treeview_encoder_at_second_page;
+ //encoder ...
+ [Widget] Gtk.Button button_encoder_monthly_change_current_session;
+
//runsInterval
[Widget] Gtk.HBox hbox_runs_interval_compujump;
[Widget] Gtk.RadioButton radio_run_interval_compujump_5m;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]