[chronojump] RunEncoderAnalyze options, gui 90% done



commit fbdfdea0a27c018480f2dede8cac37949c3175ef
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Apr 24 09:39:22 2020 +0200

    RunEncoderAnalyze options, gui 90% done

 glade/app1.glade                   | 439 +++++++++++++++++++++++++++++++++++--
 po/POTFILES.in                     |   1 +
 src/Makefile.am                    |   1 +
 src/gui/app1/forceSensorAnalyze.cs |   8 +
 src/gui/app1/icons.cs              |   8 +
 src/gui/app1/runEncoder.cs         |  11 +-
 src/gui/app1/runEncoderAnalyze.cs  | 101 +++++++++
 7 files changed, 550 insertions(+), 19 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 08677431..2622ecdc 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -24955,6 +24955,15 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -25370,6 +25379,107 @@ Concentric</property>
                                                             <property name="position">0</property>
                                                             </packing>
                                                             </child>
+                                                            <child>
+                                                            <widget class="GtkHBox" 
id="hbox_run_encoder_analyze_options">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">20</property>
+                                                            <child>
+                                                            <widget class="GtkButton" 
id="button_run_encoder_analyze_options">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="receives_default">True</property>
+                                                            <signal name="clicked" 
handler="on_button_run_encoder_analyze_options_clicked" swapped="no"/>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox409">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">6</property>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_force_sensor_analyze_options1">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</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="label522">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Options</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkButton" 
id="button_run_encoder_analyze_analyze">
+                                                            <property name="visible">True</property>
+                                                            <property name="sensitive">False</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="receives_default">True</property>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox410">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">6</property>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_force_sensor_analyze_analyze1">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</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="label523">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Analyze</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            </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="pack_type">end</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -25378,6 +25488,12 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
+                                                            <widget class="GtkNotebook" 
id="notebook_run_encoder_analyze_or_options">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="show_tabs">False</property>
+                                                            <property name="show_border">False</property>
+                                                            <child>
                                                             <widget class="GtkNotebook" id="notebook2">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
@@ -25491,6 +25607,290 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             </widget>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label524">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label">graph, triggers</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="tab_fill">False</property>
+                                                            <property name="type">tab</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkAlignment" id="alignment13">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="top_padding">10</property>
+                                                            <child>
+                                                            <widget class="GtkFrame" id="frame10">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label_xalign">0.5</property>
+                                                            <property name="shadow_type">in</property>
+                                                            <child>
+                                                            <widget class="GtkAlignment" id="alignment51">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="left_padding">12</property>
+                                                            <child>
+                                                            <widget class="GtkVBox" id="vbox212">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="border_width">16</property>
+                                                            <property name="spacing">16</property>
+                                                            <child>
+                                                            <widget class="GtkFrame" id="frame19">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label_xalign">0</property>
+                                                            <property name="shadow_type">none</property>
+                                                            <child>
+                                                            <widget class="GtkAlignment" id="alignment53">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="left_padding">12</property>
+                                                            <child>
+                                                            <widget class="GtkTable" id="table14">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="border_width">8</property>
+                                                            <property name="n_rows">3</property>
+                                                            <property name="n_columns">2</property>
+                                                            <property name="column_spacing">12</property>
+                                                            <property name="row_spacing">12</property>
+                                                            <child>
+                                                            <widget class="GtkCheckButton" 
id="check_run_encoder_analyze_accel">
+                                                            <property name="label" 
translatable="yes">Acceleration</property>
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="draw_indicator">True</property>
+                                                            <signal name="clicked" 
handler="on_check_run_encoder_analyze_accel_clicked" swapped="no"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkCheckButton" 
id="check_run_encoder_analyze_force">
+                                                            <property name="label" 
translatable="yes">Force</property>
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="draw_indicator">True</property>
+                                                            <signal name="clicked" 
handler="on_check_run_encoder_analyze_force_clicked" swapped="no"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="top_attach">1</property>
+                                                            <property name="bottom_attach">2</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkCheckButton" 
id="check_run_encoder_analyze_power">
+                                                            <property name="label" 
translatable="yes">Power</property>
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="draw_indicator">True</property>
+                                                            <signal name="clicked" 
handler="on_check_run_encoder_analyze_power_clicked" swapped="no"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="top_attach">2</property>
+                                                            <property name="bottom_attach">3</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkComboBox" 
id="combo_run_encoder_analyze_accel">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="active">1</property>
+                                                            <property name="items"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="left_attach">1</property>
+                                                            <property name="right_attach">2</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkComboBox" 
id="combo_run_encoder_analyze_force">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="active">1</property>
+                                                            <property name="items" translatable="yes"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="left_attach">1</property>
+                                                            <property name="right_attach">2</property>
+                                                            <property name="top_attach">1</property>
+                                                            <property name="bottom_attach">2</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkComboBox" 
id="combo_run_encoder_analyze_power">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="active">1</property>
+                                                            <property name="items" translatable="yes"/>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="left_attach">1</property>
+                                                            <property name="right_attach">2</property>
+                                                            <property name="top_attach">2</property>
+                                                            <property name="bottom_attach">3</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label528">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Cálculos</property>
+                                                            <property name="use_markup">True</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="type">label_item</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox411">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">30</property>
+                                                            <child>
+                                                            <widget class="GtkButton" 
id="button_run_encoder_analyze_options_close">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="receives_default">True</property>
+                                                            <signal name="clicked" 
handler="on_button_run_encoder_analyze_options_close_clicked" swapped="no"/>
+                                                            <accelerator key="Escape" signal="clicked"/>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox412">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">6</property>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_force_sensor_analyze_options_close1">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</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="label526">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Close</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkButton" 
id="button_run_encoder_analyze_options_close_and_analyze">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="receives_default">True</property>
+                                                            <property name="tooltip" 
translatable="yes">Close</property>
+                                                            <property name="relief">half</property>
+                                                            <accelerator key="Escape" signal="clicked"/>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox413">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">8</property>
+                                                            <child>
+                                                            <widget class="GtkImage" 
id="image_force_sensor_analyze_options_close_and_analyze1">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</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="label527">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" translatable="yes">Close 
and analyze</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">1</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="type">label_item</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label525">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label">options</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="position">1</property>
+                                                            <property name="tab_fill">False</property>
+                                                            <property name="type">tab</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
                                                             <packing>
                                                             <property name="expand">True</property>
                                                             <property name="fill">True</property>
@@ -27253,6 +27653,18 @@ Concentric</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">6</property>
                                                             <child>
+                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="pack_type">end</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_capturing">
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">4</property>
@@ -27289,18 +27701,6 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
-                                                            <property name="can_focus">False</property>
-                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="pack_type">end</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_no_capturing">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -35079,6 +35479,15 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -39117,6 +39526,7 @@ then click this button.</property>
                             <property name="border_width">4</property>
                             <child>
                               <widget class="GtkFrame" id="frame3">
+                                <property name="width_request">450</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="label_xalign">0</property>
@@ -39271,8 +39681,8 @@ then click this button.</property>
                                                 </child>
                                               </widget>
                                               <packing>
-                                                <property name="expand">True</property>
-                                                <property name="fill">True</property>
+                                                <property name="expand">False</property>
+                                                <property name="fill">False</property>
                                                 <property name="position">1</property>
                                               </packing>
                                             </child>
@@ -39373,6 +39783,7 @@ then click this button.</property>
                                         </child>
                                         <child>
                                           <widget class="GtkHBox" id="hbox218">
+                                            <property name="height_request">60</property>
                                             <property name="visible">True</property>
                                             <property name="can_focus">False</property>
                                             <property name="spacing">8</property>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 49a1caf5..f7ad28da 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -70,6 +70,7 @@ src/gui/app1/pulse.cs
 src/gui/app1/reactionTime.cs
 src/gui/app1/run.cs
 src/gui/app1/runEncoder.cs
+src/gui/app1/runEncoderAnalyze.cs
 src/gui/app1/session/loadAndImport.cs
 src/gui/app1/session/addEdit.cs
 src/gui/chronopic.cs
diff --git a/src/Makefile.am b/src/Makefile.am
index db3032af..f0d0e1b5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -28,6 +28,7 @@ SOURCES = \
        gui/app1/reactionTime.cs\
        gui/app1/run.cs\
        gui/app1/runEncoder.cs\
+       gui/app1/runEncoderAnalyze.cs\
        gui/cairo/jumpsDjOptimalFall.cs\
        gui/cairo/jumpsEvolution.cs\
        gui/cairo/jumpsProfile.cs\
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index 36dfa6b6..cc5d4cdc 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -241,6 +241,14 @@ public partial class ChronoJumpWindow
 
        private void createForceAnalyzeCombos ()
        {
+               /*
+                * usually we have an hbox on glade, we create a combo here and we attach
+                * this technique is used also on createRunEncoderAnalyzeCombos ()
+                * the combo is in glade, without elements, but the elements is in bold because it has been 
edited, but is blank
+                * you can see in the app1.glade:
+                * <property name="items"/>
+                */
+
                UtilGtk.ComboUpdate(combo_force_1_function, ForceSensorRFD.FunctionsArray(true), "");
                UtilGtk.ComboUpdate(combo_force_2_function, ForceSensorRFD.FunctionsArray(true), "");
                UtilGtk.ComboUpdate(combo_force_3_function, ForceSensorRFD.FunctionsArray(true), "");
diff --git a/src/gui/app1/icons.cs b/src/gui/app1/icons.cs
index cfe16d3c..ee1a9332 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -183,9 +183,13 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Image image_force_sensor_capture_adjust;
        [Widget] Gtk.Image image_force_sensor_capture_adjust_close;
        [Widget] Gtk.Image image_force_sensor_analyze_options;
+       [Widget] Gtk.Image image_force_sensor_analyze_options1;
        [Widget] Gtk.Image image_force_sensor_analyze_options_close;
+       [Widget] Gtk.Image image_force_sensor_analyze_options_close1;
        [Widget] Gtk.Image image_force_sensor_analyze_analyze;
+       [Widget] Gtk.Image image_force_sensor_analyze_analyze1;
        [Widget] Gtk.Image image_force_sensor_analyze_options_close_and_analyze;
+       [Widget] Gtk.Image image_force_sensor_analyze_options_close_and_analyze1;
        [Widget] Gtk.Image image_force_sensor_exercise_edit;
        [Widget] Gtk.Image image_force_sensor_exercise_delete;
        [Widget] Gtk.Image image_force_sensor_laterality_both;
@@ -408,6 +412,7 @@ public partial class ChronoJumpWindow
                image_encoder_configuration.Pixbuf = pixbuf;
                image_force_sensor_capture_adjust.Pixbuf = pixbuf;
                image_force_sensor_analyze_options.Pixbuf = pixbuf;
+               image_force_sensor_analyze_options1.Pixbuf = pixbuf;
                pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_build_16.png");
                image_encoder_analyze_mode_options.Pixbuf = pixbuf;
 
@@ -453,6 +458,7 @@ public partial class ChronoJumpWindow
                image_contacts_exercise_close.Pixbuf = pixbuf;
                image_encoder_exercise_close.Pixbuf = pixbuf;
                image_force_sensor_analyze_options_close.Pixbuf = pixbuf;
+               image_force_sensor_analyze_options_close1.Pixbuf = pixbuf;
                image_encoder_analyze_mode_options_close.Pixbuf = pixbuf;
                image_force_sensor_capture_adjust_close.Pixbuf = pixbuf;
 
@@ -736,7 +742,9 @@ public partial class ChronoJumpWindow
                image_forcesensor_analyze_save_rfd_auto.Pixbuf = pixbuf;
                image_forcesensor_analyze_save_rfd_manual.Pixbuf = pixbuf;
                image_force_sensor_analyze_analyze.Pixbuf = pixbuf;
+               image_force_sensor_analyze_analyze1.Pixbuf = pixbuf;
                image_force_sensor_analyze_options_close_and_analyze.Pixbuf = pixbuf;
+               image_force_sensor_analyze_options_close_and_analyze1.Pixbuf = pixbuf;
                image_jumps_profile_save.Pixbuf = pixbuf;
                image_jumps_dj_optimal_fall_save.Pixbuf = pixbuf;
                image_jumps_weight_fv_profile_save.Pixbuf = pixbuf;
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index 9a77e70e..7dfe7367 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -87,6 +87,12 @@ public partial class ChronoJumpWindow
                Catalog.GetString("Plug cable and click on 'device' button.");
 
 
+       private void initRunEncoder ()
+       {
+               createRunEncoderExerciseCombo();
+               createRunEncoderAnalyzeCombos();
+       }
+
        //no GTK here
        private bool runEncoderConnect()
        {
@@ -269,11 +275,6 @@ public partial class ChronoJumpWindow
                button_delete_last_test.Sensitive = false;
        }
 
-       private void initRunEncoder ()
-       {
-               createRunEncoderExerciseCombo();
-       }
-
        private void raceEncoderReadWidgets()
        {
                race_analyzer_distance = Convert.ToInt32(race_analyzer_spinbutton_distance.Value);
diff --git a/src/gui/app1/runEncoderAnalyze.cs b/src/gui/app1/runEncoderAnalyze.cs
new file mode 100644
index 00000000..8ed463d9
--- /dev/null
+++ b/src/gui/app1/runEncoderAnalyze.cs
@@ -0,0 +1,101 @@
+/*
+ * This file is part of ChronoJump
+ *
+ * ChronoJump is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or   
+ *    (at your option) any later version.
+ *    
+ * ChronoJump is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
+ *    GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Copyright (C) 2020   Xavier de Blas <xaviblas gmail com>
+ */
+
+using System;
+using Gtk;
+using Glade;
+using Mono.Unix;
+
+
+public partial class ChronoJumpWindow 
+{
+       [Widget] Gtk.Notebook notebook_run_encoder_analyze_or_options;
+       [Widget] Gtk.CheckButton check_run_encoder_analyze_accel;
+       [Widget] Gtk.CheckButton check_run_encoder_analyze_force;
+       [Widget] Gtk.CheckButton check_run_encoder_analyze_power;
+       [Widget] Gtk.ComboBox combo_run_encoder_analyze_accel;
+       [Widget] Gtk.ComboBox combo_run_encoder_analyze_force;
+       [Widget] Gtk.ComboBox combo_run_encoder_analyze_power;
+
+
+       private void on_button_run_encoder_analyze_options_clicked (object o, EventArgs args)
+       {
+               notebook_run_encoder_analyze_or_options.CurrentPage = 1;
+               runEncoderButtonsSensitive(false); //TODO: add this new buttons if needed
+       }
+       private void on_button_run_encoder_analyze_options_close_clicked (object o, EventArgs args)
+       {
+               notebook_run_encoder_analyze_or_options.CurrentPage = 0;
+               runEncoderButtonsSensitive(true); //TODO: add this new buttons if needed
+       }
+       
+       private string runEncoderAnalyzeRawName = "RAW";
+       private string runEncoderAnalyzeFittedName = "Fitted";
+       private string runEncoderAnalyzeBothName = "Both";
+
+       private string [] runEncoderAnalyzeOptions (bool translated)
+       {
+               if(translated)
+                       return new string [] {
+                               Catalog.GetString(runEncoderAnalyzeRawName),
+                                       Catalog.GetString(runEncoderAnalyzeFittedName),
+                                       Catalog.GetString(runEncoderAnalyzeBothName)
+                       };
+               else
+                       return new string [] {
+                               runEncoderAnalyzeRawName,
+                                       runEncoderAnalyzeFittedName,
+                                       runEncoderAnalyzeBothName
+                       };
+       }
+
+       private void createRunEncoderAnalyzeCombos ()
+       {
+               /*
+                * usually we have an hbox on glade, we create a combo here and we attach
+                * this technique is the same than createForceAnalyzeCombos ()
+                * the combo is in glade, without elements, but the elements is in bold because it has been 
edited, but is blank
+                * you can see in the app1.glade:
+                * <property name="items"/>
+                */
+
+               UtilGtk.ComboUpdate(combo_run_encoder_analyze_accel, runEncoderAnalyzeOptions(true), "");
+               UtilGtk.ComboUpdate(combo_run_encoder_analyze_force, runEncoderAnalyzeOptions(true), "");
+               UtilGtk.ComboUpdate(combo_run_encoder_analyze_power, runEncoderAnalyzeOptions(true), "");
+
+               combo_run_encoder_analyze_accel.Active = 0;
+               combo_run_encoder_analyze_force.Active = 0;
+               combo_run_encoder_analyze_power.Active = 0;
+       }
+
+       private void on_check_run_encoder_analyze_accel_clicked (object o, EventArgs args)
+       {
+               combo_run_encoder_analyze_accel.Visible = (check_run_encoder_analyze_accel.Active);
+       }
+       private void on_check_run_encoder_analyze_force_clicked (object o, EventArgs args)
+       {
+               combo_run_encoder_analyze_force.Visible = (check_run_encoder_analyze_force.Active);
+       }
+       private void on_check_run_encoder_analyze_power_clicked (object o, EventArgs args)
+       {
+               combo_run_encoder_analyze_power.Visible = (check_run_encoder_analyze_power.Active);
+       }
+
+}


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