Commit 1343b317 authored by Alexandre De Fonvillars's avatar Alexandre De Fonvillars
Browse files

Update u1-interface.cpp

parent 01f60f41
......@@ -29,7 +29,6 @@ void CreerInterface()
gInterface.ZoneDessin->mouse_callback( ZoneDessinSourisCB, NULL ) ;
gInterface.ZoneDessin->keyboard_callback( ZoneDessinClavierCB, NULL ) ;
//Création sliders1
gInterface.Slider1 = new Fl_Value_Slider( 680, 300, 100, 20, "k" ) ;
gInterface.Slider1->type( FL_HORIZONTAL ) ;
......@@ -55,9 +54,21 @@ void CreerInterface()
int lWidget = lGroup/2 - lGap, hWidget = hGroup/30;
int xR = xGroup+lGroup/2-lWidget-lGap/4, xL = xGroup+lGroup/2+lGap/4; //Position en x right, x left des widgets
Fl_Group *grp0 = new Fl_Group( xGroup, yGroup, lGroup, hGroup ,"General");
int y;
gInterface.grp0 = new Fl_Group( xGroup, yGroup, lGroup, hGroup ,"General");
{
y = yGroup + hGap*2; //y : compteur qui permet de placer les positions successives des widgets
//Creation slider Psub
gInterface.SliderPsub = new Fl_Value_Slider(xR , y, lWidget*2+lGap/2, hWidget, "x4 (x10e4)");
gInterface.SliderPsub->type( FL_HORIZONTAL ) ;
gInterface.SliderPsub->align( FL_ALIGN_TOP ) ;
gInterface.SliderPsub->bounds(1, 500 ) ;
gInterface.SliderPsub->precision( 1 ) ;
gInterface.SliderPsub->callback( SliderPsubCallback, NULL ) ;
// Creation du bouton Quitter
gInterface.BoutonQuitter = new Fl_Button(xL, hGroup - 5, lWidget, hWidget, "Quit") ;
gInterface.BoutonQuitter->box(FL_PLASTIC_UP_BOX);
......@@ -79,16 +90,16 @@ void CreerInterface()
gInterface.BoutonReset->callback( BoutonResetCB, NULL ) ;
gInterface.BoutonReset->label("@-3square");
}
grp0->end();
gInterface.grp0->end();
Fl_Group *grp1 = new Fl_Group( xGroup, yGroup, lGroup, hGroup ,"Corde");
{
int y = yGroup + hGap*2; //y : compteur qui permet de placer les positions successives des widgets
y = yGroup + hGap*2; //y : compteur qui permet de placer les positions successives des widgets
//Valeurs pour les x de la corde
gInterface.SliderX3 = new Fl_Value_Slider(xR , y, lWidget*2+lGap/2, hWidget, "x4 (x10e4)");
gInterface.SliderX3 = new Fl_Value_Slider(xR , y, lWidget*2+lGap/2, hWidget, "Psub (/10)");
gInterface.SliderX3->type( FL_HORIZONTAL ) ;
gInterface.SliderX3->align( FL_ALIGN_TOP ) ;
gInterface.SliderX3->bounds(1, 500 ) ;
......@@ -207,6 +218,7 @@ void CreerInterface()
}
grp1->end();
Fl_Group *grp2 = new Fl_Group( xGroup, yGroup, lGroup, hGroup ,"Affichage");
{
// Creation du bouton Polarisation X (check button)
......@@ -216,6 +228,7 @@ void CreerInterface()
gInterface.BoutonPolarisationX->callback( BoutonPolarisationXCB, NULL) ;
}
grp2->end();
}
gInterface.Tab1->end();
......
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