Commit 1435946b authored by Alexandre De Fonvillars's avatar Alexandre De Fonvillars
Browse files

Update u3-callbacks.cpp

parent 9a35b9ae
...@@ -135,6 +135,7 @@ void ZoneDessinClavierCB( Fl_Widget* widget, void* data ) ...@@ -135,6 +135,7 @@ void ZoneDessinClavierCB( Fl_Widget* widget, void* data )
break ; break ;
} }
} }
//Callbacks des Boutons //Callbacks des Boutons
void BoutonQuitterCB(Fl_Widget* w, void* data) void BoutonQuitterCB(Fl_Widget* w, void* data)
{ {
...@@ -171,8 +172,6 @@ void BoutonPolarisationXCB( Fl_Widget* w, void* data) ...@@ -171,8 +172,6 @@ void BoutonPolarisationXCB( Fl_Widget* w, void* data)
//Callbacks des sliders //Callbacks des sliders
void SliderCallback1(Fl_Widget* w, void* data) void SliderCallback1(Fl_Widget* w, void* data)
{ {
k = gInterface.Slider1->value() ;
gDonnees.corde.k = gInterface.Slider1->value() ;
} }
void SliderCallback2(Fl_Widget* w, void* data) void SliderCallback2(Fl_Widget* w, void* data)
...@@ -180,9 +179,14 @@ void SliderCallback2(Fl_Widget* w, void* data) ...@@ -180,9 +179,14 @@ void SliderCallback2(Fl_Widget* w, void* data)
k = gInterface.Slider2->value() ; k = gInterface.Slider2->value() ;
} }
void SliderKCallback( Fl_Widget* w, void* data ) void SliderK1Callback( Fl_Widget* w, void* data )
{
gDonnees.corde.k1 = gInterface.SliderK1->value();
}
void SliderK2Callback( Fl_Widget* w, void* data )
{ {
gDonnees.corde.k = gInterface.SliderK->value(); gDonnees.corde.k2 = gInterface.SliderK2->value();
} }
void SliderKcCallback( Fl_Widget* w, void* data ) void SliderKcCallback( Fl_Widget* w, void* data )
...@@ -215,9 +219,14 @@ void SliderMCallback( Fl_Widget* w, void* data ) ...@@ -215,9 +219,14 @@ void SliderMCallback( Fl_Widget* w, void* data )
gDonnees.corde.m = gInterface.SliderM->value(); gDonnees.corde.m = gInterface.SliderM->value();
} }
void SliderRCallback( Fl_Widget* w, void* data ) void SliderR1Callback( Fl_Widget* w, void* data )
{
gDonnees.corde.r1 = gInterface.SliderR1->value();
}
void SliderR2Callback( Fl_Widget* w, void* data )
{ {
gDonnees.corde.r = gInterface.SliderR->value(); gDonnees.corde.r2 = gInterface.SliderR2->value();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment