int deroule_repertoire_export_import(int xrep, int yrep, char name_of_rep[25]) { //////////////////////LISTE DOSSIERS ETC/////////////////////////////////////// petitchiffre.Print("Content of import_export folder:",xrep+10,yrep+170); ol::Rect BackDeroule(ol::Vec2D(xrep,yrep+155),ol::Vec2D(245,185)); BackDeroule.SetRoundness(15); BackDeroule.Draw(CouleurConfig.WithAlpha(0.7)); for (int y=0;y<8;y++) { ol::Rect OverFile(ol::Vec2D(xrep+5,(yrep+185+(y*20)-10)),ol::Vec2D(200,20)); OverFile.SetRoundness(7.5); //affichage qui est selectionné if(strcmp(importfile_name,list_import_files[importfile_selected])==0 && (importfile_selected==(y+line_import))) {OverFile.Draw(CouleurFond.WithAlpha(0.5));} if(window_focus_id==W_SAVE && mouse_x>xrep+5 && mouse_x<xrep+155 && mouse_y>(yrep+175+(y*20)) && mouse_y<(yrep+190+(y*20))) { OverFile.DrawOutline(CouleurLigne); } petitpetitchiffre.Print(list_import_files[line_import+y],xrep+10,yrep+185+(y*20)); //fin des 8 lignes } //nom fichier save laod ol::Rect FrameSelected(ol::Vec2D(xrep+5,yrep+347),ol::Vec2D(240,30)); FrameSelected.SetRoundness(7.5); FrameSelected.Draw(CouleurConfig); //selection depuis chaine de caracteres pour export plot if(window_focus_id==W_SAVE && mouse_x>xrep+5 && mouse_x<xrep+5+200 && mouse_y>yrep+347 && mouse_y<yrep+367) { FrameSelected.DrawOutline(CouleurLigne); } FrameSelected.SetLineWidth(epaisseur_ligne_fader); FrameSelected.DrawOutline(CouleurLigne.WithAlpha(alpha_blinker)); petitchiffre.Print(importfile_name,xrep+10,yrep+365); petitpetitchiffre.Print(string_typeexport_view,xrep+150,yrep+375); petitpetitchiffre.Print("Name must have extension: ",xrep+250,yrep+170 ); petitchiffre.Print("Ascii: .asc .txt or .alq",xrep+250,yrep+185 ); petitchiffre.Print("PDF: .pdf",xrep+250,yrep+200 ); petitpetitchiffre.Print("Schwarzpeter: no extension",xrep+250,yrep+215 ); //////////////////UP DOWN LINE IMPORT///////////////////// ol::Circle LineUp(ol::Vec2D(xrep+220,yrep+200),12); LineUp.Draw(CouleurFond); ol::Circle LineDown(ol::Vec2D(xrep+220,yrep+310),12); LineDown.Draw(CouleurFond); if(window_focus_id==W_SAVE && mouse_x>xrep+208 && mouse_x<xrep+232) { if(mouse_y>yrep+188 && mouse_y<yrep+212) { LineUp.Draw(CouleurSurvol); } else if(window_focus_id==W_SAVE && mouse_y>yrep+298 && mouse_y<yrep+322) { LineDown.Draw(CouleurSurvol); } } petitchiffre.Print("-",xrep+216,yrep+205); petitchiffre.Print("+",xrep+216,yrep+315); LineUp.DrawOutline(CouleurLigne); LineDown.DrawOutline(CouleurLigne); /////////////////////////////SAVE LOAD && CONDITIONS//////////////////////////////// switch (index_export_choice) { case 0://ascii enable_export=1; enable_import=1; break; case 1://schwz enable_export=0; enable_import=1; break; case 2://alq enable_export=0; enable_import=1; break; case 3://pdf enable_export=1; enable_import=0; break; } //////////////////////////////////////////////////////////////////////////////// if(enable_export==1) { ol::Rect SaveExport(ol::Vec2D(xrep+40,yrep+390),ol::Vec2D(70,30)); SaveExport.SetRoundness(7.5); if(window_focus_id==W_SAVE && mouse_x>xrep+40 && mouse_x<xrep+110 && mouse_y>yrep+390 && mouse_y<yrep+420) { SaveExport.Draw(CouleurSurvol); } petitchiffre.Print("SAVE",xrep+55,yrep+410); SaveExport.DrawOutline(CouleurLigne); } //////////////////////////////////////////////////////////////////////////////// if(enable_import==1) { ol::Rect LoadExport(ol::Vec2D(xrep+140,yrep+390),ol::Vec2D(70,30)); LoadExport.SetRoundness(7.5); if(window_focus_id==W_SAVE && mouse_x>xrep+140 && mouse_x<xrep+210 && mouse_y>yrep+390 && mouse_y<yrep+420) { LoadExport.Draw(CouleurSurvol); } petitchiffre.Print("LOAD",xrep+155,yrep+410); LoadExport.DrawOutline(CouleurLigne); } return(0); }
int deroule_repertoire_classical_save(int xrep, int yrep, char name_of_rep[25]) { //////////////////////LISTE DOSSIERS ETC/////////////////////////////////////// petitchiffre.Print("Content of SAVES folder:",xrep+10,yrep+170); ol::Rect BackDeroule(ol::Vec2D(xrep,yrep+155),ol::Vec2D(245,185)); BackDeroule.SetRoundness(15); BackDeroule.Draw(CouleurConfig.WithAlpha(0.7)); for (int y=0;y<8;y++) { ol::Rect OverFile(ol::Vec2D(xrep+5,(yrep+185+(y*20)-10)),ol::Vec2D(200,20)); OverFile.SetRoundness(7.5); //affichage quiest selectionné if(strcmp(savefile_name,list_save_files[savefile_selected])==0 && (savefile_selected==(y+line_save))) {OverFile.Draw(CouleurFond.WithAlpha(0.5));} if(window_focus_id==W_SAVE && mouse_x>xrep+5 && mouse_x<xrep+155 && mouse_y>(yrep+175+(y*20)) && mouse_y<(yrep+190+(y*20))) { OverFile.DrawOutline(CouleurLigne); } petitpetitchiffre.Print(list_save_files[line_save+y],xrep+10,yrep+185+(y*20)); } //nom du spectacle ol::Rect FrameSelected(ol::Vec2D(xrep+5,yrep+347),ol::Vec2D(240,30)); FrameSelected.SetRoundness(7.5); FrameSelected.Draw(CouleurConfig); if(window_focus_id==W_SAVE && mouse_x>xrep+5 && mouse_x<xrep+245 && mouse_y>yrep+347 && mouse_y<yrep+377) { FrameSelected.DrawOutline(CouleurLigne); } FrameSelected.SetLineWidth(epaisseur_ligne_fader); FrameSelected.DrawOutline(CouleurLigne.WithAlpha(alpha_blinker)); petitchiffre.Print(savefile_name,xrep+10,yrep+365); //////////////////UP DOWN LINE save///////////////////// ol::Circle LineUp(ol::Vec2D(xrep+220,yrep+200),12); LineUp.Draw(CouleurFond); ol::Circle LineDown(ol::Vec2D(xrep+220,yrep+310),12); LineDown.Draw(CouleurFond); if(window_focus_id==W_SAVE && mouse_x>xrep+208 && mouse_x<xrep+232) { if(mouse_y>yrep+188 && mouse_y<yrep+212) { LineUp.Draw(CouleurSurvol); } else if(mouse_y>yrep+298 && mouse_y<yrep+322) { LineDown.Draw(CouleurSurvol); } } petitchiffre.Print("-",xrep+216,yrep+205); petitchiffre.Print("+",xrep+216,yrep+315); LineUp.DrawOutline(CouleurLigne); LineDown.DrawOutline(CouleurLigne); /////////////////////////////////////////////////////////////////////////////// ol::Rect SaveB(ol::Vec2D(xrep+40,yrep+390),ol::Vec2D(70,30)); SaveB.SetRoundness(7.5); if(window_focus_id==W_SAVE && mouse_x>xrep+40 && mouse_x<xrep+110 && mouse_y>yrep+390 && mouse_y<yrep+420) { SaveB.Draw(CouleurSurvol); } petitchiffre.Print("SAVE",xrep+55,yrep+410); SaveB.DrawOutline(CouleurLigne); //////////////////////////////////////////////////////////////////////////////// ol::Rect LoadB(ol::Vec2D(xrep+140,yrep+390),ol::Vec2D(70,30)); LoadB.SetRoundness(7.5); if(window_focus_id==W_SAVE && mouse_x>xrep+140 && mouse_x<xrep+210 && mouse_y>yrep+390 && mouse_y<yrep+420) { LoadB.Draw(CouleurSurvol); } petitchiffre.Print("LOAD",xrep+155,yrep+410); LoadB.DrawOutline(CouleurLigne); //////////////////////////////////////////////////////////////////////////////// ol::Rect ResetB(ol::Vec2D(xrep+280,yrep+390),ol::Vec2D(70,30)); ResetB.SetRoundness(7.5); if(window_focus_id==W_SAVE && mouse_x>xrep+280 && mouse_x<xrep+350 && mouse_y>yrep+390 && mouse_y<yrep+420) { ResetB.Draw(CouleurSurvol); } petitchiffre.Print("RESET",xrep+295,yrep+410); ResetB.DrawOutline(CouleurLigne); return(0); }
int fenetre_audio(int xb,int yb) { Rect audio_backg(Vec2D(xb,yb), Vec2D( 600,150+(index_nbre_players_visibles*120))); audio_backg.SetRoundness(15); audio_backg.Draw(CouleurFond); audio_backg.SetLineWidth(triple_epaisseur_ligne_fader); if(window_focus_id==919) { audio_backg.DrawOutline(CouleurFader); } else { audio_backg.DrawOutline(CouleurLigne); } neuro.Print( "AudioPlayers",(xb+80), (yb+30)); //FOLDER Rect AudioFolderis(Vec2D(xb+350,yb+10),Vec2D(240,30)); AudioFolderis.SetRoundness(7.5); AudioFolderis.Draw(CouleurSurvol); neuromoyen.Print(audio_folder,xb+365,yb+25); //////////////////////LISTE sons/////////////////////////////////////// Rect BackDeroule(Vec2D(xb+350,yb+45),Vec2D(240,(index_nbre_players_visibles*120))); BackDeroule.SetRoundness(15); BackDeroule.Draw(CouleurConfig.WithAlpha(0.7)); bool ind=0; for (int y=1;y<(index_nbre_players_visibles*6);y++) { Rect OverAudioFile(Vec2D(xb+355,(yb+33+(y*20))),Vec2D(200,18)); OverAudioFile.SetRoundness(7.5); OverAudioFile.Draw(CouleurFond.WithAlpha(0.5*ind)); ind=toggle(ind); //affichage qui est selectionné if(strcmp(audiofile_name,list_audio_files[audiofile_selected])==0 && (audiofile_selected==(y+line_audio)) ) {OverAudioFile.Draw(CouleurBlind);} if(window_focus_id==919 && mouse_x>xb+355 && mouse_x<xb+505 && mouse_y>(yb+33+(y*20)) && mouse_y<(yb+48+(y*20))) { OverAudioFile.DrawOutline(CouleurLigne); } petitpetitchiffre.Print(ol::ToString(line_audio+y),xb+360,yb+45+(y*20)); Canvas::SetClipping( xb+355,yb+35+(y*20),230,20); petitpetitchiffre.Print(list_audio_files[line_audio+y],xb+375,yb+45+(y*20)); Canvas::DisableClipping(); } //////////////////UP DOWN LINE IMPORT///////////////////// Circle LineUp(Vec2D(xb+570,yb+65),12); LineUp.Draw(CouleurFond); Circle LineDown(Vec2D(xb+570,yb+(index_nbre_players_visibles*120)),12); LineDown.Draw(CouleurFond); petitchiffre.Print("-",xb+566,yb+70); petitchiffre.Print("+",xb+566,yb+(index_nbre_players_visibles*120)+5); LineUp.DrawOutline(CouleurLigne); LineDown.DrawOutline(CouleurLigne); //RESCAN FOLDER Rect AudioRescanDriver( Vec2D(xb+230,yb+10), Vec2D ( 50,20)); AudioRescanDriver.SetRoundness(7.5); AudioRescanDriver.DrawOutline(CouleurLigne); //////////////////////////////////////////////////////////////////////////////// //EDIT ON OFF Rect EditSound( Vec2D(xb+230,yb+40), Vec2D ( 50,20)); EditSound.SetRoundness(7.5); if(index_edit_audio==1){EditSound.Draw(CouleurFader);} EditSound.DrawOutline(CouleurLigne); petitpetitchiffre.Print("EDIT",xb+240,yb+53); //////LES LECTEURS////////////////////////////////////////////////////////////// for(int lop=0;lop<index_nbre_players_visibles;lop++) { lecteur_audio(xb+5,yb+70+(lop*140),lop); } //////L AFFECTATION AUX FADERS////////////////////////////////////////////////// //Rect AffectA(Vec2D(xb+440,yb+450),Vec2D(140,20)); Rect AffectA(Vec2D(xb+440,yb+55+(index_nbre_players_visibles*120)),Vec2D(140,20)); AffectA.SetRoundness(5); AffectA.Draw(CouleurFader.WithAlpha(index_affect_audio_to_dock)); AffectA.DrawOutline(CouleurLigne); petitchiffre.Print("AFFECT TO DOCK",xb+460,yb+70+(index_nbre_players_visibles*120)); petitchiffre.Print("Volume",xb+400,yb+100+(index_nbre_players_visibles*120)); petitchiffre.Print("Pan",xb+400,yb+120+(index_nbre_players_visibles*120)); petitchiffre.Print("Pitch",xb+400,yb+140+(index_nbre_players_visibles*120)); for(int pl=0;pl<index_nbre_players_visibles;pl++) { for (int co=0;co<3;co++) { Rect AffectAudioType(Vec2D(xb+460+(pl*30),yb+90+(index_nbre_players_visibles*120)+(co*20)),Vec2D(20,15)); AffectAudioType.SetRoundness(3); if(player_to_affect_to_dock==pl && audio_type_for_dock_affectation_is==co){AffectAudioType.Draw(CouleurFader);} AffectAudioType.DrawOutline(CouleurLigne); } petitpetitchiffre.Print(ol::ToString((pl+1)),xb+467+(pl*30),yb+85+(index_nbre_players_visibles*120)); } if(window_focus_id==919 ) { if(mouse_x>xb+350 && mouse_x<xb+590 && mouse_y>yb+10 && mouse_y<yb+40) { AudioFolderis.DrawOutline(CouleurLigne); } else if( mouse_x>xb+230 && mouse_x<xb+280 && mouse_y>yb+10 && mouse_y<yb+30 ) { AudioRescanDriver.Draw(CouleurSurvol); } else if( mouse_x>xb+558 && mouse_x<xb+582 ) { if(mouse_y>yb+53 && mouse_y<yb+72) { LineUp.Draw(CouleurSurvol); } if(mouse_y>yb+(index_nbre_players_visibles*120)-7 && mouse_y<yb+(index_nbre_players_visibles*120)+5) { LineDown.Draw(CouleurSurvol); } } } petitpetitchiffre.Print("rescan!",xb+235,yb+23); return(0); }