/**************************************************************************** ** ManDVD ** ** Created: Mon May 08 14:00:00 2006 ** by: Gibault Stéphane ** ** This is a tool for simply creating DVD Video ** ****************************************************************************/ #include QMPlayerWidget *m_pMPlayerWidget; QGridLayout *m_pMPlayerLayout; void mainfrm::init() { QDir currentDir = QDir::home(); m_pMPlayerWidget = new QMPlayerWidget (vframe, "MPlayerWidget"); m_pMPlayerLayout = new QGridLayout (vframe, 1, 1, 4, 6, "MPlayerMainLayout"); m_pMPlayerLayout->addWidget(m_pMPlayerWidget, 0, 0); vframe->setGeometry(31,125,115,71); vframe->hide(); newproj->hide(); QString myrec; QFile myfic( currentDir.path() + "/.mandvdconfig"); if ( myfic.open( IO_ReadOnly ) ) { QTextStream mystream (&myfic); myrec = mystream.readLine(); wlanguage = myrec; myfic.close(); rc_003 = 0; bt_valid_langue_clicked(); } else { rc_003 = 1; combolangue->insertItem("Dutch",-1); combolangue->insertItem("English",-1); combolangue->insertItem("Français",-1); combolangue->insertItem("German",-1); combolangue->insertItem("Italian",-1); combolangue->insertItem("Spanish",-1); combolangue->setCurrentItem(0); parametrage->setGeometry(290,260,421,221); parametrage->show(); parametrage->raise(); } } void mainfrm::bt_valid_langue_clicked() { // *** Sauvegarde des paramètres *** if (rc_003 == 1) { QDir currentDir = QDir::home(); QString myrec; QFile myfic( currentDir.path() + "/.mandvdconfig"); if ( myfic.open( IO_WriteOnly ) ) { if ( combolangue->currentText() == "Français") { myfic.writeBlock("FR",2); wlanguage = "FR"; } else { if ( combolangue->currentText() == "English") { myfic.writeBlock("EN",2); wlanguage = "EN"; } else { if ( combolangue->currentText() == "Italian") { myfic.writeBlock("IT",2); wlanguage = "IT"; } else { if ( combolangue->currentText() == "Dutch") { myfic.writeBlock("DU",2); wlanguage = "DU"; } else { if ( combolangue->currentText() == "German") { myfic.writeBlock("GE",2); wlanguage = "GE"; } else { myfic.writeBlock("SP",2); wlanguage = "SP"; } } } } } myfic.close(); } } // *** On initialise la liste des fichiers vidéo *** lst_video_1->clear(); lst_video_1->addColumn("Chemin d'accès",0); lst_video_1->setColumnText( 0, "Titre"); lst_video_1->setColumnWidth( 0, 290); lst_video_1->hideColumn(1); lst_video_1->addColumn("Encoder",0); lst_video_1->addColumn("Chapitres",220); lst_video_1->addColumn("Audio bitrate",0); lst_video_1->addColumn("Vidéo format",0); lst_video_1->addColumn("Type vidéo",0); lst_video_1->addColumn("Pathname bouton",0); lst_video_1->setSorting ( -1, false ); lst_video_2->clear(); lst_video_2->setColumnText( 0, "Titre"); lst_video_2->setColumnWidth( 0, 190); lst_video_2->addColumn("Chemin d'accès",0); lst_video_2->hideColumn(1); lst_video_2->addColumn("Encoder",0); lst_video_2->addColumn("Chapitres",0); lst_video_2->addColumn("Audio bitrate",0); lst_video_2->addColumn("Vidéo format",0); lst_video_2->addColumn("Type vidéo",0); lst_video_2->addColumn("Pathname bouton",0); lst_video_2->setSorting ( -1, false ); lsttab->setColumnText( 0, "Titre"); lsttab->setColumnWidth( 0, 242); lsttab->addColumn("Position",0); // *** Transcription de l'interface *** if (wlanguage == "FR") { prefchap = "Chapitre"; table_message[0] = "Le process suivant ne démarre pas : "; table_message[1] = "Le nombre maximum de vidéo est de 20."; table_message[2] = "Vous devez ajouter au moins une vidéo à votre projet."; table_message[3] = "Si vous revenez à l'étape précédente, vous perdrez toutes vos modifications.\n\nEtes vous sûr ?"; table_message[4] = "Vous devez choisir un fond pour votre menu."; table_message[5] = "Votre projet dépasse la taille totale d'un DVD. Vous ne pourrez pas le graver."; table_message[6] = "Vous devez donner un titre à votre vidéo."; table_message[7] = "Vous devez ajouter l'ensemble des titres à votre menu."; table_message[8] = "Je n'arrive pas à créer un fichier.\n\nAvez vous les droits d'écriture dans le dossier de destination ?"; table_message[9] = "Vous devez choisir le dossier de destination."; table_message[10] = "L'encodage des fichier a échoué. Consultez la console pour plus d'informations."; table_message[11] = "Erreur lors de la génération du menu. Consultez la console pour plus d'informations."; table_message[12] = "Succès. Votre DVD est correctement créé"; table_message[13] = "Erreur interne de DVD Author. Consultez la console pour plus d'informations."; table_message[14] = "Vous devez choisir le périphérique de gravage."; table_message[15] = "L'opération de gravage à réussie."; table_message[16] = "L'opération de gravage à échouée.\n\nAvez vous choisi le bon périphérique ?"; table_message[17] = "Voulez vous vraiment quitter l'application ?"; table_message[18] = "Voulez vous vraiment annuler la création du diaporama ?"; table_message[19] = "Un diaporama ne peut contenir que 100 images maximum."; table_message[20] = "Vous devez ajouter au moins une image à votre diaporama."; table_message[21] = "La création du diaporama à réussie.\n\nVoulez vous le visualiser ?"; table_message[22] = "Voulez vous importer votre diaporama à votre projet ?"; table_message[23] = "La génération du diaporama a échouée.\n\nConsultez la console pour plus d'informations."; table_message[24] = "Souhaitez vous ne mettre aucune bande son ?"; table_message[25] = "Vous devez choisir une vidéo."; table_message[26] = "Erreur extraction des images de la vidéo."; table_message[27] = "Seul les vidéos comportant 25-30 images par seconde sont acceptées."; table_message[28] = "Le début de la sélection doit se situer avant la marque de fin."; table_message[29] = "La fin de la sélection doit se situer après la marque de début."; table_message[30] = "Ajout de médias"; table_message[31] = "Paramètres du menu"; table_message[32] = "Création du menu"; table_message[33] = "Création du DVD"; table_message[34] = "Création d'un diaporama"; table_message[35] = "Création d'un fond animé"; // table_message[38] = "

Erreur ! L'interval entré est plus petit ou égal à la durée du film

Ce n'est pas possible."; table_message[39] = "Sauvegarde du projet terminée."; // table_message[40] = "Pas de transition"; table_message[41] = "Fondu en sortie"; table_message[42] = "Fondu en entrée"; table_message[43] = "Fondu enchainé"; table_message[44] = "Recouvrement gauche"; table_message[45] = "Recouvrement droite"; table_message[46] = "Recouvrement haut"; table_message[47] = "Recouvrement bas"; table_message[48] = "Zoom"; table_message[49] = "Double"; table_message[50] = "Haut et bas"; table_message[51] = "Transition aléatoire"; table_message[52] = "Taille totale des fichiers : "; // table_message[53] = "Retour au menu"; table_message[54] = "Encodage des flux vidéo"; table_message[55] = "Encodage global des flux vidéo"; table_message[56] = "Création des fichiers du menu"; table_message[57] = "Création du fichier pour DVD Author"; table_message[58] = "Finalisation du projet"; // table_message[59] = "Lire une seule fois"; table_message[60] = "Lire en boucle"; table_message[36] = "Le fichier ISO est créé dans : "; table_message[37] = "La création du fichier ISO a échoué."; // textLabel1->setText(table_message[54]); textLabel1_4->setText(table_message[55]); etape_1->setText(table_message[56]); etape_2->setText(table_message[57]); etape_3->setText(table_message[58]); // idtpage->setText("Ajout de médias"); } else { if (wlanguage == "EN") { lsttab->setColumnText(0,"Title"); chapauto->setTitle("Auto chapter"); // btprevdelay->setTextLabel("Preview"); textLabel1_50->setText("Start reading DVD with :"); bt_generer_2->setTextLabel("Cancel"); bt_generer->setTextLabel("Start"); bt_generer_2_2->setTextLabel("Console"); textLabel2_12->setText("Brake"); textLabel1_49->setText("From"); textLabel1_2_2->setText("To"); // textLabel1_31_2->setText("Size"); textLabel1_13->setText("Console"); bt_tab_order->setTextLabel("Tab order"); bt_fermer_taborder->setTextLabel("Ok"); textLabel1_35_2->setText("Size"); toolButton117_2_2->setTextLabel("Use previous slide"); toolButton170->setTextLabel("Options"); toolButton117_2->setTextLabel("Background image"); textLabel1_48->setText("Choose a color background or an image."); textLabel1_6->setText("Warning don't use this function if you have a release of QT > 3.3.4. You should have an error on rendering menu. Trolltech will correct this in the next release 3.3.7"); btgrpprio->setTitle("Execution prority"); toolButton71->setTextLabel("Destination folder"); lst_video_1->setColumnText(0,"Title"); lst_video_1->setColumnText(1,"Pathname"); lst_video_1->setColumnText(2,"Encoding"); lst_video_1->setColumnText(3,"Chapters"); lst_video_1->setColumnText(4,"Audio bitrate"); lst_video_1->setColumnText(5,"Format"); lst_video_1->setColumnText(6,"Pathname button"); lst_video_2->setColumnText(0,"Title"); lst_video_2->setColumnText(1,"Pathname"); lst_video_2->setColumnText(2,"Encoding"); lst_video_2->setColumnText(3,"Chapters"); lst_video_2->setColumnText(4,"Audio bitrate"); lst_video_2->setColumnText(5,"Format"); lst_video_2->setColumnText(6,"Pathname button"); bt_musique_options->setTextLabel("Adjust video on audio"); bt_save_1->setTextLabel("Save project"); toolButton168_2->setTextLabel("Open a project file"); textLabel1_47->setText("New project"); textLabel1_47_2->setText("Load a project"); bt_renew_all->setTextLabel("Cleanup menu"); textLabel1_46->setText("You can add effects to your video. Some of them are animated for an example swirl. After selecting effects click generate button. Warning this is a long and not cancelled process. Effects are applied only first and last selected frame."); toolButton165->setTextLabel("Generate"); bt_effets_anim->setTextLabel("Effects"); buttonGroup63->setTitle("Brush"); // textLabel2_9_2->setText("Vertical position of subtitle as a percent of screen height."); textLabel1_45->setText("To cut a segment, select start and end points, then click the cut button."); bt_valid_cutfilm->setTextLabel("OK"); bt_fermer_cutfilm->setTextLabel("Close"); bt_import_cutfilm->setTextLabel("Import"); bt_cut_film->setTextLabel("Cut part of this film"); // textLabel1_7->setText("Add or Modify Media Segments"); textLabel1_7_2->setText("Editing and Adjustments"); textLabel1_7_2_2->setText("Other"); desinter->setText("Deinterlace video. Best for LCD."); textLabel1_42->setText("Brush size"); extimgvideo_gimp->setTextLabel("Edit with The Gimp"); extimgvideo->setTextLabel("Extract an image from the video"); textLabel1_40->setText("Start"); textLabel1_40_2->setText("End"); textLabel1_41->setText("Subtitle"); btcloseedit_2->setTextLabel("Cancel"); btcloseedit->setTextLabel("OK"); bteditsstitre->setTextLabel("Create / Modify"); toolButton129_2->setTextLabel("Cancel"); toolButton129->setTextLabel("OK"); textLabel1_39_3->setText("Height"); textLabel1_39_4->setText("Width"); // textLabel3_6->setText("A/V Sync is the synchronization of audio and video. If not properly synchronized, the sounds will not match up with the onscreen action. You can adjust the synchronization using the A/V Sync control."); // bt_gest_sub_2->setTextLabel("Video effects"); btpreveffets->setTextLabel("Preview"); toolButton122->setTextLabel("Close"); textLabel2_10_3_2_2->setText("Contrast"); textLabel2_10_3_2->setText("Brightness"); textLabel2_10_3->setText("Length"); textLabel2_10_4->setText("Height"); textLabel1_37->setText("This feature will attempt to remove a logo, such as a station identification, from your video. Your results may vary. Select the coordinate location and size of the logo."); textLabel1_37_2->setText("These controls allow you to adjust the brightness and contrasts of your video. Move the sliders left to decrease and right to increase."); textLabel1_37_2_2->setText("This feature reverses the video from left to right, creating a mirror image."); textLabel1_37_2_2_2->setText("This feature reduces the image noise, making the output smoother and more faithful to the original scene."); checkBox5->setText("Outline my selection in the preview video."); // textLabel1_34->setText("Add text"); toolButton117->setTextLabel("Back color"); toolButton115_2->setTextLabel("Cancel"); toolButton115->setTextLabel("OK"); bt_modif_gimp_2->setTextLabel("Modify with The Gimp"); // textLabel1_33->setText("Choose a subtitle font"); textLabel2_9->setText("Font size as a percent of the screen height."); // optsel1->setText("Selected mask"); optsel2->setText("Clicked mask"); valideditmask->setTextLabel("OK"); bt_maskedit->setTextLabel("Mask edit"); // bt_force->setTextLabel("Force reencode"); bt_sup_chap_2->setTextLabel("Remove all chapters"); // textLabel1_32_2->setText("Adjust parameters, then choose the modified or original version of the image to import."); radioButton3_2->setText("Modified"); radioButton3->setText("Original"); toolButton95->setTextLabel("Confirm"); toolButton99->setTextLabel("Close"); // textLabel1_14->setText("From picture"); textLabel1_14_2->setText("To picture"); toolButton94->setTextLabel("Save project"); toolButton94_2->setTextLabel("Open project"); bt_choix_couleur_titre_2->setTextLabel("Change title color for this picture"); // textLabel1_30->setText("Here you can add subtitles to your video."); toolButton72_2_2->setTextLabel("Cancel"); toolButton72_3->setTextLabel("OK"); bt_grave_3->setTextLabel("Create an ISO image"); table_message[36] = "Congratulations, your ISO file is in : "; table_message[37] = "Error encountered during ISO creation."; bt_gest_sub->setTextLabel("Subtitle management"); textLabel1_28->setText("Output quality for encoded videos. Higher quality video uses more space."); bt_param_encode->setTextLabel("Options"); textLabel1_27->setText("Define the order in which items are selected on your menu."); // bt_modifier_titre->setTextLabel("Modify title"); toolButton72->setTextLabel("Confirm"); toolButton72_2->setTextLabel("Cancel"); prefchap = "Chapter"; table_message[0] = "This process doesn't start : "; table_message[1] = "The maximum number of videos is 20."; table_message[2] = "Please add at least one video or slideshow."; table_message[3] = "If you go back, all modifications will be lost.\n\nAre you sure ?"; table_message[4] = "Please choose a background for your menu."; table_message[5] = "Your project exceeds the DVD capacity."; table_message[6] = "Please choose a title for your video."; table_message[7] = "Your menu must have an entry for each video."; table_message[8] = "Unable to create file.\n\nDo you have write permissions in your destination folder ?"; table_message[9] = "Please choose a destination folder."; table_message[10] = "Encoding failed. Open the console for more details."; table_message[11] = "Error when generating menu. Check the console for more details."; table_message[12] = "Success. Your DVD is complete."; table_message[13] = "DVD Author returned an Internal error. Check the console for more details."; table_message[14] = "Please select your DVD burner."; table_message[15] = "Burning successful."; table_message[16] = "Burning failed.\n\nHave you selected the correct DVD burner ?"; table_message[17] = "Are you sure you want to quit ?"; table_message[18] = "Do you want to cancel this slideshow creation ?"; table_message[19] = "Each slideshow has a limit of 100 pictures."; table_message[20] = "Please add at least one picture to your slideshow."; table_message[21] = "Creation of this slideshow is complete.\n\nWould you like to watch it ?"; table_message[22] = "Do you want to insert this slideshow into your DVD project ?"; table_message[23] = "Slideshow creation failed.\n\nCheck the console for more details."; table_message[24] = "You chose no soundtrack. Correct ?"; table_message[25] = "Please choose a video."; table_message[26] = "Error extracting images of video."; table_message[27] = "Selected videos must be 25-30fps."; table_message[28] = "The starting point must be before ending point."; table_message[29] = "The ending point must be after starting point."; table_message[30] = "Add media"; table_message[31] = "Menu parameters"; table_message[32] = "Menu Creation"; table_message[33] = "DVD Creation"; table_message[34] = "Create a photo slideshow"; table_message[35] = "Create animated background"; // table_message[38] = "

Error ! Interval is smaller than or equal to film duration

It's not valid."; table_message[39] = "Project saved."; // table_message[40] = "No transition"; table_message[41] = "Fade out"; table_message[42] = "Fade in"; table_message[43] = "Mix fade"; table_message[44] = "Left covering"; table_message[45] = "Right covering"; table_message[46] = "Top covering"; table_message[47] = "Bottom covering"; table_message[48] = "Zoom"; table_message[49] = "Double"; table_message[50] = "Up and down"; table_message[51] = "Random transition"; table_message[52] = "Total file size : "; volume->setText(table_message[52] + "0 Mo"); // table_message[53] = "Return to menu"; table_message[54] = "Encoding video"; table_message[55] = "Global encoding video"; table_message[56] = "Generating file menu"; table_message[57] = "Generating DVD Author file"; table_message[58] = "Finalization of the project "; // table_message[59] = "Read one time"; table_message[60] = "Loop sound"; // textLabel1->setText(table_message[54]); textLabel1_4->setText(table_message[55]); etape_1->setText(table_message[56]); etape_2->setText(table_message[57]); etape_3->setText(table_message[58]); // textLabel1_26->setText("You may rename your chapter if you want to change the name that appears in your menu."); btokrename->setTextLabel("Confirm"); bt_rename_chap->setTextLabel("Rename chapter"); bt_annul_create_bt->setTextLabel("Cancel"); // idtpage->setText("Add media"); Appercupol->setTitle("Font preview"); bt_valid_info_image_2->setTextLabel("Change"); bt_valid_info_image_3->setTextLabel("Remove"); bt_add_img_slide_2_2->setTextLabel("Import parameter"); textLabel1_25->setText("Slide duration (seconds)"); textLabel2_3->setText("Transition on each slide"); textLabel1_25_2->setText("Transition duration (seconds)"); bt_valid_param_defo->setTextLabel("Confirm"); bt_add_chap_2_2->setTextLabel("Modify a chapter"); bt_ajout_intro->setTextLabel("Add an introduction video to the DVD"); // textLabel3_2->setText("In this step, you will insert all of the videos and slideshows to be presented in the DVD. You may also define chapters within each video element. "); textLabel1_20->setText("Your menu button may either be some text, such as the name of the video, or an image. Define your menu button using the controls below."); textLabel2_6->setText("If you would like to use an image as the button, designate an image below. Smaller images are preferred. The dimensions of your image do not need to match the preview box. "); textLabel1_9->setText("File information"); textLabel4_2->setText("Video path :"); textLabel1_18->setText("Video not reencoded"); textLabel1_18_2->setText("Video reencoded"); textLabel1_3->setText("Video title"); add_video->setTextLabel("Add a video to your project"); bt_slideshow->setTextLabel("Create a slideshow"); bt_supprime_video->setTextLabel("Remove selected video"); bt_chapitres->setTextLabel("Define chapters"); bt_add_cont->setTextLabel("OK"); bt_cancel_titre->setTextLabel("Cancel"); bt_et02_con->setTextLabel("Next"); textLabel3->setText("In this step, you will customize your DVD menu. You can create and modify menu backgrounds, cast lists, and menu highlighting. "); bt_et03_con->setTextLabel("Next"); bt_et03_con_2->setTextLabel("Previous"); textLabel4->setText("Choose background"); bt_charg_wall->setTextLabel("Picture background"); bt_charg_wall_uni->setTextLabel("One color background"); bt_create_fond_anim->setTextLabel("Animated background"); textLabel3_3->setText("Menu font color"); bt_police->setTextLabel("Menu font"); bt_color_1->setTextLabel("Color of text in menu"); bt_color_2->setTextLabel("Color of selected text"); bt_color_3->setTextLabel("Color of clicked text"); textLabel2_4->setText("Choose a soundtrack for your main menu"); bt_fond_mus->setTextLabel("Import soundtrack"); bt_retourner->setTextLabel("Mirror horizontally"); bt_retourner_2->setTextLabel("Mirror vertically"); textLabel1_2->setText("For each video listed below, add it to the Menu, use the sliders to position the menu button, then Confirm the button location. You may also choose what your DVD player should do at the end of the video. Do not place menu items outside the red border. "); bt_add_film_menu->setTextLabel("Add video to the menu"); bt_valid_bt->setTextLabel("Confirm button position"); textLabel1_10->setText("When this video ends..."); bt_et04_con->setTextLabel("Next"); bt_et04_con_2->setTextLabel("Previous"); bt_et_05->setTextLabel("Previous"); bt_quit->setTextLabel("Quit"); textLabel1_12->setText("

Warning Message

Caution! Currently MPEG files cannot be transcoded. Please use only MP2 or AC3 audio files. Otherwise, your DVD reader will probably not faithfully restore the sound in your films.

"); bt_gener_struct->setTextLabel("Generate DVD structure"); bt_lire_DVD->setTextLabel("Watch the result"); bt_grave->setTextLabel("Burn DVD"); bt_grave_2->setTextLabel("Burn DVD with K3b"); textLabel2->setText("

Destination folder of the DVD:"); affconsole->setTextLabel("Show / hide console"); bt_affcach_con_grave->setTextLabel("Show / hide console"); bt_go_grave->setTextLabel("Burn"); bt_annul_grave->setText("Close"); textLabel1_5->setText("CAUTION! Before you start the burning process, please insert a new DVD into your DVD burner, or no data will be written. "); textLabel1_11->setText("DVD Burner"); message_1->setText("

Burning in progress ... Please be patient.

"); bt_gener_slideshow->setTextLabel("Generate"); bt_fermer_slide->setTextLabel("Close"); bt_aff_con_diapo->setTextLabel("Show / hide console"); bt_start_gener_slide->setTextLabel("Start"); bt_annul_gener_slide->setTextLabel("Close"); textLabel1_17->setText("Please select your slideshow options, then click Start to begin processing. Please note that processing may take a while, and higher quality video with lots of slides and transitions can take a long time."); bt_add_fondu_fin->setText("Fade to black on last picture"); qualite_render->setText("High quality render (slower)"); bt_add_img_slide->setTextLabel("Add picture"); bt_add_img_slide_2->setTextLabel("Import folder"); bt_select_zik->setTextLabel("Add soundtrack"); bt_choix_police_titre->setTextLabel("Select font"); bt_choix_couleur_titre->setTextLabel("Font color"); textLabel2_5->setText("Select picture"); textLabel1_15_2->setText("Transition duration (seconds)"); textLabel1_15->setText("Picture duration (seconds)"); textLabel1_16->setText("Title (empty for nothing)"); bt_add_chap->setTextLabel("Add chapter"); bt_sup_chap->setTextLabel("Remove chapter"); bt_lire_pr_chap->setTextLabel("Show video"); bt_fermer_chapitre->setTextLabel("Close"); textLabel1_8->setText("Enter (hour : minute : second) of the chapter."); bt_new_chap_2->setTextLabel("Cancel"); bt_new_chap->setTextLabel("Confirm"); textLabel4_3->setText("Start (seconds)"); textLabel4_3_2->setText("Length (seconds)"); bt_go_extract->setTextLabel("Extract"); cdraddmask->setTitle("Add a mask on the background "); textLabel1_19->setText("A mask is an image (720x576 pixels) that contains transparent zones. It can be superimposed over the video to allow for some interesting menu effects. "); bt_console_menu_anim->setTextLabel("Show / hide console"); textLabel5_2->setText("Import progress"); bt_valid_menu_anim->setTextLabel("Confirm"); bt_fermer_menu_anim->setTextLabel("Close"); bt_modif_gimp->setTextLabel("Modify with The Gimp"); joubouclmenu->setText("Loop menu animation"); textLabel1_22->setText("Repeat video n times"); textLabel3_4->setText("Output quality"); textLabel2_7->setText("Low"); textLabel2_7_2->setText("Medium"); textLabel2_7_3->setText("High"); chapauto->setCaption("Auto chapter"); bt_add_chap_2->setTextLabel("Auto chapters"); btchauto_1->setText("Cancel"); btchauto_2->setText("Confirm"); } else { if (wlanguage == "DU") { lsttab->setColumnText(0,"Title"); chapauto->setTitle("Auto chapter"); // btprevdelay->setTextLabel("Preview"); textLabel1_50->setText("Start reading DVD with :"); bt_generer_2->setTextLabel("Cancel"); bt_generer->setTextLabel("Start"); bt_generer_2_2->setTextLabel("Console"); textLabel2_12->setText("Brake"); textLabel1_49->setText("From"); textLabel1_2_2->setText("To"); // textLabel1_31_2->setText("Size"); textLabel1_13->setText("Console"); bt_fermer_taborder->setTextLabel("Ok"); bt_tab_order->setTextLabel("Tab order"); textLabel1_35_2->setText("Size"); toolButton117_2_2->setTextLabel("Use previous slide"); toolButton170->setTextLabel("Options"); toolButton117_2->setTextLabel("Background image"); textLabel1_48->setText("Choose a color background or an image."); textLabel1_6->setText("Warning don't use this function if you have a release of QT > 3.3.4. You should have an error on rendering menu. Trolltech will correct this in the next release 3.3.7"); btgrpprio->setTitle("Prioriteit van het genereren"); toolButton71->setTextLabel("Bestemmingsmap"); lst_video_1->setColumnText(0,"Titel"); lst_video_1->setColumnText(1,"Padnaam"); lst_video_1->setColumnText(2,"Encoderen"); lst_video_1->setColumnText(3,"Hoofdstukken"); lst_video_1->setColumnText(4,"Audio bitrate"); lst_video_1->setColumnText(5,"Formaat"); lst_video_1->setColumnText(6,"Padnaam knop"); lst_video_2->setColumnText(0,"Titel"); lst_video_2->setColumnText(1,"Padnaam"); lst_video_2->setColumnText(2,"Encoderen"); lst_video_2->setColumnText(3,"Hoofdstukken"); lst_video_2->setColumnText(4,"Audio bitrate"); lst_video_2->setColumnText(5,"Formaat"); lst_video_2->setColumnText(6,"Padnaam knop"); bt_musique_options->setTextLabel("pas video op audio aan"); bt_save_1->setTextLabel("Project opslaan"); toolButton168_2->setTextLabel("Open een project bestand"); textLabel1_47->setText("Nieuw project"); textLabel1_47_2->setText("Project laden"); bt_renew_all->setTextLabel("Verwijder het volledige menu"); textLabel1_46->setText("U kunt effecten toevoegen aan uw video. Sommige zij geanimeerd, de 'swirl' als voorbeeld. Nadat u het effect heeft geselecteerd, klikt u op de knop genereren. Pas op, dit is een lang proces die niet afgebroken kan worden. Effects are applied only first and last selected frame."); toolButton165->setTextLabel("Genereren"); bt_effets_anim->setTextLabel("Effecten"); buttonGroup63->setTitle("Kwast"); textLabel2_9_2->setText("Verticale positie van de ondertiteling. Percentage van de hoogte van het scherm."); // textLabel1_45->setText("Om een gedeelte te knippen, selecteer de beginen eindposities en klik op knippen."); bt_valid_cutfilm->setTextLabel("Oke"); bt_fermer_cutfilm->setTextLabel("Sluiten"); bt_import_cutfilm->setTextLabel("Importeren"); bt_cut_film->setTextLabel("Knip stuk uit de film"); textLabel1_7->setText("Toevoegen / Aanpassen van media op DVD"); textLabel1_7_2->setText("Aanpassingen en meer"); textLabel1_7_2_2->setText("Overigen"); desinter->setText("Desinterlace video. Beste voor LCD."); extimgvideo_gimp->setTextLabel("Wijzig met The Gimp"); textLabel1_42->setText("Lijndikte"); extimgvideo->setTextLabel("Extract een beeld uit de video"); textLabel1_40->setText("Start"); textLabel1_40_2->setText("Einde"); textLabel1_41->setText("Ondertiteling"); btcloseedit_2->setTextLabel("Annuleren"); btcloseedit->setTextLabel("Oke"); bteditsstitre->setTextLabel("Aanmaken / Bewerken"); toolButton129_2->setTextLabel("Annuleren"); toolButton129->setTextLabel("Oke"); textLabel1_39_3->setText("Hoogte"); textLabel1_39_4->setText("Breedte"); textLabel3_6->setText("A/V sync zorgt voor het syncroniseren tussen video en audio. Dit is bijvoorbeeld nodig als het geluid niet gelijk loopt met de lippen van de acteur. U kunt dit regelen door de waarde te veranderen in het kader A/V Sync."); bt_gest_sub_2->setTextLabel("Video effecten"); btpreveffets->setTextLabel("Voorbeeldweergave"); toolButton122->setTextLabel("Sluiten"); textLabel2_10_3_2_2->setText("Contrast"); textLabel2_10_3_2->setText("Helderheid"); textLabel2_10_3->setText("Lengte"); textLabel2_10_4->setText("Hoogte"); textLabel1_37->setText("De functie 'delogo' geeft u de mogelijkheid om een logo uit uw video te verwijderen, zoals het logo van een TV-Station. Let wel op, de resultaten van deze fuctie kunnen varieren. Om deze funtie te gebruiken dient u de coordinaten van het logo op te geven (x, y, lengte, hoogte)."); textLabel1_37_2->setText("De functie 'relages' geeft u de mogelijkheid om de helderheid en contrast aan te passen. Hiervoor dient u de schuifbalken hieronder te gebruiken."); textLabel1_37_2_2->setText("De functie 'spiegelen' geeft u de mogelijkheid om de video te spiegelen. Hierdoor wordt links, rechts en rechts wordt links."); textLabel1_37_2_2_2->setText("De funtie 'denoise' zorgt ervoor dat er er minder ruis in beeld is zodat u mooiere en betere beelden krijgt."); checkBox5->setText("Laat een kader om het vervaagde stuk zien."); // textLabel1_34->setText("Tekst toevoegen"); toolButton117->setTextLabel("Achtergrond kleur"); toolButton115_2->setTextLabel("Annuleren"); toolButton115->setTextLabel("Ok"); bt_modif_gimp_2->setTextLabel("Wijzig met The Gimp"); // textLabel1_33->setText("Choose a font for subtitle"); textLabel2_9->setText("Size of subfont in percent of screen height."); // optsel1->setText("Selected mask"); optsel2->setText("Clicked mask"); valideditmask->setTextLabel("Ok"); bt_maskedit->setTextLabel("Mask edit"); // bt_force->setTextLabel("Forceer reencode"); bt_sup_chap_2->setTextLabel("Verwijder alle hoofdstukken"); // textLabel1_32_2->setText("Verander de parameters en kies daarna de versie van de foto om te importeren (bewerkt of orgineel)."); radioButton3_2->setText("Bewerkt"); radioButton3->setText("Orgineel"); toolButton95->setTextLabel("Toepassen"); toolButton99->setTextLabel("Sluiten"); // textLabel1_14->setText("Van foto"); textLabel1_14_2->setText("Naar foto"); toolButton94->setTextLabel("Project opslaan"); toolButton94_2->setTextLabel("Open project"); bt_choix_couleur_titre_2->setTextLabel("Verander de kleur van de titel voor deze foto"); // bt_gest_sub->setTextLabel("Ondertiteling toevoegen"); table_message[36] = "ISO bestand is aangemaakt in : "; table_message[37] = "Fout bij het maken van het ISO bestand."; bt_grave_3->setTextLabel("Maak een ISO bestand"); textLabel1_30->setText("Hier kunt u een ondertiteling toevoegen aan uw video."); toolButton72_2_2->setTextLabel("Annuleren"); toolButton72_3->setTextLabel("Oke"); // textLabel1_28->setText("Uitvoer kwaliteit alleen voor gecodeerde video's. De kwaliteit is minder dan DVD kwaliteit."); bt_param_encode->setTextLabel("Opties"); textLabel1_27->setText("Hier kunt u de knoppen ordenen. De eerste zal als eerst geselecteerd worden in het menu."); bt_grave_2->setTextLabel("Brand DVD K3B"); // bt_modifier_titre->setTextLabel("Verander Titel"); toolButton72->setTextLabel("Toepassen"); toolButton72_2->setTextLabel("Annurelen"); prefchap = "hoofdstuk"; table_message[0] = "Dit proces start niet: "; table_message[1] = "Het maximaal aantal video's is 20."; table_message[2] = "U moet minstens één vidéo toevoegen of slideshow."; table_message[3] = "Als u terug gaat, zullen al uw wijzigingen verloren gaan.\n\nWeet u het zeker?"; table_message[4] = "U moet een achtergrond voor uw menu kiezen."; table_message[5] = "Uw project is groter dan de DVD capaciteit. U kunt het niet branden."; table_message[6] = "U moet een titel kiezen voor uw video."; table_message[7] = "U moet alle titels aan het menu toevoegen."; table_message[8] = "Kan bestand niet aanmaken.\n\nHeeft u wel schrijfrechten voor deze map?"; table_message[9] = "U moet een map opgeven."; table_message[10] = "Encoding is mislukt. Bekijk de console voor meer details."; table_message[11] = "Fout bij het genereren van het menu. Bekijk de console voor meer details."; table_message[12] = "Gereed. Uw DVD is goed."; table_message[13] = "Interne fout in DVD Author. Bekijk de console voor meer details."; table_message[14] = "U moet uw brander kiezen."; table_message[15] = "Branden gelukt."; table_message[16] = "Branden mislukt.\n\nHeeft u de juiste DVD brander geselecteerd?"; table_message[17] = "Weet u zeker dat u wilt afsluiten?"; table_message[18] = "Wilt u uw slideshow annuleren?"; table_message[19] = "Een slideshow bevat maximaal 100 foto's."; table_message[20] = "U moet op zijn minst één plaatje toevoegen aan de slideshow."; table_message[21] = "U slideshow is aangemaakt.\n\nWilt u het bekijken?"; table_message[22] = "Wilt u uw slideshow toevoegen aan uw DVD project?"; table_message[23] = "Aanmaken van de slideshow is mislukt.\n\nBekijk de console voor meer details."; table_message[24] = "Wilt u geen muziek?"; table_message[25] = "U moet een video kiezen."; table_message[26] = "Fout bij het inlezen van de video."; table_message[27] = "Alleen 25-30 fps video's worden geaccepteerd."; table_message[28] = "De start markering moet voor de eind markering."; table_message[29] = "De eind markering moet achter de start markering."; table_message[30] = "Voeg media bestanden toe"; table_message[31] = "Menu parameters"; table_message[32] = "Menu aanmaken"; table_message[33] = "DVD aanmaken"; table_message[34] = "Maak slideshow aan"; table_message[35] = "Maak geanimeerde achtergrond"; idtpage->setText("Media bestanden toevoegen"); // table_message[38] = "

Fout! De interval is korter of gelijk als de filmduur

Dit is niet geldig."; table_message[39] = "Project is opgeslagen"; // table_message[40] = "Geen overgang"; table_message[41] = "Vervaag van buiten"; table_message[42] = "Vervaag van binnen"; table_message[43] = "Vervaag mix"; table_message[44] = "Linker overloop"; table_message[45] = "Rechter overloop"; table_message[46] = "Overloop van boven"; table_message[47] = "Overloop van beneden"; table_message[48] = "Zoom"; table_message[49] = "Dubbel"; table_message[50] = "Boven en beneden"; table_message[51] = "Willekurige overgang"; table_message[52] = "Totale bestandsgrote: "; volume->setText(table_message[52] + "0 Mo"); // table_message[53] = "Terug naar menu"; table_message[54] = "Vidéo van Enoding"; table_message[55] = "Het globale video coderen"; table_message[56] = "Het produceren van dossiermenu"; table_message[57] = "Het produceren van Het dossier van DVD Author"; table_message[58] = "Finalization of the project"; // table_message[59] = "Read one time"; table_message[60] = "Loop sound"; // textLabel1->setText(table_message[54]); textLabel1_4->setText(table_message[55]); etape_1->setText(table_message[56]); etape_2->setText(table_message[57]); etape_3->setText(table_message[58]); // textLabel1_26->setText("U kunt de naam van uw hoofdstuk veranderen als u de naam in het menu gewijzigd wilt hebben."); btokrename->setTextLabel("Oke"); bt_rename_chap->setTextLabel("Hernoem hoofdstuk"); // idtpage->setText("Voeg media toe"); Appercupol->setTitle("Voorbeeld van lettertype"); bt_valid_info_image_2->setTextLabel("Verander"); bt_valid_info_image_3->setTextLabel("Verwijderen"); bt_add_img_slide_2_2->setTextLabel("Importeer parameter"); textLabel1_25->setText("Duur van de dia (seconden)"); textLabel2_3->setText("Overgang op elke dia"); textLabel1_25_2->setText("De duur van de overgang (seconden)"); bt_valid_param_defo->setTextLabel("Bevestig"); bt_add_chap_2_2->setTextLabel("Bewerk een hoofdstuk"); bt_ajout_intro->setTextLabel("Voeg een inleidingsvideo toe aan uw DVD."); // textLabel3_2->setText("In dit scherm kiest u de video's en slideshow voor uw DVD. U heeft ook nog de mogelijkheid om hoofdstukken aan te maken bij elk deel van de DVD."); textLabel1_20->setText("U heeft twee mogelijkheden voor uw knop. U kunt de naam van de film opgeven of een plaatje die als knop zal dienen. U moet in alle gevallen de titel van de film opgeven."); textLabel2_6->setText("Hier kunt u een plaatje selecteren die als knop zal dienen in het DVD menu. Zorg dat het plaatje niet te groot is in zijn afmeting."); textLabel1_9->setText("Bestands informatie"); textLabel4_2->setText("Video padnaam:"); textLabel1_18->setText("Video is niet reencoded"); textLabel1_18_2->setText("Video is reencoded"); textLabel1_3->setText("Video titel"); add_video->setTextLabel("Voeg een video toe aan uw project"); bt_slideshow->setTextLabel("Maak een slideshow"); bt_supprime_video->setTextLabel("Verwijder geselecteerde video"); bt_chapitres->setTextLabel("Definieer hoofdstukken"); bt_add_cont->setTextLabel("Ok"); bt_cancel_titre->setTextLabel("Annuleren"); bt_et02_con->setTextLabel("Volgende"); textLabel3->setText("In dit scherm maakt u het menu voor uw DVD: Achtergrond van het menu, het lettertype en de kleur hiervan. Ook kunt u als u dat wilt een achtergrond muziek plaatsen. "); bt_et03_con->setTextLabel("Volgende"); bt_et03_con_2->setTextLabel("Vorige"); textLabel4->setText("Kies achtergrond"); bt_charg_wall->setTextLabel("Foto achtergrond"); bt_charg_wall_uni->setTextLabel("Achtergrond van één kleur"); bt_create_fond_anim->setTextLabel("Geanimeerde achtergrond"); textLabel3_3->setText("Kleur van lettertype in menu"); bt_police->setTextLabel("Selecteer menu lettertype"); bt_color_1->setTextLabel("Kleur van de tekst in het menu"); bt_color_2->setTextLabel("Kleur van de geselecteerde tekst"); bt_color_3->setTextLabel("Kleur van de tekst als je item selecteert"); textLabel2_4->setText("Selecteer hier uw achtergrond muziek voor het menu"); bt_fond_mus->setTextLabel("Importeer muziek"); bt_retourner->setTextLabel("Horizontal spiegelen"); bt_retourner_2->setTextLabel("Verticaal spiegelen"); textLabel1_2->setText("Als u uiteindelijk de positie van de knoppen heeft bepaald en heb geselecteerd wat de DVD moet doen na afloop van de film, klik dan op de knop: Bevestig positie knop. Zorg er wel voor dat u de knop binnen de rode zone plaatst."); bt_add_film_menu->setTextLabel("Voeg video toe aan menu"); bt_valid_bt->setTextLabel("Bevestig positie knop"); textLabel1_10->setText("Na het afspelen van video"); bt_et04_con->setTextLabel("Volgende"); bt_et04_con_2->setTextLabel("Vorige"); bt_et_05->setTextLabel("Vorige"); bt_quit->setTextLabel("Afsluiten"); textLabel1_12->setText("

Informatie bericht

Pas op! Het geluid van de MPEG bestanden zal niet geconverteerd worden. Zorg ervoor dat het gebruikte formaat MP2 of AC3 is. Als dat niet zo is, zal de dvd-speler net correct het geluid van uw film afspelen. Bij andere formaten zal er wel geconverteerd worden.

"); bt_gener_struct->setTextLabel("Genereer DVD structuur"); bt_lire_DVD->setTextLabel("Bekijk het resultaat"); bt_grave->setTextLabel("Brand DVD"); textLabel2->setText("

Sla de DVD op in de map:"); affconsole->setTextLabel("Toon / verberg console"); bt_affcach_con_grave->setTextLabel("Toon / verberg console"); bt_go_grave->setTextLabel("Branden"); bt_annul_grave->setText("Sluiten"); textLabel1_5->setText("Waarschuwing! Voordat u het brand proces start, doe een lege DVD in uw DVD brander. Als u dit vergeet, krijgt u een foutmelding maar er zal niks gebrand worden. "); textLabel1_11->setText("DVD brander"); message_1->setText("

Bezig met branden ... Even geduld

"); bt_gener_slideshow->setTextLabel("Aanmaken"); bt_fermer_slide->setTextLabel("Sluiten"); bt_aff_con_diapo->setTextLabel("Toon / verberg console"); bt_start_gener_slide->setTextLabel("Start"); bt_annul_gener_slide->setTextLabel("Sluiten"); textLabel1_17->setText("Klik hier de opties aan die u nodig hebt, klik dan op start om het converteren te starten. Pas op! Als u het in hooge kwaliteit doen of u heeft veel overgangen bij de plaatjes, kan het het lang duren voordat het converteren klaar is."); bt_add_fondu_fin->setText("Wilt u het laatste plaatje langzaam zien verdwijnen?"); qualite_render->setText("Opbouwen in hoge kwaliteit (langzamer)"); bt_add_img_slide->setTextLabel("Foto toevoegen"); bt_add_img_slide_2->setTextLabel("Map importeren"); bt_select_zik->setTextLabel("Voeg muziek toe"); bt_choix_police_titre->setTextLabel("Selecteer lettertype"); bt_choix_couleur_titre->setTextLabel("Lettertype kleur"); Appercupol->setCaption("Voorbeeld "); textLabel2_5->setText("Foto selecteren"); textLabel1_15_2->setText("Duur van overgang (seconden)"); textLabel1_15->setText("Duur van foto (seconden)"); textLabel1_16->setText("Titel (Leeg houden voor geen titel)"); bt_add_chap->setTextLabel("Hoofdstuk toevoegen"); bt_sup_chap->setTextLabel("Hoofdstuk verwijderen"); bt_lire_pr_chap->setTextLabel("Start video"); bt_fermer_chapitre->setTextLabel("Sluiten"); textLabel1_8->setText("Geef (uren : minuten : seconden) op voor hoofdstuk."); bt_new_chap_2->setTextLabel("Annuleren"); bt_new_chap->setTextLabel("Bevestig"); bt_import_video_manim->setTextLabel("Importeer video"); textLabel4_3->setText("Start (seconden)"); textLabel4_3_2->setText("Lengte (seconden)"); bt_go_extract->setTextLabel("Uitpakken"); cdraddmask->setCaption("Een \"mask\" toevoegen aan achtergrond "); textLabel1_19->setText("Een \"mask\" is een plaatje (720x576 pixels) die transparante zones bezit en welke wordt toegevoegd met de basis video. Dit staat sommige effecten toe, die interessant kunnen zijn voor uw menu. "); bt_console_menu_anim->setTextLabel("Toon / verberg console"); textLabel5_2->setText("Voortgang invoer"); bt_valid_menu_anim->setTextLabel("Bevestig"); bt_fermer_menu_anim->setTextLabel("Sluiten"); bt_modif_gimp->setTextLabel("Wijzig met The Gimp"); joubouclmenu->setText("Herhaal animatie in menu"); textLabel1_22->setText("Herhaal video n keer"); textLabel3_4->setText("Uitvoer kwaliteit"); textLabel2_7->setText("Laag"); textLabel2_7_2->setText("Gemiddeld"); textLabel2_7_3->setText("Hoog"); } else { if (wlanguage == "IT") { lsttab->setColumnText(0,"Title"); chapauto->setTitle("Auto chapter"); // btprevdelay->setTextLabel("Preview"); textLabel1_50->setText("Start reading DVD with :"); bt_generer_2->setTextLabel("Cancel"); bt_generer->setTextLabel("Start"); bt_generer_2_2->setTextLabel("Console"); textLabel2_12->setText("Brake"); textLabel1_49->setText("From"); textLabel1_2_2->setText("To"); // textLabel1_31_2->setText("Size"); textLabel1_13->setText("Console"); bt_fermer_taborder->setTextLabel("Ok"); bt_tab_order->setTextLabel("Tab order"); textLabel1_35_2->setText("Size"); toolButton117_2_2->setTextLabel("Use previous slide"); toolButton170->setTextLabel("Options"); toolButton117_2->setTextLabel("Background image"); textLabel1_48->setText("Choose a color background or an image."); textLabel1_6->setText("Warning don't use this function if you have a release of QT > 3.3.4. You should have an error on rendering menu. Trolltech will correct this in the next release 3.3.7"); btgrpprio->setTitle("Execution prority"); toolButton71->setTextLabel("Destination folder"); lst_video_1->setColumnText(0,"Title"); lst_video_1->setColumnText(1,"Pathname"); lst_video_1->setColumnText(2,"Encoding"); lst_video_1->setColumnText(3,"Chapters"); lst_video_1->setColumnText(4,"Audio bitrate"); lst_video_1->setColumnText(5,"Format"); lst_video_1->setColumnText(6,"Pathname button"); lst_video_2->setColumnText(0,"Title"); lst_video_2->setColumnText(1,"Pathname"); lst_video_2->setColumnText(2,"Encoding"); lst_video_2->setColumnText(3,"Chapters"); lst_video_2->setColumnText(4,"Audio bitrate"); lst_video_2->setColumnText(5,"Format"); lst_video_2->setColumnText(6,"Pathname button"); bt_musique_options->setTextLabel("Adjust video on audio"); bt_save_1->setTextLabel("Save project"); toolButton168_2->setTextLabel("Open a project file"); textLabel1_47->setText("New project"); textLabel1_47_2->setText("Load a project"); bt_renew_all->setTextLabel("Cleanup menu"); textLabel1_46->setText("You can add effects to your video. Some of them are animated for an example swirl. After selecting effects click generate button. Warning this is a long and not cancelled process. Effects are applied only first and last selected frame."); toolButton165->setTextLabel("Generate"); bt_effets_anim->setTextLabel("Effects"); buttonGroup63->setTitle("Brush"); textLabel2_9_2->setText("Vertical position of subtitle. Percent of height screen."); // textLabel1_45->setText("Per tagliare una sequenza seleziona l'inizio e la fine, poi premi il pulsante Taglia."); bt_valid_cutfilm->setTextLabel("Ok"); bt_fermer_cutfilm->setTextLabel("Chiudi"); bt_import_cutfilm->setTextLabel("Importa"); bt_cut_film->setTextLabel("Taglia parte del film"); // textLabel1_7->setText("Aggiungi / modifica media nel DVD"); textLabel1_7_2->setText("Modifiche e altro"); textLabel1_7_2_2->setText("Divers"); desinter->setText("Deinterlaccia video. Migliore per LCD."); extimgvideo_gimp->setTextLabel("Modifica con Gimp"); textLabel1_42->setText("Dimensione del pennello"); extimgvideo->setTextLabel("Estrai un'immmagine dal video"); textLabel1_40->setText("Inizio"); textLabel1_40_2->setText("Fine"); textLabel1_41->setText("Sottotitolo"); btcloseedit_2->setTextLabel("Cancella"); btcloseedit->setTextLabel("Ok"); bteditsstitre->setTextLabel("Crea / Modifica"); toolButton129_2->setTextLabel("Cancella"); toolButton129->setTextLabel("Ok"); textLabel1_39_3->setText("Altezza"); textLabel1_39_4->setText("Larghezza"); // textLabel3_6->setText("A/V sync rappresenta la sincronizzazione tra l'audio e il video. Un ritardo o un'anticipo dell'audio può causare un ritardo (o anticipo) tra le parole e imovimenti labbiali dell'attore (per esempio). Puoi regolare questo parametro cambiando il valore che trovi nella parte più bassa del pannello A/V Sync."); bt_gest_sub_2->setTextLabel("Effetti Video"); btpreveffets->setTextLabel("Anteprima"); toolButton122->setTextLabel("Chiudi"); textLabel2_10_3_2_2->setText("Contrasto"); textLabel2_10_3_2->setText("Luce"); textLabel2_10_3->setText("Lunghezza"); textLabel2_10_4->setText("Altezza"); textLabel1_37->setText("La funzione delogo ti permette di rimuovere un logo dal video, per esempio il logo di un canale televisivo. Il risultato non è assicurato. Per usare questa funzione inserisci le coordinate del logo (x, y -> lunghezza, altezza)."); textLabel1_37_2->setText("La funzione réglages ti permette di regolare la luminosità e il contrasto del video. Muovi la riga verso il basso per ridurre i valori e verso la linea per aumentarli."); textLabel1_37_2_2->setText("La funzione mirror ti permette di riversare l'immagine rispetto all'asse y, quindi i punti di sinistra vanno a destra e viceversa"); textLabel1_37_2_2_2->setText("La funzione denoise dovrebbe ridurre i difetti di una immagine e produrre immagini leggermente sfumate cherestano però molto fedeli all'originale."); checkBox5->setText("Per commentare un'anteprima"); // textLabel1_34->setText("Aggiungi testo"); toolButton117->setTextLabel("Colore sfondo"); toolButton115_2->setTextLabel("Cancella"); toolButton115->setTextLabel("Ok"); bt_modif_gimp_2->setTextLabel("Modifica con Gimp"); // textLabel1_33->setText("Scegli un font per i sottotitoli"); textLabel2_9->setText("Dimensiona il font in relazione all'altezza dello schermo."); // optsel1->setText("Maschera selezionata"); optsel2->setText("Maschera cliccata"); valideditmask->setTextLabel("Ok"); bt_maskedit->setTextLabel("Modifica maschera"); // bt_force->setTextLabel("Forza recodifica"); bt_sup_chap_2->setTextLabel("Rimuovi tutti i capitoli"); // textLabel1_32_2->setText("Cambia i parametri e poi scegli la versione dell'immagine da importare (modificata o originale)."); radioButton3_2->setText("Modificata."); radioButton3->setText("Originale."); toolButton95->setTextLabel("Conferma"); toolButton99->setTextLabel("Chiudi"); // textLabel1_14->setText("Da immagine"); textLabel1_14_2->setText("A immagine"); toolButton94->setTextLabel("Salva progetto"); toolButton94_2->setTextLabel("Apri progetto"); bt_choix_couleur_titre_2->setTextLabel("Cambia il colore del titolo di questa immagine"); // bt_gest_sub->setTextLabel("Gestione sottotitoli"); table_message[36] = "Congratulazioni l'immagine ISO si trova in: "; table_message[37] = "Errore creando l'immagine ISO."; bt_grave_3->setTextLabel("Crea un'immagine ISO"); textLabel1_30->setText("A questo punto puoi aggiungere isottotitoli al tuo video."); toolButton72_2_2->setTextLabel("Cancella"); toolButton72_3->setTextLabel("OK"); // textLabel1_28->setText("Qualità disponibile solo per video codificati. Più qualità = meno video nel DVD"); bt_param_encode->setTextLabel("Opzioni"); textLabel1_27->setText("Definisci l'ordine delle tab per i bottoni del menù. Il primo sarà il primo ad essere selezionato nel menù."); bt_grave_2->setTextLabel("Masterizza DVD K3B"); // bt_modifier_titre->setTextLabel("Modifica il titolo"); toolButton72->setTextLabel("Conferma"); toolButton72_2->setTextLabel("Annulla"); table_message[0] = "Impossibile avviare il processo: "; table_message[1] = "Il numero massimo di video è 20."; table_message[2] = "Devi aggiungere almeno un video o una slideshow."; table_message[3] = "Se torni indietro perderai tutte le modifiche.\n\nSei sicuro ?"; table_message[4] = "Devi scegliere uno sfondo per il menù."; table_message[5] = "Il progetto è troppo grande per la capacità di un DVD. Non potrai masterizzarlo."; table_message[6] = "Devi scegliere un titolo per il video."; table_message[7] = "Devi mettere tutti i titoli nel menù."; table_message[8] = "Impossibile creare il file.\n\nHai i permessi di scrittura nella cartella di destinazione ?"; table_message[9] = "Devi scegliere la cartella di destinazione."; table_message[10] = "Codifica fallita. Vedi la console per maggiori dettagli."; table_message[11] = "Errore creando il menù. Vedi la console per maggiori dettagli."; table_message[12] = "Successo. Il DVD è pronto."; table_message[13] = "Errore interno a DVD Author. Vedi la console per maggiori dettagli."; table_message[14] = "Devi scegliere il dispositivo di masterizzazione."; table_message[15] = "Masterizzazione riuscita"; table_message[16] = "Masterizzazione fallita.\n\nHai scelto il masterizzatore corretto ?"; table_message[17] = "Sei sicuro di voler uscire ?"; table_message[18] = "Vuoi cancellare la creazione della slideshow ?"; table_message[19] = "Una slideshow contiene al massimo 100 immagini."; table_message[20] = "Devi aggiungere almeno un'immagine alla tua slideshow."; table_message[21] = "Slideshow pronta.\n\nVuoi visualizzarla ?"; table_message[22] = "Vuoi inserire la tua slideshow al progetto del DVD ?"; table_message[23] = "Creazione slideshow fallita.\n\nVedi la console per maggiori dettagli."; table_message[24] = "Non vuoi nessuna traccia musicale ?"; table_message[25] = "Devi scegliere almeno un video."; table_message[26] = "Errore estraendo le immagini dal video."; table_message[27] = "Solo i video a 25-30 fps sono accettati."; table_message[28] = "Il punto di inizio deve essere prima del segno di fine."; table_message[29] = "Il punto di fine deve essere dopo il segno di inizio."; table_message[30] = "Aggiungi media"; table_message[31] = "Parametri Menù"; table_message[32] = "Creazione del Menù"; table_message[33] = "Creazione del DVD"; table_message[34] = "Crea una slideshow"; table_message[35] = "Crea uno sfondo animato"; table_message[38] = "

Errore ! L'intervallo è minore o uguale alla durata del film

Non è valido."; table_message[39] = "Progetto salvato"; table_message[40] = "Nessuna transizione"; table_message[41] = "Dissolvenza in uscita"; table_message[42] = "Dissolvenza in entrata"; table_message[43] = "Dissolvenza mista"; table_message[44] = "Sovrapposizione da sinistra"; table_message[45] = "Sovrapposizione da destra"; table_message[46] = "Sovrapposizione dall'alto"; table_message[47] = "Sovrapposizione dal basso"; table_message[48] = "Zoom"; table_message[49] = "Doppio"; table_message[50] = "Su e Giù"; table_message[51] = "Transizione casuale"; table_message[52] = "Dimensione totale del file : "; volume->setText(table_message[52] + "0 Mo"); // table_message[53] = "Di nuovo al menu"; table_message[54] = "Vidéo di cifratura"; table_message[55] = "Vidéo di cifratura globale"; table_message[56] = "Generando il file"; table_message[57] = "generando il file DVD Author"; table_message[58] = "Completamento del progetto"; // table_message[59] = "Leggere una volta"; table_message[60] = "Suono del ciclo "; // textLabel1->setText(table_message[54]); textLabel1_4->setText(table_message[55]); etape_1->setText(table_message[56]); etape_2->setText(table_message[57]); etape_3->setText(table_message[58]); // idtpage->setText("Aggiungi media"); Appercupol->setTitle("Font di esempio"); bt_valid_info_image_2->setTextLabel("Cambia"); bt_valid_info_image_3->setTextLabel("Rimuovi"); bt_add_img_slide_2_2->setTextLabel("Imposta parametri"); textLabel1_25->setText("Durata diapositiva (secondi)"); textLabel2_3->setText("Tipo di transizione diapositiva"); textLabel1_25_2->setText("Durata della transizione (secondi)"); bt_valid_param_defo->setTextLabel("Conferma"); bt_add_chap_2_2->setTextLabel("Modifica un capitolo"); bt_ajout_intro->setTextLabel("Aggiungi un video introduttivo"); textLabel3_2->setText("A questo punto scegli i video e le slideshow da mettere sul DVD Video. Hai inoltre la possibilità di definire i capitoli di ogni elemento. "); textLabel1_20->setText("Hai due possibilità per il tuo pulsante: puoi mettere un titolo con il nome del film oppure un'immagine che sarà usata come pulsante. In ogni caso devi riempire i campi di informazioni del video."); textLabel2_6->setText("Scegli un'immagine che contenga il tuo pulsante. L'immagine non dovrebbe essere troppo larga. L'anteprima non rispetta esattamente le dimensioni del pulsante e neppure la sua larghezza/altezza. Ricorda che l'immagine non sarà ridimensionata."); textLabel1_9->setText("Informazioni sul file"); textLabel4_2->setText("Percorso del video :"); textLabel1_18->setText("Video non ricodificato"); textLabel1_18_2->setText("Video ricodificato"); textLabel1_3->setText("Titolo del video: "); add_video->setTextLabel("Aggiungi un video al progetto"); bt_slideshow->setTextLabel("Crea una slideshow"); bt_supprime_video->setTextLabel("Rimuovi video selezionato"); bt_chapitres->setTextLabel("Definisci i capitoli"); bt_add_cont->setTextLabel("Ok"); bt_cancel_titre->setTextLabel("Cancella"); bt_et02_con->setTextLabel("Prossimo"); textLabel3->setText("A questo punto specifica tutti i parametri del menù: lo sfondo dello schermo, il tipo di carattere utilizzato, i colori usati per i due stati dei pulsanti (deselezionato e selezionato), ma anche una traccia musicale di sottofondo se lo desideri."); bt_et03_con->setTextLabel("Prossimo"); bt_et03_con_2->setTextLabel("Precedente"); textLabel4->setText("Scegli lo sfondo"); bt_charg_wall->setTextLabel("Immagine di sfondo"); bt_charg_wall_uni->setTextLabel("Sfondo monocolore per il menù"); bt_create_fond_anim->setTextLabel("Sfondo animato"); textLabel3_3->setText("Impostazioni del font del menù"); bt_police->setTextLabel("Seleziona il font del menù"); bt_color_1->setTextLabel("Colore del testo del menù"); bt_color_2->setTextLabel("Colore del testo selezionato"); bt_color_3->setTextLabel("Colore del testo cliccato"); textLabel2_4->setText("Seleziona la traccia di sottofondo musicale del DVD"); bt_fond_mus->setTextLabel("Importa una traccia musicale"); bt_retourner->setTextLabel("Horizontal mirror"); bt_retourner_2->setTextLabel("Vertical mirror"); textLabel1_2->setText("Dopo aver posizionato il video e aver scelto l'azione da eseguire dopo l'esecuzione di questo, clicca sul pulsante: Conferma la posizione del pulsante. La zona rossa indica la zona PAL sicura, non mettere i tuoi titoli oltre o potranno non essere visualizzati."); bt_add_film_menu->setTextLabel("Aggiungi un video al menù"); bt_valid_bt->setTextLabel("Conferma posizione pulsante"); textLabel1_10->setText("Dopo la lettura del video"); bt_et04_con->setTextLabel("Prossimo"); bt_et04_con_2->setTextLabel("Precedente"); bt_et_05->setTextLabel("Precedente"); bt_quit->setText("Esci"); textLabel1_12->setText("

Messaggio di informazione

Attenzione! Al momento il suono di file MPEG non sara' codificato. Assicurati che il formato usato sia MP2 o AC3, altrimenti il tuo lettore DVD rischia di non eseguire correttamente l'audio dei tuoi film. Prossimamente saranno supportati anche altri formati.

"); bt_gener_struct->setTextLabel("Genera la struttura del DVD"); bt_lire_DVD->setTextLabel("Visualizza risultato"); bt_grave->setTextLabel("Masterizza DVD"); textLabel2->setText("

Destinazione del DVD:

Assicurati che il file di destinazione sia vuoto altrimenti potrebbero verificarsi problemi durante la generazione del DVD. "); affconsole->setTextLabel("Mostra / Nascondi console"); bt_affcach_con_grave->setTextLabel("Mostra / Nascondi console"); bt_go_grave->setTextLabel("Masterizza"); bt_annul_grave->setText("Chiudi"); textLabel1_5->setText("ATTENZIONE! Prima di lanciare la masterizzazione, inserisci un DVD vergine nel masterizzatore. Se non segui l'avvertimento, il processo sarà avviato, ma nessun dato sarà masterizzato. "); textLabel1_11->setText("Masterizzatore"); message_1->setText("

Masterizzando... attendere

"); bt_gener_slideshow->setTextLabel("Genera"); bt_fermer_slide->setTextLabel("Chiudi"); bt_aff_con_diapo->setTextLabel("Mostra / Nascondi console"); bt_start_gener_slide->setTextLabel("Inizia"); bt_annul_gener_slide->setTextLabel("Chiudi"); textLabel1_17->setText("Regola i parametri della slideshow, poi clicca su 'Inizia' per iniziare la sua generazione. Ricorda che la durata dell'operazione dura di più se la qualità scelta è alta. Il processo può durare parecchio dipendentemente dal numero e dalla durata delle transizioni."); bt_add_fondu_fin->setText("Aggiungi una dissolvenza alla fine"); qualite_render->setText("Alta qualità (più lento)"); bt_add_img_slide->setTextLabel("Aggiungi un'immagine"); bt_add_img_slide_2->setTextLabel("Importa una cartella"); bt_select_zik->setTextLabel("Aggiungi una traccia"); bt_choix_police_titre->setTextLabel("Seleziona font"); bt_choix_couleur_titre->setTextLabel("Colore font"); textLabel2_5->setText("Seleziona un'immagine: "); textLabel1_15_2->setText("Durata della transizione (secondi)"); textLabel1_15->setText("Durata immagine (secondi)"); textLabel1_16->setText("Titolo (lascia vuoto per niente)"); bt_add_chap->setTextLabel("Aggiungi capitolo "); bt_sup_chap->setTextLabel("Rimuovi capitolo "); bt_lire_pr_chap->setTextLabel("Mostra video "); bt_fermer_chapitre->setTextLabel("Chiudi"); textLabel1_8->setText("Inserisci (ora : minuti : secondi) del capitolo."); bt_new_chap_2->setTextLabel("Cancella"); bt_new_chap->setTextLabel("Conferma"); bt_import_video_manim->setTextLabel("Video in input"); textLabel4_3->setText("Partenza (secondi)"); textLabel4_3_2->setText("Durata (secondi)"); bt_go_extract->setTextLabel("Estrai"); cdraddmask->setTitle("Aggiungi una maschera allo sfondo "); textLabel1_19->setText("Una maschera è una immagine (dimensione 720x576 pixel) comprendente le zone trasparenti che è sovrapposta al video di base. Permette alcuni effetti interessanti al tuo menù. "); bt_console_menu_anim->setTextLabel("Mostra / Nascondi console"); textLabel5_2->setText("Progresso importazione"); bt_valid_menu_anim->setTextLabel("Conferma"); bt_fermer_menu_anim->setTextLabel("Chiudi"); bt_modif_gimp->setTextLabel("Modifica con Gimp"); joubouclmenu->setText("Cicla animazione del menù"); textLabel1_22->setText("Ripeti il video N volte"); textLabel3_4->setText("Qualità in output"); textLabel2_7->setText("Bassa"); textLabel2_7_2->setText("Media"); textLabel2_7_3->setText("Alta"); chapauto->setCaption("Genera capitoli automaticamente"); bt_add_chap_2->setTextLabel("Genera capitoli automaticamente"); btchauto_1->setText("Cancella"); btchauto_2->setText("Conferma"); } else { if (wlanguage == "GE") { lsttab->setColumnText(0,"Titel"); chapauto->setTitle("Automatisches kapitel"); // btprevdelay->setTextLabel("Preview"); textLabel1_50->setText("Start reading DVD with :"); bt_generer_2->setTextLabel("Abbrechen"); bt_generer->setTextLabel("Start"); bt_generer_2_2->setTextLabel("Console"); textLabel2_12->setText("Verlangsamen"); textLabel1_49->setText("Von"); textLabel1_2_2->setText("Bis"); // textLabel1_31_2->setText("Größe"); textLabel1_13->setText("Ausführungskonsole"); bt_fermer_taborder->setTextLabel("Bestätigen"); bt_tab_order->setTextLabel("Auswahl Reihenfolge"); textLabel1_35_2->setText("Size"); toolButton117_2_2->setTextLabel("Use previous slide"); toolButton170->setTextLabel("Optionen"); toolButton117_2->setTextLabel("Hintergrund Bild"); textLabel1_48->setText("Wählen sie eine Hintergrund Farbe, oder ein Bild."); textLabel1_6->setText("Achtung. Benutzen sie diese Option nicht wenn Sie QT > 3.3.4 verwenden, da Sie sonst einen Fehlermeldung im Rendering Menü erhalten werden. Trolltech wird dies im nächten Release 3.3.7 beheben"); btgrpprio->setTitle("Ausührungs Priorität"); toolButton71->setTextLabel("Zielordner"); lst_video_1->setColumnText(0,"Titel"); lst_video_1->setColumnText(1,"Pfadname"); lst_video_1->setColumnText(2,"Kodierung"); lst_video_1->setColumnText(3,"Kapitel"); lst_video_1->setColumnText(4,"Audio Bitrate"); lst_video_1->setColumnText(5,"Format"); lst_video_1->setColumnText(6,"Pfadname Schaltfläche"); lst_video_2->setColumnText(0,"Titel"); lst_video_2->setColumnText(1,"Pfadname"); lst_video_2->setColumnText(2,"Kodierung"); lst_video_2->setColumnText(3,"Kapitel"); lst_video_2->setColumnText(4,"Audio Bitrate"); lst_video_2->setColumnText(5,"Format"); lst_video_2->setColumnText(6,"Pfadname Schaltfläche"); bt_musique_options->setTextLabel("Video an Audio anpassen"); bt_save_1->setTextLabel("Projekt speichern"); toolButton168_2->setTextLabel("Projekt Datei öffnen"); textLabel1_47->setText("Neues Projekt"); textLabel1_47_2->setText("Projekt laden"); bt_renew_all->setTextLabel("Menü löschen"); textLabel1_46->setText("Sie können ihrem Video Effekte hinzufügen. Einige sind animiert wie z.B swirl. Nach dem auswählen klicken sie auf Generieren. Achtung, dies ist ein langer und nicht abzubrechender Prozess. Effekte werden nur auf den ersten und letzten ausgewählten Frame angewendet."); toolButton165->setTextLabel("Generieren"); bt_effets_anim->setTextLabel("Effekte"); buttonGroup63->setTitle("Pinsel"); textLabel2_9_2->setText("Vertikale Position von Untertitel. Bildschirmhöhe in Prozent."); // textLabel1_45->setText("Um einen Teil auszuschneiden, markieren Sie den Beginn und das Ende und klicken auf den Schneiden Knopf."); bt_valid_cutfilm->setTextLabel("OK"); bt_fermer_cutfilm->setTextLabel("Schließen"); bt_import_cutfilm->setTextLabel("Importieren"); bt_cut_film->setTextLabel("Teil des Films ausschneiden"); textLabel1_7->setText("Hinzufügen/ Ändern von Medien auf der DVD"); textLabel1_7_2->setText("Änderungen und Weiteres"); textLabel1_7_2_2->setText("Verschiedenes"); desinter->setText("Deinterlace Video. Geeignet für LCD."); extimgvideo_gimp->setTextLabel("Ändern mit The Gimp"); textLabel1_42->setText("Pinselgröße"); extimgvideo->setTextLabel("Bild aus Video extrahieren"); textLabel1_40->setText("Start"); textLabel1_40_2->setText("Ende"); textLabel1_41->setText("Untertitel"); btcloseedit_2->setTextLabel("Abbrechen"); btcloseedit->setTextLabel("OK"); bteditsstitre->setTextLabel("Erstellen/ Ändern"); toolButton129_2->setTextLabel("Abbrechen"); toolButton129->setTextLabel("OK"); textLabel1_39_3->setText("Höhe"); textLabel1_39_4->setText("Weite"); // textLabel3_6->setText("A/V sync bedeutet synchronisation zwischen Audio und Video. Ein Versatz im Ton wirkt sich zum Beispiel als Verzögerung oder Beschleunigung der Worte unabhängig von der Lippenbewegung von Schauspielern aus. Sie können dies ausgleichen durch Veränderung der Werte um unteren Bereich des A/V sync-Rahmens."); // bt_gest_sub_2->setTextLabel("Video verbessern"); btpreveffets->setTextLabel("Vorschau"); toolButton122->setTextLabel("Schliessen"); textLabel2_10_3_2_2->setText("Kontrast"); textLabel2_10_3_2->setText("Helligkeit"); textLabel2_10_3->setText("Breite"); textLabel2_10_4->setText("Höhe"); textLabel1_37->setText("Die Funktion Delogo ermöglicht es ein Logo wie zum Beispiel das eines Fernsehsenders auf dem Video zu entfernen. Achtung: Das Ergebnis ist nicht immer, was gewünscht wird. Um diese Funktion zu nutzen, geben sie die Koordinaten des Logos ein (x, y, Breite, Höhe)."); textLabel1_37_2->setText("Hier können sie die Helligkeit und den Kontrast des Videos ändern. Schieber nach links bewegen, um Werte zu verringern, nach rechts um sie zu erhöhen."); textLabel1_37_2_2->setText("Hier können sie das Video vertikal spiegeln. Somit ist dann die linke Seite rechts und die rechte Seite links."); textLabel1_37_2_2_2->setText("Entrauscht das Video. Setzen sie hier einen Hacken, falls das Bild stark verrauscht ist."); checkBox5->setText("Während der Vorschau betroffene Zone anzeigen."); // textLabel1_34->setText("Text hinzufügen"); toolButton117->setTextLabel("Hintergrundfarbe"); toolButton115_2->setTextLabel("Abbrechen"); toolButton115->setTextLabel("OK"); bt_modif_gimp_2->setTextLabel("Ãndern mit Gimp"); // textLabel1_33->setText("Schriftart für Untertitel"); textLabel2_9->setText("Größe der Schrift in Prozent zur Bildschirmhöhe"); // optsel1->setText("Markierte Maske"); optsel2->setText("Angeklickte Maske"); valideditmask->setTextLabel("Ok"); bt_maskedit->setTextLabel("Maske bearbeiten"); // bt_force->setTextLabel("Re-encodieren erzwingen"); bt_sup_chap_2->setTextLabel("Entferne alle Kapitel"); // textLabel1_32_2->setText("Parameter einstellen und anschließend zu importierendes Bild auswählen."); radioButton3_2->setText("Geändert"); radioButton3->setText("Original"); toolButton95->setTextLabel("Anlegen"); toolButton99->setTextLabel("Schließen"); // textLabel1_14->setText("vom Bild"); textLabel1_14_2->setText("zum Bild"); toolButton94->setTextLabel("Projekt speichern"); toolButton94_2->setTextLabel("Projekt öffnen"); bt_choix_couleur_titre_2->setTextLabel("Verändere Titelfarbe für dieses Bild"); // bt_gest_sub->setTextLabel("Untertitel Management"); table_message[36] = "Glückwunsch, ISO Datei enthalten : "; table_message[37] = "Fehler beim Anlegen der ISO-datei"; bt_grave_3->setTextLabel("ISO image anlegen"); textLabel1_30->setText("In diesem Schritt können Sie Ihrem Video ein Untertitel hinzufügen"); toolButton72_2_2->setTextLabel("Abbrechen"); toolButton72_3->setTextLabel("OK"); // textLabel1_28->setText("Output Qualität nur für encodierte videos. Höhere Qualität = weniger Video auf der DVD."); bt_param_encode->setTextLabel("Optionen"); textLabel1_27->setText("Reihenfolge für Menü-Buttons festlegen. Der erste Button wird standardmäßig ausgewählt sein"); bt_grave_2->setTextLabel("DVD brennen mit K3B"); // bt_modifier_titre->setTextLabel("Titel ändern"); toolButton72->setTextLabel("Anlegen"); toolButton72_2->setTextLabel("Löschen"); prefchap = "Kapitel"; table_message[0] = "Der Vorgang startet nicht:"; table_message[1] = "Höchstzahl der Videos beträgt 20 Stück."; table_message[2] = "Sie müssen mindestens ein Video oder eine Slideshow hinzufügen."; table_message[3] = "Wenn Sie zurückgehen, sind Ihre Ãnderungen verloren.\n\nSind Sie sicher?"; table_message[4] = "Sie müssen einen Hintergrund für Ihr Menü wählen."; table_message[5] = "Ihr Projekt Überschreitet die Kapazität der DVD. Es kann daher nicht gebrannt werden."; table_message[6] = "Sie müssen einen Titel für das Video angeben."; table_message[7] = "Sie müssen alle Titel zum Menü hinzufügen."; table_message[8] = "ManDVD kann die Datei nicht erstellen.\n\nStellen Sie sicher, dass Sie Schreibrechte für den Zielordner haben."; table_message[9] = "Sie müssen einen Zielordner auswählen."; table_message[10] = "Kodieren fehlgeschlagen. Nutzen Sie die Konsole für genaue Informationen."; table_message[11] = "Erstellen des Menüs fehlgeschlagen. Nutzen Sie die Konsole für genaue Informationen."; table_message[12] = "Ihre DVD wurde erfolgreich erstellt."; table_message[13] = "Ein interner Fehler ist in DVD Author aufgetreten. Nutzen Sie die Konsole für genaue Informationen"; table_message[14] = "Sie müssen einen Brenner auswählen."; table_message[15] = "Brennvorgang erfolgreich abgeschlossen."; table_message[16] = "Brennvorgang fehlgeschlagen.\n\nHaben Sie den richtigen Brenner ausgewählt?"; table_message[17] = "Sind Sie sicher, dass Sie beenden wollen?"; table_message[18] = "Möchten Sie die Erstellung der Slideshow abbrechen?"; table_message[19] = "Eine Slideshow enthält höchstens 100 Bilder."; table_message[20] = "Sie müssen mindestens ein Bild zur Slideshow hinzufügen."; table_message[21] = "Slideshow erfolgreich erstellt.\n\nMöchten Sie sie ansehen?"; table_message[22] = "Möchten Sie die Slideshow zu Ihrem DVD-Projekt hinzufügen?"; table_message[23] = "Erstellung der Slideshow fehlgeschlagen.\n\n Nutzen Sie die Konsole für genaue Informationen."; table_message[24] = "Möchten Sie ein Musikstück hinzufügen?"; table_message[25] = "Sie müssen ein Video hinzufügen."; table_message[26] = "Bildauszug aus dem Video fehlgeschlagen."; table_message[27] = "Es sind nur Videos mit 25-30 fps zulässig."; table_message[28] = "Die Startmarke muss vor der Endmarke gesetzt sein."; table_message[29] = "Die Endmarke muss nach der Startmarke gesetzt sein."; table_message[30] = "Medien hinzufügen"; table_message[31] = "Eigenschaften des Menüs"; table_message[32] = "Erstellen des Menüs"; table_message[33] = "Erstellen der DVD"; table_message[34] = "Erstellen einer Slideshow"; table_message[35] = "Erstellen eines animierten Hintergrundes"; table_message[38] = "

Das Intervall ist kleiner oder größer als die Filmdauer

Es ist daher ungültig."; table_message[39] = "Projekt Speicherung ok"; table_message[40] = "Kein Übergang"; table_message[41] = "Ausblenden"; table_message[42] = "Einblenden"; table_message[43] = "Mischüberblendung"; table_message[44] = "Überdecken von links"; table_message[45] = "Überdecken von rechts"; table_message[46] = "Überdecken von oben"; table_message[47] = "Überdecken von unten"; table_message[48] = "Zoom"; table_message[49] = "Doppelt"; table_message[50] = "Auf und ab"; table_message[51] = "Zufälliger Übergang"; table_message[52] = "Gesamtgröße der Datei: "; volume->setText(table_message[52] + "0 MB"); // table_message[53] = "Zurück zum Menü"; table_message[54] = "Video kodieren"; table_message[55] = "Kodieren gesamt"; table_message[56] = "Menü erzeugen"; table_message[57] = "DVD erzeugen"; table_message[58] = "Gesamtverlauf des Projektes"; // table_message[59] = "Einmal lesen"; table_message[60] = "Schleife Ton"; // textLabel1->setText(table_message[54]); textLabel1_4->setText(table_message[55]); etape_1->setText(table_message[56]); etape_2->setText(table_message[57]); etape_3->setText(table_message[58]); // idtpage->setText("Medien hinzufügen"); Appercupol->setTitle("Schriftartbeispiel"); bt_valid_info_image_2->setTextLabel("Ändern"); bt_valid_info_image_3->setTextLabel("Entfernen"); textLabel1_25->setText("Zeigedauer des Bildes (Sekunden)"); textLabel2_3->setText("Übergang bei jedem Foto"); textLabel1_25_2->setText("Übergangsdauer (Sekunden)"); bt_valid_param_defo->setTextLabel("Bestätigen"); bt_add_chap_2_2->setTextLabel("Kapitel Ändern"); bt_ajout_intro->setTextLabel("Eingangsvideo der DVD hinzufügen"); // textLabel1_26->setText("Kapitel umbenennen?"); btokrename->setTextLabel("Anlegen"); bt_rename_chap->setTextLabel("Kapitel umbenennen"); bt_annul_create_bt->setTextLabel("Löschen"); // textLabel3_2->setText("In diesem Schritt wählen Sie alle Videos und Slideshows aus, die Sie zu Ihrer DVD hinzufügen möchten. Zusätzlich haben Sie die Möglichkeit, in den einzelnen Schritten verschiedene Elemente hinzuzufügen."); textLabel1_20->setText("Gestalten Sie die Schaltflächen, entweder mit einem Text, bestehend aus dem Namen Ihres Films, oder einem Bild. In jedem Falle müssen Sie dem Video einen Titel geben."); textLabel2_6->setText("Auswahl des Bildes, das die Schaltfläche enthalten soll. Es sollte nicht zu groß sein. Die Umrandung gibt nicht das Seitenverhältnis oder die exakten Abmessungen wieder."); textLabel1_9->setText("Dateiinformationen"); textLabel4_2->setText("Videopfad:"); textLabel1_18->setText("Videoformat korrekt"); textLabel1_18_2->setText("Wird umgewandelt"); textLabel1_3->setText("Videotitel"); add_video->setTextLabel("Eine Videodatei zum Projekt hinzufügen"); bt_slideshow->setTextLabel("Slideshow erstellen"); bt_supprime_video->setTextLabel("Ausgewählte Videodatei entfernen"); bt_chapitres->setTextLabel("Kapitel definieren"); bt_add_cont->setTextLabel("OK"); bt_cancel_titre->setTextLabel("Abbrechen"); bt_et02_con->setTextLabel("Weiter"); textLabel3->setText("In diesem Schritt legen Sie die Merkmale des Menüs fest (Hintergrund, Schriftart und farben der Schaltflächen, ggf. Hintergrundmusik."); bt_et03_con->setTextLabel("Weiter"); bt_et03_con_2->setTextLabel("Zurück"); textLabel4->setText("Hintergrund auswählen"); bt_charg_wall->setTextLabel("Hintergrundbild"); bt_charg_wall_uni->setTextLabel("Einfarbiger Hintergrund"); bt_create_fond_anim->setTextLabel("Animierter Hintergrund"); textLabel3_3->setText("Farben, Schriftart im Menü"); bt_police->setTextLabel("Schriftart im Menü"); bt_color_1->setTextLabel("Schriftfarbe im Menü"); bt_color_2->setTextLabel("Farbe der daraufgezeigten Schriftart"); bt_color_3->setTextLabel("Farbe der ausgewählten Schriftart"); textLabel2_4->setText("Auswahl einer Hintergrundmusik des Menüs"); bt_fond_mus->setTextLabel("Musikstück importieren"); bt_retourner->setTextLabel("Horizontal spiegeln"); bt_retourner_2->setTextLabel("Vertikal spiegeln"); textLabel1_2->setText("Zum Schluss legen Sie fest, welche Aktion nach dem Ende des Videos ausgeführt werden soll. Tun Sie dies, bevor Sie auf Schaltflächenposition festlegen klicken. Die rote Umrandung zeigt die Zone der PAL-Sicherheit an. Ordnen Sie ihre Titel nicht außerhalb an."); bt_add_film_menu->setTextLabel("Video zum Menü hinzufügen"); bt_valid_bt->setTextLabel("Schaltflächenposition festsetzten"); textLabel1_10->setText("Nach Beendigung des Videos"); bt_et04_con->setTextLabel("Weiter"); bt_et04_con_2->setTextLabel("Zurück"); bt_et_05->setTextLabel("Zurück"); bt_quit->setTextLabel("Verlassen"); textLabel1_12->setText("

Hinweis

Achtung! Der Ton der Video-Datei wird nicht umgewandelt. Stellen Sie sicher, dass das verwendete Audio-Format MP2 oder AC3 ist, andernfalls ist es möglich, dass Ihr DVD-Player den Ton nicht ordnungsgemäß wiedergeben kann.

"); bt_gener_struct->setTextLabel("Struktur der DVD erstellen"); bt_lire_DVD->setTextLabel("Ergebnis ansehen"); bt_grave->setTextLabel("DVD brennen"); textLabel2->setText("

Zielordner der DVD:

Stellen Sie sicher, dass der Ordner leer ist und während des Vorgangs nicht darauf zugegriffen wird."); affconsole->setTextLabel("Konsole zeigen/verbergen"); bt_affcach_con_grave->setTextLabel("Konsole zeigen/verbergen"); bt_go_grave->setTextLabel("Brennen"); bt_annul_grave->setText("Schließen"); textLabel1_5->setText("ACHTUNG! Vor dem Brennvorgang bitte eine leere DVD in den gewählten Brenner einlegen."); textLabel1_11->setText("Brenner"); message_1->setText("

Brennvorgang läuft...Bitte haben Sie etwas Geduld

"); bt_gener_slideshow->setTextLabel("Erzeugen"); bt_fermer_slide->setTextLabel("Schließen"); bt_aff_con_diapo->setTextLabel("Konsole zeigen/verbergen"); bt_start_gener_slide->setTextLabel("Start"); bt_annul_gener_slide->setTextLabel("Abbrechen"); textLabel1_17->setText("Stellen Sie die Eigenschaften der Slideshow ein und klicken anschließend auf \?Starten\?, um die Erstellung zu starten. Warnung: Höhere Qualität erfordert mehr Zeit zum Erstellen und kann sich durch weitere Bilder weiter verlängern, abhängig von der Dauer und Anzahl der Übergänge."); bt_add_fondu_fin->setText("Das Ausblenden des letzten Fotos wählen"); qualite_render->setText("Hohe Qualität Rendern (langsam!)"); bt_add_img_slide_2_2->setTextLabel("Übergänge bearbeiten"); bt_add_img_slide_2->setTextLabel("Ordner hinzufügen"); bt_add_img_slide->setTextLabel("Bild hinzufügen"); bt_select_zik->setTextLabel("Musikstück hinzufügen"); bt_choix_police_titre->setTextLabel("Schriftart wählen"); bt_choix_couleur_titre->setTextLabel("Schriftfarbe"); textLabel2_5->setText("Bild auswählen"); textLabel1_15_2->setText("Übergangsdauer (Sekunden)"); textLabel1_15->setText("Bildanzeigedauer (Sekunden)"); textLabel1_16->setText("Titel (Wahlweise leer lassen)"); bt_add_chap->setTextLabel("Kapitel hinzufügen"); bt_sup_chap->setTextLabel("Kapitel entfernen"); bt_lire_pr_chap->setTextLabel("Video abspielen"); bt_fermer_chapitre->setTextLabel("Schließen"); textLabel1_8->setText("Anfang des Kapitels (Stunde:Minute:Sekunde)."); bt_new_chap_2->setTextLabel("Abbrechen"); bt_new_chap->setTextLabel("Bestätigen"); bt_import_video_manim->setTextLabel("Eingabevideo"); textLabel4_3->setText("Start (Sekunden)"); textLabel4_3_2->setText("Länge (Sekunden)"); bt_go_extract->setTextLabel("Extrahieren"); cdraddmask->setTitle("Eine Maske für den Hintergrund hinzufügen"); textLabel1_19->setText("Eine Maske ist ein Bild (Größe: 720x576 Pixel) mit transparenten Bereichen, das über das Video gelegt wird. Dies ermöglicht einige interessante Effekte für das Menü."); bt_console_menu_anim->setTextLabel("Konsole zeigen/verbergen"); textLabel5_2->setText("Importfortschritt"); bt_valid_menu_anim->setTextLabel("Bestätigen"); bt_fermer_menu_anim->setTextLabel("Schließen"); bt_modif_gimp->setTextLabel("Ändern mit Gimp"); joubouclmenu->setText("Loopwiedergabe des Menüs"); textLabel1_22->setText("Wiederhole das Video n-fach"); textLabel3_4->setText("Ausgabequalität"); textLabel2_7->setText("Gering"); textLabel2_7_2->setText("Mittel"); textLabel2_7_3->setText("Hoch"); chapauto->setCaption("Auto-Kapitel"); bt_add_chap_2->setTextLabel("Auto-Kapitel"); btchauto_1->setText("Abbrechen"); btchauto_2->setText("Bestätigen"); } else { lsttab->setColumnText(0,"Title"); chapauto->setTitle("Auto chapter"); // btprevdelay->setTextLabel("Preview"); textLabel1_50->setText("Start reading DVD with :"); bt_generer_2->setTextLabel("Cancel"); bt_generer->setTextLabel("Start"); bt_generer_2_2->setTextLabel("Console"); textLabel2_12->setText("Brake"); textLabel1_49->setText("From"); textLabel1_2_2->setText("To"); // textLabel1_31_2->setText("Tamaño"); textLabel1_13->setText("Consola"); bt_fermer_taborder->setTextLabel("Aceptar"); bt_tab_order->setTextLabel("Tab order"); textLabel1_35_2->setText("Tamaño"); toolButton117_2_2->setTextLabel("Use previous slide"); toolButton170->setTextLabel("Opciones"); toolButton117_2->setTextLabel("Imagen de fondo"); textLabel1_48->setText("Elija un color o una image de fondo."); textLabel1_6->setText("Aviso, no utilice esta función si tienes una versión de QT > 3.3.4. Tiene un error en la representación del menú. Trolltech corregirá esto en el lanzamiento siguiente 3.3.7 "); btgrpprio->setTitle("Prioridad de ejecución"); toolButton71->setTextLabel("Carpeta destino"); lst_video_1->setColumnText(0,"Título"); lst_video_1->setColumnText(1,"Pathname"); lst_video_1->setColumnText(2,"Codificación"); lst_video_1->setColumnText(3,"Capitulos"); lst_video_1->setColumnText(4,"Audio bitrate"); lst_video_1->setColumnText(5,"Formato"); lst_video_1->setColumnText(6,"Pathname botón"); lst_video_2->setColumnText(0,"Título"); lst_video_2->setColumnText(1,"Pathname"); lst_video_2->setColumnText(2,"Codificación"); lst_video_2->setColumnText(3,"Capítulos"); lst_video_2->setColumnText(4,"Audio bitrate"); lst_video_2->setColumnText(5,"Formato"); lst_video_2->setColumnText(6,"Pathname botón"); bt_musique_options->setTextLabel("Ajustar video y audio"); bt_save_1->setTextLabel("Guardar projecto"); toolButton168_2->setTextLabel("Abrir fichero del proyecto"); textLabel1_47->setText("Nuevo projecto"); textLabel1_47_2->setText("Abrir proyecto"); bt_renew_all->setTextLabel("Limpiar menú"); textLabel1_46->setText("Puede agregar efectos a su vídeo. Algunos por ejemplo son un remolino. Después de seleccionar los efectos con el botón de generar. Cuidado con este proceso ya que es largo y no se puede cancelar. Effects are applied only first and last selected frame."); toolButton165->setTextLabel("Generar"); bt_effets_anim->setTextLabel("Efectos"); buttonGroup63->setTitle("Brush"); textLabel2_9_2->setText("Posición vertical del subtitulo. Porcentaje de ancho de pantalla."); textLabel1_45->setText("Para cortar una secuencia seleccionar las posiciones comienzo y final y pulse el botón."); bt_valid_cutfilm->setTextLabel("Aceptar"); bt_fermer_cutfilm->setTextLabel("Cerrar"); bt_import_cutfilm->setTextLabel("Importar"); bt_cut_film->setTextLabel("Cortar una parte del film"); // textLabel1_7->setText("Añadir / modificar medios en DVD"); textLabel1_7_2->setText("Modificaciones y otros"); textLabel1_7_2_2->setText("Varios"); desinter->setText("Desentrelazar video. Mejor para LCD"); extimgvideo_gimp->setTextLabel("Editar con The Gimp"); textLabel1_42->setText("Tamaño de la brocha"); extimgvideo->setTextLabel("Extraer una imagen del video"); textLabel1_40->setText("Inicio"); textLabel1_40_2->setText("Fin"); textLabel1_41->setText("Subtítulo"); btcloseedit_2->setTextLabel("Cancelar"); btcloseedit->setTextLabel("Aceptar"); bteditsstitre->setTextLabel("Crear / Modificar"); toolButton129_2->setTextLabel("Cancelar"); toolButton129->setTextLabel("Aceptar"); textLabel1_39_3->setText("Alto"); textLabel1_39_4->setText("Ancho"); // textLabel3_6->setText("A/V sync representa la sincronización entre video y audio. Retrasar o avanzar el audio causará una cambio entre las palabras y los movimientos de los labios de los personajes. Usted puede regular esta variación cambiando el valor del marco A/V de una parte inferior."); // bt_gest_sub_2->setTextLabel("Efectos Video "); btpreveffets->setTextLabel("Previsualizar"); toolButton122->setTextLabel("Cerrar"); textLabel2_10_3_2_2->setText("Contraste"); textLabel2_10_3_2->setText("Luz"); textLabel2_10_3->setText("Alto"); textLabel2_10_4->setText("Ancho"); textLabel1_37->setText("La función delogole permite quitar un logo de su vídeo, por ejemplo el logo de la cadena de televisión. El resultado de esta función puede ser variable. Para utilizar esta función incorpore los coordenadas de la insignia (x, y, longitud, altura)."); textLabel1_37_2->setText("La función réglages le permiten ajustar la luminosidad y los contrastes de su vídeo. Para disminuir los valores mover debajo de reglas y hacia la línea para aumentarlos."); textLabel1_37_2_2->setText("La función mirroir le permite invertir la imagen según el eje de y, así la izquierda estará a la derecha y recíproco."); textLabel1_37_2_2_2->setText("La función denoisese reduce el ruido de la imagen para producir imágenes alisadas y para guardar imágenes realmente fieless."); checkBox5->setText("Para previsualizar un marco antes de guradarlo."); // textLabel1_34->setText("Añadir texto"); toolButton117->setTextLabel("Color de fondo"); toolButton115_2->setTextLabel("Cancelar"); toolButton115->setTextLabel("Aceptar"); bt_modif_gimp_2->setTextLabel("Modificar con The Gimp"); // textLabel1_33->setText("Elegir fuente para los subtítulos"); textLabel2_9->setText("Tamaño de la fuente en porcentaje del ancho de la pantalla."); // optsel1->setText("Máscara seleccionada"); optsel2->setText("Máscara clicada"); valideditmask->setTextLabel("Aceptar"); bt_maskedit->setTextLabel("Editar máscara"); // bt_sup_chap_2->setTextLabel("Eliminar todos los capítulos"); bt_force->setTextLabel("Forzar recodificación"); // textLabel1_32_2->setText("Cambie los parámetros y después escoja la versión de la imagen para importar (modificada o la original)."); radioButton3_2->setText("Modificada"); radioButton3->setText("Original"); toolButton95->setTextLabel("Aceptar"); toolButton99->setTextLabel("Cerrar"); // textLabel1_14->setText("De la imagen"); textLabel1_14_2->setText("A la imagen"); toolButton94->setTextLabel("Guaradar proyecto"); toolButton94_2->setTextLabel("Abrir proyecto"); bt_choix_couleur_titre_2->setTextLabel("Cambiar el color del título de la imagen"); // bt_gest_sub->setTextLabel("Editor de subtítulos"); table_message[36] = "Se ha creado un archivo ISO en : "; table_message[37] = "Error en la creación del archivo ISO."; bt_grave_3->setTextLabel("Crear una imagen ISO"); textLabel1_30->setText("En esta fase puede añadir subtítulos a su vídeo."); toolButton72_2_2->setTextLabel("Cancelar"); toolButton72_3->setTextLabel("Aceptar"); // textLabel1_28->setText("Calidad de salida, sólo para vídeos codificados. El vídeo de más calidad ocupa más espacio en el DVD."); bt_param_encode->setTextLabel("Opciones"); textLabel1_27->setText("Define el orden para los botones de su menú. El primero será el primer seleccionado de su menú."); // bt_modifier_titre->setTextLabel("Modificar título"); toolButton72->setTextLabel("Aceptar"); toolButton72_2->setTextLabel("Cancelar"); prefchap = "Capítulo"; table_message[0] = "El proceso no comienza : "; table_message[1] = "El máximo número de vídeos es 20."; table_message[2] = "Debe añadir un vídeo o un pase de diapositivas."; table_message[3] = "Si retrocede pierde todas las modificaciones.\n\n¿Está seguro ?"; table_message[4] = "Puede elegir un fondo para su menú."; table_message[5] = "Su proyecto es demasiado grande para la capacidad del DVD. No se puede grabar."; table_message[6] = "Elija un título para su video."; table_message[7] = "Elija un título para su menú."; table_message[8] = "No se puede crear el archivo.\n\n ¿Tiene permiso de escritura en la carpeta destino ?"; table_message[9] = "Elija una carpeta destino."; table_message[10] = "La codificación ha fallado. Consulte la consola para más detalles."; table_message[11] = "Error en la generación del menú. Consulte la consola para más detalles."; table_message[12] = "Éxito. Se ha creado su DVD."; table_message[13] = "Error interno de DVD Author. Consulte la consola para más detalles."; table_message[14] = "Elija el dispositivo grabador."; table_message[15] = "Grabación correcta"; table_message[16] = "La grabación ha fallado.\n\n¿Ha elegido un dispositivo grabador adecuado?"; table_message[17] = "Va a salir, ¿Está seguro?"; table_message[18] = "¿Quiere usted cancelar la creación de diapositivas?" ; table_message[19] = "El pase de diapositivas no debe sobrepasar 100 imagenes."; table_message[20] = "Debe añadir una imagen a su pase de diapositivas."; table_message[21] = "Ha creado un pase de diapositivas correctamente.\n ¿Desea visualizarlo?"; table_message[22] = "Debe insertar un pase de diapositiva en su proyecto de DVD?"; table_message[23] = "La creación de diapositivas ha fallado.\n\nConsulte al consola para más detalles."; table_message[24] = "Debe añadir una pista de sonido"; table_message[25] = "Debe elegir un vídeo."; table_message[26] = "Error extrayendo imágenes del vídeo."; table_message[27] = "Sólo se aceptan vídeos de 25-30 fps."; table_message[28] = "La marca de comienzo debe estar antes que la marca de final."; table_message[29] = "La marca de final debe estar después que la marca de comienzo."; table_message[30] = "Añadir medios"; table_message[31] = "Menu parámetros"; table_message[32] = "Creación de menú"; table_message[33] = "Creación de DVD"; table_message[34] = "Crear diapositivas"; table_message[35] = "Crear un fondo animado"; table_message[38] = "

¡Error ! El intevalo es igual o más pequeño que la duración de la pelicula

Esto no es válido."; table_message[39] = "Proyecto salvado"; table_message[40] = "No hay transición"; table_message[41] = "Fundido en salida"; table_message[42] = "Fundido en entrada"; table_message[43] = "Fundido de mezcla"; table_message[44] = "Recuadración izquierda"; table_message[45] = "Recouvrement derecha"; table_message[46] = "Recouvrement arriba"; table_message[47] = "Recouvrement abajo"; table_message[48] = "Zoom"; table_message[49] = "Doble"; table_message[50] = "Arriba y abajo"; table_message[51] = "Transición aleatoría"; table_message[52] = "Tamaño total del archivo : "; volume->setText(table_message[52] + "0 Mo"); // table_message[53] = "Volver al menú"; table_message[54] = "Codificando vídeo"; table_message[55] = "Codificación global de vídeo"; table_message[56] = "Generando archivo de menú"; table_message[57] = "Generando archivo DVD Author"; table_message[58] = "Finalización del proyecto "; // table_message[59] = "Escuchar una vez"; table_message[60] = "Escuchar en bucle"; // textLabel1->setText(table_message[54]); textLabel1_4->setText(table_message[55]); etape_1->setText(table_message[56]); etape_2->setText(table_message[57]); etape_3->setText(table_message[58]); // textLabel1_26->setText("Usted puede renombrar su capítulo si desea cambiar el nombre que aparece en su menú."); btokrename->setTextLabel("Aceptar"); bt_rename_chap->setTextLabel("Renombrar capitulo"); bt_annul_create_bt->setTextLabel("Cancelar"); // idtpage->setText("Añadir medios"); Appercupol->setTitle("Fuente de ejemplo"); bt_valid_info_image_2->setTextLabel("Cambio"); bt_valid_info_image_3->setTextLabel("Remove"); bt_add_img_slide_2_2->setTextLabel("Importar parametro"); textLabel1_25->setText("Duracion de la daipositiva (segundos)"); textLabel2_3->setText("Transición en cada diapositiva"); textLabel1_25_2->setText("Transición (segundos)"); bt_valid_param_defo->setTextLabel("Validar"); bt_add_chap_2_2->setTextLabel("Modificar un capitulo"); bt_ajout_intro->setTextLabel("Añadir un vídeo de introducion en el DVD"); // textLabel3_2->setText("Elija todos los vídeos y diapositivas para añadir en su DVD. Tiene también la posibilidad de definir los capítulos de cada vídeo. "); textLabel1_20->setText("Tiene dos posibilidades para su botón, un texto con el nombre de su película o una imagen que será utilizada como botón. En todos los casos usted debe escribir el titulo del vídeo."); textLabel2_6->setText("Elija una imagen para su botón. La imagen no debe ser demasiado grande. El contorno no refleja las dimensiones exactas del botón ni la relación anchura/altura. "); textLabel1_9->setText("Información del archivo"); textLabel4_2->setText("Camino (ruta) del Video :"); textLabel1_18->setText("Video no recodificado"); textLabel1_18_2->setText("Video recodificado"); textLabel1_3->setText("Titulo del vídeo"); add_video->setTextLabel("Añadir un vídeo a su proyecto"); bt_slideshow->setTextLabel("Crear un pase de diapositivas"); bt_supprime_video->setTextLabel("Eliminar vídeo seleccionado"); bt_chapitres->setTextLabel("Definir capitulos"); bt_add_cont->setTextLabel("OK"); bt_cancel_titre->setTextLabel("Cancelar"); bt_et02_con->setTextLabel("Siguiente"); textLabel3->setText("En esta fase debe elegir las opciones de su menú: el fondo de la pantalla, el tamaño del carácter empleado, colores usados para los dos estados de los botones (seleccionado y y sobreposición del cursor)."); bt_et03_con->setTextLabel("Siguiente"); bt_et03_con_2->setTextLabel("Anterior"); textLabel4->setText("Elija fondo"); bt_charg_wall->setTextLabel("Imagen de fondo"); bt_charg_wall_uni->setTextLabel("Un color del menú de fondo"); bt_create_fond_anim->setTextLabel("Fondo animado"); textLabel3_3->setText("Color de la fuente del menú "); bt_police->setTextLabel("Selección fuente de menú"); bt_color_1->setTextLabel("Color del texto del menú"); bt_color_2->setTextLabel("Color del texto seleccionado"); bt_color_3->setTextLabel("Color del texto pulsado"); textLabel2_4->setText("Selección del fondo musical del DVD"); bt_fond_mus->setTextLabel("Importar pista de audio"); bt_retourner->setTextLabel("Horizontal mirror"); bt_retourner_2->setTextLabel("Vertical mirror"); textLabel1_2->setText("Finalmente una vez que ha colocado adecuadamente los botones haga click en el botón: Aceptar la posición del boton. La zona roja indica la zona de la seguridad en sistemas PAL. No ponga sus títulos fuera. "); bt_add_film_menu->setTextLabel("Añadir vídeo al menú"); bt_valid_bt->setTextLabel("Validar la posición del botón"); textLabel1_10->setText("Después de la lectura de vídeo."); bt_et04_con->setTextLabel("Siguiente"); bt_et04_con_2->setTextLabel("Anterior"); bt_et_05->setTextLabel("Anterior"); bt_quit->setTextLabel("Salir"); textLabel1_12->setText("

Mensaje de informacion

Actualmente el sonido de los archivos MPEG no están transcodificos. Asegúrese de que el formato usado sea MP2 o AC3, si no su lector de DVD es probable no lea correctamente el sonido de sus películas. Para otro formato la transcodificación se hará correctamente.

"); bt_gener_struct->setTextLabel("Generar la estructura de DVD"); bt_lire_DVD->setTextLabel("Visualizar el resultado"); bt_grave->setTextLabel("Grabar DVD"); textLabel2->setText("

Carpeta destino del DVD:"); affconsole->setTextLabel("Mostar / Ocultar consola"); bt_affcach_con_grave->setTextLabel("Mostar / Ocultar consola"); bt_go_grave->setTextLabel("Grabar"); bt_annul_grave->setText("Cerrar"); textLabel1_5->setText("ATENCION Antes de lanzar el propceso de grabación inserte un DVD virgen en su grabador de DVD. En caso contrario. se lanza un mensaje y no se graba ningún dato."); textLabel1_11->setText("Dispositivo de grabación"); message_1->setText("

Proceso de grabación ... Sea paciente

"); bt_gener_slideshow->setTextLabel("Generar"); bt_fermer_slide->setText("Cerrar"); bt_aff_con_diapo->setTextLabel("Mostrar / ocultar consola"); bt_start_gener_slide->setTextLabel("Comenzar"); bt_annul_gener_slide->setTextLabel("Cerrar"); textLabel1_17->setText("Seleccione las opciones del pase de diapositivas, después haga click en comenzar para iniciar el cálculo. Una alta calidad requiere mucho más tiempo. El comienzo y el final pueden ser más largo que el número y de la duración de las transiciones."); bt_add_fondu_fin->setText("Agrege un fundido en la última imagen"); qualite_render->setText("Alta calidad render (lento)"); bt_add_img_slide->setTextLabel("Añadir imagen"); bt_add_img_slide_2->setTextLabel("Importar carpeta"); bt_select_zik->setTextLabel("Añadir pista de audio"); bt_choix_police_titre->setTextLabel("Seleccionar fuente"); bt_choix_couleur_titre->setTextLabel("Color de fuente"); textLabel2_5->setText("Seleccionar imagen"); textLabel1_15_2->setText("Duración de la transición (segundos)"); textLabel1_15->setText("Duración de la imagen (segundos)"); textLabel1_16->setText("Titulo (vacio para dejarlo en blanco)"); bt_add_chap->setTextLabel("Añadir capitulo"); bt_sup_chap->setTextLabel("Eliminar capitulo"); bt_lire_pr_chap->setTextLabel("Mostrar vídeo"); bt_fermer_chapitre->setTextLabel("Cerrar"); textLabel1_8->setText("Introducir (hora : minuto : segundo) del capitulo."); bt_new_chap_2->setTextLabel("Cancelar"); bt_new_chap->setTextLabel("Aceptar"); textLabel4_3->setText("Comienzo (segundos)"); textLabel4_3_2->setText("Longitud (segundos)"); bt_go_extract->setTextLabel("Extraer"); cdraddmask->setTitle("Añadir una mascara al fondo "); textLabel1_19->setText("Una máscara es una imagen (pixel del tamaño 720x576) que abarca zonas transparentes y que se sobrepone con el vídeo básico. Permite algunos efectos interesantes para su menú. "); bt_console_menu_anim->setTextLabel("Mostrar / Ocultar consola"); textLabel5_2->setText("Progerso de la importación"); bt_valid_menu_anim->setTextLabel("Aceptar"); bt_fermer_menu_anim->setTextLabel("Cerrar"); bt_modif_gimp->setTextLabel("Modificar con The Gimp"); joubouclmenu->setText("Menú con animación en bucle"); textLabel1_22->setText("Repetir el vídeo n veces"); textLabel3_4->setText("Calidad de salida"); textLabel2_7->setText("Bajo"); textLabel2_7_2->setText("Medio"); textLabel2_7_3->setText("Alto"); chapauto->setCaption("Auto capítulos"); bt_add_chap_2->setTextLabel("Capítulos automáticos"); btchauto_1->setText("Cancelar"); btchauto_2->setText("Aceptar"); } } } } } // *** On prépare les éléments garphique *** parametrage->hide(); Etape_02->setGeometry( 0, 110 , 1000, 700); bt_force->setDisabled( true ); message_1->hide(); lineEdit1->hide(); progress_fleche->hide(); progress_fleche->setGeometry(32,24,22,22); // zs_1->setGeometry(43,43,1,536); zs_2->setGeometry(723,43,1,537); zs_3->setGeometry(43,43,680,1); zs_4->setGeometry(43,579,680,1); zs_1->raise(); zs_2->raise(); zs_3->raise(); zs_4->raise(); // prevmaskfilm->hide(); prevmaskfilm_2->hide(); pixcdrpho->hide(); buttonGroup16->hide(); tmpsliderpriovide->hide(); tmpsliderprioplein->hide(); fen_slideshow->hide(); regle_1->hide(); regle_2->hide(); bt_fantome->hide(); bt_fantome_2->hide(); bt_fantome_3->hide(); panneau_titre->hide(); workinprogress->hide(); my_pixmap_002->hide(); my_pixmap_003->hide(); textEdit2->hide(); pathnamevideo->hide(); null_transition->hide(); theformat->hide(); my_stamp_1->hide(); my_stamp_2->hide(); my_stamp_3->hide(); previcon_1->hide(); apercu_fond->raise(); textLabel2_2->raise(); cache_pixmap->hide(); fenparamdef->hide(); idtpage->raise(); myconsole->hide(); bt_modifier_titre->setDisabled( true ); bt_gest_sub_2->setDisabled(true); bt_gest_sub->setDisabled( true ); slider_x->setDisabled( true ); slider_y->setDisabled( true ); box_det_photo->setDisabled(true); boite_effets->setDisabled( true ); bt_cut_film->setDisabled( true ); bt_valid_bt->setDisabled( true ); bt_supprime_video->setDisabled( true ); bt_chapitres->setDisabled( true ); bt_sup_chap->setDisabled( true ); group_add_chap->hide(); loopsound->setDisabled( true ); panel_menu_anim->setDisabled( true ); bt_valid_menu_anim->setDisabled( true ); cdraddmask->setDisabled( true ); bt_annul_create_bt->setDisabled( true ); bt_effets_anim->setDisabled(true); bt_modif_gimp->setDisabled(true); // clqconstruct->setGeometry( 1001, 0 , 400, 400); clqconstruct->pixmap()->fill( couleur_3 ); listdessub->setColumnText( 0, ""); listdessub->setColumnWidth( 0, 80); listdessub->addColumn("",80); listdessub->addColumn("",350); lstcut->setColumnText( 0, ""); lstcut->setColumnWidth( 0, 100); lstcut->addColumn("",100); lstempl->setColumnText( 0, "Titre"); lstempl->setColumnWidth( 0, 241); lstempl->addColumn("x",0); lstempl->addColumn("y",0); lstempl->addColumn("w",0); lstempl->addColumn("h",0); lst_chap->clear(); lst_chap->setColumnText( 0, prefchap); lst_chap->setColumnWidth( 0, 340); // *** Initialisation des variables *** taille_DVD = 0; sliderpriorite->setValue(10); rc_001 = 0; max_boutons = 0; taille_police = 10; nombre_video = 0; path_fond = ""; path_fond_musical = ""; dossier_travail = "~"; dossier_travail_2 = "~"; dossier_travail_3 = "~"; wchapitres = ""; pathintro = ""; wdebut = 0; wfin = 0; QColor mycoul_1(0,0,0); QColor mycoul_2(0,255,0); QColor mycoul_3(255,0,0); couleur_1 = mycoul_1; couleur_2 = mycoul_2; couleur_3 = mycoul_3; // frame_couleur_1->setBackgroundColor(couleur_1); frame_couleur_2->setBackgroundColor(couleur_2); frame_couleur_3->setBackgroundColor(couleur_3); // videostandard->insertItem("PAL"); videostandard->insertItem("NTSC"); videostandard->setCurrentItem(0); // videosizedef->insertItem("720x576"); videosizedef->insertItem("704x480"); videosizedef->insertItem("352x576"); videosizedef->insertItem("352x288"); videosizedef->setCurrentItem(0); // comboencoding->insertItem("latin1"); comboencoding->insertItem("UTF"); comboencoding->insertItem("cp1251"); comboencoding->insertItem("ISO-8859-2"); comboencoding->insertItem("ISO-8859-9"); comboencoding->insertItem("ISO-8859-15"); comboencoding->insertItem("KOI8-R"); comboencoding->insertItem("Windows-1250"); comboencoding->setCurrentItem(0); // after_lire->insertItem(table_message[53],-1); // lst_effets->insertItem(table_message[40],-1); lst_effets->insertItem(table_message[41],-1); lst_effets->insertItem(table_message[42],-1); lst_effets->insertItem(table_message[43],-1); lst_effets->insertItem(table_message[44],-1); lst_effets->insertItem(table_message[45],-1); lst_effets->insertItem(table_message[46],-1); lst_effets->insertItem(table_message[47],-1); lst_effets->insertItem(table_message[48],-1); lst_effets->insertItem(table_message[49],-1); lst_effets->insertItem(table_message[50],-1); lst_effets->insertItem("Fire",-1); lst_effets->setCurrentItem(0); // mylsttrans->clear(); (void) new QIconViewItem( mylsttrans, table_message[40], *null_transition->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[41], *trans_1->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[42], *trans_2->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[43], *trans_3->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[44], *trans_4->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[45], *trans_5->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[46], *trans_6->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[47], *trans_7->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[48], *trans_8->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[49], *trans_9->pixmap() ); (void) new QIconViewItem( mylsttrans, table_message[50], *trans_10->pixmap() ); (void) new QIconViewItem( mylsttrans, "Fire", *trans_11->pixmap() ); mylsteffets->clear(); (void) new QIconViewItem( mylsteffets, "blur", *eff_1->pixmap() ); (void) new QIconViewItem( mylsteffets, "contrast", *eff_2->pixmap() ); (void) new QIconViewItem( mylsteffets, "sepia-tone", *eff_3->pixmap() ); (void) new QIconViewItem( mylsteffets, "paint", *eff_4->pixmap() ); (void) new QIconViewItem( mylsteffets, "monochrome", *eff_5->pixmap() ); (void) new QIconViewItem( mylsteffets, "negate", *eff_6->pixmap() ); (void) new QIconViewItem( mylsteffets, "swirl", *eff_7->pixmap() ); (void) new QIconViewItem( mylsteffets, "edge", *eff_8->pixmap() ); (void) new QIconViewItem( mylsteffets, "hmirror", *eff_9->pixmap() ); (void) new QIconViewItem( mylsteffets, "vmirror", *eff_10->pixmap() ); (void) new QIconViewItem( mylsteffets, "cadre", *eff_11->pixmap() ); (void) new QIconViewItem( mylsteffets, "coupe", *eff_12->pixmap() ); (void) new QIconViewItem( mylsteffets, "wave", *eff_13->pixmap() ); (void) new QIconViewItem( mylsteffets, "cycle", *eff_14->pixmap() ); (void) new QIconViewItem( mylsteffets, "mask", *eff_15->pixmap() ); // lsttransdef->insertItem(table_message[40],-1); lsttransdef->insertItem(table_message[41],-1); lsttransdef->insertItem(table_message[42],-1); lsttransdef->insertItem(table_message[43],-1); lsttransdef->insertItem(table_message[44],-1); lsttransdef->insertItem(table_message[45],-1); lsttransdef->insertItem(table_message[46],-1); lsttransdef->insertItem(table_message[47],-1); lsttransdef->insertItem(table_message[48],-1); lsttransdef->insertItem(table_message[49],-1); lsttransdef->insertItem(table_message[50],-1); lsttransdef->insertItem(table_message[51],-1); lsttransdef->insertItem("Fire",-1); lsttransdef->setCurrentItem(0); // loopsound->insertItem(table_message[59],-1); loopsound->insertItem(table_message[60],-1); loopsound->setCurrentItem(0); // vframe->show(); vframe->raise(); // editpix->installEventFilter(this); editmask->hide(); // wlanguage = ""; Etape_02->setDisabled(true); newproj->show(); newproj->raise(); } void mainfrm::calculsize(int action) { // *** Calcul de la taille du DVD *** QFile myfic(path_video); unsigned long tmp_int_001; tmp_001 = QString::number( (unsigned long)myfic.size()); tmp_int_001 = (unsigned long)myfic.size(); if (action == 0) { taille_DVD = taille_DVD + ((tmp_int_001 / 1024) / 1024); } else { taille_DVD = taille_DVD - ((tmp_int_001 / 1024) / 1024); } volume->setText( table_message[52] + "" + QString::number(taille_DVD) + " Mo"); bt_et02_con->setEnabled( true ); if (taille_DVD > 4300) { QMessageBox::warning(this, "ManDVD", table_message[5]); } // *** Compteur graphique *** QImage tmpimg_1 = prg_001->pixmap()->convertToImage(); QImage tmpimg_2 = prg_002->pixmap()->convertToImage(); QImage tmpimg_3 = prg_003->pixmap()->convertToImage(); bitBlt ( &tmpimg_1, 0, 0, &tmpimg_2, 0, 0, -1, -1 ); if (taille_DVD > 0) { int wposition; wposition = 128 - ((taille_DVD * 128) / 4300); if (wposition < 0) { wposition = 0; } bitBlt ( &tmpimg_1, 0, wposition, &tmpimg_3, 0, wposition, -1, -1 ); } prg_001->setPixmap(tmpimg_1); } void mainfrm::add_video_clicked() { // ************************************* // *** Ajout d'une vidéo à la liste des fichiers *** // ************************************* if (nombre_video < 19) { QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "Vidéos (*.mpg *.MPG *.mpeg *.MPEG *.VOB *.vob *.avi *.AVI)", this, "Ouvrir un fichier", "Sélectionnez le fichier vidéo à importer" ); if ( myfic.isNull() ) { } else { int i = myfic.findRev( '/' ); if ( i != 1 ) { dossier_travail_2 = myfic.mid(0,i); } else { dossier_travail_2 = myfic; } video_size_ok = 0; video_codec_ok = 0; audio_freq_ok = 0; multiangle = 0; audio_bitrate = 0; yaaudio = 0; type_video = "0"; rc_004 = 0; video_format = "4/3"; pathnamevideo->hide(); theformat->hide(); panneau_bouton_1->setDisabled( true ); lineEdit8->setText(""); appimgbt->hide(); panneau_titre->show(); panneau_titre->raise(); tmp_001 = myfic; int cpt_001 = tmp_001.length(); while (tmp_001.mid(cpt_001,1) != "/" && cpt_001 != 0) { cpt_001 = cpt_001 - 1; } if (cpt_001 > 0) { titre_element->setText(tmp_001.mid(cpt_001 + 1,tmp_001.length() - (cpt_001 + 5))); } else { titre_element->setText(""); } path_video = myfic; bt_et02_con->setDisabled( true ); a_reencoder = "0"; // *** Récup info vidéo *** proc_001 = new QProcess( this ); proc_001->addArgument( "tcprobe"); proc_001->addArgument( "-i"); proc_001->addArgument( myfic ); connect( proc_001, SIGNAL(readyReadStdout()), this, SLOT(test_type_video()) ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_import()) ); tmp_001 = ""; if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "transcode"); } } } else { QMessageBox::warning(this, "ManDVD", table_message[1]); } } void mainfrm::bt_charg_wall_clicked() { // *************************** // *** Sélection du fond d'écran *** // *************************** QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "Images (*.jpg *.JPG *.jpeg *.JPEG *.png *.PNG)", this, "Ouvrir un fichier", "Sélectionnez le fichier image à importer" ); if ( myfic.isNull() ) { } else { int i = myfic.findRev( '/' ); if ( i != 1 ) { dossier_travail_2 = myfic.mid(0,i); } else { dossier_travail_2 = myfic; } QImage myimg ( myfic, 0); QImage myimg_2 = myimg.scale (720, 576, QImage::ScaleMin); QPixmap mypix ( myimg_2 ); QPixmap wl_pix1(720,576); wl_pix1.fill(Qt::black); QImage wl_img1 = wl_pix1.convertToImage(); ::bitBlt( &wl_pix1, (720 - mypix.width()) / 2, (576 - mypix.height()) / 2, &mypix, 0, 0, -1, -1, Qt::CopyROP, false ); QImage wl_img2 = wl_pix1.convertToImage(); apercu_fond->setPixmap ( wl_pix1 ); path_fond = myfic; save_fond = wl_img2.copy(0,0,720,576,0); // *** Mise en place des fonds d'écran pour le menu *** my_pixmap_001->setPixmap ( wl_pix1 ); boite_effets->setEnabled( true ); } } void mainfrm::slider_x_valueChanged( int ) { // ********************************** // *** Déplacement horizontal du bouton *** // ********************************** clqconstruct->setGeometry( 1001, 0,longueur,hauteur ); clqconstruct->setPixmap(save_fond_2.copy(slider_x->value() , slider_y->value(),longueur,hauteur,0)); // *** Dessin du texte sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( clqconstruct->pixmap() ); if ( wpathbtmenu == "") { mypainter.setPen ( couleur_1 ); mypainter.setFont ( myfont ); mypainter.drawText( 0, hauteur / 2 ,nomfilm ); } else { mypainter.drawImage(0,0, wsavbtmenu.scale(longueur,hauteur,QImage::ScaleFree),0,0,-1,-1); } mypainter.end(); // *** On déplace les règles *** regle_1->setGeometry( 22 + slider_x->value(), 23, 1,576); // if (23+slider_x->value() > 400) { bt_dyna_modif->setGeometry(33,40,240,250); } else { if (23+slider_x->value() < 300) { bt_dyna_modif->setGeometry(490,40,240,250); } } bt_fantome->setGeometry( 23+slider_x->value(), 23+slider_y->value(),longueur,hauteur ); ::bitBlt( bt_fantome, 0, 0, clqconstruct->pixmap(), 0, 0, longueur, hauteur, Qt::CopyROP, false ); } void mainfrm::slider_y_valueChanged( int ) { // ******************************** // *** Déplacement vertical du bouton *** // ******************************** clqconstruct->setGeometry( 1001, 0,longueur,hauteur ); clqconstruct->setPixmap(save_fond_2.copy(slider_x->value() , slider_y->value(),longueur,hauteur,0)); // *** Dessin du texte sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( clqconstruct->pixmap() ); if ( wpathbtmenu == "") { mypainter.setPen ( couleur_1 ); mypainter.setFont ( myfont ); regle_2->setGeometry( 23 , 23 + slider_y->value() + taille_police + 2, 720,1); mypainter.drawText( 0, hauteur / 2 ,nomfilm ); // *** On déplace les règles *** } else { mypainter.drawImage(0,0, wsavbtmenu.scale(longueur,hauteur,QImage::ScaleFree),0,0,-1,-1); // *** On déplace les règles *** regle_2->setGeometry( 23 , 23 + slider_y->value() + hauteur + 2, 720,1); } mypainter.end(); bt_fantome->setGeometry( 23+slider_x->value(), 23+slider_y->value(),longueur,hauteur ); ::bitBlt( bt_fantome, 0, 0, clqconstruct->pixmap(), 0, 0, longueur, hauteur, Qt::CopyROP, false ); } void mainfrm::bt_valid_bt_clicked() { // ******************************************* // *** On dessine les boutons dans les différents états *** // ******************************************* // *** On cache le bouton fantôme *** bt_fantome->hide(); bt_renew_all->setEnabled(true); bt_dyna_modif->hide(); // *** Blocage des sliders *** slider_x->setDisabled( true ); slider_y->setDisabled( true ); bt_valid_bt->setDisabled( true ); bt_et04_con_2->setDisabled( true ); after_lire->setDisabled( true ); bt_annul_create_bt->setDisabled( true ); // *** Chargement du bouton en mémoire *** QImage tmpimg = my_pixmap_001->pixmap()->convertToImage (); QImage myimg = clqconstruct->pixmap()->convertToImage (); // ********* IMAGE STANDARD ********* // *** On dessine le bouton sur l'image temporaire *** bitBlt( &tmpimg, slider_x->value(), slider_y->value(), &myimg, 0, 0, longueur, hauteur); // *** On bascule l'image créée dans le buffer affiché ***** QPixmap mypix_001 ( tmpimg ); my_pixmap_001->setPixmap ( mypix_001 ); if ( wpathbtmenu == "") { // ********* IMAGE SURVOLEE ********* tmpimg = my_pixmap_002->pixmap()->convertToImage (); myimg = bt_fantome_2->pixmap()->convertToImage (); // *** On dessine le bouton sur l'image temporaire *** bitBlt( &tmpimg, slider_x->value(), slider_y->value() + (hauteur / 2), &myimg, 0, 0, longueur, 2); // *** On bascule l'image créée dans le buffer affiché ***** QPixmap mypix_002 ( tmpimg ); my_pixmap_002->setPixmap ( mypix_002 ); // ********* IMAGE CLIQUEE ********* tmpimg = my_pixmap_003->pixmap()->convertToImage (); myimg = bt_fantome_3->pixmap()->convertToImage (); // *** On dessine le bouton sur l'image temporaire *** bitBlt( &tmpimg, slider_x->value(), slider_y->value() + (hauteur / 2), &myimg, 0, 0, longueur, 2); // *** On bascule l'image créée dans le buffer affiché ***** QPixmap mypix_003 ( tmpimg ); my_pixmap_003->setPixmap ( mypix_003 ); } else { // ********* IMAGE SURVOLEE ********* tmpimg = my_pixmap_002->pixmap()->convertToImage (); myimg = bt_fantome_2->pixmap()->convertToImage (); // *** On dessine le bouton sur l'image temporaire *** bitBlt( &tmpimg, slider_x->value(), slider_y->value() + (hauteur - 2), &myimg, 0, 0, longueur, 2); // *** On bascule l'image créée dans le buffer affiché ***** QPixmap mypix_002 ( tmpimg ); my_pixmap_002->setPixmap ( mypix_002 ); // ********* IMAGE CLIQUEE ********* tmpimg = my_pixmap_003->pixmap()->convertToImage (); myimg = bt_fantome_3->pixmap()->convertToImage (); // *** On dessine le bouton sur l'image temporaire *** bitBlt( &tmpimg, slider_x->value(), slider_y->value() + (hauteur - 2), &myimg, 0, 0, longueur, 2); // *** On bascule l'image créée dans le buffer affiché ***** QPixmap mypix_003 ( tmpimg ); my_pixmap_003->setPixmap ( mypix_003 ); } // *** Sauvegarde des informations du bouton *** if (slider_x->value() > 0) { table_boutons_pos[max_boutons][0] = slider_x->value(); } else { table_boutons_pos[max_boutons][0] = 0; } if (slider_y->value() > 0) { table_boutons_pos[max_boutons][1] = slider_y->value(); } else { table_boutons_pos[max_boutons][1] = 0; } if (longueur < 720) { table_boutons_pos[max_boutons][2] = longueur; } else { table_boutons_pos[max_boutons][2] = 720; } if (hauteur < 576) { table_boutons_pos[max_boutons][3] = hauteur; } else { table_boutons_pos[max_boutons][3] = 576; } table_boutons_pos[max_boutons][4] = audio_bitrate; table_boutons_lien[max_boutons][0] = nomfilm; table_boutons_lien[max_boutons][1] = path_video; table_boutons_lien[max_boutons][2] = a_reencoder; table_boutons_lien[max_boutons][3] = wchapitres; table_boutons_lien[max_boutons][4] = after_lire->currentText(); if ( yasubtitle == 1 ) { table_boutons_lien[max_boutons][5] = video_format + "$$$" + path_subtitle; } else { table_boutons_lien[max_boutons][5] = video_format; } table_boutons_lien[max_boutons][6] = type_video; table_boutons_lien[max_boutons][7] = wpathbtmenu; // *** Suppression de la liste de la listview *** QListViewItem *i = lst_video_2->selectedItem(); if ( i != 0 ) { delete i; } // *** Déblocage de la liste et du bouton *** lst_video_2->setEnabled( true ); bt_et04_con->setEnabled( true ); bt_et04_con_2->setEnabled( true ); bt_rename_chap->setDisabled( true ); if ( lst_video_2->childCount() == 0 ) { bt_tab_order->setEnabled( true ); bt_maskedit->setEnabled( true ); bt_add_film_menu->setDisabled(true); } else { bt_add_film_menu->setEnabled( true ); } max_boutons = max_boutons + 1; regle_1->hide(); regle_2->hide(); } void mainfrm::bt_et02_con_clicked() { // *** Validation pour passage à l'étape 3 *** int nbremini = 0; if ( bt_ajout_intro->isEnabled() == false ) { nbremini = 1; } if (nombre_video > nbremini) { Etape_02->hide(); idtpage->setText(table_message[31]); Etape_03->setGeometry( 0, 110 , 1000, 700); if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } vframe->hide(); fautyrencoder = 1; Etape_03->show(); } else { QMessageBox::warning(this, "ManDVD", table_message[2]); } } void mainfrm::bt_et04_con_2_clicked() { // *** Validation pour retour à l'étape 3 *** if ( max_boutons == 0) { Etape_04->hide(); idtpage->setText(table_message[31]); Etape_03->setGeometry( 0, 110 , 1000, 700); Etape_03->show(); } else { if ( QMessageBox::question(this,"ManDVD", table_message[3], "Yes", "No", QString::null, 0, 1 ) == 0 ) { max_boutons = 0; QPixmap mypix ( save_fond ); apercu_fond->setPixmap ( mypix ); my_pixmap_001->setPixmap ( mypix ); Etape_04->hide(); idtpage->setText(table_message[31]); Etape_03->setGeometry( 0, 110 , 1000, 700); Etape_03->show(); } } } void mainfrm::bt_et03_con_2_clicked() { // *********************************** // *** Validation pour passage à l'étape 2 *** // *********************************** Etape_03->hide(); idtpage->setText(table_message[30]); Etape_02->setGeometry( 0, 110 , 1000, 700); vframe->setGeometry(31,125,115,71); vframe->show(); vframe->raise(); Etape_02->show(); } void mainfrm::bt_et03_con_clicked() { // *********************************** // *** Validation pour passage à l'étape 4 *** // *********************************** if (path_fond != "") { QString tmp_007; Etape_03->hide(); idtpage->setText(table_message[32]); bt_dyna_modif->hide(); // *** Chargement de la liste des vidéos *** lst_video_2->clear(); int cpt_001 = 0; int cpt_002; int cpt_003; after_lire->clear(); after_lire->insertItem(table_message[53],-1); QListViewItem *j; QListViewItem *lvi = lst_video_1->firstChild(); while (cpt_001 < nombre_video && cpt_001 < 39) { if ( lvi->text(2) != "9" ) { tmp_001 = lvi->text(0); tmp_002 = lvi->text(1); tmp_003 = lvi->text(2); tmp_004 = lvi->text(3); tmp_005 = lvi->text(4); tmp_006 = lvi->text(5); tmp_007 = lvi->text(6); tmp_008 = lvi->text(7); after_lire->insertItem(tmp_001,-1); j = new QListViewItem( lst_video_2, tmp_001, tmp_002, tmp_003, tmp_004, tmp_005, tmp_006, tmp_007, tmp_008 ); if (tmp_004.length() > 0) { cpt_002 = 0; cpt_003 = 1; while (tmp_004.mid(cpt_002,8) != " ") { new QListViewItem(j,prefchap + " " + QString::number(cpt_003),tmp_001 + "|||" + QString::number(cpt_003 + 1), "0", "$$CHAP$$", tmp_005, tmp_006, tmp_007, ""); cpt_002 = cpt_002 + 9; cpt_003 = cpt_003 + 1; } } } lvi = lvi->nextSibling(); cpt_001 = cpt_001 + 1; } Etape_04->setGeometry( 0, 110 , 1000, 700); my_pixmap_002->setPixmap( *emptymask->pixmap() ); my_pixmap_003->setPixmap( *emptymask->pixmap() ); bt_rename_chap->setDisabled( true ); bt_tab_order->setDisabled( true ); bt_maskedit->setDisabled( true ); bt_add_film_menu->setEnabled( true ); Etape_04->show(); } else { QMessageBox::warning(this, "ManDVD", table_message[4]); } } void mainfrm::bt_add_film_menu_clicked() { // ************************** // *** Ajout du film sur le menu *** // ************************** QListViewItem *i = lst_video_2->selectedItem(); if ( i != 0 ) { // *** Déblocage des sliders *** slider_x->setEnabled( true ); slider_y->setEnabled( true ); slider_x->setValue(1); slider_y->setValue(1); bt_renew_all->setDisabled(true); bt_valid_bt->setEnabled( true ); bt_annul_create_bt->setEnabled( true ); if ( i->text(3) != "$$CHAP$$") { after_lire->setEnabled( true ); after_lire->setCurrentItem(0); } // *** Sauvegarde du titre du film *** tmp4sub = i->text(4); rc_001 = tmp4sub.find ( "$$$" , 0); if (rc_001 != -1) { tmp_002 = tmp4sub.mid(rc_001 + 3 , tmp4sub.length() - (rc_001 + 3)); path_subtitle = tmp_002; yasubtitle = 1; } else { path_subtitle = ""; yasubtitle = 0; } if (rc_001 == -1) { rc_001 = tmp4sub.length(); } tmp_002 = tmp4sub.mid(0,rc_001); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { if ( rc_001 == 0 ) { audio_bitrate = 224; } else { audio_bitrate = rc_001; } } // nomfilm = i->text(0); path_video = i->text(1); a_reencoder = i->text(2); wchapitres = i->text(3); video_format = i->text(5); type_video = i->text(6); wpathbtmenu = i->text(7); // if ( wpathbtmenu == "") { QFontMetrics fm(myfont); longueur = fm.width("\"" + nomfilm + "\"",-1); hauteur = (taille_police + 2)*2; save_fond_2 = my_pixmap_001->pixmap()->convertToImage(); bt_fantome->setPixmap(save_fond_2.copy(slider_x->value(), slider_y->value(),longueur,hauteur,0)); bt_fantome->setGeometry( 23 + slider_x->value(), 23 + slider_y->value() , longueur, hauteur); bt_fantome->show(); bt_fantome->raise(); myfont.setFixedPitch ( true ); // *** Dessin du texte sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( bt_fantome->pixmap() ); mypainter.setPen ( couleur_1 ); mypainter.setFont ( myfont ); mypainter.drawText( 0, hauteur / 2,nomfilm ); mypainter.end(); bt_fantome_2->pixmap()->fill( couleur_2 ); bt_fantome_3->pixmap()->fill( couleur_3 ); // *** Réglage des barres de défilement *** slider_x->setMaxValue( 720 - longueur ); slider_y->setMaxValue( 576 - hauteur ); } else { // *** Bouton image sur le menu *** wsavbtmenu.load(wpathbtmenu,0); if ( wsavbtmenu.width() > 700 || wsavbtmenu.height() > 500 ) { QImage reducesize(wpathbtmenu,0); wsavbtmenu = reducesize.scale(500,400,QImage::ScaleMax); } longueur = wsavbtmenu.width(); hauteur = wsavbtmenu.height(); wdefhaut = hauteur; wdeflong = longueur; save_fond_2 = my_pixmap_001->pixmap()->convertToImage(); bt_fantome->setPixmap(save_fond_2.copy(slider_x->value(), slider_y->value(),longueur,hauteur,0)); bt_fantome->setGeometry( 23 + slider_x->value(), 23 + slider_y->value() , longueur, hauteur); bt_fantome->show(); bt_fantome->raise(); // *** Réglage des barres de défilement *** slider_x->setMaxValue( 720 - longueur ); slider_y->setMaxValue( 576 - hauteur ); // *** Dessin du bouton image sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( bt_fantome->pixmap() ); mypainter.drawImage(0,0, wsavbtmenu.scale(longueur,hauteur,QImage::ScaleMax),0,0,-1,-1); mypainter.end(); bt_fantome_2->pixmap()->fill( couleur_2 ); bt_fantome_3->pixmap()->fill( couleur_3 ); } // *** Blocage de la liste pendant le travail sur le bouton *** lst_video_2->setDisabled( true ); bt_add_film_menu->setDisabled( true ); bt_et04_con_2->setDisabled( true ); bt_et04_con->setDisabled( true ); bt_rename_chap->setDisabled(true); // *** On passe la zone de sureté au plus haut niveau *** zs_1->raise(); zs_2->raise(); zs_3->raise(); zs_4->raise(); // if ( wpathbtmenu == "") { regle_2->setGeometry( 23 , 23 + slider_y->value() + taille_police + 2, 720,1); } else { regle_2->setGeometry( 23 , 23 + slider_y->value() + hauteur + 2, 720,1); slider5->setValue(0); slider6->setValue(0); slider7->setValue(0); slider5->setMinValue((longueur * - 1)+ 60 ); slider6->setMinValue((hauteur * - 1) + 60 ); slider5->setMaxValue((700 - longueur) - 60 ); slider6->setMaxValue((550 - hauteur) - 60); if (wdeflong > wdefhaut) { slider7->setMinValue((longueur * - 1) + 60 ); slider7->setMaxValue((700 - longueur) - 60 ); } else { slider7->setMinValue((hauteur * - 1) + 60 ); slider7->setMaxValue((550 - hauteur) - 60 ); } } regle_1->setGeometry( 22 + slider_x->value(), 23, 1,576); regle_1->show(); regle_2->show(); regle_1->raise(); regle_2->raise(); if ( wpathbtmenu != "") { bt_dyna_modif->show(); bt_dyna_modif->raise(); } clqconstruct->setGeometry( 1001, 0,longueur,hauteur ); clqconstruct->setPixmap(save_fond_2.copy(slider_x->value() , slider_y->value(),longueur,hauteur,0)); // *** Dessin du texte sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( clqconstruct->pixmap() ); if ( wpathbtmenu == "") { mypainter.setPen ( couleur_1 ); mypainter.setFont ( myfont ); mypainter.drawText( 0, hauteur / 2 ,nomfilm ); } else { mypainter.drawImage(0,0, wsavbtmenu.scale(longueur,hauteur,QImage::ScaleFree),0,0,-1,-1); } mypainter.end(); } } void mainfrm::bt_add_cont_clicked() { // ********************************* // *** Ajout du film à la liste des vidéos *** // ********************************* if ( titre_element->text() != "" ) { if (rc_004 == 0) { m_pMPlayerWidget->setFilename(path_video); m_pMPlayerWidget->slotPlay(); m_pMPlayerWidget->slotSeek(10,1); panneau_titre->setDisabled(true); // ***Création d'un timer *** mytimer = new QTimer( this ); connect( mytimer, SIGNAL(timeout()), SLOT(capture_image_film()) ); mytimer->start( 1450, true ); } else { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { tmp_001 = textLabel2_11->text(); rc_002 = tmp_001.find ( ":" , 0); if (rc_002 != -1) { tmp_002 = tmp_001.mid(rc_002 + 2, tmp_001.length() - (rc_002 + 2)); } if ( tmp_002 != QString::number( avvalue->value() )) { a_reencoder = "1"; i->setText(2,"1"); i->setPixmap( 0, *previcon_3->pixmap() ); // QImage wl_img1 = i->pixmap(0)->convertToImage(); QPixmap wl_pix1(wl_img1); QImage wl_img2 = previcon_3->pixmap()->convertToImage(); QPixmap wl_pix2(wl_img2); ::bitBlt( &wl_pix1, 3, 20, &wl_pix2, 0, 0, -1, -1, Qt::CopyROP, false ); } i->setText(6, "$$" + tmp_002 + "##" + QString::number( avvalue->value() )); i->setText(0,titre_element->text()); i->setText(7,lineEdit8->text()); panneau_titre->hide(); lst_video_1->setEnabled( true ); bt_modifier_titre->setEnabled( true ); bt_supprime_video->setEnabled( true ); bt_chapitres->setEnabled( true ); bt_et02_con->setEnabled( true ); panneau_bouton_1->setEnabled( true ); } } } else { QMessageBox::warning(this, "ManDVD", table_message[6]); } } void mainfrm::capture_image_film() { QPixmap wl_pix1(90,61); ::bitBlt( &wl_pix1, 0, 0, m_pMPlayerWidget, 10, 0, 90, 61, Qt::CopyROP, false ); QImage wl_img1 = prevmaskfilm->pixmap()->convertToImage(); QImage wl_img2 = prevmaskfilm_2->pixmap()->convertToImage(); QPixmap wl_pix2(wl_img1); QPixmap wl_pix3(wl_img2); ::bitBlt( &wl_pix3, 5, 5, &wl_pix1, 0, 0, -1, -1, Qt::CopyROP, false ); ::bitBlt( &wl_pix3, 0, 0, &wl_pix2, 0, 0, -1, -1, Qt::CopyROP, false ); tmp_001 = textLabel2_11->text(); rc_002 = tmp_001.find ( ":" , 0); if (rc_002 != -1) { tmp_002 = tmp_001.mid(rc_002 + 2, tmp_001.length() - (rc_002 + 2)); } if ( tmp_002 != QString::number( avvalue->value() )) { a_reencoder = "1"; } wchapitres = ""; QListViewItem *i = new QListViewItem(lst_video_1, titre_element->text(), path_video, a_reencoder, wchapitres,QString::number(audio_bitrate), video_format, "$$" + tmp_002 + "##" + QString::number( avvalue->value() ), lineEdit8->text()); if (a_reencoder == "0") { QImage wl_img3 = previcon_2->pixmap()->convertToImage(); QPixmap wl_pix4(wl_img3); ::bitBlt( &wl_pix3, 3, 20, &wl_pix4, 0, 0, -1, -1, Qt::CopyROP, false ); i->setPixmap( 0, wl_pix3 ); } else { QImage wl_img3 = previcon_3->pixmap()->convertToImage(); QPixmap wl_pix4(wl_img3); ::bitBlt( &wl_pix3, 3, 20, &wl_pix4, 0, 0, -1, -1, Qt::CopyROP, false ); i->setPixmap( 0, wl_pix3 ); } wchapitres = ""; panneau_titre->hide(); panneau_bouton_1->setEnabled( true ); nombre_video = nombre_video + 1; // lst_video_1->setEnabled( true ); bt_modifier_titre->setEnabled( true ); bt_gest_sub_2->setEnabled( true ); bt_supprime_video->setEnabled( true ); bt_chapitres->setEnabled( true ); bt_gest_sub->setEnabled( true ); bt_cut_film->setEnabled( true ); panneau_bouton_1->setEnabled( true ); if (video_format == "4/3") { btformat->setChecked( true ); btformat_2->setChecked( false ); } else { btformat->setChecked( false ); btformat_2->setChecked( true ); } // *** Calcul de la taille du DVD *** calculsize(0); // lst_video_1->setSelected ( i , true ); panneau_titre->setEnabled(true); } void mainfrm::bt_supprime_video_clicked() { // ****************************************** // *** Suppression d'une vidéo de la liste du projet *** // ****************************************** int nbremini = 0; QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } path_video = i->text(1); nombre_video = nombre_video - 1; // *** Suppression de la ligne *** if ( i->text(2) == "9" ) { bt_ajout_intro->setEnabled(true); } if ( bt_ajout_intro->isEnabled() == false ) { nbremini = 1; } lst_video_1->takeItem( i ); pathnamevideo->hide(); theformat->hide(); // if (lst_video_1->childCount() == nbremini) { bt_force->setDisabled(true); bt_supprime_video->setDisabled( true ); bt_gest_sub->setDisabled( true ); bt_chapitres->setDisabled( true ); bt_modifier_titre->setDisabled( true ); bt_gest_sub_2->setDisabled( true ); bt_cut_film->setDisabled( true ); volume->setText( table_message[52] + "0 Mo"); taille_DVD = 0; } else { calculsize(1); lst_video_1->setSelected ( lst_video_1->currentItem (), true ); } } } void mainfrm::bt_et04_con_clicked() { // *********************************** // *** Validation pour passage à l'étape 5 *** // *********************************** if (max_boutons > 0) { if (lst_video_2->childCount() == 0) { Etape_04->hide(); startfilm->clear(); startfilm->insertItem("DVD_Menu",-1); startfilm->insertItem(table_boutons_lien[0][0],-1); idtpage->setText(table_message[33]); optencode->hide(); Etape_05->setGeometry( 0, 110 , 1000, 700); Etape_05->show(); } else { QMessageBox::warning(this, "ManDVD", table_message[7]); } } else { QMessageBox::warning(this, "ManDVD", table_message[7]); } } void mainfrm::bt_cancel_titre_clicked() { // *********************************** // *** On annule l'ajout du titre à la vidéo *** // *********************************** panneau_titre->hide(); lst_video_1->setEnabled( true ); panneau_bouton_1->setEnabled( true ); bt_et02_con->setEnabled( true ); wchapitres = ""; } void mainfrm::bt_police_clicked() { // ********************************** // *** Sélection de la police de caractère *** // ********************************** myfont = QFontDialog::getFont( &ok, QFont( "Helvetica [Cronyx]", 10 ), this ); taille_police = myfont.pointSize(); } void mainfrm::bt_color_1_clicked() { // ******************************** // *** Choix de la couleur état normal *** // ******************************** couleur_1 = QColorDialog::getColor( couleur_1 , this, "Choisissez une couleur" ); if ( couleur_1.isValid() ) { frame_couleur_1->setBackgroundColor(couleur_1); } } void mainfrm::bt_color_2_clicked() { // *********************************** // *** Choix de la couleur état sélectionné *** // *********************************** couleur_2 = QColorDialog::getColor( couleur_2 , this, "Choisissez une couleur" ); if ( couleur_2.isValid() ) { int rouge; int vert; int bleu; couleur_2.getRgb(&rouge, &vert, &bleu); if (rouge == 255 && vert == 255 && bleu == 255) { couleur_2.setRgb(254,254,254); } frame_couleur_2->setBackgroundColor(couleur_2); } } void mainfrm::bt_color_3_clicked() { // ******************************* // *** Choix de la couleur état cliqué *** // ******************************* couleur_3 = QColorDialog::getColor( couleur_3 , this, "Choisissez une couleur" ); if ( couleur_3.isValid() ) { int rouge; int vert; int bleu; couleur_3.getRgb(&rouge, &vert, &bleu); if (rouge == 255 && vert == 255 && bleu == 255) { couleur_3.setRgb(254,254,254); } frame_couleur_3->setBackgroundColor(couleur_3); } } void mainfrm::bt_retourner_clicked() { // ********************************** // *** Retourner l'image horizontalement *** // ********************************** QImage myimg_2 = save_fond.mirror(true,false); save_fond = myimg_2.copy(0,0,720,576,0); QPixmap mypix ( save_fond ); apercu_fond->setPixmap( mypix ); // *** Mise en place des fonds d'écran pour le menu *** my_pixmap_001->setPixmap ( mypix ); } void mainfrm::bt_retourner_2_clicked() { // ******************************** // *** Retourner l'image verticalement *** // ******************************** QImage myimg_2 = save_fond.mirror(false,true); save_fond = myimg_2.copy(0,0,720,576,0); QPixmap mypix ( save_fond ); apercu_fond->setPixmap( mypix ); // *** Mise en place des fonds d'écran pour le menu *** my_pixmap_001->setPixmap ( mypix ); } void mainfrm::bt_invert_clicked() { // **************** // *** Invert pixels *** // **************** save_fond.invertPixels ( true ); QPixmap mypix ( save_fond ); apercu_fond->setPixmap( mypix ); // *** Mise en place des fonds d'écran pour le menu *** my_pixmap_001->setPixmap ( mypix ); } void mainfrm::bt_gener_struct_clicked() { // *********************************** // *** Lancement de la génération du DVD *** // *********************************** if (path_out->text() != "") { priority = 10 - sliderpriorite->value(); bt_lire_DVD->setDisabled( true ); bt_grave->setDisabled( true ); bt_grave_2->setDisabled( true ); bt_grave_3->setDisabled( true ); btgrpprio->setDisabled( true ); bt_param_encode->setDisabled( true ); optencode->hide(); lecture_console->clear(); etape_1->setText(table_message[56]); etape_2->setText(table_message[57]); etape_3->setText(table_message[58]); // ************************************************** // *** Génération du fichier pour encodage des fichiers vidéo *** // ************************************************** progress_fleche->setGeometry(32,24,22,22); progress_fleche->show(); Box_Encode->setEnabled( true ); bt_gener_struct->setDisabled( true ); bt_et_05->setDisabled( true ); buttonGroup62->setDisabled(true); pb_001->setProgress( 0 ); pb_002->setProgress( 0 ); pb_007->setProgress( 0 ); pb_008->setProgress( 0 ); int compteur; int compteur_2; compteur = 0; compteur_2 = 0; progress = 0; rc_001 = 0; rc_002 = 0; tmp_001 = ""; if ( fautyrencoder == 1 ) { QString tmp_format; QFile myfic(path_out->text() + "/encode.sh"); if ( myfic.open( IO_WriteOnly )) { myfic.writeBlock("#!/bin/bash\n",12); tmp_001 = "rm -f " + path_out->text() + "/gibvide*.mpg\n"; myfic.writeBlock(tmp_001, tmp_001.length()); if (pathintro != "") { tmp_001 = "rm -f gibintromenu.mpg\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } QString aencoder; QString vfilter; float decalage; QString wdecalage; QString thetest; QString txtdes; QString myEDL; if ( btformat->isChecked() == true) { video_format = "4/3"; } else { video_format = "16/9"; } while (compteur < max_boutons) { if (table_boutons_lien[compteur][3] != "$$CHAP$$") { tmp4sub = table_boutons_lien[compteur][5]; rc_001 = tmp4sub.find ( "$$$" , 0); if (rc_001 != -1) { tmp_002 = tmp4sub.mid(rc_001 + 3 , tmp4sub.length() - (rc_001 + 3)); path_subtitle = "-sub \"" + tmp_002 + "\""; if ( lineEdit12->text() != "" ) { path_subtitle = path_subtitle + " -font \"" + lineEdit12->text() + "\" -subfont-text-scale " + QString::number(slider10->value()) + " -subpos " + QString::number(slider10_2->value()); } else { path_subtitle = path_subtitle + " -subpos " + QString::number(slider10_2->value()); } yasubtitle = 1; tmp_format = tmp4sub.mid(0,rc_001); } else { path_subtitle = ""; yasubtitle = 0; tmp_format = table_boutons_lien[compteur][5]; } aencoder = table_boutons_lien[compteur][2]; rc_001 = aencoder.find ( "/*EDL/*" , 0); if (rc_001 == -1) { vfilter = aencoder.mid( 1, aencoder.length() - 1 ); myEDL = ""; } else { if ( rc_001 + 8 >= aencoder.length()) { vfilter = ""; } else { vfilter = aencoder.mid( rc_001 + 7, aencoder.length() - (rc_001 + 7) ); } myEDL = "-edl " + aencoder.mid(8, rc_001 - 8); } if (aencoder.mid( 0, 1 ) == "1" || tmp_format != video_format) { // *** Test A/V Sync et calcul *** tmp_004 = table_boutons_lien[compteur][6]; rc_003 = tmp_004.find ( "##" , 0); if (rc_003 != -1) { tmp_008 = ""; rc_003 = rc_003 + 2; while ( rc_003 < tmp_004.length() ) { tmp_008 = tmp_008 + tmp_004.mid(rc_003, 1); rc_003 = rc_003 + 1; } rc_001 = tmp_008.toInt(&ok,10); if (ok == true) { avvalue->setValue( rc_001 ); } else { avvalue->setValue( 0 ); } } rc_003 = 2; tmp_008 = ""; while ( tmp_004.mid(rc_003, 1) != "#" ) { tmp_008 = tmp_008 + tmp_004.mid(rc_003, 1); rc_003 = rc_003 + 1; } rc_001 = tmp_008.toInt(&ok,10); if (ok == true) { decalage = avvalue->value() - rc_001; } else { decalage = 0; } if (decalage == 0) { wdecalage = ""; } else { float myval = decalage / 1000; thetest.setNum( myval, 'f', 3 ); wdecalage = " -delay " + thetest; } // if ( table_boutons_pos[compteur][4] == 0) { audio_bitrate = 224; } else { if ( table_boutons_pos[compteur][4] < 192 ) { audio_bitrate = 224; } else { audio_bitrate = table_boutons_pos[compteur][4]; } } if ( desinter->isChecked() == true) { txtdes = "ilme:ildct:mbd=2:"; } else { txtdes = ""; } rc_001 = 0; tmp_002 = table_boutons_lien[compteur][1]; rc_003 = tmp_002.find ( "." , tmp_002.length() - 5); if (rc_001 != -1) { if (tmp_002.mid(rc_003 + 1,3) == "avi" || tmp_002.mid(rc_003 + 1,3) == "avi") { tmp_003 = "AVI"; } else { tmp_003 = "OTH"; } } if (tmp_003 == "OTH") { if (projfps == 29) { tmp_001 = "nice -n " + QString::number(priority) + " mencoder -oac copy -ovc lavc " + myEDL + " -subcp " + comboencoding->currentText() + " -of mpeg -mpegopts format=dvd -vf scale=" + QString::number(projwid) + ":" + QString::number(projhau) + ",harddup"+ vfilter + " -srate 48000 -af lavcresample=48000 -lavcopts threads=2:vcodec=mpeg2video:vrc_buf_size=1835:" + txtdes + "vrc_maxrate=9800:vbitrate=" + QString::number(slidevbitrate->value()) + ":keyint=15:abitrate=" + QString::number(audio_bitrate) + ":aspect=" + video_format + " -ofps 30000/1001 " + path_subtitle + " " + wdecalage + " -o \"" + path_out->text() + "/gibvideo" + QString::number(compteur_2) + ".mpg\" \"" + table_boutons_lien[compteur][1] + "\"\n"; } else { tmp_001 = "nice -n " + QString::number(priority) + " mencoder -oac copy -ovc lavc " + myEDL + " -subcp " + comboencoding->currentText() + " -of mpeg -mpegopts format=dvd -vf scale=" + QString::number(projwid) + ":" + QString::number(projhau) + ",harddup"+ vfilter + " -srate 48000 -af lavcresample=48000 -lavcopts threads=2:vcodec=mpeg2video:vrc_buf_size=1835:" + txtdes + "vrc_maxrate=9800:vbitrate=" + QString::number(slidevbitrate->value()) + ":keyint=15:abitrate=" + QString::number(audio_bitrate) + ":aspect=" + video_format + " -ofps " + QString::number(projfps) + " " + path_subtitle + " " + wdecalage + " -o \"" + path_out->text() + "/gibvideo" + QString::number(compteur_2) + ".mpg\" \"" + table_boutons_lien[compteur][1] + "\"\n"; } } else { if (projfps == 29) { tmp_001 = "nice -n " + QString::number(priority) + " mencoder -oac lavc -ovc lavc " + myEDL + " -subcp " + comboencoding->currentText() + " -of mpeg -mpegopts format=dvd -vf scale=" + QString::number(projwid) + ":" + QString::number(projhau) + ",harddup"+ vfilter + " -srate 48000 -af lavcresample=48000 -lavcopts threads=2:vcodec=mpeg2video:vrc_buf_size=1835:" + txtdes + "vrc_maxrate=9800:vbitrate=" + QString::number(slidevbitrate->value()) + ":keyint=15:acodec=ac3:abitrate=" + QString::number(audio_bitrate) + ":aspect=" + video_format + " -ofps 30000/1001 " + path_subtitle + " " + wdecalage + " -o \"" + path_out->text() + "/gibvideo" + QString::number(compteur_2) + ".mpg\" \"" + table_boutons_lien[compteur][1] + "\"\n"; } else { tmp_001 = "nice -n " + QString::number(priority) + " mencoder -oac lavc -ovc lavc " + myEDL + " -subcp " + comboencoding->currentText() + " -of mpeg -mpegopts format=dvd -vf scale=" + QString::number(projwid) + ":" + QString::number(projhau) + ",harddup"+ vfilter + " -srate 48000 -af lavcresample=48000 -lavcopts threads=2:vcodec=mpeg2video:vrc_buf_size=1835:" + txtdes + "vrc_maxrate=9800:vbitrate=" + QString::number(slidevbitrate->value()) + ":keyint=15:acodec=ac3:abitrate=" + QString::number(audio_bitrate) + ":aspect=" + video_format + " -ofps " + QString::number(projfps) + " " + path_subtitle + " " + wdecalage + " -o \"" + path_out->text() + "/gibvideo" + QString::number(compteur_2) + ".mpg\" \"" + table_boutons_lien[compteur][1] + "\"\n"; } } myfic.writeBlock(tmp_001,tmp_001.length()); compteur_2 = compteur_2 + 1; } else { tmp_001 = "ln -s -f \"" + table_boutons_lien[compteur][1] + "\" \"" + path_out->text() + "/gibvideo" + QString::number(compteur_2) + ".mpg\"\n"; myfic.writeBlock(tmp_001,tmp_001.length()); compteur_2 = compteur_2 + 1; } tmp_001 = "echo \"GIBOSTEP+1\"\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } compteur = compteur + 1; } if (pathintro != "") { if (projfps == 29) { tmp_001 = "nice -n " + QString::number(priority) + " mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 -lavcopts threads=2:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=" + QString::number(slidevbitrate->value()) + ":keyint=15:abitrate=224:aspect=" + video_format + " -ofps 30000/1001 -o \"" + path_out->text() + "/gibintromenu.mpg\" \"" + pathintro + "\"\n"; } else { tmp_001 = "nice -n " + QString::number(priority) + " mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 -lavcopts threads=2:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=" + QString::number(slidevbitrate->value()) + ":keyint=15:abitrate=224:aspect=" + video_format + " -ofps " + QString::number(projfps) + " -o \"" + path_out->text() + "/gibintromenu.mpg\" \"" + pathintro + "\"\n"; } myfic.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "echo \"GIBOSTEP+1\"\n"; myfic.writeBlock(tmp_001,tmp_001.length()); progress = 100 / (nombre_video + 1); } else { progress = 100 / nombre_video; } myfic.close(); // lecture_console->append( "--> Lancement de l'encodage des fichiers ------------------------------------------------------------" ); proc_001 = new QProcess( this ); proc_001->addArgument( "bash"); proc_001->addArgument( path_out->text() + "/encode.sh"); connect( proc_001, SIGNAL(readyReadStdout()), this, SLOT(readFromStdout()) ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_encode()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "mencoder"); bt_et_05->setEnabled( true ); btgrpprio->setEnabled( true ); bt_gener_struct->setEnabled( true ); buttonGroup62->setEnabled(true); } else { btcancelencode->setEnabled(true); } } else { QMessageBox::warning(this, "ManDVD", table_message[8]); btgrpprio->setEnabled( true ); bt_gener_struct->setEnabled( true ); buttonGroup62->setEnabled(true); bt_et_05->setEnabled( true ); } } else { rc_002 = 0; fin_encode(); } } else { QMessageBox::warning(this, "ManDVD", table_message[9]); bt_et_05->setEnabled( true ); btgrpprio->setEnabled( true ); buttonGroup62->setEnabled(true); bt_gener_struct->setEnabled( true ); } } void mainfrm::readFromStdout() { // **************************** // *** Lecture de la sortie console *** // **************************** lineEdit1->setText( proc_001->readStdout() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "%" , 0); if (rc_001 != -1 && tmp_001.mid(0,4) == "Pos:") { tmp_002 = tmp_001.mid((rc_001 - 2),2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { if (rc_001 > pb_001->progress()) { pb_001->setProgress(rc_001); } } } // *** Test si changement d'étape *** rc_001 = tmp_001.find ( "GIBOSTEP+1" , 0); if (rc_001 != -1) { pb_002->setProgress(pb_002->progress() + progress); pb_001->setProgress( 0 ); } // *** Test si erreur *** lineEdit1->setText( proc_001->readStderr() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "Seek failed" , 0); if (rc_001 != -1) { rc_002 = 1; } rc_001 = tmp_001.find ( "File not found:" , 0); if (rc_001 != -1) { rc_001 = tmp_001.find ( "File not found: 'frameno.avi'" , 0); if (rc_001 == -1) { rc_002 = 1; } } lecture_console->append( lineEdit1->text() ); lecture_console->append( proc_001->readStdout() ); } void mainfrm::fin_encode() { // *********************************** // *** Fin de l'encodage des fichiers vidéo *** // *********************************** btcancelencode->setDisabled(true); if ( rc_002 == 0) { pb_001->setProgress( 100 ); pb_002->setProgress( 100 ); fautyrencoder = 0; // *** Création des fichiers xml *** progress_fleche->setGeometry(32,164,22,22); etape_1->setText( "" + table_message[56] + ""); // ************************************** // *** Sauvegarde des différents états du menu *** // ************************************** pb_007->setProgress( 0 ); pb_008->setProgress( 0 ); // QImage tmpimg = my_pixmap_001->pixmap()->convertToImage (); QImage tmpimg_2; QImage tmpimg_3; QImage tmpimg_4; if (projfps == 29) { tmpimg_2 = tmpimg.scale(720,480); } else { tmpimg_2 = tmpimg.copy(); } tmpimg_2.save(path_out->text() + "/normal.jpg","JPEG"); tmpimg = my_pixmap_002->pixmap()->convertToImage (); if (projfps == 29) { tmpimg_2 = tmpimg.scale(720,480); } else { tmpimg_2 = tmpimg.scale(720,576); } QPixmap mypix_002 ( tmpimg_2 ); mypix_002.save(path_out->text() + "/survolee.png","PNG"); tmpimg = my_pixmap_003->pixmap()->convertToImage (); if (projfps == 29) { tmpimg_4 = tmpimg.scale(720,480); tmpimg_3 = tmpimg_4.convertDepth(8); } else { tmpimg_3 = tmpimg.convertDepth(8); } tmpimg_3.setNumColors(4); QPixmap mypix_003 ( tmpimg_3 ); mypix_003.save(path_out->text() + "/cliquee.png","PNG"); // int compteur; compteur = 0; int compteur_1; int compteur_2; int compteur_3; int x_max; int y_max; tmp_001 = ""; QFile myfic(path_out->text() + "/genmenu.xml"); if ( myfic.open( IO_WriteOnly )) { myfic.writeBlock("\n",14); myfic.writeBlock("\n",9); myfic.writeBlock("\n",26); while (compteur < max_boutons) { x_max = table_boutons_pos[compteur][0] + table_boutons_pos[compteur][2]; if ( table_boutons_lien[compteur][7] == "" ) { y_max = table_boutons_pos[compteur][1] + table_boutons_pos[compteur][3] + 7; } else { y_max = table_boutons_pos[compteur][1] + (table_boutons_pos[compteur][3] + 7 ); } // *** CALCUL POUR NTSC CAR ON REDIMENSIONNE L'IMAGE DE 720x576 -> 720x480 *** if ( projfps == 29 ) { table_boutons_pos[compteur][1] = table_boutons_pos[compteur][1] / 1.2; y_max = y_max / 1.2; } // tmp_001 = "\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); } else { printf("Error generating XML file ! Contact me"); } } else { printf("Error generating XML file ! Contact me"); } } else { cpt_006 = 0; tmp_010 = table_boutons_lien[compteur][0]; cpt_005 = 1; while ( tmp_010 != table_boutons_lien[cpt_006][0] && cpt_006 < max_boutons ) { if ( table_boutons_lien[cpt_006][3] != "$$CHAP$$" ) { cpt_005 = cpt_005 + 1; } cpt_006 = cpt_006 + 1; } if (tmp_010 == table_boutons_lien[cpt_006][0]) { tmp_001 = "\n"; } else { printf("Error generating XML file ! Contact me"); } myfic_2.writeBlock(tmp_001,tmp_001.length()); } compteur = compteur + 1; } tmp_001 = "\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); myfic_2.writeBlock("\n",9); compteur = 0; cpt_005 = 0; while (compteur < max_boutons) { if ( table_boutons_lien[compteur][3] != "$$CHAP$$" ) { myfic_2.writeBlock("\n",6); if (table_boutons_lien[compteur][3] == "") { tmp_001 = "text() + "/gibvideo"+ QString::number(cpt_005) +".mpg\"/>\n"; } else { tmp_002 = table_boutons_lien[compteur][3]; tmp_001 = "text() + "/gibvideo"+ QString::number(cpt_005) +".mpg\" chapters=\""+ tmp_002.mid(0,tmp_002.length() - 9) +"\"/>\n"; } myfic_2.writeBlock(tmp_001,tmp_001.length()); // *** Que faire après la lecture du fichier *** if (table_boutons_lien[compteur][4] == table_message[53]) { tmp_001 = "call menu;\n"; } else { cpt_004 = 0; wl_cpt1 = 1; while (table_boutons_lien[cpt_004][0] != table_boutons_lien[compteur][4] && cpt_004 < max_boutons) { if ( table_boutons_lien[cpt_004][3] != "$$CHAP$$" ) { wl_cpt1 = wl_cpt1 + 1; } cpt_004 = cpt_004 + 1; } if(table_boutons_lien[cpt_004][0] == table_boutons_lien[compteur][4]) { tmp_001 = "jump title "+ QString::number(wl_cpt1) +";\n"; } else { tmp_001 = "call menu;\n"; } } myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); cpt_005 = cpt_005 + 1; } compteur = compteur + 1; } myfic_2.writeBlock("\n",10); myfic_2.writeBlock("\n",12); myfic_2.writeBlock("\n",13); myfic_2.close(); } else { QMessageBox::warning(this, "ManDVD", table_message[8]); buttonGroup62->setEnabled(true); bt_gener_struct->setEnabled( true ); bt_lire_DVD->setDisabled( true ); bt_param_encode->setEnabled( true ); bt_grave->setDisabled( true ); bt_et_05->setEnabled( true ); } progress_fleche->setGeometry(32,224,22,22); etape_3->setText( "" + table_message[58] + ""); // lecture_console->append( "--> Lancement de la génération du menu ------------------------------------------------------------" ); rc_002 = 0; proc_003 = new QProcess( this ); proc_003->addArgument( "bash"); proc_003->addArgument( path_out->text() + "/menu.sh"); proc_003->addArgument( "genmenu"); proc_003->addArgument( "normal.jpg"); connect( proc_003, SIGNAL(readyReadStderr()), this, SLOT(stdout_menu()) ); connect( proc_003, SIGNAL(processExited()), this, SLOT(fin_genmenu()) ); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "bash"); bt_gener_struct->setEnabled( true ); bt_param_encode->setEnabled( true ); btgrpprio->setEnabled( true ); bt_et_05->setEnabled( true ); buttonGroup62->setEnabled(true); } } else { QMessageBox::warning(this, "ManDVD", table_message[10]); buttonGroup62->setEnabled(true); bt_et_05->setEnabled( true ); bt_gener_struct->setEnabled( true ); btgrpprio->setEnabled( true ); bt_param_encode->setEnabled( true ); bt_lire_DVD->setDisabled( true ); bt_grave->setDisabled( true ); } } void mainfrm::stdout_menu() { // ****************************************** // *** Lecture de la sortie console génération menu *** // ****************************************** lineEdit1->setText( proc_003->readStderr() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "s->numpal" , 0); if (rc_001 != -1) { rc_002 = 1; } rc_001 = tmp_001.find ( "ERROR" , 0); if (rc_001 != -1) { rc_002 = 1; } lecture_console->append( lineEdit1->text() ); } void mainfrm::stdout_dvdauth() { // ****************************************** // *** Lecture de la sortie console génération menu *** // ****************************************** lineEdit1->setText( proc_003->readStderr() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "ERR:" , 0); if (rc_001 != -1) { rc_002 = 1; } rc_001 = tmp_001.find ( "Erreur " , 0); if (rc_001 != -1) { rc_002 = 1; } rc_001 = tmp_001.find ( "%" , 0); if (rc_001 != -1) { tmp_002 = tmp_001.mid(rc_001 - 2,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { pb_008->setProgress(rc_001); } } rc_001 = tmp_001.find ( "WARN: Partial sector read" , 0); if (rc_001 != -1) { rc_002 = 1; } rc_001 = tmp_001.find ( "PCI/DSI information is not where expected" , 0); if (rc_001 != -1) { rc_002 = 2; } lecture_console->append( lineEdit1->text() ); } void mainfrm::fin_genmenu() // ****************************** // *** Fin de la génération du menu *** // ****************************** { if (rc_002 == 0) { lecture_console->append( "--> Lancement de DVD Author ------------------------------------------------------------" ); rc_002 = 0; proc_003 = new QProcess( this ); proc_003->addArgument( "nice"); proc_003->addArgument( "-n"); proc_003->addArgument( QString::number(priority) ); proc_003->addArgument( "dvdauthor"); proc_003->addArgument( "-x"); proc_003->addArgument( path_out->text() + "/dvdauthor.xml"); connect( proc_003, SIGNAL(readyReadStderr()), this, SLOT(stdout_dvdauth()) ); connect( proc_003, SIGNAL(processExited()), this, SLOT(fin_totale()) ); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "dvdauthor"); bt_et_05->setEnabled( true ); buttonGroup62->setEnabled(true); } } else { if ( rc_002 == 1 ) { QMessageBox::warning(this, "ManDVD", table_message[11]); btgrpprio->setEnabled( true ); bt_param_encode->setEnabled( true ); bt_gener_struct->setEnabled( true ); bt_et_05->setEnabled( true ); buttonGroup62->setEnabled(true); } } } void mainfrm::fin_totale() { // ************** // *** fin totale *** // ************** pb_008->setProgress(100); if (rc_002 == 0) { // progress_fleche->hide(); buttonGroup62->setEnabled(true); bt_gener_struct->setEnabled( true ); bt_lire_DVD->setEnabled( true ); bt_grave->setEnabled( true ); bt_grave_2->setEnabled( true ); bt_grave_3->setEnabled( true ); bt_et_05->setEnabled( true ); bt_param_encode->setEnabled( true ); btgrpprio->setEnabled( true ); QMessageBox::warning(this, "ManDVD", table_message[12]); // *** Dézonage du DVD *** FILE * fd; QString pathfileifo; pathfileifo = path_out->text() + "/DVD/VIDEO_TS/VIDEO_TS.IFO"; fd = fopen( pathfileifo,"r+"); if (fd != NULL) { fseek(fd,0x23,SEEK_SET); putc(0x0,fd); fclose (fd); } else { printf(pathfileifo); printf("Erreur ouverture fichier"); } } else { progress_fleche->hide(); buttonGroup62->setEnabled(true); bt_gener_struct->setEnabled( true ); btgrpprio->setEnabled( true ); bt_param_encode->setEnabled( true ); QMessageBox::warning(this, "ManDVD", table_message[13]); bt_et_05->setEnabled( true ); } } void mainfrm::bt_lire_DVD_clicked() { // **************************** // *** Test de la création du DVD *** // **************************** proc_003 = new QProcess( this ); proc_003->addArgument( "xine"); proc_003->addArgument( "dvd:/" +path_out->text() + "/DVD/VIDEO_TS/"); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "xine"); } } void mainfrm::bt_grave_clicked() { // ********************************** // *** Affichage de la fenêtre de gravage *** // ********************************** Etape_05->setDisabled( true ); textEdit3->hide(); Gravage->setEnabled( true ); Gravage->setGeometry( 240, 254, 491, 280); Gravage->show(); Gravage->raise(); } void mainfrm::bt_annul_grave_clicked() { // ************************* // *** Annulation du gravage *** // ************************* Etape_05->setEnabled( true ); Gravage->setDisabled( true ); Gravage->hide(); } void mainfrm::bt_go_grave_clicked() { // ************************* // *** Lancement du gravage *** // ************************* if ( pathgraveur->text() != "") { QFile myfic(path_out->text() + "/gravage.sh"); if ( myfic.open( IO_WriteOnly )) { tmp_001 = "#!/bin/sh\n"; myfic.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "growisofs -Z "+ pathgraveur->text() +" -dvd-video " + path_out->text() + "/DVD\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } myfic.close(); // bt_annul_grave->setDisabled( true ); bt_go_grave->setDisabled( true ); // proc_003 = new QProcess( this ); proc_003->addArgument( "bash" ); proc_003->addArgument( path_out->text() + "/gravage.sh" ); connect( proc_003, SIGNAL(readyReadStderr()), this, SLOT(stdout_grave()) ); connect( proc_003, SIGNAL(processExited()), this, SLOT(fin_grave()) ); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "growisofs"); } else { message_1->show(); rc_002 = 0; } } else { QMessageBox::warning(this, "ManDVD", table_message[14]); } } void mainfrm::fin_grave() { // **************** // *** fin gravage *** // **************** if (rc_002 == 0) { pb_003->setProgress(100); message_1->hide(); QMessageBox::warning(this, "ManDVD", table_message[15]); bt_annul_grave->setEnabled( true ); bt_go_grave->setEnabled( true ); } else { QMessageBox::warning(this, "ManDVD", table_message[16]); message_1->hide(); bt_annul_grave->setEnabled( true ); bt_go_grave->setEnabled( true ); } } void mainfrm::stdout_grave() { // **************************** // *** Lecture de la sortie console *** // **************************** lineEdit1->setText( proc_003->readStderr() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "%" , 0); if (rc_001 != -1) { tmp_002 = tmp_001.mid(1,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { pb_003->setProgress(rc_001); } } tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "error" , 0); if (rc_001 != -1) { rc_002 = 1; } tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( " not recognized" , 0); if (rc_001 != -1) { rc_002 = 1; } rc_001 = tmp_001.find ( "Unable" , 0); if (rc_001 != -1) { rc_002 = 1; } textEdit3->append(lineEdit1->text()); } void mainfrm::fin_import() { // **************************************** // *** Fin de l'importation / contrôle des fichiers *** // **************************************** rc_001 = tmp_001.find ( " " + QString::number(projwid) + "x" + QString::number(projhau) , 0); if (rc_001 != -1) { video_size_ok = 1; } rc_001 = tmp_001.find ( "PTS" , 0); if (rc_001 != -1) { video_codec_ok = 1; } rc_001 = tmp_001.find ( "48000" , 0); if (rc_001 != -1) { audio_freq_ok = 1; } rc_001 = tmp_001.find ( "4:3" , 0); if (rc_001 != -1) { video_format = "4/3"; } rc_001 = tmp_001.find ( "16:9" , 0); if (rc_001 != -1) { video_format = "16/9"; } rc_001 = tmp_001.find ( "audio track:" , 0); if (rc_001 != -1) { yaaudio = 1; } rc_001 = tmp_001.find ( "bitrate" , 0); if (rc_001 != -1 && yaaudio == 1) { rc_002 = tmp_001.find ( "bitrate" , rc_001 + 9); if (rc_002 != -1 && yaaudio == 1) { tmp_004 = tmp_001.mid(rc_002 + 8,3); rc_003 = tmp_004.toInt(&ok,10); if (ok == true) { audio_bitrate = rc_003; } else { audio_bitrate = 0; } } } rc_001 = tmp_001.find ( "--av_fine_ms " , 0); if (rc_001 != -1) { if ( tmp_001.mid(rc_001 + 13, 1) != "0" ) { audio_freq_ok = 0; // tmp_008 = ""; rc_003 = rc_001 + 13; while ( tmp_001.mid(rc_003, 1) != " " ) { tmp_008 = tmp_008 + tmp_001.mid(rc_003, 1); rc_003 = rc_003 + 1; } textLabel2_11->setText("A/V sync (ms) : " + tmp_008); rc_001 = tmp_008.toInt(&ok,10); if (ok == true) { avvalue->setValue( rc_001 ); } else { avvalue->setValue( 0 ); } // } else { tmp_008 = "0"; textLabel2_11->setText("A/V sync (ms) : " + tmp_008); avvalue->setValue( 0 ); } } else { tmp_008 = "0"; textLabel2_11->setText("A/V sync (ms) : " + tmp_008); avvalue->setValue( 0 ); } rc_001 = tmp_001.find ( "-f " + QString::number(projfps) , 0); if (rc_001 == -1) { audio_freq_ok = 0; } rc_001 = tmp_001.find ( "presentation unit" , 0); if (rc_001 != -1) { multiangle = 1; } // if (multiangle == 0) { panneau_titre->setEnabled( true ); if ( video_size_ok == 0 || video_codec_ok == 0 || audio_freq_ok == 0) { a_reencoder = "1"; } else { a_reencoder = "0"; } } else { // *** DVD Multi angles *** panneau_titre->setEnabled( true ); if (type_video == "0") { a_reencoder = "1"; } else { a_reencoder = "0"; } } } void mainfrm::test_type_video() { // ********************************** // *** Test le type d'encodage de la vidéo *** // ********************************** lineEdit1->setText( proc_001->readStdout() ); tmp_001 = tmp_001 + lineEdit1->text(); } void mainfrm::bt_et_05_clicked() { // ****************** // *** Retour étape 4 *** // ****************** Etape_05->hide(); myconsole->hide(); idtpage->setText(table_message[32]); Etape_04->setGeometry( 0, 110 , 1000, 700); bt_rename_chap->setDisabled( true ); Etape_04->show(); } void mainfrm::bt_chapitres_clicked() { // ********************************************* // *** Affichage de la fenêtre de création des chapitres *** // ********************************************* QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 && i->text(2) != "9" ) { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } max_chapitres = 0; // *** Ajout des chapitres à la listview *** chapauto->setDisabled( true ); bt_add_chap_2_2->setDisabled(true); group_add_chap->hide(); lst_chap->clear(); int cpt_001 = 0; tmp_001 = ""; QListViewItem *lvi = lst_video_1->selectedItem(); tmp_001 = lvi->text(3); if (tmp_001.length() > 0) { while (tmp_001.mid(cpt_001,8) != " ") { QListViewItem *j = new QListViewItem( lst_chap, tmp_001.mid(cpt_001,8) ); max_chapitres = max_chapitres + 1; cpt_001 = cpt_001 + 9; } bt_add_chap_2_2->setEnabled(true); } // Etape_02->setDisabled( true ); tmp_008 = i->text(1); m_pMPlayerWidget->setFilename ( tmp_008 ); video_chapitre->setText("Vidéo sélectionnée : "+lvi->text(0) +"" ); if (max_chapitres == 0) { bt_sup_chap->setDisabled( true ); bt_sup_chap_2->setDisabled( true ); } else { bt_sup_chap->setEnabled( true ); bt_sup_chap_2->setEnabled( true ); } creation_chapitres->raise(); QTime time_001(4,0,0); value_time->setMaxValue(time_001); durfilmchap = 0; creation_chapitres->setGeometry( 125, 85 , 750, 530); vframe->setGeometry(435,135,430,330); vframe->show(); vframe->raise(); creation_chapitres->show(); } } void mainfrm::bt_add_chap_2_clicked() { // ************************** // *** Chapitrage automatique *** // ************************** chapauto->setEnabled(true); bt_add_chap->setDisabled(true); bt_sup_chap->setDisabled(true); bt_add_chap_2_2->setDisabled(true); bt_fermer_chapitre->setDisabled(true); } void mainfrm::bt_fermer_chapitre_clicked() { // ********************************************* // *** Fermeture de la fenêtre de création des chapitres *** // ********************************************* Etape_02->setEnabled( true ); // *** Ajout des chapitres à la listview *** if (max_chapitres > 0) { lst_chap->setSorting ( 0, true ); lst_chap->sort(); int cpt_001 = 0; tmp_001 = ""; QString tmptopchap; tmptopchap = "$$$"; QListViewItem *j; QListViewItem *lvi = lst_chap->firstChild(); while (cpt_001 < max_chapitres) { if (tmptopchap != lvi->text(0)) { tmp_001 = tmp_001 + lvi->text(0) + ","; } tmptopchap = lvi->text(0); lvi = lvi->nextSibling(); cpt_001 = cpt_001 + 1; } tmp_001 = tmp_001 + " "; j = lst_video_1->selectedItem(); j->setText(3, tmp_001); } else { QListViewItem *j; tmp_001 = ""; j = lst_video_1->selectedItem(); j->setText(3, tmp_001); } if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } vframe->setGeometry(31,125,115,71); vframe->raise(); creation_chapitres->hide(); } void mainfrm::bt_lire_pr_chap_clicked() { // ********************** // *** Lecture de la video *** // ********************** if ( tmp_008 != "" ) { m_pMPlayerWidget->slotPlay( ); } } void mainfrm::bt_add_chap_clicked() { // ********************* // *** Ajout du chapitre *** // ********************* if ( m_pMPlayerWidget->isPlaying() == true ) { int iHour; int iMin; int iSec; QTime mytime; float fElapsedTime = m_pMPlayerWidget->m_rxParseElapsedTime.cap(1).toFloat(); iHour = (int) (fElapsedTime / 3600.0); iMin = (int)((fElapsedTime-iHour*3600)/60.0); iSec = (int) (fElapsedTime-iHour*3600-iMin*60); mytime.setHMS(iHour, iMin, iSec); QListViewItem *j = new QListViewItem( lst_chap,mytime.toString("hh:mm:ss") ); max_chapitres = max_chapitres + 1; bt_sup_chap_2->setEnabled(true); bt_sup_chap->setEnabled(true); bt_add_chap_2_2->setEnabled(true); lst_chap->sort(); } } void mainfrm::bt_sup_chap_clicked() { // *************************** // *** Suppression d'un chapitre *** // *************************** QListViewItem *i = lst_chap->selectedItem(); if ( i != 0 ) { lst_chap->takeItem( i ); max_chapitres = max_chapitres - 1; if (max_chapitres == 0) { bt_sup_chap->setDisabled( true ); bt_add_chap_2_2->setDisabled(true); bt_sup_chap_2->setDisabled( true ); } } } void mainfrm::bt_new_chap_clicked() { // ************************************ // *** Modification d'un chapitre de la liste *** // ************************************ QTime mytime; mytime = value_time->time(); QListViewItem *i = lst_chap->selectedItem(); if ( i != 0 ) { i->setText(0, mytime.toString("hh:mm:ss")); } group_add_chap->hide(); grpbtchapt->setEnabled( true ); bt_fermer_chapitre->setEnabled(true); lst_chap->sort(); } void mainfrm::bt_new_chap_2_clicked() { // ********************************** // *** Annulation de l'ajout d'un chapitre *** // ********************************** group_add_chap->hide(); grpbtchapt->setEnabled( true ); bt_fermer_chapitre->setEnabled(true); if (max_chapitres == 0) { bt_sup_chap->setDisabled( true ); } else { bt_sup_chap->setEnabled( true ); } } void mainfrm::lst_video_1_selectionChanged() { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotStop( ); } pathnamevideo->setText(i->text(1)); if (i->text(5) == "") { theformat->setText("Video format : ..."); } else { theformat->setText("Video format : " + i->text(5)); } if (i->text(2) == "0") { bt_force->setEnabled(true); } else { bt_force->setDisabled(true); } if ( i->text(2) == "9" ) { bt_modifier_titre->setDisabled(true); bt_cut_film->setDisabled(true); bt_chapitres->setDisabled(true); bt_gest_sub->setDisabled(true); bt_gest_sub_2->setDisabled(true); } else { bt_modifier_titre->setEnabled(true); bt_cut_film->setEnabled(true); bt_chapitres->setEnabled(true); bt_gest_sub->setEnabled(true); bt_gest_sub_2->setEnabled(true); } pathnamevideo->show(); theformat->show(); } } void mainfrm::bt_quit_clicked() { // **************************** // *** Fermeture de l'application *** // **************************** if ( QMessageBox::question(this,"ManDVD", table_message[17], "Yes", "No", QString::null, 0, 1 ) == 0 ) { QFile myfic_2( wpathtotalproj + "nettoyageglobal.sh"); if ( myfic_2.open( IO_WriteOnly )) { tmp_001 = "#!/bin/bash\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "cd " + wpathtotalproj + "\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f gibmenanim*.*\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f gibvideo*.*\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f genmenu*.*\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f dvdauthor.xml\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f *.sh\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f normal.jpg\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f cliquee.png\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f survolee.png\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f silent.*\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); myfic_2.close(); } proc_001 = new QProcess( this ); proc_001->addArgument( "bash" ); proc_001->addArgument( wpathtotalproj + "nettoyageglobal.sh" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_netttout()) ); proc_001->start(); } } void mainfrm::fin_netttout() { this->close(); } void mainfrm::affconsole_clicked() { // ********************************* // *** On affiche ou on cache la console *** // ********************************* if (myconsole->isVisible() == true) { myconsole->hide(); } else { myconsole->show(); myconsole->raise(); } } void mainfrm::bt_slideshow_clicked() { // ********************************************** // *** Affichage de la fenêtre de création des slideshows *** // ********************************************** the_selection->hide(); num_photo->setMaxValue(0); fen_slideshow->setGeometry( 0, 110 , 1000, 700); Etape_02->setDisabled( true ); tabWidget2->setCurrentPage(0); texttottime->setText("Total : 0 sec"); bt_modif_gimp_2->setDisabled(true); bt_valid_info_image_2->setDisabled(true); bt_valid_info_image_3->setDisabled(true); bt_dep_gauche->hide(); bt_dep_droite->hide(); // yaaudio = 0; Audio_1->hide(); // bt_musique_options->setDisabled(true); fenparamdef->hide(); workinprogress->hide(); fen_slideshow->show(); fen_slideshow->raise(); nbre_images = 0; path_musique = ""; box_det_photo->setDisabled( true ); idtpage->setText( table_message[34] ); scroll_timeline->setMaxValue( 0 ); scroll_timeline->setValue( 0 ); timeline->setGeometry(scroll_timeline->value() * -1,25, 13500, 140); pnt_table_trans[0] = null_transition; pnt_table_trans[1] = trans_1; pnt_table_trans[2] = trans_2; pnt_table_trans[3] = trans_3; pnt_table_trans[4] = trans_4; pnt_table_trans[5] = trans_5; pnt_table_trans[6] = trans_6; pnt_table_trans[7] = trans_7; pnt_table_trans[8] = trans_8; pnt_table_trans[9] = trans_9; pnt_table_trans[10] = trans_10; pnt_table_trans[11] = trans_11; if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } } void mainfrm::bt_fermer_slide_clicked() { // ********************************************** // *** Fermeture de la fenêtre de création des slideshows *** // ********************************************** if ( QMessageBox::question(this,"ManDVD", table_message[18], "Yes", "No", QString::null, 0, 1 ) == 0 ) { fen_slideshow->hide(); Etape_02->setEnabled(true); idtpage->setText( table_message[30] ); casse_tout(); } } void mainfrm::bt_add_img_slide_clicked() { // ******************************************* // *** Ajout d'une image à la liste pour le diaporama *** // ******************************************* if (nbre_images < 99) { QStringList listsfile = QFileDialog::getOpenFileNames( "Images (*.jpg *.jpeg *.JPG *.JPEG *.png *.PNG)", dossier_travail, this, "Ouvrir un fichier", "Sélectionnez le fichier image à importer" ); if ( listsfile.empty() == true) { } else { QString myfic; QStringList::Iterator mystrlis = listsfile.begin(); myfic = *mystrlis; QImage myimg; QImage tmp_img_2; QImage tmp_img_3; QColor mycolor(100, 100, 100); QImage wl_img2; QImage wl_img1; QImage wl_img3; QImage wl_img4; QPixmap wl_pix1(320,256); QPixmap wl_pix2(720,576); QPixmap mypix(320,256); QPixmap mypix_2(720,576); QTime nowtime; while( mystrlis != listsfile.end() && nbre_images < 99 ) { myimg.load( myfic ); tmp_img_2 = myimg.scale(320, 256,QImage::ScaleMin); // mypix.convertFromImage ( tmp_img_2 ); wl_pix1.fill(Qt::black); wl_img1 = wl_pix1.convertToImage(); ::bitBlt( &wl_pix1, (320 - mypix.width()) / 2, (256 - mypix.height()) / 2, &mypix, 0, 0, -1, -1, Qt::CopyROP, false ); wl_img2 = wl_pix1.convertToImage(); // tmp_img_3 = myimg.scale(720, 576,QImage::ScaleMin); mypix_2.convertFromImage ( tmp_img_3 ); wl_pix2.fill(Qt::black); wl_img3 = wl_pix2.convertToImage(); ::bitBlt( &wl_pix2, (720 - mypix_2.width()) / 2, (576 - mypix_2.height()) / 2, &mypix_2, 0, 0, -1, -1, Qt::CopyROP, false ); wl_img4 = wl_pix2.convertToImage(); nowtime = QTime::currentTime(); tmp_009 = wpathtotalproj + "GIBtmpphoto" + QString::number(nbre_images) + "_" + nowtime.toString("hh:mm:ss.zzz") + ".png"; wl_img4.save( tmp_009, "PNG" ); // int randomvalue; tmp_001 = myfic; int i = myfic.findRev( '/' ); if ( i != 1 ) { dossier_travail = myfic.mid(0,i); } else { dossier_travail = myfic; } QLabel *mylabel = new QLabel(timeline); mylabel->setGeometry( (10 + (nbre_images * 120)) + (nbre_images * 10), 6 , 120, 96); mylabel->setPixmap ( wl_img2 ); mylabel->setScaledContents(true); mylabel->setFrameStyle( QFrame::Box | QFrame::Plain); mylabel->setLineWidth( 2 ); // mylabel->installEventFilter(this); // mylabel->show(); mylabel->raise(); QLabel *mylabel_2 = new QLabel(timeline); mylabel_2->setText("Photo : " + QString::number(nbre_images + 1)); mylabel_2->setGeometry((10 + (nbre_images * 120)) + (nbre_images * 10), 103 , 120, 14); mylabel_2->setPaletteForegroundColor(mycolor); mylabel_2->show(); mylabel_2->raise(); // QLabel *mylabel_3 = new QLabel(timeline); if (lsttransdef->currentText() == table_message[40]) { mylabel_3->setPixmap( *null_transition->pixmap()); } else { QLabel *localmypix; if (lsttransdef->currentText() == table_message[51]) { randomvalue=rand()%11; if ( randomvalue > 0) { localmypix = pnt_table_trans[ randomvalue ]; } else { localmypix = pnt_table_trans[ 3 ]; } } else { if ( lsttransdef->currentItem() == 12 ) { localmypix = pnt_table_trans[ 11 ]; } else { localmypix = pnt_table_trans[ lsttransdef->currentItem() ]; } } mylabel_3->setPixmap( *localmypix->pixmap()); } mylabel_3->setGeometry((13 + (nbre_images * 120)) + (nbre_images * 10), 35 , 40, 40); mylabel_3->setFrameStyle( QFrame::Box | QFrame::Plain); mylabel_3->setScaledContents(true); mylabel_3->setLineWidth( 1 ); mylabel_3->setPaletteForegroundColor(mycolor); mylabel_3->show(); mylabel_3->raise(); box_det_photo->setEnabled(true); // table_pnt_img[nbre_images] = mylabel; table_pnt_txt[nbre_images][0] = mylabel_2; table_pnt_txt[nbre_images][1] = mylabel_3; table_images[nbre_images][0] = tmp_009; table_images[nbre_images][1] = QString::number(spindurdiapo->value()); table_images[nbre_images][3] = QString::number(spindurtrans->value()); table_color[nbre_images] = couleur_1; framecolor->setPaletteBackgroundColor( couleur_1 ); if (lsttransdef->currentText() == table_message[51]) { lst_effets->setCurrentItem( randomvalue ); table_images[nbre_images][2] = lst_effets->currentText(); } else { table_images[nbre_images][2] = lsttransdef->currentText(); } table_images[nbre_images][4] = ""; nbre_images = nbre_images + 1; num_photo->setMaxValue( nbre_images ); if (nbre_images > 7) { scroll_timeline->setMaxValue( (nbre_images - 7) * 130); } else { scroll_timeline->setMaxValue( 0 ); } if (the_selection->isHidden() == true) { num_photo->setValue( 1 ); num_photo->setMinValue( 1 ); the_selection->setGeometry(5,-5,130,130); the_selection->show(); } else { num_photo->setValue( num_photo->maxValue() ); } calcul_dureeslide(); ++mystrlis; myfic = *mystrlis; } } } else { QMessageBox::warning(this, "ManDVD", table_message[19]); } } void mainfrm::bt_gener_slideshow_clicked() { // ************************************** // *** Génération du fichier pour le slideshow *** // ************************************** // *** Choix du dossier de destination *** if (nbre_images > 0) { SFrom->setValue(0); STo->setMaxValue(nbre_images); STo->setValue(nbre_images); SFrom->setMaxValue(nbre_images); textEdit2->hide(); pb_004->setProgress(0); workinprogress->show(); workinprogress->raise(); menu_diapo_bt->setDisabled( true ); bt_gener_slideshow->setDisabled( true ); bt_fermer_slide->setDisabled( true ); num_photo->setDisabled( true ); } else { QMessageBox::warning(this, "ManDVD", table_message[20]); } } void mainfrm::stdout_diapo() { // **************************** // *** Lecture de la sortie console *** // **************************** lineEdit1->setText( proc_001->readStdout() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "transition" , 0); if (rc_001 != -1) { pb_004->setProgress( pb_004->progress() + 1 ); } rc_001 = tmp_001.find ( "gibusima_x" , 0); if (rc_001 != -1) { pb_004->setProgress( pb_004->progress() + 1 ); } rc_001 = tmp_001.find ( " ERROR" , 0); if (rc_001 != -1) { rc_002 = 1; } textEdit2->append( lineEdit1->text() ); } void mainfrm::fin_gendiapo() { // ********************************** // *** Fin de la génération du diaporama *** // ********************************** toolButton94->setEnabled(true); toolButton94_2->setEnabled(true); SFrom->setEnabled(true); STo->setEnabled(true); tabWidget2->setEnabled(true); cadre_timeline->setEnabled(true); if (rc_002 == 0) { pb_004->setProgress(100); bt_annul_gener_slide->setEnabled( true ); menu_diapo_bt->setEnabled(true); bt_start_gener_slide->setEnabled( true ); bt_gener_slideshow->setEnabled( true ); bt_fermer_slide->setEnabled( true ); num_photo->setEnabled( true ); if ( QMessageBox::question(this,"ManDVD", table_message[21], "Yes", "No", QString::null, 0, 1 ) == 0 ) { proc_003 = new QProcess( this ); proc_003->addArgument( "xine" ); proc_003->addArgument( wpathtotalproj + "/" + tmp_009 + ".vob" ); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "xine"); } } if ( QMessageBox::question(this,"ManDVD", table_message[22], "Yes", "No", QString::null, 0, 1 ) == 0 ) { workinprogress->hide(); fen_slideshow->hide(); path_video = path_out->text() + "/" + tmp_009 + ".vob"; video_size_ok = 0; video_codec_ok = 0; audio_freq_ok = 0; multiangle = 0; audio_bitrate = 0; yaaudio = 0; rc_004 = 0; Etape_02->setEnabled(true); video_format = "4/3"; pathnamevideo->hide(); theformat->hide(); panneau_bouton_1->setDisabled( true ); lineEdit8->setText(""); appimgbt->hide(); panneau_titre->show(); panneau_titre->raise(); tmp_001 = path_video; int cpt_001 = tmp_001.length(); while (tmp_001.mid(cpt_001,1) != "/" && cpt_001 != 0) { cpt_001 = cpt_001 - 1; } if (cpt_001 > 0) { titre_element->setText(tmp_001.mid(cpt_001 + 1,tmp_001.length() - (cpt_001 + 5))); } else { titre_element->setText(""); } bt_et02_con->setDisabled( true ); a_reencoder = "0"; // *** Récup info vidéo *** proc_001 = new QProcess( this ); proc_001->addArgument( "tcprobe"); proc_001->addArgument( "-i"); proc_001->addArgument( path_video ); connect( proc_001, SIGNAL(readyReadStdout()), this, SLOT(test_type_video()) ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_import()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "transcode"); } idtpage->setText( table_message[30] ); // casse_tout(); } } else { QMessageBox::warning(this, "ManDVD", table_message[23]); bt_annul_gener_slide->setEnabled( true ); menu_diapo_bt->setEnabled(true); bt_start_gener_slide->setEnabled( true ); bt_gener_slideshow->setEnabled( true ); bt_fermer_slide->setEnabled( true ); num_photo->setEnabled( true ); } } void mainfrm::num_photo_valueChanged( int ) { // ******************************** // *** On déplace le cadre de sélection *** // ******************************** the_selection->setGeometry(5 + (130 * (num_photo->value() - 1)),-5,130,130); // *** Modification des paramètres de la photo *** if ( num_photo->value() > 0 && nbre_images > 0) { QLabel *mypix; mypix = table_pnt_img[num_photo->value() - 1]; apercu_photo_diapo->setPixmap( *mypix->pixmap() ); tmp_004 = table_images[num_photo->value() - 1][1]; QIconViewItem *myi = mylsttrans->findItem(table_images[num_photo->value() - 1][2],Qt::ExactMatch); if ( myi != 0) { myi->setSelected(true); } txt_img->setText(table_images[num_photo->value() - 1][4]); rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { duree_affichage->setValue( rc_001 ); } tmp_004 = table_images[num_photo->value() - 1][3]; rc_001 = tmp_004.toInt(&ok,10); framecolor->setPaletteBackgroundColor( table_color[num_photo->value() - 1] ); if (ok == true) { duree_transition->setValue( rc_001 ); } bt_dep_gauche->setGeometry((5 + (130 * (num_photo->value() - 1))) + 10 ,116,21,21); bt_dep_droite->setGeometry((5 + (130 * (num_photo->value() - 1))) + 99,116,21,21); bt_dep_gauche->show(); bt_dep_droite->show(); bt_dep_gauche->raise(); bt_dep_droite->raise(); // *** Déplacement automatique de la timeline *** QRect locposition = the_selection->geometry(); QRect locpostime = timeline->geometry(); if ( locposition.left() > ((locpostime.left() * -1) + 980) ) { timeline->setGeometry((locposition.left() * -1), 25, 13500, 140); scroll_timeline->setValue((locposition.left() * -1)); } else { if ( locposition.left() < (locpostime.left() * -1) ) { if (num_photo->value() > 7) { timeline->setGeometry(locposition.left()*-1, 25, 13500, 140); scroll_timeline->setValue(locposition.left()); } else { timeline->setGeometry(0, 25, 13500, 140); scroll_timeline->setValue(0); } } } } } void mainfrm::casse_tout() { // ************************************ // *** Destruction des images du diaporama *** // ************************************ int indice0; indice0 = 0; while (indice0 < nbre_images) { delete table_pnt_img[indice0]; delete table_pnt_txt[indice0][0]; delete table_pnt_txt[indice0][1]; indice0 = indice0 + 1; } nbre_images = 0; } void mainfrm::bt_select_zik_clicked() { // ************************************** // *** Sélection du fond musical du diaporama *** // ************************************** if (nbre_images > 0) { QString myfic = QFileDialog::getOpenFileName( dossier_travail, "Images (*.wav *.WAV *.mp3 *.MP3 *.ogg *.OGG)", this, "Ouvrir un fichier", "Sélectionnez le fichier musique à importer" ); if ( myfic.isNull() ) { if ( QMessageBox::question(this,"ManDVD", table_message[24], "Yes", "No", QString::null, 0, 1 ) == 0 ) { path_musique = ""; bt_musique_options->setDisabled(true); } } else { bt_musique_options->setEnabled(true); calczik(myfic); } } else { QMessageBox::warning(this, "ManDVD", table_message[20]); } } void mainfrm::calczik(QString myfic) { path_musique = myfic; // *** Récupération de la longueur de la bande son *** m_pMPlayerWidget->setFilename ( myfic ); if (m_pMPlayerWidget->isPlaying() == false) { m_pMPlayerWidget->slotPlay(); } durfilmchap = 0; while (durfilmchap == 0) { if (m_pMPlayerWidget->isPlaying() == false) { durfilmchap = 1; } else { m_pMPlayerWidget->slotReadStdout(); durfilmchap = m_pMPlayerWidget->m_fLength; } } if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop(); } Audio_1->setGeometry(0,121,500,18); Audio_1->setText("Audio : " + myfic + " ---> " + QString::number(durfilmchap) + " sec"); yaaudio = durfilmchap; Audio_1->show(); calcul_dureeslide(); } void mainfrm::gotrans() { // **************************************** // *** Génération des transitions et du slideshow *** // **************************************** if ( SFrom->value() > STo->value() ) { STo->setValue(SFrom->value()); } if ( STo->value() < SFrom->value() ) { STo->setValue(SFrom->value()); } QPixmap my_pixmap_3; QPainter mypainter( this ); int cpt_001; cpt_001 = SFrom->value() - 1; int cpt_002; int cpt_003; int depx; int depy; int posx; int posy; int curx; int cury; int curz; QString S_wduratrans; int wfpstrans = sliderfps->value(); int wduratrans = 100 / wfpstrans; if (wduratrans < 10) { S_wduratrans = "0" + QString::number(wduratrans); } else { S_wduratrans = QString::number(wduratrans); } int total_step = 0; QImage tmp_img_1; QImage tmp_img_2; QImage tmp_img_3; QPixmap wl_pix_1(720,576); QPixmap wl_pix_2(720,576); QPixmap wl_pix_3(720,576); QPixmap wl_pix_4(720,576); tmp_006 = ""; progress = 0; QTime mytime(0,0,0); QTime mytime_2(0,0,0); QFile myfic( wpathtotalproj + "/slideshow.txt"); if ( myfic.open( IO_WriteOnly )) { while (cpt_001 < STo->value()) { // *** Pas de chapitres sur la dernière image *** if (cpt_001 < nbre_images - 1) { if (table_images[cpt_001][2] != table_message[40]) { progress = table_images[cpt_001][3].toInt( &ok, 10 ); mytime_2 = mytime.addSecs(progress); progress = table_images[cpt_001][1].toInt( &ok, 10 ); mytime = mytime_2.addSecs(progress); tmp_006 = tmp_006 + mytime.toString("hh:mm:ss") + ","; } else { mytime_2 = mytime.addSecs(0); progress = table_images[cpt_001][1].toInt( &ok, 10 ); mytime = mytime_2.addSecs(progress); tmp_006 = tmp_006 + mytime.toString("hh:mm:ss") + ","; } } // if (table_images[cpt_001][2] == table_message[41]) { if (cpt_001 == 0 || cpt_001 == SFrom->value() - 1 ) { tmp_001 = "fadein:" + table_images[cpt_001][3] + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } else { tmp_001 = "fadeout:" + table_images[cpt_001][3] + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } } else { if (table_images[cpt_001][2] == table_message[42]) { tmp_001 = "fadein:" + table_images[cpt_001][3] + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } else { if (table_images[cpt_001][2] == table_message[43]) { if (cpt_001 == 0 || cpt_001 == SFrom->value() - 1 ) { tmp_001 = "fadein:" + table_images[cpt_001][3] + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } else { tmp_001 = "crossfade:" + table_images[cpt_001][3] + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } } } } // *** Transition fire ************************************************ if ( table_images[cpt_001][2] == "Fire" ) { if (cpt_001 > 0) { tmp_img_1.load(table_images[cpt_001- 1][0]); } else { tmp_img_1.load(table_images[cpt_001][0]); tmp_img_1.fill(0); } my_stamp_1->pixmap()->convertFromImage(tmp_img_1); wl_pix_4.convertFromImage(tmp_img_1); tmp_img_1.load(table_images[cpt_001][0]); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); wl_pix_1.convertFromImage(tmp_img_1); tmp_img_2 = pixflam->pixmap()->convertToImage(); wl_pix_2.convertFromImage(tmp_img_2); tmp_004 = table_images[cpt_001][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { cpt_002 = rc_001 * wfpstrans; depx = 576 / cpt_002; cpt_003 = 0; curx = 576; while(cpt_003 < cpt_002) { posx = curx - depx; curx = posx; wl_pix_3.fill(Qt::black); ::bitBlt ( &wl_pix_3, 0, 0, &wl_pix_4, 0, 0, -1, -1, Qt::CopyROP, false ); if (cpt_001 > 0) { ::bitBlt ( &wl_pix_3, 0, curx, &wl_pix_2, 0, 0, -1, -1, Qt::CopyROP, false ); } else { ::bitBlt ( &wl_pix_3, 0, curx, &wl_pix_2, 0, 0, -1, -1, Qt::CopyROP, false ); } wl_pix_3.save( wpathtotalproj + "/transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg", "JPEG"); tmp_001 = "transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg:0." + S_wduratrans + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); total_step = total_step + 1; cpt_003 = cpt_003 + 1; } tmp_001 = "crossfade:0.5:\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } } // *** Transition droite a gauche ************************************************ if ( table_images[cpt_001][2] == table_message[44] ) { if (cpt_001 > 0) { tmp_img_1.load(table_images[cpt_001- 1][0]); } else { tmp_img_1.load(table_images[cpt_001][0]); tmp_img_1.fill(0); } my_stamp_1->pixmap()->convertFromImage(tmp_img_1); tmp_img_1.load(table_images[cpt_001][0]); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); tmp_004 = table_images[cpt_001][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { cpt_002 = rc_001 * wfpstrans; depx = 720 / cpt_002; cpt_003 = 0; curx = 720; while(cpt_003 < cpt_002) { posx = curx - depx; curx = posx; copyBlt ( my_stamp_1->pixmap(), posx, 0, my_stamp_2->pixmap(), 0, 0, -1, -1 ); my_stamp_1->pixmap()->save( wpathtotalproj + "/transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg", "JPEG"); tmp_001 = "transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg:0." + S_wduratrans + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); total_step = total_step + 1; cpt_003 = cpt_003 + 1; } } } // *** Transition gauche a droite ************************************************ if ( table_images[cpt_001][2] == table_message[45] ) { if (cpt_001 > 0) { tmp_img_1.load(table_images[cpt_001- 1][0]); } else { tmp_img_1.load(table_images[cpt_001][0]); tmp_img_1.fill(0); } my_stamp_1->pixmap()->convertFromImage(tmp_img_1); tmp_img_1.load(table_images[cpt_001][0]); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); tmp_004 = table_images[cpt_001][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { cpt_002 = rc_001 * wfpstrans; depx = 720 / cpt_002; cpt_003 = 0; curx = 0; while(cpt_003 < cpt_002) { posx = curx + depx; curx = posx; copyBlt ( my_stamp_1->pixmap(), 0, 0, my_stamp_2->pixmap(), 720 - posx, 0, -1, -1 ); my_stamp_1->pixmap()->save( wpathtotalproj + "/transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg", "JPEG"); tmp_001 = "transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg:0." + S_wduratrans + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); total_step = total_step + 1; cpt_003 = cpt_003 + 1; } } } // *** Transition bas en haut ************************************************ if ( table_images[cpt_001][2] == table_message[46] ) { if (cpt_001 > 0) { tmp_img_1.load(table_images[cpt_001- 1][0]); } else { tmp_img_1.load(table_images[cpt_001][0]); tmp_img_1.fill(0); } my_stamp_1->pixmap()->convertFromImage(tmp_img_1); tmp_img_1.load(table_images[cpt_001][0]); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); tmp_004 = table_images[cpt_001][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { cpt_002 = rc_001 * wfpstrans; depx = 576 / cpt_002; cpt_003 = 0; curx = 576; while(cpt_003 < cpt_002) { posx = curx - depx; curx = posx; copyBlt ( my_stamp_1->pixmap(), 0, posx, my_stamp_2->pixmap(), 0, 0, -1, -1 ); my_stamp_1->pixmap()->save( wpathtotalproj + "/transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg", "JPEG"); tmp_001 = "transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg:0." + S_wduratrans + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); total_step = total_step + 1; cpt_003 = cpt_003 + 1; } } } // *** Transition haut en bas ************************************************ if ( table_images[cpt_001][2] == table_message[47] ) { if (cpt_001 > 0) { tmp_img_1.load(table_images[cpt_001- 1][0]); } else { tmp_img_1.load(table_images[cpt_001][0]); tmp_img_1.fill(0); } my_stamp_1->pixmap()->convertFromImage(tmp_img_1); tmp_img_1.load(table_images[cpt_001][0]); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); tmp_004 = table_images[cpt_001][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { cpt_002 = rc_001 * wfpstrans; depx = 576 / cpt_002; cpt_003 = 0; curx = 0; while(cpt_003 < cpt_002) { posx = curx + depx; curx = posx; copyBlt ( my_stamp_1->pixmap(), 0, 0, my_stamp_2->pixmap(), 0, 576 - posx, -1, -1 ); my_stamp_1->pixmap()->save( wpathtotalproj + "/transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg", "JPEG"); tmp_001 = "transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg:0." + S_wduratrans + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); total_step = total_step + 1; cpt_003 = cpt_003 + 1; } } } // *** Transition zoom ************************************************ if ( table_images[cpt_001][2] == table_message[48] ) { if (cpt_001 > 0) { tmp_img_1.load(table_images[cpt_001- 1][0]); } else { tmp_img_1.load(table_images[cpt_001][0]); tmp_img_1.fill(0); } my_stamp_1->pixmap()->convertFromImage(tmp_img_1); tmp_img_1.load(table_images[cpt_001][0]); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); tmp_img_2 = my_stamp_2->pixmap()->convertToImage(); tmp_004 = table_images[cpt_001][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { cpt_002 = rc_001 * wfpstrans; depx = 360 / cpt_002; depy = 288 / cpt_002; cpt_003 = 0; curx = 360 + depx; cury = 288 + depy; while(cpt_003 < cpt_002) { tmp_img_3 = tmp_img_2.scale(((720 / 2) - curx) * 2 , ((576 / 2) - cury) * 2,QImage::ScaleMin); my_stamp_3->pixmap()->convertFromImage(tmp_img_3); posx = curx - depx; posy = cury - depy; curx = posx; cury = posy; //copyBlt ( my_stamp_1->pixmap(), curx, cury, my_stamp_3->pixmap(), 0, 0, -1, -1 ); copyBlt ( my_stamp_1->pixmap(), 360 - (tmp_img_3.width() / 2), 288 - (tmp_img_3.height() / 2), my_stamp_3->pixmap(), 0, 0, -1, -1 ); my_stamp_1->pixmap()->save( wpathtotalproj + "/transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg", "JPEG"); tmp_001 = "transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg:0." + S_wduratrans + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); total_step = total_step + 1; cpt_003 = cpt_003 + 1; } } } // *** Transition double ************************************************ if ( table_images[cpt_001][2] == table_message[49] ) { if (cpt_001 > 0) { tmp_img_1.load(table_images[cpt_001- 1][0]); } else { tmp_img_1.load(table_images[cpt_001][0]); tmp_img_1.fill(0); } my_stamp_1->pixmap()->convertFromImage(tmp_img_1); tmp_img_1.load(table_images[cpt_001][0]); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); tmp_004 = table_images[cpt_001][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { cpt_002 = rc_001 * wfpstrans; depx = 576 / cpt_002; cpt_003 = 0; curx = 0; cury = 576; while(cpt_003 < cpt_002) { posx = curx + depx; posy = cury - depx; curx = posx; cury = posy; copyBlt ( my_stamp_1->pixmap(), 0, 0, my_stamp_2->pixmap(), 0, 576 - posx, 360, -1 ); copyBlt ( my_stamp_1->pixmap(), 360, cury, my_stamp_2->pixmap(), 360, 0, 360, -1 ); my_stamp_1->pixmap()->save( wpathtotalproj + "/transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg", "JPEG"); tmp_001 = "transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg:0." + S_wduratrans + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); total_step = total_step + 1; cpt_003 = cpt_003 + 1; } } } // *** Transition haut et bas ************************************************ if ( table_images[cpt_001][2] == table_message[50] ) { if (cpt_001 > 0) { tmp_img_1.load(table_images[cpt_001- 1][0]); } else { tmp_img_1.load(table_images[cpt_001][0]); tmp_img_1.fill(0); } my_stamp_1->pixmap()->convertFromImage(tmp_img_1); tmp_img_1.load(table_images[cpt_001][0]); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); tmp_004 = table_images[cpt_001][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { cpt_002 = rc_001 * wfpstrans; depx = 288 / cpt_002; cpt_003 = 0; curx = 0; cury = 576; curz = -288; while(cpt_003 < cpt_002) { posx = curx + depx; posy = cury - depx; curz = curz + depx; curx = posx; cury = posy; copyBlt ( my_stamp_1->pixmap(), 0, curz, my_stamp_2->pixmap(), 0, 0, -1, 288 ); copyBlt ( my_stamp_1->pixmap(), 0, cury, my_stamp_2->pixmap(), 0, 289, -1, -1 ); my_stamp_1->pixmap()->save( wpathtotalproj + "/transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg", "JPEG"); tmp_001 = "transition" + QString::number(cpt_001) + "_" + QString::number(cpt_003) + ".jpg:0." + S_wduratrans + ":\n"; myfic.writeBlock(tmp_001,tmp_001.length()); total_step = total_step + 1; cpt_003 = cpt_003 + 1; } } } // *** Fin du calcul des transitions ************************************* tmp_001 = "gibusima_x" + QString::number(cpt_001) + ".jpg:"+table_images[cpt_001][1]+"::\n"; total_step = total_step + 1; myfic.writeBlock(tmp_001,tmp_001.length()); cpt_001 = cpt_001 + 1; if (cpt_001 == nbre_images) { if ( bt_add_fondu_fin->isChecked() == true ) { tmp_001 = "fadeout:2:\n"; myfic.writeBlock(tmp_001,tmp_001.length()); } } } myfic.close(); QFile myfic_2( wpathtotalproj + "/gendiapo.sh"); if ( myfic_2.open( IO_WriteOnly )) { tmp_001 = "#!/bin/bash\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "cd \"" + wpathtotalproj + "\"\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); cpt_001 = 0; while (cpt_001 < nbre_images) { tmp_img_1.load(table_images[cpt_001][0]); //tmp_img_2 = tmp_img_1.scale(720, 576,QImage::ScaleMax); my_stamp_2->pixmap()->convertFromImage(tmp_img_1); // *** Ajout du texte sur la diapo *** myfont.setFixedPitch ( true ); QFontMetrics fm(myfont); longueur = fm.width("\"" + table_images[cpt_001][4] + "\"",-1); hauteur = (taille_police + 2)*2; mypainter.end(); mypainter.begin( my_stamp_2->pixmap() ); mypainter.setPen ( table_color[cpt_001] ); mypainter.setFont ( myfont ); mypainter.drawText( (720 - longueur) / 2, 500, table_images[cpt_001][4] ); // my_stamp_2->pixmap()->save( wpathtotalproj + "/gibusima_x" + QString::number(cpt_001) + ".jpg", "JPEG" ); cpt_001 = cpt_001 + 1; } if ( qualite_render->isChecked() == true ) { tmp_002 = ""; } else { tmp_002 = "-L"; } QTime nowtime; nowtime = QTime::currentTime(); tmp_009 = "slideshow_" + nowtime.toString("hh:mm:ss"); if (path_musique != "") { if ( videostandard->currentText() == "PAL" ) { tmp_001 = "nice -n 0 dvd-slideshow -o \"" + wpathtotalproj + "\" -n '" + tmp_009 + "' -p " + tmp_002 + " -f slideshow.txt -a \"" + path_musique + "\"\n"; } else { tmp_001 = "nice -n 0 dvd-slideshow -o \"" + wpathtotalproj + "\" -n '" + tmp_009 + "' " + tmp_002 + " -f slideshow.txt -a \"" + path_musique + "\"\n"; } } else { if ( videostandard->currentText() == "PAL" ) { tmp_001 = "nice -n 0 dvd-slideshow -o \"" + wpathtotalproj + "\" -n '" + tmp_009 + "' -p -f slideshow.txt\n"; } else { tmp_001 = "nice -n 0 dvd-slideshow -o \"" + wpathtotalproj + "\" -n '" + tmp_009 + "' -f slideshow.txt\n"; } } myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f " + wpathtotalproj + "/gibusima_x*.*\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f " + wpathtotalproj + "/transition*.*\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f " + wpathtotalproj + "/slideshow.txt\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f " + wpathtotalproj + "/slideshow.xml\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f " + wpathtotalproj + "/*.log\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); myfic_2.close(); } } pb_004->setTotalSteps( total_step ); rc_002 = 0; proc_001 = new QProcess( this ); proc_001->addArgument( "bash" ); proc_001->addArgument( wpathtotalproj + "/gendiapo.sh" ); connect( proc_001, SIGNAL(readyReadStdout()), this, SLOT(stdout_diapo()) ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_gendiapo()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "dvd-slideshow"); workinprogress->hide(); bt_gener_slideshow->setEnabled( true ); bt_fermer_slide->setEnabled( true ); num_photo->setEnabled( true ); tabWidget2->setEnabled(true); cadre_timeline->setEnabled(true); } } void mainfrm::bt_annul_gener_slide_clicked() { // ***************************************** // *** Annulation de la génération du diaporama *** // ***************************************** workinprogress->hide(); menu_diapo_bt->setEnabled( true ); bt_gener_slideshow->setEnabled( true ); bt_fermer_slide->setEnabled( true ); num_photo->setEnabled( true ); } void mainfrm::bt_start_gener_slide_clicked() { // ***************************************** // *** Démarrage de la génération du diaporama *** // ***************************************** bt_annul_gener_slide->setDisabled( true ); bt_start_gener_slide->setDisabled( true ); toolButton94->setDisabled(true); toolButton94_2->setDisabled(true); SFrom->setDisabled(true); STo->setDisabled(true); pb_004->setProgress( 0 ); tabWidget2->setDisabled(true); cadre_timeline->setDisabled(true); gotrans(); } void mainfrm::bt_aff_con_diapo_clicked() { // ************************ // *** Switch console diapo *** // ************************ if (textEdit2->isVisible() == true) { textEdit2->hide(); } else { textEdit2->show(); textEdit2->raise(); } } void mainfrm::bt_fond_mus_clicked() { // *************************** // *** Sélection du fond musical *** // *************************** QString myfic = QFileDialog::getOpenFileName( "~", "Images (*.wav *.WAV *.MP3 *.mp3 *.ogg *.OGG)", this, "Ouvrir un fichier", "Sélectionnez le fond musical à importer" ); if ( myfic.isNull() ) { if ( QMessageBox::question(this,"ManDVD", table_message[24], "Yes", "No", QString::null, 0, 1 ) == 0 ) { path_fond_musical = ""; loopsound->setCurrentItem(0); loopsound->setDisabled( true ); } } else { path_fond_musical = myfic; loopsound->setEnabled( true ); } } void mainfrm::bt_affcach_con_grave_clicked() { // ******************************************** // *** Affichage ou pas de la console dans le gravage *** // ******************************************** if (textEdit3->isVisible() == true) { textEdit3->hide(); } else { textEdit3->show(); textEdit3->raise(); } } void mainfrm::bt_choix_police_titre_clicked() { // ********************************** // *** Sélection de la police de caractère *** // ********************************** myfont = QFontDialog::getFont( &ok, QFont( "Helvetica [Cronyx]", 10 ), this ); taille_police = myfont.pointSize(); app_pol_txt->setFont(myfont); } void mainfrm::bt_choix_couleur_titre_clicked() { // ***************************************** // *** Choix de la couleur des titres du diaporama *** // ***************************************** couleur_1 = QColorDialog::getColor( couleur_1 , this, "Choisissez une couleur" ); } void mainfrm::bt_add_img_slide_2_clicked() { // ********************************************** // *** Importation de l'ensemble des images d'un dossier *** // ********************************************** pb_import->setProgress(0); QImage myimg; QImage tmp_img_2; QString myfic; QString ext; int cpt1; QColor mycolor(100, 100, 100); QString mypath = QFileDialog::getExistingDirectory( dossier_travail, this, "Dossier d'images à importer", "Choisissez le dossier qui contient les images à importer.", TRUE ); if ( mypath.isNull() == true ) { } else { QDir d; dossier_travail = mypath; d.setPath(mypath); pb_import->setTotalSteps(d.count()); d.setFilter( QDir::Files | QDir::NoSymLinks ); const QFileInfoList *list = d.entryInfoList(); QFileInfoListIterator it( *list ); QFileInfo *fi; QPixmap wl_pix1(320,256); QPixmap wl_pix2(720,576); QImage wl_img1; QImage wl_img2; QPixmap mypix(320,256); QPixmap mypix_2(720,576); QImage wl_img4; QTime nowtime; int randomvalue; tmp_002 = d.path(); cpt1 = 0; while ( (fi = it.current()) != 0 && nbre_images < 99 ) { tmp_003 = fi->fileName().latin1(); myfic = fi->fileName().latin1(); ext = fi->extension( FALSE ); cpt1 = cpt1 + 1; pb_import->setProgress(cpt1); if ( ext == "jpg" || ext == "jpeg" || ext == "JPG" || ext == "JPEG" || ext == "png" || ext == "PNG") { tmp_004 = tmp_002 + "/" + tmp_003; myimg.load( tmp_004 ); tmp_img_2 = myimg.scale(320, 256,QImage::ScaleMin); // mypix.convertFromImage( tmp_img_2 ); wl_pix1.fill(Qt::black); wl_img1 = wl_pix1.convertToImage(); ::bitBlt( &wl_pix1, (320 - mypix.width()) / 2, (256 - mypix.height()) / 2, &mypix, 0, 0, -1, -1, Qt::CopyROP, false ); wl_img2 = wl_pix1.convertToImage(); tmp_001 = myfic; QLabel *mylabel = new QLabel(timeline); mylabel->setScaledContents(true); mylabel->setGeometry( (10 + (nbre_images * 120)) + (nbre_images * 10), 6 , 120, 96); mylabel->setPixmap ( wl_img2 ); // mylabel->installEventFilter(this); // mylabel->setFrameStyle( QFrame::Box | QFrame::Plain); mylabel->setLineWidth( 2 ); mylabel->show(); mylabel->raise(); QLabel *mylabel_2 = new QLabel(timeline); mylabel_2->setText("Photo : " + QString::number(nbre_images + 1)); mylabel_2->setGeometry((10 + (nbre_images * 120)) + (nbre_images * 10), 103 , 120, 14); mylabel_2->setPaletteForegroundColor(mycolor); mylabel_2->show(); mylabel_2->raise(); // tmp_img_2 = myimg.scale(720, 576,QImage::ScaleMin); mypix_2.convertFromImage( tmp_img_2 ); wl_pix2.fill(Qt::black); wl_img1 = wl_pix2.convertToImage(); ::bitBlt( &wl_pix2, (720 - mypix_2.width()) / 2, (576 - mypix_2.height()) / 2, &mypix_2, 0, 0, -1, -1, Qt::CopyROP, false ); wl_img4 = wl_pix2.convertToImage(); nowtime = QTime::currentTime(); tmp_009 = wpathtotalproj + "GIBtmpphoto" + QString::number(nbre_images) + "_" + nowtime.toString("hh:mm:ss.zzz") + ".png"; wl_img4.save( tmp_009, "PNG" ); // QLabel *mylabel_3 = new QLabel(timeline); if (lsttransdef->currentText() == table_message[40]) { mylabel_3->setPixmap( *null_transition->pixmap()); } else { QLabel *localmypix; if (lsttransdef->currentText() == table_message[51]) { randomvalue=rand()%11; if ( randomvalue > 0) { localmypix = pnt_table_trans[ randomvalue ]; } else { localmypix = pnt_table_trans[ 3 ]; } } else { if ( lsttransdef->currentItem() == 12 ) { localmypix = pnt_table_trans[ 11 ]; } else { localmypix = pnt_table_trans[ lsttransdef->currentItem() ]; } } mylabel_3->setPixmap( *localmypix->pixmap()); } mylabel_3->setGeometry((13 + (nbre_images * 120)) + (nbre_images * 10), 35 , 40, 40); mylabel_3->setFrameStyle( QFrame::Box | QFrame::Plain); mylabel_3->setScaledContents(true); mylabel_3->setLineWidth( 1 ); mylabel_3->setPaletteForegroundColor(mycolor); mylabel_3->show(); mylabel_3->raise(); // table_pnt_img[nbre_images] = mylabel; table_pnt_txt[nbre_images][0] = mylabel_2; table_pnt_txt[nbre_images][1] = mylabel_3; table_images[nbre_images][0] = tmp_009; table_images[nbre_images][1] = QString::number(spindurdiapo->value()); table_color[nbre_images] = couleur_1; framecolor->setPaletteBackgroundColor( couleur_1 ); if (lsttransdef->currentText() == table_message[51]) { lst_effets->setCurrentItem( randomvalue ); table_images[nbre_images][2] = lst_effets->currentText(); } else { table_images[nbre_images][2] = lsttransdef->currentText(); } table_images[nbre_images][3] = QString::number(spindurtrans->value()); table_images[nbre_images][4] = ""; nbre_images = nbre_images + 1; } ++it; } calcul_dureeslide(); cpt1 = pb_import->totalSteps(); pb_import->setProgress(cpt1); if (nbre_images > 7) { scroll_timeline->setMaxValue( (nbre_images - 7) * 130); } else { scroll_timeline->setMaxValue( 0 ); } if (nbre_images > 0) { num_photo->setMinValue( 1 ); box_det_photo->setEnabled(true); num_photo->setMaxValue( nbre_images ); if (the_selection->isHidden() == true) { the_selection->setGeometry(5,-5,130,130); the_selection->show(); } if (nbre_images > 99) { QMessageBox::warning(this, "ManDVD", table_message[19]); } } } } void mainfrm::bt_create_fond_anim_clicked() { // ************************************************ // *** Ouverture de la fenêtre de création d'un menu animé *** // ************************************************ creation_menu_anim->setGeometry(0,110,1000,700); Etape_03->hide(); textEdit4->hide(); bt_go_extract->setDisabled( true ); idtpage->setText(table_message[35]); vframe->setGeometry(30,130,380,280); vframe->show(); vframe->raise(); buttonGroup64->hide(); creation_menu_anim->show(); } void mainfrm::bt_fermer_menu_anim_clicked() { // ************************************************ // *** Fermeture de la fenêtre de création d'un menu animé *** // ************************************************ idtpage->setText(table_message[31]); m_pMPlayerWidget->slotStop(); creation_menu_anim->hide(); vframe->hide(); Etape_03->show(); } void mainfrm::bt_import_video_manim_clicked() { // ***************************** // *** Choix de la vidéo à importer *** // ***************************** QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "Vidéos (*.mpg *.MPG *.mpeg *.MPEG *.VOB *.vob *.avi *.AVI)", this, "Ouvrir un fichier", "Sélectionnez la vidéo à importer" ); if ( myfic.isNull() ) { } else { namevideoimport->setText(myfic); // *** Récup info vidéo *** bt_go_extract->setDisabled( true ); proc_001 = new QProcess( this ); proc_001->addArgument( "tcprobe"); proc_001->addArgument( "-i"); proc_001->addArgument( myfic ); frame_rate = "0"; connect( proc_001, SIGNAL(readyReadStdout()), this, SLOT(test_type_video_menuanim()) ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_import_menu_anim()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "transcode"); } } } void mainfrm::bt_charg_wall_uni_clicked() { // *************************************** // *** Choix de la couleur uni du fond du menu *** // *************************************** QColor couleur_tmp; couleur_tmp = QColorDialog::getColor( couleur_tmp , this, "Choisissez une couleur" ); if ( couleur_tmp.isValid() ) { QImage myimg; apercu_fond->pixmap()->fill ( couleur_tmp ); myimg = apercu_fond->pixmap()->convertToImage(); QImage myimg_2 = myimg.scale (720, 576, QImage::ScaleFree); QPixmap mypix ( myimg_2 ); apercu_fond->setPixmap ( mypix ); save_fond = myimg_2.copy(0,0,720,576,0); // *** Mise en place des fonds d'écran pour le menu *** my_pixmap_001->setPixmap( *apercu_fond->pixmap() ); boite_effets->setEnabled( true ); path_fond = "Couleur unie"; } } void mainfrm::bt_go_extract_clicked() { // ********************************* // *** Extraction des images de la vidéo *** // ********************************* if (namevideoimport->text() == "") { QMessageBox::warning(this, "ManDVD", table_message[25]); } else { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotPause(); } QFile myfic_2( wpathtotalproj + "/genmenuanim.sh"); int debut; int fin; QString C_debut; QString C_fin; if ( myfic_2.open( IO_WriteOnly )) { tmp_001 = "#!/bin/bash\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "cd \"" + wpathtotalproj + "\"\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "rm -f gibmenanim*.*\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); debut = startvidmenanim->value() * projfps; fin = (dureevidmenanim->value() + startvidmenanim->value())* projfps; C_debut = QString::number(debut); C_fin = QString::number(fin); tmp_001 = "transcode -a 0 -c "+ C_debut + "-" + C_fin + " -Z 720x576 -i \"" + namevideoimport->text() + "\" -y jpg -F 100 -o gibmenanim\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); myfic_2.close(); // pb_006->setTotalSteps(dureevidmenanim->value() * projfps); rc_002 = 0; textEdit4->clear(); nbre_images = 0; pb_006->setProgress(0); panel_menu_anim->setDisabled( true ); // proc_001 = new QProcess( this ); proc_001->addArgument( "bash"); proc_001->addArgument( wpathtotalproj +"/genmenuanim.sh"); connect( proc_001, SIGNAL(readyReadStdout()), this, SLOT(stdout_genanimenu()) ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_genanimenu()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "transcode"); } else { bt_modif_gimp->setDisabled(true); bt_effets_anim->setDisabled(true); } } } } void mainfrm::stdout_genanimenu() { // *********************************************** // *** Lecture de la sortie console d'extraction des images *** // *********************************************** lineEdit1->setText( proc_001->readStdout() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "encoding frame [" , 0); if (rc_001 != -1) { pb_006->setProgress( pb_006->progress() + 1 ); nbre_images = nbre_images + 1; } rc_001 = tmp_001.find ( "Err" , 0); if (rc_001 != -1) { rc_002 = 1; } textEdit4->append(lineEdit1->text()); } void mainfrm::fin_genanimenu() { // **************************** // *** Fin d'extraction des images *** // **************************** pb_006->setProgress(dureevidmenanim->value() * projfps); if (rc_002 == 0 && nbre_images > 0) { cdraddmask->setEnabled( true ); panel_menu_anim->setEnabled( true ); QImage myimg ( wpathtotalproj + "/gibmenanim000000.jpg", 0); QPixmap mypix ( myimg ); imgstart->setPixmap( mypix ); exempleimg->setPixmap( mypix ); bt_valid_menu_anim->setEnabled( true ); progress = 0; wdebut = 0; nbre_images=dureevidmenanim->value() * projfps; wfin = nbre_images; txtnbreimages->setText("Nombre d'images : " + QString::number(nbre_images)); txtnbreimages_2->setText("Première image : 0"); txtnbreimages_2_2->setText("Dernière image : " + QString::number(nbre_images - 1)); changingframe->setMaxValue(nbre_images - 1); changingframe->setValue(0); bt_modif_gimp->setEnabled(true); bt_effets_anim->setEnabled(true); } else { bt_valid_menu_anim->setDisabled( true ); QMessageBox::warning(this, "ManDVD", table_message[26]); } } void mainfrm::bt_console_menu_anim_clicked() { // **************************************************** // *** Affichage ou pas de la console dans création menu animé *** // **************************************************** if (textEdit4->isVisible() == true) { textEdit4->hide(); } else { textEdit4->show(); textEdit4->raise(); } } void mainfrm::bt_avance_anim_clicked() { // ************************* // *** On avance d'une image *** // ************************* if (progress < nbre_images - 1) { progress = progress + 1; tmp_001 = QString::number(progress); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); QImage myimg ( wpathtotalproj + "/" + tmp_002 + ".jpg", 0); QPixmap mypix ( myimg ); imgstart->setPixmap( mypix ); changingframe->setValue(progress); } } void mainfrm::bt_recul_anim_clicked() { // ************************ // *** On recul d'une image *** // ************************ if (progress > 0) { progress = progress - 1; tmp_001 = QString::number(progress); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); QImage myimg ( wpathtotalproj + "/" + tmp_002 + ".jpg", 0); QPixmap mypix ( myimg ); imgstart->setPixmap( mypix ); changingframe->setValue(progress); } } void mainfrm::bt_last_imganim_clicked() { // ******************* // *** Dernière image *** // ******************* progress = nbre_images - 1; tmp_001 = QString::number(progress); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); QImage myimg ( wpathtotalproj + "/" + tmp_002 + ".jpg", 0); QPixmap mypix ( myimg ); imgstart->setPixmap( mypix ); changingframe->setValue(progress); } void mainfrm::bt_first_imganim_clicked() { // ******************* // *** Première image *** // ******************* progress = 0; QImage myimg ( wpathtotalproj + "/gibmenanim000000.jpg", 0); QPixmap mypix ( myimg ); imgstart->setPixmap( mypix ); changingframe->setValue(progress); } void mainfrm::test_type_video_menuanim() { // **************************** // *** Lecture de la sortie console *** // **************************** lineEdit1->setText( proc_001->readStdout() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "frame rate: -f " , 0); if (rc_001 != -1) { frame_rate = tmp_001.mid(rc_001 + 15,2); } } void mainfrm::fin_import_menu_anim() { if (frame_rate != "0") { if (frame_rate == "25" || frame_rate == "30") { bt_go_extract->setEnabled( true ); m_pMPlayerWidget->setFilename ( namevideoimport->text() ); } else { bt_go_extract->setDisabled( true ); QMessageBox::warning(this, "ManDVD", table_message[27]); } } } void mainfrm::bt_modif_gimp_clicked() { // ************************************** // *** Modification d'une frame avec the gimp *** // ************************************** tmp_001 = QString::number(progress); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); // proc_001 = new QProcess( this ); proc_001->addArgument( "gimp"); proc_001->addArgument( wpathtotalproj + "/" + tmp_002 + ".jpg"); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_thegimp()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "The Gimp"); } else { this->setDisabled( true ); } } void mainfrm::fin_thegimp() { this->setEnabled( true ); QImage myimg ( wpathtotalproj + tmp_002 + ".jpg", 0); QPixmap mypix ( myimg ); imgstart->setPixmap( mypix ); } void mainfrm::bt_deb_menani_clicked() { int wtmp = progress; if (wtmp < wfin) { wdebut = progress; txtnbreimages_2->setText("Première image : " + QString::number(progress)); } else { QMessageBox::warning(this, "ManDVD", table_message[28]); } } void mainfrm::bt_fin_menani_clicked() { int wtmp = progress; if (wtmp > wdebut) { wfin = progress; txtnbreimages_2_2->setText("Dernière image : " + QString::number(progress)); } else { QMessageBox::warning(this, "ManDVD", table_message[29]); } } void mainfrm::bt_valid_menu_anim_clicked() { // ****************************************** // *** On valide et on retourne à l'étape précédente *** // ****************************************** QFile myfic_2( wpathtotalproj + "/nettoyage.sh"); if ( myfic_2.open( IO_WriteOnly )) { tmp_001 = "#!/bin/bash\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); tmp_001 = "cd " + wpathtotalproj + "\n"; myfic_2.writeBlock(tmp_001,tmp_001.length()); rc_001 = 0; rc_002 = 0; while (rc_001 < nbre_images) { if (rc_001 < wdebut || rc_001 > wfin) { tmp_001 = QString::number(rc_001); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); tmp_003 = "rm -f " + tmp_002 + ".jpg\n"; myfic_2.writeBlock(tmp_003,tmp_003.length()); } else { if ( rc_001 != rc_002) { tmp_001 = QString::number(rc_002); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); tmp_004 = QString::number(rc_001); tmp_005 = "gibmenanim000000"; tmp_005.replace(tmp_005.length()-tmp_004.length(),tmp_004.length(),tmp_004); tmp_003 = "mv -f " + tmp_005 + ".jpg " + tmp_002 + ".jpg\n"; myfic_2.writeBlock(tmp_003,tmp_003.length()); tmp_003 = "rm -f " + tmp_005 + ".jpg\n"; myfic_2.writeBlock(tmp_003,tmp_003.length()); } rc_002 = rc_002 + 1; } rc_001 = rc_001 + 1; } myfic_2.close(); } proc_001 = new QProcess( this ); proc_001->addArgument( "bash"); proc_001->addArgument( wpathtotalproj + "nettoyage.sh"); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_finanimenu()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "bash"); } } void mainfrm::fin_finanimenu() { tmp_001 = QString::number(wdebut); tmp_002 = "gibmenanim000000"; QImage myimg ( wpathtotalproj + "/" + tmp_002 + ".jpg", 0); QImage myimg_2 = myimg.scale (720, 576, QImage::ScaleFree); // if (namemaskimport->text() != "") { QPixmap mypix8 ( namemaskimport->text() ); QImage tmpimg1; tmpimg1 = mypix8.convertToImage(); bitBlt ( &myimg_2, 0, 0, &tmpimg1, 0, 0, 720, 576 ); } // QPixmap mypix ( myimg_2 ); apercu_fond->setPixmap ( mypix ); path_fond = "Menu animé"; save_fond = myimg_2.copy(0,0,720,576,0); // *** Mise en place des fonds d'écran pour le menu *** my_pixmap_001->setPixmap ( mypix ); boite_effets->setEnabled( true ); boite_effets->setDisabled( true ); // if ( joubouclmenu->isChecked() == true ) { loopsound->setCurrentText( table_message[60] ); } idtpage->setText(table_message[31]); m_pMPlayerWidget->slotStop(); vframe->hide(); creation_menu_anim->hide(); Etape_03->show(); } void mainfrm::changingframe_valueChanged( int ) { // ************************ // *** Changement de frame *** // ************************ tmp_001 = QString::number( changingframe->value() ); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); QImage myimg ( wpathtotalproj + "/" + tmp_002 + ".jpg", 0); QPixmap mypix ( myimg ); imgstart->setPixmap( mypix ); progress = changingframe->value(); } void mainfrm::bt_add_photo_bt_clicked() { QString myfic = QFileDialog::getOpenFileName( dossier_travail_3, "Images (*.jpg *.JPG *.jpeg *.JPEG *.png *.PNG)", this, "Ouvrir un fichier", "Sélectionnez le fichier image à importer" ); if ( myfic.isNull() ) { } else { int i = myfic.findRev( '/' ); if ( i != 1 ) { dossier_travail_3 = myfic.mid(0,i); } else { dossier_travail_3 = myfic; } QImage myimg ( myfic, 0); QPixmap mypix ( myimg ); appimgbt->setPixmap ( mypix ); appimgbt->show(); lineEdit8->setText( myfic ); } } void mainfrm::bt_import_video_manim_2_clicked() { // ******************************* // *** Sélection du mask d'animation *** // ******************************* QString myfic = QFileDialog::getOpenFileName( dossier_travail_3, "Images ( *.png *.PNG)", this, "Ouvrir un fichier", "Sélectionnez le fichier image à importer" ); if ( myfic.isNull() ) { namemaskimport->setText( "" ); } else { int i = myfic.findRev( '/' ); if ( i != 1 ) { dossier_travail_3 = myfic.mid(0,i); } else { dossier_travail_3 = myfic; } QPixmap mypix ( myfic ); QImage tmpimg1; QImage tmpimg2; tmpimg1 = mypix.convertToImage(); tmpimg2 = exempleimg->pixmap()->convertToImage(); bitBlt ( &tmpimg2, 0, 0, &tmpimg1, 0, 0, 720, 576 ); QPixmap mypix_002 ( tmpimg2 ); exempleimg->setPixmap( mypix_002 ); namemaskimport->setText( myfic ); } } void mainfrm::btchauto_1_clicked() { chapauto->setDisabled(true); bt_add_chap->setEnabled(true); bt_sup_chap->setEnabled(true); bt_add_chap_2_2->setEnabled(true); bt_fermer_chapitre->setEnabled(true); } void mainfrm::btchauto_2_clicked() { if (m_pMPlayerWidget->isPlaying() == false) { m_pMPlayerWidget->slotPlay(); } durfilmchap = 0; while (durfilmchap == 0) { if (m_pMPlayerWidget->isPlaying() == false) { durfilmchap = 1; } else { m_pMPlayerWidget->slotReadStdout(); durfilmchap = m_pMPlayerWidget->m_fLength; } } QTime time_001(0,0,0); QTime time_002; time_002 = time_001.addSecs(durfilmchap); value_time->setMaxValue(time_002); durfilmchap = durfilmchap / 60; if ( intervalchap->value() < durfilmchap ) { int winterval; int wdurfilm; int nbrestep; int wcpt1; QTime mytime(0,0,0); QTime mytime_2; QListViewItem *j; winterval = intervalchap->value(); wdurfilm = durfilmchap; nbrestep = wdurfilm / winterval; wcpt1 = 1; while(wcpt1 < nbrestep) { mytime_2 = mytime.addSecs(60*winterval); j = new QListViewItem( lst_chap,mytime_2.toString("hh:mm:ss") ); max_chapitres = max_chapitres + 1; wcpt1 = wcpt1 + 1; mytime.setHMS(mytime_2.hour(),mytime_2.minute(),mytime_2.second()); } chapauto->setDisabled(true); bt_add_chap->setEnabled(true); bt_sup_chap->setEnabled(true); bt_sup_chap_2->setEnabled(true); bt_add_chap_2_2->setEnabled(true); bt_fermer_chapitre->setEnabled(true); lst_chap->sort(); } else { QMessageBox::warning(this, "ManDVD", table_message[38]); } } void mainfrm::bt_valid_info_image_2_clicked() { // ***************************************** // *** Changement d'une image dans le slideshow *** // ***************************************** QString myfic = QFileDialog::getOpenFileName( dossier_travail, "Images (*.jpg *.jpeg *.JPG *.JPEG *.png *.PNG)", this, "Ouvrir un fichier", "Sélectionnez le fichier image à importer" ); if ( myfic.isNull() ) { } else { QImage myimg ( myfic, 0); QImage tmp_img_2 = myimg.scale(320, 256,QImage::ScaleMax); dossier_travail = myfic; table_images[num_photo->value() - 1][0] = myfic; QLabel *mypix_2; mypix_2 = table_pnt_img[num_photo->value() - 1]; mypix_2->setPixmap( tmp_img_2 ); apercu_photo_diapo->setPixmap( tmp_img_2 ); } } void mainfrm::bt_valid_info_image_3_clicked() { // ***************************************** // *** Suppression d'une image dans le slideshow *** // ***************************************** if (nbre_images > 0) { delete table_pnt_img[num_photo->value() - 1]; delete table_pnt_txt[num_photo->value() - 1][0]; delete table_pnt_txt[num_photo->value() - 1][1]; int cpt1; int cpt2; QLabel *mylabel; QLabel *mylabel_2; QLabel *mylabel_3; cpt1 = num_photo->value(); cpt2 = nbre_images; nbre_images = nbre_images - 1; if (nbre_images == 0) { the_selection->hide(); num_photo->setMaxValue(0); texttottime->setText("Total : 0 sec"); bt_modif_gimp_2->setDisabled(true); bt_valid_info_image_2->setDisabled(true); bt_valid_info_image_3->setDisabled(true); bt_dep_gauche->hide(); bt_dep_droite->hide(); box_det_photo->setDisabled( true ); scroll_timeline->setMaxValue( 0 ); scroll_timeline->setValue( 0 ); timeline->setGeometry(scroll_timeline->value() * -1,25, 13500, 140); } while (cpt1 < cpt2 && nbre_images != 0) { // *** Décalage des contrôles *** mylabel = table_pnt_img[cpt1]; mylabel_2 = table_pnt_txt[cpt1][0]; mylabel_3 = table_pnt_txt[cpt1][1]; // mylabel->setGeometry( (10 + ((cpt1 - 1) * 120)) + ((cpt1 - 1) * 10), 6 , 120, 96); mylabel_2->setGeometry((10 + ((cpt1 - 1) * 120)) + ((cpt1 - 1) * 10), 103 , 120, 14); mylabel_2->setText("Photo : " + QString::number(cpt1)); mylabel_3->setGeometry((13 + ((cpt1 - 1) * 120)) + ((cpt1 - 1) * 10), 35 , 40, 40); // *** Décalage des pointeurs et autres *** table_pnt_img[cpt1 - 1] = table_pnt_img[cpt1]; table_pnt_txt[cpt1 - 1][0] = table_pnt_txt[cpt1][0]; table_pnt_txt[cpt1 - 1][1] = table_pnt_txt[cpt1][1]; // table_images[cpt1 - 1][0] = table_images[cpt1][0]; table_images[cpt1 - 1][1] = table_images[cpt1][1]; table_images[cpt1 - 1][2] = table_images[cpt1][2]; table_images[cpt1 - 1][3] = table_images[cpt1][3]; table_images[cpt1 - 1][4] = table_images[cpt1][4]; // cpt1=cpt1+1; } if ( nbre_images != 0 ) { num_photo->setMaxValue(nbre_images); QLabel *mypix; mypix = table_pnt_img[num_photo->value() - 1]; apercu_photo_diapo->setPixmap( *mypix->pixmap() ); apercu_photo_diapo->setScaledContents(true); tmp_004 = table_images[num_photo->value() - 1][1]; lst_effets->setCurrentText(table_images[num_photo->value() - 1][2]); txt_img->setText(table_images[num_photo->value() - 1][4]); rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { duree_affichage->setValue( rc_001 ); } tmp_004 = table_images[num_photo->value() - 1][3]; rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { duree_transition->setValue( rc_001 ); } calcul_dureeslide(); } } } void mainfrm::sliderpriorite_valueChanged( int ) { // *************************** // *** Changement de la priorité *** // *************************** QImage tmpimg_1 = tmpsliderpriovide->pixmap()->convertToImage(); QImage tmpimg_2 = tmpsliderprioplein->pixmap()->convertToImage(); if (sliderpriorite->value() > 0) { int wposition; wposition = (104 / sliderpriorite->maxValue()) * sliderpriorite->value(); bitBlt ( &tmpimg_1, 0, 0, &tmpimg_2, 0, 0, wposition, -1 ); } else { int wposition; wposition = 0; bitBlt ( &tmpimg_1, 0, 0, &tmpimg_2, 0, 0, wposition, -1 ); } graphprio->setPixmap(tmpimg_1); } void mainfrm::bt_add_img_slide_2_2_clicked() { if (fenparamdef->isVisible() == true) { fenparamdef->hide(); } else { fenparamdef->show(); fenparamdef->raise(); } } void mainfrm::bt_valid_param_defo_clicked() { fenparamdef->hide(); } void mainfrm::bt_ajout_intro_clicked() { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "Vidéos (*.mpg *.MPG *.mpeg *.MPEG *.VOB *.vob)", this, "Ouvrir un fichier", "Sélectionnez le fichier vidéo à importer" ); if ( myfic.isNull() ) { } else { pathintro = myfic; QListViewItem *i = new QListViewItem(lst_video_1, "Introduction video", pathintro, "9", "","", video_format, "", ""); i->setPixmap( 0, *previcon_1->pixmap() ); bt_ajout_intro->setDisabled(true); bt_supprime_video->setEnabled(true); nombre_video = nombre_video + 1; path_video = myfic; calculsize(0); } } void mainfrm::bt_add_chap_2_2_clicked() { // *********************** // *** Modifier un chapitre *** // *********************** QListViewItem *i = lst_chap->selectedItem(); if ( i != 0 ) { tmp_001 = i->text(0).mid(0,2); tmp_002 = i->text(0).mid(3,2); tmp_003 = i->text(0).mid(6,2); int heures = tmp_001.toInt(&ok,10); int minutes = tmp_002.toInt(&ok,10); int secondes = tmp_003.toInt(&ok,10); QTime mylocaltime(heures, minutes, secondes); value_time->setTime(mylocaltime); group_add_chap->show(); group_add_chap->raise(); grpbtchapt->setDisabled(true); bt_fermer_chapitre->setDisabled(true); } } void mainfrm::scroll_timeline_valueChanged( int ) { // **************************** // *** Déplacement de la timeline *** // **************************** timeline->setGeometry(scroll_timeline->value() * -1,25, 13500, 140); } void mainfrm::btokrename_clicked() { Renamefilm->hide(); Etape_04->setEnabled( true ); QListViewItem *i = lst_video_2->selectedItem(); if ( i != 0 ) { i->setText(0, txttorename->text()); } } void mainfrm::bt_rename_chap_clicked() { QListViewItem *i = lst_video_2->selectedItem(); if ( i != 0 ) { if (i->text(3) == "$$CHAP$$") { Etape_04->setDisabled( true ); txttorename->setText(i->text(0)); Renamefilm->setGeometry(295,275,410,150); Renamefilm->show(); Renamefilm->raise(); } } } void mainfrm::bt_annul_create_bt_clicked() { slider_x->setDisabled( true ); slider_y->setDisabled( true ); bt_valid_bt->setDisabled( true ); bt_renew_all->setEnabled(true); bt_et04_con_2->setDisabled( true ); after_lire->setDisabled( true ); bt_annul_create_bt->setDisabled( true ); lst_video_2->setEnabled( true ); bt_add_film_menu->setEnabled( true ); bt_et04_con->setEnabled( true ); bt_et04_con_2->setEnabled( true ); QListViewItem *i = lst_video_2->selectedItem(); if ( i != 0 ) { if (i->text(3) == "$$CHAP$$") { bt_rename_chap->setEnabled( true ); } else { bt_rename_chap->setDisabled( true ); } } else { bt_rename_chap->setDisabled( true ); } regle_1->hide(); regle_2->hide(); bt_dyna_modif->hide(); bt_fantome->hide(); } void mainfrm::lst_video_2_selectionChanged() { QListViewItem *i = lst_video_2->selectedItem(); if ( i != 0 ) { if (i->text(3) == "$$CHAP$$") { bt_rename_chap->setEnabled( true ); } else { bt_rename_chap->setDisabled( true ); } } } void mainfrm::bt_stop_play_chap_clicked() { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotPause( ); } } void mainfrm::bt_defil_2_clicked() { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotForward( ); } } void mainfrm::bt_defil_1_clicked() { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotBack( ); } } void mainfrm::lst_chap_clicked( QListViewItem * ) { QListViewItem *i = lst_chap->selectedItem(); if ( i != 0 ) { tmp_001 = i->text(0).mid(0,2); tmp_002 = i->text(0).mid(3,2); tmp_003 = i->text(0).mid(6,2); int heures = tmp_001.toInt(&ok,10); int minutes = tmp_002.toInt(&ok,10); int secondes = tmp_003.toInt(&ok,10); float wpositionnow; wpositionnow = (heures * 3600) + (minutes * 60) + secondes; if (m_pMPlayerWidget->isPlaying() == false) { m_pMPlayerWidget->slotPlay(); } m_pMPlayerWidget->slotSeek(wpositionnow,2); } } void mainfrm::bt_modifier_titre_clicked() { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 && i->text(2) != "9" ) { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } bt_et02_con->setDisabled( true ); panneau_bouton_1->setDisabled( true ); lst_video_1->setDisabled( true ); // tmp_004 = i->text(6); rc_003 = tmp_004.find ( "$$" , 0); if (rc_003 != -1) { rc_003 = rc_003 + 2; tmp_008 = ""; while ( tmp_004.mid(rc_003, 2) != "##" && rc_003 < tmp_004.length() ) { tmp_008 = tmp_008 + tmp_004.mid(rc_003, 1); rc_003 = rc_003 + 1; } textLabel2_11->setText("A/V sync (ms) : " + tmp_008); rc_003 = tmp_004.find ( "##" , 0); if (rc_003 != -1) { tmp_008 = ""; rc_003 = rc_003 + 2; while ( rc_003 < tmp_004.length() ) { tmp_008 = tmp_008 + tmp_004.mid(rc_003, 1); rc_003 = rc_003 + 1; } rc_001 = tmp_008.toInt(&ok,10); if (ok == true) { avvalue->setValue( rc_001 ); } else { avvalue->setValue( 0 ); } } else { avvalue->setValue( 0 ); } } else { textLabel2_11->setText("A/V sync (ms) : 0"); avvalue->setValue( 0 ); } // lineEdit8->setText(i->text(7)); titre_element->setText(i->text(0)); path_video = i->text(1); if (lineEdit8->text() != "") { QImage myimg ( lineEdit8->text(), 0); QPixmap mypix ( myimg ); appimgbt->setPixmap ( mypix ); appimgbt->show(); } else { appimgbt->hide(); } panneau_titre->show(); panneau_titre->raise(); rc_004 = 1; } } void mainfrm::slider5_valueChanged( int ) { // **************************************** // *** Changement / aggrandissement du bouton *** // **************************************** longueur = wdeflong + slider5->value(); // if (720 - longueur > 60 ) { clqconstruct->setGeometry( 1001, 0,longueur,hauteur ); clqconstruct->setPixmap(save_fond_2.copy(slider_x->value() , slider_y->value(),longueur,hauteur,0)); // *** Dessin du texte sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( clqconstruct->pixmap() ); mypainter.drawImage(0,0, wsavbtmenu.scale(longueur, hauteur, QImage::ScaleFree),0,0,-1,-1); mypainter.end(); bt_fantome->setGeometry( 23+slider_x->value(), 23+slider_y->value(),longueur,hauteur ); bt_fantome->setPixmap(*clqconstruct->pixmap()); // *** Réglage des barres de défilement *** slider_x->setMaxValue( 720 - longueur ); } else { longueur = wdeflong - slider5->value(); } } void mainfrm::toolButton71_clicked() { // ********************************* // *** Paramétrage du dossier de travail *** // ********************************* QString myfic = QFileDialog::getExistingDirectory( "~", this, "Dossier de destination", "Choisissez le dossier de destination de votre projet DVD.", TRUE ); if ( myfic.isNull() ) { } else { lineEdit11->setText(myfic); } } void mainfrm::toolButton72_clicked() { if (lineEdit11->text() != "") { newproj->hide(); QString wl_qtr1 = videosizedef->currentText(); QString wl_qtr2; wl_qtr2 = wl_qtr1.mid(0,3); rc_001 = wl_qtr2.toInt(&ok,10); if (ok != true) { projwid = 720; } else { projwid = rc_001; } wl_qtr2 = wl_qtr1.mid(4,3); rc_001 = wl_qtr2.toInt(&ok,10); if (ok != true) { projhau = 576; } else { projhau = rc_001; } if ( videostandard->currentText() == "PAL") { projfps = 25; } else { projfps = 29; } wpathtotalproj = lineEdit11->text(); path_out->setText(wpathtotalproj); Etape_02->setEnabled(true); } else { QMessageBox::warning(this, "ManDVD", table_message[9]); } } void mainfrm::toolButton72_2_clicked() { this->close(); } void mainfrm::slider6_valueChanged( int ) { // **************************************** // *** Changement / aggrandissement du bouton *** // **************************************** hauteur = wdefhaut + slider6->value(); // if (576 - hauteur > 60) { clqconstruct->setGeometry( 1001, 0,longueur,hauteur ); clqconstruct->setPixmap(save_fond_2.copy(slider_x->value() , slider_y->value(),longueur,hauteur,0)); // *** Dessin du texte sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( clqconstruct->pixmap() ); mypainter.drawImage(0,0, wsavbtmenu.scale(longueur, hauteur, QImage::ScaleFree),0,0,-1,-1); mypainter.end(); // *** Déplacement des règles *** regle_2->setGeometry( 23 , 23 + slider_y->value() + hauteur + 2, 720,1); // *** Réglage des barres de défilement *** slider_y->setMaxValue( 576 - hauteur ); bt_fantome->setGeometry( 23+slider_x->value(), 23+slider_y->value(),longueur,hauteur ); bt_fantome->setPixmap(*clqconstruct->pixmap()); } else { hauteur = wdefhaut - slider6->value(); } } void mainfrm::bt_lire_anim_source_clicked() { if ( namevideoimport->text() != "" ) { m_pMPlayerWidget->slotPlay( ); } } void mainfrm::bt_stop_anim_source_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotPause(); } } void mainfrm::bt_recul_anim_2_clicked() { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotBack( ); } } void mainfrm::bt_avance_anim_2_clicked() { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotForward( ); } } void mainfrm::bt_deb_menani_2_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { int iHour; int iMin; int iSec; QTime mytime; float fElapsedTime = m_pMPlayerWidget->m_rxParseElapsedTime.cap(1).toFloat(); startvidmenanim->setValue(fElapsedTime); } } void mainfrm::bt_fin_menani_2_clicked() { if ( m_pMPlayerWidget->isPlaying() == true || startvidmenanim->text() != "0") { int iHour; int iMin; int iSec; QTime mytime; float fElapsedTime = m_pMPlayerWidget->m_rxParseElapsedTime.cap(1).toFloat(); int zone1; int zone2; zone1 = startvidmenanim->value(); zone2 = fElapsedTime - zone1; if (zone2 > 0) { dureevidmenanim->setValue(zone2); } else { QMessageBox::warning(this, "ManDVD", table_message[29]); } } } void mainfrm::bt_grave_2_clicked() { // ****************************** // *** Generation du DVD avec K3B *** // ****************************** proc_003 = new QProcess( this ); proc_003->addArgument( "k3b"); proc_003->addArgument( "--datadvd"); proc_003->addArgument( path_out->text() + "DVD/AUDIO_TS"); proc_003->addArgument( path_out->text() + "DVD/VIDEO_TS"); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "K3B"); } } void mainfrm::bt_tab_order_clicked() { int wcpt001; wcpt001 = 0; QListViewItem *j; lsttab->clear(); // while ( wcpt001 < max_boutons) { if ( table_boutons_lien[wcpt001][3] != "$$CHAP$$" ) { j = new QListViewItem( lsttab, table_boutons_lien[wcpt001][0], QString::number(wcpt001)); } else { tmp_010 = table_boutons_lien[wcpt001][1]; rc_001 = tmp_010.find ( "|||" , 0); if (rc_001 != -1) { tmp_011 = tmp_010.mid(0,rc_001); j = new QListViewItem( lsttab, tmp_011 + " - " + table_boutons_lien[wcpt001][0], QString::number(wcpt001)); } } wcpt001 = wcpt001 + 1; } // Etape_04->setDisabled( true ); tab_order->setGeometry(350,110,300,480); tab_order->show(); lsttab->setSorting ( 1, true ); lsttab->sort(); tab_order->raise(); lsttab->setSorting ( -1, false ); } void mainfrm::bt_fermer_taborder_clicked() { // QString sav_bt_lien[60][8]; int sav_bt_pos[60][5]; int wcpt001; wcpt001 = 0; while ( wcpt001 < max_boutons ) { sav_bt_lien[wcpt001][0] = table_boutons_lien[wcpt001][0]; sav_bt_lien[wcpt001][1] = table_boutons_lien[wcpt001][1]; sav_bt_lien[wcpt001][2] = table_boutons_lien[wcpt001][2]; sav_bt_lien[wcpt001][3] = table_boutons_lien[wcpt001][3]; sav_bt_lien[wcpt001][4] = table_boutons_lien[wcpt001][4]; sav_bt_lien[wcpt001][5] = table_boutons_lien[wcpt001][5]; sav_bt_lien[wcpt001][6] = table_boutons_lien[wcpt001][6]; sav_bt_lien[wcpt001][7] = table_boutons_lien[wcpt001][7]; // sav_bt_pos[wcpt001][0] = table_boutons_pos[wcpt001][0]; sav_bt_pos[wcpt001][1] = table_boutons_pos[wcpt001][1]; sav_bt_pos[wcpt001][2] = table_boutons_pos[wcpt001][2]; sav_bt_pos[wcpt001][3] = table_boutons_pos[wcpt001][3]; sav_bt_pos[wcpt001][4] = table_boutons_pos[wcpt001][4]; wcpt001 = wcpt001 + 1; } // QListViewItem *lvi = lsttab->firstChild(); wcpt001 = 0; while (wcpt001 < max_boutons) { tmp_001 = lvi->text(1); rc_001 = tmp_001.toInt(&ok,10); if (ok == true) { table_boutons_lien[wcpt001][0] = sav_bt_lien[rc_001][0]; table_boutons_lien[wcpt001][1] = sav_bt_lien[rc_001][1]; table_boutons_lien[wcpt001][2] = sav_bt_lien[rc_001][2]; table_boutons_lien[wcpt001][3] = sav_bt_lien[rc_001][3]; table_boutons_lien[wcpt001][4] = sav_bt_lien[rc_001][4]; table_boutons_lien[wcpt001][5] = sav_bt_lien[rc_001][5]; table_boutons_lien[wcpt001][6] = sav_bt_lien[rc_001][6]; table_boutons_lien[wcpt001][7] = sav_bt_lien[rc_001][7]; // table_boutons_pos[wcpt001][0] = sav_bt_pos[rc_001][0]; table_boutons_pos[wcpt001][1] = sav_bt_pos[rc_001][1]; table_boutons_pos[wcpt001][2] = sav_bt_pos[rc_001][2]; table_boutons_pos[wcpt001][3] = sav_bt_pos[rc_001][3]; table_boutons_pos[wcpt001][4] = sav_bt_pos[rc_001][4]; } else { printf("INTERNAL ERROR --- Please contact me"); } lvi = lvi->nextSibling(); wcpt001 = wcpt001 + 1; } // tab_order->hide(); Etape_04->setEnabled( true ); } void mainfrm::bt_down_tab_clicked() { QListViewItem *i = lsttab->selectedItem(); if ( i != 0 ) { if ( i->itemBelow() != NULL ) { i->moveItem( i->itemBelow() ); } } } void mainfrm::bt_up_ab_clicked() { QListViewItem *i = lsttab->selectedItem(); if ( i != 0 ) { if ( i->itemAbove() != NULL ) { i->itemAbove()->moveItem(i); } } } void mainfrm::bt_param_encode_clicked() { if ( optencode->isVisible() == true ) { optencode->hide(); } else { fautyrencoder = 1; optencode->show(); optencode->raise(); } } void mainfrm::slidevbitrate_valueChanged( int ) { textLabel1_29->setText("Video bitrate : " + QString::number(slidevbitrate->value()) + " kb/s"); } void mainfrm::bt_grave_3_clicked() { pb_009->setProgress(0); creation_iso->setGeometry(314,329,371,42); creation_iso->show(); creation_iso->raise(); rc_001 = 0; Etape_05->setDisabled( true ); proc_003 = new QProcess( this ); proc_003->addArgument( "mkisofs" ); proc_003->addArgument( "-o" ); proc_003->addArgument( path_out->text() + "/dvdiso.iso" ); proc_003->addArgument( "-dvd-video" ); proc_003->addArgument( path_out->text() + "/DVD/" ); connect( proc_003, SIGNAL(readyReadStderr()), this, SLOT(stdout_mkiso()) ); connect( proc_003, SIGNAL(processExited()), this, SLOT(fin_iso()) ); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "mkisofs"); } } void mainfrm::stdout_mkiso() { // **************************** // *** Lecture de la sortie console *** // **************************** lineEdit1->setText( proc_003->readStderr() ); tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "%" , 0); if (rc_001 != -1) { tmp_002 = tmp_001.mid(1,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { pb_009->setProgress(rc_001); } } tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( "error" , 0); if (rc_001 != -1) { rc_002 = 1; } tmp_001 = lineEdit1->text(); rc_001 = tmp_001.find ( " not recognized" , 0); if (rc_001 != -1) { rc_002 = 1; } rc_001 = tmp_001.find ( "Unable" , 0); if (rc_001 != -1) { rc_002 = 1; } lecture_console->append( lineEdit1->text() ); lecture_console->append( proc_003->readStdout() ); } void mainfrm::fin_iso() { if ( rc_002 == 0) { pb_009->setProgress(100); QMessageBox::warning(this, "ManDVD", table_message[36] + path_out->text() + "/dvdiso.iso" ); } else { QMessageBox::warning(this, "ManDVD", table_message[37]); } creation_iso->hide(); Etape_05->setEnabled( true ); } void mainfrm::bt_gest_sub_clicked() { // QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 && i->text(2) != "9" ) { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } lineEdit11_2->setText(""); tmp_001 = i->text(4); rc_001 = tmp_001.find ( "$$$" , 0); if (rc_001 != -1) { tmp_002 = tmp_001.mid(rc_001 + 3 , tmp_001.length() - (rc_001 + 3)); lineEdit11_2->setText(tmp_002); } // Etape_02->setDisabled( true ); tmp_008 = i->text(1); m_pMPlayerWidget->setFilename ( tmp_008 ); gestsubtitle->setGeometry(294,295,411,110); gestsubtitle->show(); gestsubtitle->raise(); } } void mainfrm::toolButton72_2_2_clicked() { gestsubtitle->hide(); Etape_02->setEnabled( true ); } void mainfrm::toolButton72_3_clicked() { // *** Sauvegarde du sous titre *** if ( lineEdit11_2->text() != "") { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { QImage wl_img1 = i->pixmap(0)->convertToImage(); QPixmap wl_pix1(wl_img1); QImage wl_img2 = previcon_3->pixmap()->convertToImage(); QPixmap wl_pix2(wl_img2); ::bitBlt( &wl_pix1, 3, 20, &wl_pix2, 0, 0, -1, -1, Qt::CopyROP, false ); tmp_001 = i->text(4); int j = tmp_001.find( "$$$" ); if ( j == -1 ) { tmp_001 = tmp_001 + "$$$" + lineEdit11_2->text(); } else { if ( j > 0) { tmp_002 = tmp_001.mid(0,j); } else { tmp_002 = ""; } tmp_002 = tmp_002 + "$$$" + lineEdit11_2->text(); tmp_001 = tmp_002; } i->setText(4,tmp_001); i->setText(2,"1"); i->setPixmap( 0, wl_pix1 ); } } // gestsubtitle->hide(); Etape_02->setEnabled( true ); } void mainfrm::toolButton71_2_clicked() { // ********************************* // *** Paramétrage du dossier de travail *** // ********************************* QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "Vidéos (*.srt *.SRT )", this, "Ouvrir un fichier", "Sélectionnez le fichier sous titre à importer" ); if ( myfic.isNull() ) { } else { lineEdit11_2->setText(myfic); } } void mainfrm::bt_choix_couleur_titre_2_clicked() { // **************************************** // *** Choix de la couleur du titre du diaporama *** // **************************************** QColor couleur_4 = QColorDialog::getColor( couleur_4 , this, "Choisissez une couleur" ); if ( couleur_4.isValid() == true ) { table_color[num_photo->value() - 1] = couleur_4; framecolor->setPaletteBackgroundColor( couleur_4 ); } } bool mainfrm::eventFilter(QObject *o, QEvent *e) { // ********************** // *** Filtrage des events *** // ********************** if ( fen_slideshow->isEnabled() == true && fen_slideshow->isShown() == true ) { if (e->type() == QEvent::MouseButtonPress ) { int i = 0; while (table_pnt_img[i] != o && i < 100) { i=i+1; } if (table_pnt_img[i] == o) { num_photo->setValue( i + 1 ); } } } else { if ( editmask->isEnabled() == true && editmask->isShown() == true ) { QMouseEvent *k = (QMouseEvent *)e; if ( e->type() == QEvent::MouseButtonRelease && rc_003 != 3 ) { tabpoint[0] = 0; tabpoint[1] = 0; lineh1->hide(); lineh2->hide(); linev1->hide(); linev2->hide(); QPixmap px; px.resize(editpix->size()); ::bitBlt( &px, 0, 0, editpix, 0, 0, 720, 576, Qt::CopyROP, false ); editpix->setPixmap(px); lineh1->show(); lineh2->show(); linev1->show(); linev2->show(); lineh1->raise(); lineh2->raise(); linev1->raise(); linev2->raise(); } if (e->type() == QEvent::MouseButtonPress && rc_003 == 2 ) { QPainter titi( this ); titi.end(); titi.begin( editpix ); QPen monpinc2; QFontMetrics fm(myfontmask); QString machaine = lineEdit13->text(); QChar chr = machaine.at( 0 ); int decalagex = fm.leftBearing ( chr ); monpinc2.setColor( fcouleur->backgroundColor()); titi.setPen(monpinc2); myfontmask.setStyleStrategy(QFont::NoAntialias); titi.setFont ( myfontmask ); titi.drawText(k->x() - decalagex, k->y() ,lineEdit13->text()); titi.end(); outils0_clicked(); } if (e->type() == QEvent::MouseButtonPress && rc_003 == 3 ) { if (tabpoint[0] == 0 && tabpoint[1] == 0) { tabpoint[0] = k->x(); tabpoint[1] = k->y(); } else { QPainter toto( this ); toto.end(); toto.begin( editpix ); QPen monpinc; monpinc.setColor( fcouleur->backgroundColor()); monpinc.setWidth(brushsize->value()); toto.setPen(monpinc); toto.drawLine(tabpoint[0], tabpoint[1], k->x(), k->y()); tabpoint[0] = 0; tabpoint[1] = 0; } } if (e->type() == QEvent::MouseMove) { locdblebuff->setPixmap(wsavbtmenu.copy(k->x() - 58 , k->y() - 36, 116, 72)); ::bitBlt( zoommask, 0, 0, locdblebuff->pixmap(), 0, 0, 116, 72, Qt::CopyROP, false ); if ( k->state() == Qt::LeftButton && rc_003 < 2) { if (tabpoint[0] == 0 && tabpoint[1] == 0) { tabpoint[0] = k->x(); tabpoint[1] = k->y(); } QPainter toto( this ); toto.end(); toto.begin( editpix ); if (rc_003 == 0) { QPen monpinc; monpinc.setColor( fcouleur->backgroundColor()); monpinc.setWidth(brushsize->value()); toto.setPen(monpinc); toto.drawLine(tabpoint[0], tabpoint[1], k->x(), k->y()); tabpoint[0] = k->x(); tabpoint[1] = k->y(); } else { if (rc_003 == 1) { toto.eraseRect(k->x(), k->y(),brushsize->value(),brushsize->value()); } } toto.end(); } else { if ( k->state() == Qt::LeftButton && rc_003 == 4) { QPainter toto( this ); toto.end(); toto.begin( editpix ); QPen monpinc; QBrush mybrush; if (rc_004 == 0) { mybrush.setStyle(Qt::SolidPattern); } else { if (rc_004 == 1) { mybrush.setStyle(Qt::BDiagPattern); } else { if (rc_004 == 2) { mybrush.setStyle(Qt::FDiagPattern); } else { if (rc_004 == 3) { mybrush.setStyle(Qt::Dense4Pattern); } else { mybrush.setStyle(Qt::Dense6Pattern); } } } } mybrush.setColor( fcouleur->backgroundColor()); monpinc.setStyle(Qt::NoPen); toto.setBrush(mybrush); toto.setPen(monpinc); toto.drawRect(k->x(), k->y(), 3 + brushsize->value(), 3 + brushsize->value() ); tabpoint[0] = 0; tabpoint[1] = 0; toto.end(); } } } } } return QWidget::eventFilter(o, e); } void mainfrm::slider7_valueChanged( int ) { // **************************************** // *** Changement / aggrandissement du bouton *** // **************************************** float ratio; if ( wdeflong > wdefhaut ) { longueur = wdeflong + slider7->value(); ratio = wdeflong / wdefhaut; hauteur = wdefhaut + ( slider7->value() / ratio); if (720 - longueur > 60) { QImage zicitmp = wsavbtmenu.scale(longueur, hauteur, QImage::ScaleMax); hauteur = zicitmp.height(); clqconstruct->setGeometry( 1001, 0,longueur,hauteur ); clqconstruct->setPixmap(save_fond_2.copy(slider_x->value() , slider_y->value(),longueur,hauteur,0)); // *** Dessin du texte sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( clqconstruct->pixmap() ); mypainter.drawImage(0,0, zicitmp ,0,0,-1,-1); mypainter.end(); // *** Réglage des barres de défilement *** slider_x->setMaxValue( 720 - longueur ); slider_y->setMaxValue( 576 - hauteur ); // bt_fantome->setGeometry( 23+slider_x->value(), 23+slider_y->value(),longueur,hauteur ); bt_fantome->setPixmap(*clqconstruct->pixmap()); } } else { hauteur = wdefhaut + slider7->value(); ratio = wdefhaut / wdeflong; longueur = wdeflong + (slider7->value() / ratio); if (576 - hauteur > 60) { QImage zicitmp = wsavbtmenu.scale(longueur, hauteur, QImage::ScaleMin); longueur = zicitmp.width(); clqconstruct->setGeometry( 1001, 0,longueur,hauteur ); clqconstruct->setPixmap(save_fond_2.copy(slider_x->value() , slider_y->value(),longueur,hauteur,0)); // *** Dessin du texte sur le bouton état normal *********** QPainter mypainter( this ); mypainter.end(); mypainter.begin( clqconstruct->pixmap() ); mypainter.drawImage(0,0, zicitmp,0,0,-1,-1); mypainter.end(); // *** Réglage des barres de défilement *** slider_x->setMaxValue( 720 - longueur ); slider_y->setMaxValue( 576 - hauteur ); bt_fantome->setGeometry( 23+slider_x->value(), 23+slider_y->value(),longueur,hauteur ); bt_fantome->setPixmap(*clqconstruct->pixmap()); } } regle_2->setGeometry( 23 , 23 + slider_y->value() + hauteur + 2, 720,1); } void mainfrm::toolButton94_clicked() { // ********************************** // *** Sauvegarde d'un projet diaporama *** // ********************************** QString myfic = QFileDialog::getSaveFileName( dossier_travail_2, "Projet Slideshow (*.gib)", this, "Ouvrir un fichier", "Slideshow export" ); if ( myfic.isNull() ) { } else { if ( myfic.right(4) != ".gib" ) { myfic = myfic + ".gib"; } QFile outfic(myfic); if ( outfic.open( IO_WriteOnly )) { if (nbre_images > 0) { int cpt_001; cpt_001 = 0; tmp_001 = path_musique + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = myfont.toString() + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = QString::number(sliderfps->value()) + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); while (cpt_001 < nbre_images) { tmp_001 = table_images[cpt_001][0] + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = table_images[cpt_001][1] + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = table_images[cpt_001][2] + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = table_images[cpt_001][3] + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = table_images[cpt_001][4] + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // QColor icicolor; icicolor = table_color[cpt_001]; tmp_001 = QString::number(icicolor.red()) + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = QString::number(icicolor.green()) + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = QString::number(icicolor.blue()) + "\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // tmp_001 = "$-$$-$\n"; outfic.writeBlock(tmp_001, tmp_001.length()); // cpt_001 = cpt_001 + 1; } QMessageBox::warning(this, "ManDVD", table_message[39]); } outfic.close(); } else { QMessageBox::warning(this, "ManDVD", table_message[8]); } } } void mainfrm::toolButton94_2_clicked() { // ********************************* // *** Ouverture d'un projet diaporama *** // ********************************* QString ficimport = QFileDialog::getOpenFileName( dossier_travail_2, "Projet Slideshow (*.GIB *.gib)", this, "Ouvrir un fichier", "Slideshow import" ); if ( ficimport.isNull() ) { } else { QFile myfic(ficimport); if ( myfic.open( IO_ReadOnly ) ) { casse_tout(); QTextStream mystream (&myfic); QString imp_pathfichier; QString imp_dureeaffich; QString imp_transition; QString imp_durtransition; QString imp_titreimage; QImage myimg; QImage tmp_img_2; QColor mycolor; QColor loccolor; QLabel *localmypix; QIconViewItem *myi; QString S_Red; QString S_Green; QString S_Blue; int I_Red; int I_Green; int I_Blue; int I_fps; QPixmap wl_pix1(320,256); QImage wl_img1; QImage wl_img2; QPixmap mypix(320,256); QString myrec = mystream.readLine(); path_musique = myrec; if (path_musique == "") { bt_musique_options->setDisabled(true); } else { bt_musique_options->setEnabled(true); } myrec = mystream.readLine(); myfont.fromString( myrec ); myrec = mystream.readLine(); I_fps = myrec.toInt(&ok,10); if (ok == false) { sliderfps->setValue(5); } else { sliderfps->setValue(I_fps); } myrec = mystream.readLine(); while( mystream.atEnd() == false && nbre_images < 100 ) { // imp_pathfichier = myrec; myrec = mystream.readLine(); imp_dureeaffich = myrec; myrec = mystream.readLine(); imp_transition = myrec; myrec = mystream.readLine(); imp_durtransition = myrec; myrec = mystream.readLine(); imp_titreimage = myrec; myrec = mystream.readLine(); S_Red = myrec; myrec = mystream.readLine(); S_Green = myrec; myrec = mystream.readLine(); S_Blue = myrec; myrec = mystream.readLine(); I_Red = S_Red.toInt(&ok,10); if (ok == false) { I_Red = 0; } I_Green = S_Green.toInt(&ok,10); if (ok == false) { I_Green = 0; } I_Blue = S_Blue.toInt(&ok,10); if (ok == false) { I_Blue = 0; } loccolor.setRgb(I_Red,I_Green,I_Blue); // if (myimg.load( imp_pathfichier ) == true) { tmp_img_2 = myimg.scale(320, 256,QImage::ScaleMin); // mypix.convertFromImage( tmp_img_2 ); wl_pix1.fill(Qt::black); wl_img1 = wl_pix1.convertToImage(); ::bitBlt( &wl_pix1, (320 - mypix.width()) / 2, (256 - mypix.height()) / 2, &mypix, 0, 0, -1, -1, Qt::CopyROP, false ); wl_img2 = wl_pix1.convertToImage(); // QLabel *mylabel = new QLabel(timeline); mylabel->setScaledContents(true); mylabel->setGeometry( (10 + (nbre_images * 120)) + (nbre_images * 10), 6 , 120, 96); mylabel->setPixmap ( wl_img2 ); // mylabel->installEventFilter(this); mylabel->setFrameStyle( QFrame::Box | QFrame::Plain); mylabel->setLineWidth( 2 ); mylabel->show(); mylabel->raise(); QLabel *mylabel_2 = new QLabel(timeline); mylabel_2->setText("Photo : " + QString::number(nbre_images + 1)); mylabel_2->setGeometry((10 + (nbre_images * 120)) + (nbre_images * 10), 103 , 120, 14); mylabel_2->setPaletteForegroundColor(mycolor); mylabel_2->show(); mylabel_2->raise(); // QLabel *mylabel_3 = new QLabel(timeline); if (imp_transition == table_message[40]) { mylabel_3->setPixmap( *null_transition->pixmap()); } else { myi = mylsttrans->findItem(imp_transition,Qt::ExactMatch); if ( myi != 0) { localmypix = pnt_table_trans[ myi->index() ]; mylabel_3->setPixmap( *localmypix->pixmap()); } else { mylabel_3->setPixmap( *null_transition->pixmap()); } } mylabel_3->setGeometry((13 + (nbre_images * 120)) + (nbre_images * 10), 35 , 40, 40); mylabel_3->setFrameStyle( QFrame::Box | QFrame::Plain); mylabel_3->setScaledContents(true); mylabel_3->setLineWidth( 1 ); mylabel_3->setPaletteForegroundColor(mycolor); mylabel_3->show(); mylabel_3->raise(); // table_pnt_img[nbre_images] = mylabel; table_pnt_txt[nbre_images][0] = mylabel_2; table_pnt_txt[nbre_images][1] = mylabel_3; table_images[nbre_images][0] = imp_pathfichier; table_images[nbre_images][1] = imp_dureeaffich; table_color[nbre_images] = loccolor; framecolor->setPaletteBackgroundColor( loccolor ); table_images[nbre_images][2] = imp_transition; table_images[nbre_images][3] = imp_durtransition; table_images[nbre_images][4] = imp_titreimage; nbre_images = nbre_images + 1; } // myrec = mystream.readLine(); } myfic.close(); num_photo->setMinValue( 1 ); if (nbre_images > 7) { scroll_timeline->setMaxValue( (nbre_images - 7) * 130); } else { scroll_timeline->setMaxValue( 0 ); } if (nbre_images > 0) { box_det_photo->setEnabled(true); num_photo->setMaxValue( nbre_images ); bt_modif_gimp_2->setEnabled(true); bt_valid_info_image_3->setEnabled(true); bt_valid_info_image_2->setEnabled(true); if (the_selection->isHidden() == true) { the_selection->setGeometry(5,-5,130,130); the_selection->show(); } num_photo->setValue(1); if (path_musique != "") { calczik(path_musique); } } } } } void mainfrm::mylsteffets_doubleClicked( QIconViewItem * ) { QIconViewItem *i = mylsteffets->currentItem(); if ( i != 0 ) { textLabel1_32->setText(i->text()); pixmapLabel1_14->setPixmap( *i->pixmap() ); pixmapLabel2_3->setPixmap(*apercu_photo_diapo->pixmap()); pixmapLabel2_3_2->setPixmap(*apercu_photo_diapo->pixmap()); rc_001 = 0; if ( i->text() != "contrast" && i->text() != "blur" && i->text() != "swirl" && i->text() != "cadre" && i->text() != "coupe") { toolButton97->setDisabled(true); toolButton97_2->setDisabled(true); if ( i->text() == "sepia-tone" ) { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); proc_001->addArgument( "50000" ); proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); } } else { if ( i->text() == "paint" ) { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); proc_001->addArgument( "2" ); proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); } } else { if ( i->text() == "negate" ) { QImage travfond(table_images[num_photo->value() - 1][0]); travfond.invertPixels ( true ); travfond.save(wpathtotalproj + "tmpslideimg.png", "PNG"); fin_plus_effets(); } else { if ( i->text() == "monochrome" ) { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); } } else { if ( i->text() == "edge" ) { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); proc_001->addArgument( "1" ); proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); } } else { if ( i->text() == "hmirror" ) { QImage travfond(table_images[num_photo->value() - 1][0]); QImage tmptrav = travfond.mirror(true,false); tmptrav.save(wpathtotalproj + "tmpslideimg.png", "PNG"); fin_plus_effets(); } else { if ( i->text() == "vmirror" ) { QImage travfond(table_images[num_photo->value() - 1][0]); QImage tmptrav = travfond.mirror(false,true); tmptrav.save(wpathtotalproj + "tmpslideimg.png", "PNG"); fin_plus_effets(); } else { if ( i->text() == "wave" ) { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); proc_001->addArgument( "10x200" ); proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); } } else { if ( i->text() == "cycle" ) { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); proc_001->addArgument( "100" ); proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); } } else { if ( i->text() == "mask" ) { QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "Mask (*.png *.PNG)", this, "Ouvrir un fichier", "Sélectionnez le fichier image à importer" ); if ( myfic.isNull() ) { } else { QPixmap tmpcreat(table_images[num_photo->value() - 1][0]); QPixmap tmpcreat2(myfic); QImage wl_img1 = tmpcreat2.convertToImage(); QImage wl_img2 = wl_img1.scale(720,576,QImage::ScaleMin); QPixmap wl_pix1(wl_img2.width(), wl_img2.height()); wl_pix1.convertFromImage(wl_img2); ::bitBlt( &tmpcreat, 0, 0 , &wl_pix1 , 0, 0, -1, -1, Qt::CopyROP, false ); QImage wl_img3 = tmpcreat.convertToImage(); wl_img3.save(wpathtotalproj + "tmpslideimg.png", "PNG"); fin_plus_effets(); } } } } } } } } } } } deteffets->setGeometry(274,165,451,370); deteffets->show(); deteffets->raise(); } else { if ( i->text() == "cadre" ) { cadredit->setGeometry(135,103,730,620); dial1->setValue(5); dial_size->setValue(720); dial_x->setValue(0); dial_y->setValue(0); groupBox13->hide(); wlanguage = ""; calculcadre(); cadredit->show(); cadredit->raise(); } else { if ( i->text() == "coupe" ) { QImage travfond(table_images[num_photo->value() - 1][0]); QImage tmp_img_2 = travfond.scale(720, 576,QImage::ScaleMax); imgtravail->setPixmap(tmp_img_2); fantome_decoupe->setPixmap(tmp_img_2); recadrage->setGeometry(45,110,910,615); recadrage->show(); recadrage->raise(); deplace_x->setValue(50); deplace_y->setValue(50); deplace_w->setValue(100); deplace_h->setValue(100); deplace_x->setMaxValue(travfond.width()); deplace_y->setMaxValue(travfond.height()); deplace_w->setMaxValue(travfond.width()); deplace_h->setMaxValue(travfond.height()); depl_coupe(); } else { toolButton97->setEnabled(true); toolButton97_2->setEnabled(true); deteffets->setGeometry(274,165,451,370); deteffets->show(); deteffets->raise(); } } } fen_slideshow->setDisabled( true ); } } void mainfrm::toolButton95_clicked() { if ( radioButton3_2->isChecked() == true) { QTime nowtime; nowtime = QTime::currentTime(); tmp_009 = wpathtotalproj + "GIBtmpphoto_" + nowtime.toString("hh:mm:ss") + ".png"; QImage myimg = pixmapLabel2_3_2->pixmap()->convertToImage(); QImage myimg_2 = myimg.scale (720, 576, QImage::ScaleMax); myimg_2.save( tmp_009, "PNG" ); table_images[num_photo->value() - 1][0] = tmp_009; QLabel *pntloc = table_pnt_img[num_photo->value() - 1]; QPixmap pixloc; pixloc.load( tmp_009 ); QImage tmptransf = pixloc.convertToImage(); myimg = tmptransf.scale(320, 256,QImage::ScaleMax); pntloc->setPixmap( myimg ); apercu_photo_diapo->setPixmap( myimg ); } deteffets->hide(); fen_slideshow->setEnabled( true ); } void mainfrm::toolButton97_clicked() { // *** PLUS *** if (rc_001 == 0) { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); if ( textLabel1_32->text() == "blur" ) { proc_001->addArgument("100"); } if ( textLabel1_32->text() == "swirl" ) { proc_001->addArgument("50"); rc_002 = 50; } proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); rc_001 = 1; } } else { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); if ( textLabel1_32->text() == "swirl" ) { proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); rc_002 = rc_002 + 50; proc_001->addArgument( QString::number(rc_002) ); } else { proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); proc_001->addArgument( "-" + textLabel1_32->text() ); if ( textLabel1_32->text() == "blur" ) { proc_001->addArgument("100"); } } proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); } } } void mainfrm::fin_plus_effets() { deteffets->setEnabled( true ); QPixmap icipix; icipix.load( wpathtotalproj + "tmpslideimg.png" ); pixmapLabel2_3_2->setPixmap( icipix ); } void mainfrm::toolButton97_2_clicked() { // *** MOINS *** if (rc_001 == 0) { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); if ( textLabel1_32->text() == "swirl" ) { proc_001->addArgument( "-" + textLabel1_32->text() ); proc_001->addArgument("-50"); rc_002 = -50; } else { proc_001->addArgument( "+" + textLabel1_32->text() ); } proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); rc_001 = 1; } } else { proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); if ( textLabel1_32->text() == "swirl" ) { proc_001->addArgument( table_images[num_photo->value() - 1][0] ); proc_001->addArgument( "-" + textLabel1_32->text() ); rc_002 = rc_002 - 50; proc_001->addArgument( QString::number(rc_002) ); } else { proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); proc_001->addArgument( "+" + textLabel1_32->text() ); } proc_001->addArgument( wpathtotalproj + "tmpslideimg.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_plus_effets()) ); } if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { deteffets->setDisabled( true ); } } void mainfrm::toolButton98_clicked() { affzoom->setGeometry(135,110,730,616); imgzoom->setPixmap( *pixmapLabel2_3_2->pixmap() ); deteffets->setDisabled( true ); affzoom->show(); affzoom->raise(); } void mainfrm::toolButton99_clicked() { deteffets->setEnabled( true ); affzoom->hide(); } void mainfrm::mylsttrans_doubleClicked( QIconViewItem * ) { table_images[num_photo->value() - 1][1] = QString::number(duree_affichage->value()); QLabel *mypix; QLabel *mypix_2; QIconViewItem *i = mylsttrans->currentItem(); if ( i != 0 ) { table_images[num_photo->value() - 1][2] = i->text(); mypix = table_pnt_txt[num_photo->value() - 1][1]; mypix_2 = pnt_table_trans[ i->index() ]; mypix->setPixmap( *mypix_2->pixmap() ); } else { table_images[num_photo->value() - 1][2] = table_message[40]; } table_images[num_photo->value() - 1][3] = QString::number(duree_transition->value()); table_images[num_photo->value() - 1][4] = txt_img->text(); } void mainfrm::duree_affichage_valueChanged( int ) { table_images[num_photo->value() - 1][1] = QString::number(duree_affichage->value()); calcul_dureeslide(); } void mainfrm::duree_transition_valueChanged( int ) { table_images[num_photo->value() - 1][3] = QString::number(duree_transition->value()); calcul_dureeslide(); } void mainfrm::txt_img_textChanged( const QString & ) { table_images[num_photo->value() - 1][4] = txt_img->text(); } void mainfrm::bt_sup_chap_2_clicked() { lst_chap->clear(); bt_sup_chap_2->setDisabled( true ); bt_sup_chap->setDisabled( true ); bt_add_chap_2_2->setDisabled( true ); max_chapitres = 0; } void mainfrm::bt_force_clicked() { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { QImage wl_img1 = i->pixmap(0)->convertToImage(); QPixmap wl_pix1(wl_img1); QImage wl_img2 = previcon_3->pixmap()->convertToImage(); QPixmap wl_pix2(wl_img2); ::bitBlt( &wl_pix1, 3, 20, &wl_pix2, 0, 0, -1, -1, Qt::CopyROP, false ); i->setPixmap( 0, wl_pix1 ); i->setText(2, "1"); bt_force->setDisabled(true); } } void mainfrm::valideditmask_clicked() { editmask->hide(); if ( optsel2->isChecked() == true ) { my_pixmap_003->setPixmap( *editpix->pixmap() ); } else { my_pixmap_002->setPixmap( *editpix->pixmap() ); } Etape_04->setEnabled(true); } void mainfrm::bt_maskedit_clicked() { Etape_04->setDisabled(true); tabpoint[0] = 0; tabpoint[1] = 0; wsavbtmenu = my_pixmap_001->pixmap()->convertToImage(); editmask->setGeometry(0,110,1200,700); editpix->setPixmap( *my_pixmap_002->pixmap() ); toolButton158->setOn(true); rc_004 = 0; outils0_clicked(); buttonGroup63->setDisabled(true); editmask->show(); editmask->raise(); fcouleur->setBackgroundColor( couleur_2 ); // QListViewItem *j; rc_003 = 0; lstempl->clear(); while ( rc_003 < max_boutons ) { j = new QListViewItem( lstempl, table_boutons_lien[rc_003][0], QString::number(table_boutons_pos[rc_003][0]), QString::number(table_boutons_pos[rc_003][1]), QString::number(table_boutons_pos[rc_003][2]), QString::number(table_boutons_pos[rc_003][3]) ); rc_003 = rc_003 + 1; } // rc_003 = 0; int x1 = table_boutons_pos[0][0] + 3; int x2 = table_boutons_pos[0][2] + 2; int y1 = table_boutons_pos[0][1] + 3; int y2 = table_boutons_pos[0][3] + 2; lineh1->setGeometry(x1,y1, x2 ,1); lineh2->setGeometry(x1,y1 + y2, x2 ,1); linev1->setGeometry(x1,y1,1, y2); linev2->setGeometry(x1 + x2, y1, 1 , y2+1); lineh1->raise(); lineh2->raise(); linev1->raise(); linev2->raise(); // myfontmask = myfont; taille_police_mask = taille_police; testpol->setFont(myfontmask); // rc_001 = 0; rc_003 = 0; optsel1->setChecked( true ); } void mainfrm::outils0_clicked() { rc_003 = 0; QIconSet wl_icoset = outils0->iconSet(); pixmapLabel1_5->setPixmap(wl_icoset.pixmap()); tabpoint[0] = 0; tabpoint[1] = 0; buttonGroup63->setDisabled(true); } void mainfrm::outils1_clicked() { rc_003 = 1; QIconSet wl_icoset = outils1->iconSet(); pixmapLabel1_5->setPixmap(wl_icoset.pixmap()); tabpoint[0] = 0; tabpoint[1] = 0; buttonGroup63->setDisabled(true); } void mainfrm::keyPressEvent( QKeyEvent *k ) { // *** Gestion du clavier ************************************************************ if ( k->key() == Qt::Key_Escape) { } } void mainfrm::optsel2_stateChanged( int ) { // *** Mask cliqué *** if ( optsel2->isChecked() == true ) { fcouleur->setBackgroundColor( couleur_3 ); my_pixmap_002->setPixmap( *editpix->pixmap() ); editpix->setPixmap( *my_pixmap_003->pixmap() ); } } void mainfrm::optsel1_stateChanged( int ) { // *** Mask sélectionné *** if ( optsel1->isChecked() == true ) { fcouleur->setBackgroundColor( couleur_2 ); if (rc_001 != 0) { my_pixmap_003->setPixmap( *editpix->pixmap() ); } editpix->setPixmap( *my_pixmap_002->pixmap() ); rc_001 = 1; } } void mainfrm::lstempl_clicked( QListViewItem * ) { // *** Afficher le cadre de travail *** QListViewItem *i = lstempl->selectedItem(); if ( i != 0 ) { int x1; int x2; int y1; int y2; tmp_001 = i->text(1); x1 = tmp_001.toInt(&ok,10); if (ok == false) { x1 = 0; } tmp_001 = i->text(2); y1 = tmp_001.toInt(&ok,10); if (ok == false) { y1 = 0; } tmp_001 = i->text(3); x2 = tmp_001.toInt(&ok,10); if (ok == false) { x2 = 0; } tmp_001 = i->text(4); y2 = tmp_001.toInt(&ok,10); if (ok == false) { y2 = 0; } // x1 = x1 + 3; y1 = y1 + 3; x2 = x2 + 2; y2 = y2 + 2; // lineh1->setGeometry(x1,y1, x2 ,1); lineh2->setGeometry(x1,y1 + y2, x2 ,1); linev1->setGeometry(x1,y1,1, y2); linev2->setGeometry(x1 + x2, y1, 1 , y2 + 1); lineh1->raise(); lineh2->raise(); linev1->raise(); linev2->raise(); } } void mainfrm::lst_video_1_doubleClicked( QListViewItem * ) { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotStop( ); } else { m_pMPlayerWidget->setFilename ( i->text(1) ); m_pMPlayerWidget->slotPlay( ); } } } void mainfrm::toolButton114_clicked() { // ************************************** // *** Choix police de caractère des sous titres *** // *************************************** QString myfic = QFileDialog::getOpenFileName( "/usr/share/fonts/", "Police de caractères (*.ttf *.TTF)", this, "Ouvrir un fichier", "Sélectionnez le fichier police de caractère à importer" ); if ( myfic.isNull() ) { } else { lineEdit12->setText(myfic); slider10->setEnabled(true); } } void mainfrm::calculcadre() { QWMatrix m; QWMatrix z; QPixmap loadimg(table_images[num_photo->value() - 1][0]); QImage tmpsrc = loadimg.convertToImage(); QImage srcimg = tmpsrc.smoothScale(720,576,QImage::ScaleFree); QImage srccdr_2 = pixcdrpho->pixmap()->convertToImage(); QImage srccdr = srccdr_2.smoothScale(720,576,QImage::ScaleFree); m.scale( 0.75, 0.69 ); tmpsrc = srcimg.xForm(m); tmpsrc.setAlphaBuffer(true); tmpsrc.createHeuristicMask(true); bitBlt ( &srccdr, 90, 90, &tmpsrc, 0, 0, -1, -1 ); z.rotate( dial1->value() ); QPixmap Pfdcolor(720,576); Pfdcolor.fill(fdcolor->paletteBackgroundColor ()); if ( wlanguage != "" ) { QPixmap tmpcreat(720,576); tmpcreat.fill( Qt::black ); QPixmap tmpcreat2(wlanguage); QImage wl_img1 = tmpcreat2.convertToImage(); QImage wl_img2 = wl_img1.scale(720,576,QImage::ScaleMin); QPixmap wl_pix1(wl_img2.width(), wl_img2.height()); wl_pix1.convertFromImage(wl_img2); ::bitBlt( &tmpcreat, (720 - wl_img2.width()) / 2, (576 - wl_img2.height()) / 2 , &wl_pix1 , 0, 0, -1, -1, Qt::CopyROP, false ); ::bitBlt( &Pfdcolor, 0, 0 , &tmpcreat , 0, 0, -1, -1, Qt::CopyROP, false ); } QImage Ifdcolor= Pfdcolor.convertToImage(); QImage fintran = srccdr.xForm(z); srcimg = fintran.smoothScale(720,576,QImage::ScaleMin); srcimg.setAlphaBuffer(true); srcimg.createHeuristicMask(true); QImage wl_img1 = srcimg.smoothScale(dial_size->value(), dial_size->value() / 1.25,QImage::ScaleMin); bitBlt ( &Ifdcolor, dial_x->value() , dial_y->value(), &wl_img1, 0, 0, -1, -1 ); pixmapLabel1_3->setPixmap(Ifdcolor); } void mainfrm::toolButton115_clicked() { cadredit->hide(); groupBox13->hide(); QTime nowtime; nowtime = QTime::currentTime(); tmp_009 = wpathtotalproj + "GIBtmpphoto_" + nowtime.toString("hh:mm:ss") + ".png"; QImage myimg = pixmapLabel1_3->pixmap()->convertToImage(); myimg.save( tmp_009, "PNG" ); table_images[num_photo->value() - 1][0] = tmp_009; QLabel *pntloc = table_pnt_img[num_photo->value() - 1]; QPixmap pixloc; pixloc.load( tmp_009 ); QImage tmptransf = pixloc.convertToImage(); myimg = tmptransf.scale(320, 256,QImage::ScaleMax); pntloc->setPixmap( myimg ); apercu_photo_diapo->setPixmap( myimg ); fen_slideshow->setEnabled(true); } void mainfrm::toolButton115_2_clicked() { cadredit->hide(); groupBox13->hide(); fen_slideshow->setEnabled(true); } void mainfrm::toolButton117_clicked() { QColor couleur_10 = QColorDialog::getColor( couleur_10 , this, "Choisissez une couleur" ); if ( couleur_10.isValid() ) { fdcolor->setPaletteBackgroundColor(couleur_10); wlanguage = ""; calculcadre(); } } void mainfrm::bt_modif_gimp_2_clicked() { proc_001 = new QProcess( this ); proc_001->addArgument( "gimp"); proc_001->addArgument( table_images[num_photo->value() - 1][0] ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_thegimp_2()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "The Gimp"); } else { this->setDisabled( true ); } } void mainfrm::fin_thegimp_2() { QPixmap loadimg(table_images[num_photo->value() - 1][0]); QImage myimg = loadimg.convertToImage(); QImage myimg_2 = myimg.scale (320, 256, QImage::ScaleMax); QLabel *pntloc = table_pnt_img[num_photo->value() - 1]; pntloc->setPixmap( myimg_2 ); apercu_photo_diapo->setPixmap( myimg_2 ); this->setEnabled( true ); } void mainfrm::outils1_2_clicked() { editmask->setDisabled(true); addtxt2mask->setGeometry(300,230,400,240); addtxt2mask->show(); addtxt2mask->raise(); lineEdit13->setFocus(); } void mainfrm::toolButton120_clicked() { if ( lineEdit13->text() != "" ) { addtxt2mask->hide(); editmask->setEnabled(true); QIconSet wl_icoset = outils1_2->iconSet(); pixmapLabel1_5->setPixmap(wl_icoset.pixmap()); rc_003 = 2; buttonGroup63->setDisabled(true); } else { addtxt2mask->hide(); editmask->setEnabled(true); QIconSet wl_icoset = outils0->iconSet(); pixmapLabel1_5->setPixmap(wl_icoset.pixmap()); rc_003 = 0; buttonGroup63->setDisabled(true); } } void mainfrm::toolButton121_clicked() { myfontmask = QFontDialog::getFont( &ok, QFont( "Helvetica [Cronyx]", 10 ), this ); taille_police_mask = myfontmask.pointSize(); testpol->setFont(myfontmask); } void mainfrm::dial1_valueChanged( int ) { calculcadre(); } void mainfrm::toolButton122_clicked() { addfilter->hide(); // QString wvf = ""; QString lum = QString::number( sl_lum->value() ); QString con = QString::number( sl_con->value() ); QString x = QString::number( spx->value() ); QString y = QString::number( spy->value() ); QString l = QString::number( spl->value() ); QString h = QString::number( sph->value() ); if ( btreglages->isChecked() == true || btdelogo->isChecked() == true || btmirroir->isChecked() == true || btdenoise->isChecked() == true ) { wvf = ","; if ( btreglages->isChecked() == true ) { wvf = wvf + "eq=" + lum + ":" + con; } if ( btdelogo->isChecked() == true ) { if ( btreglages->isChecked() == true ) { wvf = wvf + ","; } wvf = wvf + "delogo=" + x + ":" + y + ":" + l + ":" + h + ":3"; } if ( btmirroir->isChecked() == true ) { if ( btreglages->isChecked() == true || btdelogo->isChecked() == true ) { wvf = wvf + ","; } wvf = wvf + "mirror"; } if ( btdenoise->isChecked() == true ) { if ( btreglages->isChecked() == true || btdelogo->isChecked() == true || btmirroir->isChecked() == true ) { wvf = wvf + ","; } wvf = wvf + "denoise3d=8:6:12"; } QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { QImage wl_img1 = i->pixmap(0)->convertToImage(); QPixmap wl_pix1(wl_img1); QImage wl_img2 = previcon_3->pixmap()->convertToImage(); QPixmap wl_pix2(wl_img2); ::bitBlt( &wl_pix1, 3, 20, &wl_pix2, 0, 0, -1, -1, Qt::CopyROP, false ); tmp_004 = i->text(2); rc_003 = tmp_004.find ( "/*EDL/*" , 0); if (rc_003 != -1) { tmp_005 = tmp_004.mid(0,rc_003 + 7); tmp_005 = tmp_005 + wvf; i->setText(2, tmp_005); } else { i->setText(2, "1" + wvf + " "); } i->setPixmap( 0, wl_pix1 ); bt_force->setDisabled(true); } } else { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { tmp_001 = i->text(2); tmp_002 = tmp_001.mid(0,1); i->setText(2, tmp_002); } } // Etape_02->setEnabled(true); } void mainfrm::bt_gest_sub_2_clicked() { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 && i->text(2) != "9" ) { int cpt1; int cpt2; if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotStop( ); } nomfilm = i->text(1); QString lstfiltres = i->text(2); if (lstfiltres.find("eq=",0,false) == -1) { btreglages->setChecked( false ); sl_lum->setValue(0); sl_con->setValue(0); } else { cpt1 = lstfiltres.find("eq=",0,false) + 3; cpt2 = 0; tmp_001 = ""; tmp_002 = ""; while (lstfiltres.mid(cpt1,1) != "," && lstfiltres.mid(cpt1,1) != " "&& cpt1 < lstfiltres.length()) { if ( lstfiltres.mid(cpt1,1) != ":" ) { if (cpt2 == 0) { tmp_001 = tmp_001 + lstfiltres.mid(cpt1,1); } else { tmp_002 = tmp_002 + lstfiltres.mid(cpt1,1); } } else { cpt2 = 1; } cpt1 = cpt1 + 1; } // rc_001 = tmp_001.toInt(&ok,10); if (ok == true) { sl_lum->setValue(rc_001); } else { sl_lum->setValue(0); } // rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { sl_con->setValue(rc_001); } else { sl_con->setValue(0); } // btreglages->setChecked( true ); } if (lstfiltres.find("delogo=",0,false) == -1) { btdelogo->setChecked( false ); spx->setValue(0); spy->setValue(0); spl->setValue(0); sph->setValue(0); } else { cpt1 = lstfiltres.find("delogo=",0,false) + 7; cpt2 = 0; tmp_001 = ""; tmp_002 = ""; tmp_003 = ""; tmp_004 = ""; while (lstfiltres.mid(cpt1,1) != "," && lstfiltres.mid(cpt1,1) != " " && cpt1 < lstfiltres.length()) { if ( lstfiltres.mid(cpt1,1) != ":" ) { if (cpt2 == 0) { tmp_001 = tmp_001 + lstfiltres.mid(cpt1,1); } else { if (cpt2 == 1) { tmp_002 = tmp_002 + lstfiltres.mid(cpt1,1); } else { if (cpt2 == 2) { tmp_003 = tmp_003 + lstfiltres.mid(cpt1,1); } else { if (cpt2 == 3) { tmp_004 = tmp_004 + lstfiltres.mid(cpt1,1); } } } } } else { cpt2 = cpt2 + 1; } cpt1 = cpt1 + 1; } // rc_001 = tmp_001.toInt(&ok,10); if (ok == true) { spx->setValue(rc_001); } else { spx->setValue(0); } // rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { spy->setValue(rc_001); } else { spy->setValue(0); } // rc_001 = tmp_003.toInt(&ok,10); if (ok == true) { spl->setValue(rc_001); } else { spl->setValue(0); } // rc_001 = tmp_004.toInt(&ok,10); if (ok == true) { sph->setValue(rc_001); } else { sph->setValue(0); } // btdelogo->setChecked( true ); } if (lstfiltres.find("mirror",0,false) == -1) { btmirroir->setChecked( false ); } else { btmirroir->setChecked( true ); } if (lstfiltres.find("denoise3d=",0,false) == -1) { btdenoise->setChecked( false ); } else { btdenoise->setChecked( true ); } Etape_02->setDisabled(true); addfilter->setGeometry(55,104,890,619); addfilter->show(); addfilter->raise(); } } void mainfrm::btpreveffets_clicked() { QString wvf = ""; QString lum = QString::number( sl_lum->value() ); QString con = QString::number( sl_con->value() ); QString x = QString::number( spx->value() ); QString y = QString::number( spy->value() ); QString l = QString::number( spl->value() ); QString h = QString::number( sph->value() ); proc_003 = new QProcess( this ); proc_003->addArgument( "mplayer" ); proc_003->addArgument( nomfilm ); if ( btreglages->isChecked() == true || btdelogo->isChecked() == true || btmirroir->isChecked() == true || btdenoise->isChecked() == true ) { proc_003->addArgument( "-vf" ); if ( btreglages->isChecked() == true ) { wvf = "eq=" + lum + ":" + con; } if ( btdelogo->isChecked() == true ) { if ( btreglages->isChecked() == true ) { wvf = wvf + ","; } if ( checkBox5->isChecked() == true ) { wvf = wvf + "delogo=" + x + ":" + y + ":" + l + ":" + h + ":-1"; } else { wvf = wvf + "delogo=" + x + ":" + y + ":" + l + ":" + h + ":3"; } } if ( btmirroir->isChecked() == true ) { if ( btreglages->isChecked() == true || btdelogo->isChecked() == true ) { wvf = wvf + ","; } wvf = wvf + "mirror"; } if ( btdenoise->isChecked() == true ) { if ( btreglages->isChecked() == true || btdelogo->isChecked() == true || btmirroir->isChecked() == true ) { wvf = wvf + ","; } wvf = wvf + "denoise3d=8:6:12"; } proc_003->addArgument( wvf ); } connect( proc_003, SIGNAL(processExited()), this, SLOT(fin_prevmplayer()) ); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "Mplayer"); } else { this->setDisabled(true); } } void mainfrm::fin_prevmplayer() { this->setEnabled(true); } void mainfrm::calcul_dureeslide() { int cpt1 = 0; int tottime = 0; int longueur_audio_1 = 0; int cumul_audio_1 = 0; if (nbre_images > 0) { bt_modif_gimp_2->setEnabled(true); bt_valid_info_image_2->setEnabled(true); bt_valid_info_image_3->setEnabled(true); } else { bt_modif_gimp_2->setDisabled(true); bt_valid_info_image_2->setDisabled(true); bt_valid_info_image_3->setDisabled(true); } while (cpt1 < nbre_images) { tmp_001 = table_images[cpt1][1]; tmp_002 = table_images[cpt1][3]; rc_001 = tmp_001.toInt(&ok,10); if (ok == true) { tottime = tottime + rc_001; cumul_audio_1 = cumul_audio_1 + rc_001; } rc_001 = tmp_002.toInt(&ok,10); if (ok == true && table_images[cpt1][2] != table_message[40]) { tottime = tottime + rc_001; cumul_audio_1 = cumul_audio_1 + rc_001; } if (cumul_audio_1 > yaaudio && longueur_audio_1 == 0) { longueur_audio_1 = cpt1 + 1; } cpt1=cpt1+1; } if ( longueur_audio_1 == 0 ) { Audio_1->setGeometry(0,121,105 + (130 * nbre_images),18); } else { Audio_1->setGeometry(0,121,5 + (130 * longueur_audio_1),18); } texttottime->setText("Total : " + QString::number(tottime) + " sec"); } void mainfrm::avvalue_valueChanged( int ) { if ( avvalue->value() < 0 ) { grpaudio->setGeometry(62,51,130,20); QColor c1(255,0,0); avgroup->setPaletteForegroundColor(c1); } else { if ( avvalue->value() > 0 ) { QColor c1(255,0,0); avgroup->setPaletteForegroundColor(c1); grpaudio->setGeometry( 10,51,130,20); } else { QColor c1(0,255,0); avgroup->setPaletteForegroundColor(c1); grpaudio->setGeometry( 36,51,130,20); } } } void mainfrm::btprevdelay_clicked() { float decalage; tmp_004 = textLabel2_11->text(); rc_003 = tmp_004.find ( ":" , 0); if (rc_003 != -1) { rc_003 = rc_003 + 2; tmp_008 = ""; while ( rc_003 < tmp_004.length() ) { tmp_008 = tmp_008 + tmp_004.mid(rc_003, 1); rc_003 = rc_003 + 1; } rc_001 = tmp_008.toInt(&ok,10); if (ok == true) { decalage = avvalue->value() - rc_001; } else { decalage = 0; } } else { decalage = 0; } float myval = decalage / 1000; QString thetest; thetest.setNum( myval, 'f', 3 ); proc_003 = new QProcess( this ); proc_003->addArgument( "mplayer" ); proc_003->addArgument( path_video ); proc_003->addArgument( "-delay"); proc_003->addArgument( thetest ); connect( proc_003, SIGNAL(processExited()), this, SLOT(fin_prevmplayer()) ); if ( ! proc_003->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "Mplayer"); } else { this->setDisabled(true); } } void mainfrm::bt_dep_droite_clicked() { // *** Deplacement images vers droite *** if (nbre_images > 1) { int cpt1; QLabel *mylabel; QLabel *mylabel_2; QLabel *mylabel_3; QLabel *tmp_tab1[1][2]; QLabel *tmp_tab2; QString tmp_tab3[1][5]; cpt1 = num_photo->value(); if (nbre_images > 1 && num_photo->value() < nbre_images ) { // *** Décalage des contrôles *** mylabel = table_pnt_img[cpt1-1]; mylabel_2 = table_pnt_txt[cpt1-1][0]; mylabel_3 = table_pnt_txt[cpt1-1][1]; // mylabel->setGeometry( (10 + ((cpt1) * 120)) + ((cpt1) * 10), 6 , 120, 96); mylabel_2->setGeometry((10 + ((cpt1) * 120)) + ((cpt1) * 10), 103 , 120, 14); mylabel_2->setText("Photo : " + QString::number(cpt1+1)); mylabel_3->setGeometry((13 + ((cpt1) * 120)) + ((cpt1) * 10), 35 , 40, 40); // *** Décalage des pointeurs et autres *** tmp_tab2 = table_pnt_img[cpt1-1]; tmp_tab1[0][0] = table_pnt_txt[cpt1-1][0]; tmp_tab1[0][1] = table_pnt_txt[cpt1-1][1]; tmp_tab3[0][0] = table_images[cpt1-1][0]; tmp_tab3[0][1] = table_images[cpt1-1][1]; tmp_tab3[0][2] = table_images[cpt1-1][2]; tmp_tab3[0][3] = table_images[cpt1-1][3]; tmp_tab3[0][4] = table_images[cpt1-1][4]; // *** Décalage des contrôles *** mylabel = table_pnt_img[cpt1]; mylabel_2 = table_pnt_txt[cpt1][0]; mylabel_3 = table_pnt_txt[cpt1][1]; // mylabel->setGeometry( (10 + ((cpt1-1) * 120)) + ((cpt1-1) * 10), 6 , 120, 96); mylabel_2->setGeometry((10 + ((cpt1-1) * 120)) + ((cpt1-1) * 10), 103 , 120, 14); mylabel_2->setText("Photo : " + QString::number(cpt1)); mylabel_3->setGeometry((13 + ((cpt1-1) * 120)) + ((cpt1-1) * 10), 35 , 40, 40); // table_pnt_img[cpt1-1] = table_pnt_img[cpt1]; table_pnt_txt[cpt1-1][0] = table_pnt_txt[cpt1][0]; table_pnt_txt[cpt1-1][1] = table_pnt_txt[cpt1][1]; table_images[cpt1-1][0] = table_images[cpt1][0]; table_images[cpt1-1][1] = table_images[cpt1][1]; table_images[cpt1-1][2] = table_images[cpt1][2]; table_images[cpt1-1][3] = table_images[cpt1][3]; table_images[cpt1-1][4] = table_images[cpt1][4]; // table_pnt_img[cpt1] = tmp_tab2; table_pnt_txt[cpt1][0] = tmp_tab1[0][0]; table_pnt_txt[cpt1][1] = tmp_tab1[0][1]; table_images[cpt1][0] = tmp_tab3[0][0]; table_images[cpt1][1] = tmp_tab3[0][1]; table_images[cpt1][2] = tmp_tab3[0][2]; table_images[cpt1][3] = tmp_tab3[0][3]; table_images[cpt1][4] = tmp_tab3[0][4]; // num_photo->setValue(cpt1 + 1); calcul_dureeslide(); } } } void mainfrm::bt_dep_gauche_clicked() { // *** Deplacement images vers gauche *** if (nbre_images > 1) { int cpt1; QLabel *mylabel; QLabel *mylabel_2; QLabel *mylabel_3; QLabel *tmp_tab1[1][2]; QLabel *tmp_tab2; QString tmp_tab3[1][5]; cpt1 = num_photo->value(); if (nbre_images > 1 && num_photo->value() > 1 ) { // *** Décalage des contrôles *** mylabel = table_pnt_img[cpt1-1]; mylabel_2 = table_pnt_txt[cpt1-1][0]; mylabel_3 = table_pnt_txt[cpt1-1][1]; // mylabel->setGeometry( (10 + ((cpt1 - 2) * 120)) + ((cpt1 - 2) * 10), 6 , 120, 96); mylabel_2->setGeometry((10 + ((cpt1 - 2) * 120)) + ((cpt1 - 2) * 10), 103 , 120, 14); mylabel_2->setText("Photo : " + QString::number(cpt1-1)); mylabel_3->setGeometry((13 + ((cpt1 - 2) * 120)) + ((cpt1 - 2) * 10), 35 , 40, 40); // *** Décalage des pointeurs et autres *** tmp_tab2 = table_pnt_img[cpt1-1]; tmp_tab1[0][0] = table_pnt_txt[cpt1-1][0]; tmp_tab1[0][1] = table_pnt_txt[cpt1-1][1]; tmp_tab3[0][0] = table_images[cpt1-1][0]; tmp_tab3[0][1] = table_images[cpt1-1][1]; tmp_tab3[0][2] = table_images[cpt1-1][2]; tmp_tab3[0][3] = table_images[cpt1-1][3]; tmp_tab3[0][4] = table_images[cpt1-1][4]; // *** Décalage des contrôles *** mylabel = table_pnt_img[cpt1-2]; mylabel_2 = table_pnt_txt[cpt1-2][0]; mylabel_3 = table_pnt_txt[cpt1-2][1]; // mylabel->setGeometry( (10 + ((cpt1-1) * 120)) + ((cpt1-1) * 10), 6 , 120, 96); mylabel_2->setGeometry((10 + ((cpt1-1) * 120)) + ((cpt1-1) * 10), 103 , 120, 14); mylabel_2->setText("Photo : " + QString::number(cpt1)); mylabel_3->setGeometry((13 + ((cpt1-1) * 120)) + ((cpt1-1) * 10), 35 , 40, 40); // table_pnt_img[cpt1-1] = table_pnt_img[cpt1-2]; table_pnt_txt[cpt1-1][0] = table_pnt_txt[cpt1-2][0]; table_pnt_txt[cpt1-1][1] = table_pnt_txt[cpt1-2][1]; table_images[cpt1-1][0] = table_images[cpt1-2][0]; table_images[cpt1-1][1] = table_images[cpt1-2][1]; table_images[cpt1-1][2] = table_images[cpt1-2][2]; table_images[cpt1-1][3] = table_images[cpt1-2][3]; table_images[cpt1-1][4] = table_images[cpt1-2][4]; // table_pnt_img[cpt1-2] = tmp_tab2; table_pnt_txt[cpt1-2][0] = tmp_tab1[0][0]; table_pnt_txt[cpt1-2][1] = tmp_tab1[0][1]; table_images[cpt1-2][0] = tmp_tab3[0][0]; table_images[cpt1-2][1] = tmp_tab3[0][1]; table_images[cpt1-2][2] = tmp_tab3[0][2]; table_images[cpt1-2][3] = tmp_tab3[0][3]; table_images[cpt1-2][4] = tmp_tab3[0][4]; // num_photo->setValue(cpt1 -1); calcul_dureeslide(); } } } void mainfrm::bt_invert_2_clicked() { QImage saveimg = apercu_fond->pixmap()->convertToImage(); saveimg.save( wpathtotalproj + "limagefond.png","PNG"); proc_001 = new QProcess( this ); proc_001->addArgument( "convert"); proc_001->addArgument( wpathtotalproj + "limagefond.png" ); proc_001->addArgument( "-sepia-tone" ); proc_001->addArgument( "50000" ); proc_001->addArgument( wpathtotalproj + "tmplimagefond.png" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_effets_menu()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "convert (ImageMagick)"); } else { this->setDisabled(true); } } void mainfrm::fin_effets_menu() { QImage saveimg; saveimg.load(wpathtotalproj + "tmplimagefond.png"); apercu_fond->setPixmap(saveimg); my_pixmap_001->setPixmap (saveimg); bitBlt ( &save_fond, 0, 0, &saveimg, 0, 0, -1, -1 ); this->setEnabled(true); } void mainfrm::toolButton129_clicked() { QPixmap save_cadre_2(deplace_w->value(), deplace_h->value()); ::bitBlt( &save_cadre_2, 0, 0, imgtravail->pixmap() , deplace_x->value(), deplace_y->value(), deplace_w->value(), deplace_h->value(), Qt::CopyROP, false ); QImage save_cadre = save_cadre_2.convertToImage(); QImage save_cadre_3 = save_cadre.scale(720,576,QImage::ScaleMin); QPixmap tmpcreat(720,576); tmpcreat.fill( Qt::black ); QPixmap tmpcreat2(save_cadre_3); ::bitBlt( &tmpcreat, (720 - save_cadre_3.width()) / 2, (576 - save_cadre_3.height()) / 2 , &tmpcreat2 , 0, 0, -1, -1, Qt::CopyROP, false ); save_cadre_3 = tmpcreat.convertToImage(); QTime nowtime; nowtime = QTime::currentTime(); tmp_009 = wpathtotalproj + "GIBtmpphoto_" + nowtime.toString("hh:mm:ss") + ".png"; save_cadre_3.save( tmp_009, "PNG" ); table_images[num_photo->value() - 1][0] = tmp_009; QLabel *pntloc = table_pnt_img[num_photo->value() - 1]; QPixmap pixloc; pixloc.load( tmp_009 ); QImage tmptransf = pixloc.convertToImage(); QImage myimg = tmptransf.scale(320, 256,QImage::ScaleMax); pntloc->setPixmap( myimg ); apercu_photo_diapo->setPixmap( myimg ); recadrage->hide(); fen_slideshow->setEnabled(true); } void mainfrm::deplace_y_valueChanged( int ) { depl_coupe(); } void mainfrm::deplace_x_valueChanged( int ) { depl_coupe(); } void mainfrm::depl_coupe() { QImage travfond = fantome_decoupe->pixmap()->convertToImage(); imgtravail->setPixmap(travfond); QPixmap titi(travfond.width(),travfond.height()); deplace_x->setMaxValue( travfond.width() - deplace_w->value()); deplace_y->setMaxValue( travfond.height() - deplace_h->value()); QColor localcol(255,0,0); titi.fill(localcol); QPainter p( this ); p.end(); p.begin( &titi ); p.fillRect ( deplace_x->value()-2, deplace_y->value()-2, deplace_w->value()+4, deplace_h->value()+4, Qt::white ); p.fillRect ( deplace_x->value(), deplace_y->value(), deplace_w->value(), deplace_h->value(), Qt::black ); p.end(); ::bitBlt( imgtravail->pixmap(), 0, 0, &titi , 0, 0, -1, -1, Qt::OrROP, false ); } void mainfrm::toolButton129_2_clicked() { recadrage->hide(); fen_slideshow->setEnabled(true); } void mainfrm::deplace_h_valueChanged( int ) { depl_coupe(); } void mainfrm::deplace_w_valueChanged( int ) { depl_coupe(); } void mainfrm::bteditsstitre_clicked() { listdessub->clear(); if (lineEdit11_2->text() == "") { rc_003 = 0; } else { rc_003 = 1; // QFile myfic(lineEdit11_2->text()); QTextStream mystream (&myfic); if ( myfic.open( IO_ReadOnly ) ) { QString myrec = mystream.readLine(); while(mystream.atEnd() == false) { // *** Timing *** myrec = mystream.readLine(); tmp_001 = myrec.mid(0,8); tmp_002 = myrec.mid(17,8); // *** Texte *** myrec = mystream.readLine(); // *** Ajout à la listview *** QListViewItem *i = new QListViewItem(listdessub, tmp_001, tmp_002, myrec ); // *** Ligne blanche *** myrec = mystream.readLine(); // *** Position *** myrec = mystream.readLine(); } } } newsubt->setDisabled(true); createsubtitle->setGeometry(15,140,970,420); createsubtitle->show(); createsubtitle->raise(); mediabar->setGeometry(25,460,341,30); mediabar->show(); mediabar->raise(); vframe->setGeometry(25,190,341,273); vframe->show(); vframe->raise(); } void mainfrm::btcloseedit_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotStop(); } listdessub->setSortColumn(1); listdessub->setSortOrder(Qt::Ascending); listdessub->sort(); if (rc_003 == 0) { QString myfic = QFileDialog::getSaveFileName( path_out->text(), "Subtitle (*.srt)", this, "Ouvrir un fichier", "Subtitle export" ); if ( myfic.isNull() ) { } else { if ( myfic.right(4) != ".srt" ) { myfic = myfic + ".srt"; } save_sub(myfic); } } else { save_sub(lineEdit11_2->text()); } createsubtitle->hide(); mediabar->hide(); vframe->setGeometry(31,125,115,71); vframe->show(); vframe->raise(); } void mainfrm::save_sub(QString locpathname) { QFile myfic(locpathname); int cpt_001 = 1; int cpt_002 = 0; if ( myfic.open( IO_WriteOnly )) { QListViewItem *lvi = listdessub->firstChild(); cpt_002 = listdessub->childCount(); while (cpt_001 <= cpt_002) { tmp_001 = lvi->text(0); tmp_002 = lvi->text(1); tmp_003 = lvi->text(2); tmp_004 = QString::number(cpt_001) + "\n"; myfic.writeBlock(tmp_004, tmp_004.length()); tmp_004 = tmp_001 + ",000 --> " + tmp_002 + ",000\n"; myfic.writeBlock(tmp_004, tmp_004.length()); tmp_004 = tmp_003 + "\n"; myfic.writeBlock(tmp_004, tmp_004.length()); tmp_004 = "\n"; myfic.writeBlock(tmp_004, tmp_004.length()); lvi = lvi->nextSibling(); cpt_001 = cpt_001 + 1; } myfic.close(); lineEdit11_2->setText(locpathname); } else { QMessageBox::warning(this, "ManDVD", table_message[8]); } } void mainfrm::bt_deb_sub_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { int iHour; int iMin; int iSec; QTime mytime; float fElapsedTime = m_pMPlayerWidget->m_rxParseElapsedTime.cap(1).toFloat(); iHour = (int) (fElapsedTime / 3600.0); iMin = (int)((fElapsedTime-iHour*3600)/60.0); iSec = (int) (fElapsedTime-iHour*3600-iMin*60); mytime.setHMS(iHour, iMin, iSec); hre_deb_sub->setTime(mytime); } } void mainfrm::bt_lire_pr_chap_2_clicked() { m_pMPlayerWidget->slotPlay(); } void mainfrm::bt_stop_play_chap_2_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotStop(); } } void mainfrm::bt_defil_1_2_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotBack(); } } void mainfrm::bt_defil_2_2_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotForward(); } } void mainfrm::bt_deb_sub_2_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { int iHour; int iMin; int iSec; QTime mytime; float fElapsedTime = m_pMPlayerWidget->m_rxParseElapsedTime.cap(1).toFloat(); iHour = (int) (fElapsedTime / 3600.0); iMin = (int)((fElapsedTime-iHour*3600)/60.0); iSec = (int) (fElapsedTime-iHour*3600-iMin*60); mytime.setHMS(iHour, iMin, iSec); hre_fin_sub->setTime(mytime); } } void mainfrm::toolButton135_clicked() { if ( hre_deb_sub->time() < hre_fin_sub->time() ) { if (rc_002 == 0) { QTime mytime; QTime mytime2; mytime = hre_deb_sub->time(); mytime2 = hre_fin_sub->time(); QListViewItem *i = new QListViewItem(listdessub, mytime.toString("hh:mm:ss"), mytime2.toString("hh:mm:ss"), textsub->text() ); QTime raztime(0,0,0,0); hre_deb_sub->setTime(raztime); hre_fin_sub->setTime(raztime); textsub->setText(""); } else { QListViewItem *i = listdessub->selectedItem(); if ( i != 0 ) { QTime mytime; QTime mytime2; mytime = hre_deb_sub->time(); mytime2 = hre_fin_sub->time(); i->setText(0, mytime.toString("hh:mm:ss")); i->setText(1, mytime2.toString("hh:mm:ss")); i->setText(2, textsub->text()); QTime raztime(0,0,0,0); hre_deb_sub->setTime(raztime); hre_fin_sub->setTime(raztime); textsub->setText(""); } } newsubt->setDisabled(true); listdessub->setEnabled(true); toolButton133_2->setEnabled(true); toolButton133_2_2->setEnabled(true); btcloseedit->setEnabled(true); btcloseedit_2->setEnabled(true); } else { QMessageBox::warning(this, "ManDVD", table_message[29]); } } void mainfrm::listdessub_doubleClicked( QListViewItem * ) { QListViewItem *i = listdessub->selectedItem(); if ( i != 0 ) { int hre; int min; int sec; tmp_001 = i->text(0); tmp_002 = tmp_001.mid(0,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { hre = rc_001; } else { hre = 0; } tmp_002 = tmp_001.mid(3,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { min = rc_001; } else { min = 0; } tmp_002 = tmp_001.mid(6,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { sec = rc_001; } else { sec = 0; } QTime time1(hre,min,sec); hre_deb_sub->setTime(time1); // tmp_001 = i->text(1); tmp_002 = tmp_001.mid(0,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { hre = rc_001; } else { hre = 0; } tmp_002 = tmp_001.mid(3,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { min = rc_001; } else { min = 0; } tmp_002 = tmp_001.mid(6,2); rc_001 = tmp_002.toInt(&ok,10); if (ok == true) { sec = rc_001; } else { sec = 0; } QTime time2(hre,min,sec); hre_fin_sub->setTime(time2); // textsub->setText(i->text(2)); toolButton133_2->setDisabled(true); toolButton133_2_2->setDisabled(true); btcloseedit->setDisabled(true); btcloseedit_2->setDisabled(true); newsubt->setEnabled(true); listdessub->setDisabled(true); rc_002 = 1; } } void mainfrm::toolButton133_2_clicked() { rc_002 = 0; newsubt->setEnabled(true); listdessub->setDisabled(true); toolButton133_2->setDisabled(true); toolButton133_2_2->setDisabled(true); btcloseedit->setDisabled(true); btcloseedit_2->setDisabled(true); } void mainfrm::toolButton133_2_2_clicked() { QListViewItem *i = listdessub->selectedItem(); if ( i != 0 ) { listdessub->takeItem( i ); } } void mainfrm::btcloseedit_2_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotStop(); } createsubtitle->hide(); mediabar->hide(); vframe->setGeometry(31,125,115,71); vframe->show(); vframe->raise(); } void mainfrm::bt_lire_pr_chap_2_2_clicked() { if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotPause(); } } void mainfrm::listdessub_clicked( QListViewItem * ) { QListViewItem *i = listdessub->selectedItem(); if ( i != 0 ) { tmp_001 = i->text(0).mid(0,2); tmp_002 = i->text(0).mid(3,2); tmp_003 = i->text(0).mid(6,2); int hre = tmp_001.toInt(&ok,10); int min = tmp_002.toInt(&ok,10); int sec = tmp_003.toInt(&ok,10); float wpositionnow; wpositionnow = (hre * 3600) + (min * 60) + sec; if (m_pMPlayerWidget->isPlaying() == false) { m_pMPlayerWidget->slotPlay(); } m_pMPlayerWidget->slotSeek(wpositionnow,2); } } void mainfrm::extimgvideo_clicked() { Etape_02->setDisabled(true); m_pMPlayerWidget->setFilename ( path_video ); captureframe->setGeometry(320,170,360,360); captureframe->show(); captureframe->raise(); mediabar->setGeometry(330,460,290,30); mediabar->show(); mediabar->raise(); vframe->setGeometry(330,180,341,273); vframe->show(); vframe->raise(); if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotStop(); } m_pMPlayerWidget->slotPlay(); } void mainfrm::btvalidcapture_clicked() { captureframe->hide(); if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotStop(); } mediabar->hide(); Etape_02->setEnabled(true); vframe->setGeometry(31,125,115,71); vframe->show(); vframe->raise(); } void mainfrm::bt_c_6_clicked() { QPixmap cap_screen(333,248); cap_screen.fill(Qt::black); ::bitBlt( &cap_screen, 0, 0, m_pMPlayerWidget, 0, 7, -1, -1, Qt::CopyROP, false ); if ( m_pMPlayerWidget->isPlaying() == true ) { m_pMPlayerWidget->slotPause(); } QString myfic = QFileDialog::getSaveFileName( path_out->text(), "Images (*.png *.PNG)", this, "Enregistrer", "Images" ); if ( myfic.isNull() ) { } else { if ( myfic.right(4) != ".png" && myfic.right(4) != ".PNG" ) { myfic = myfic + ".png"; } cap_screen.save(myfic,"PNG"); btvalidcapture_clicked(); QImage myimg ( myfic, 0); QPixmap mypix ( myimg ); appimgbt->setPixmap ( mypix ); appimgbt->show(); lineEdit8->setText( myfic ); } } void mainfrm::extimgvideo_gimp_clicked() { // ************************************** // *** Modification d'une frame avec the gimp *** // ************************************** if (lineEdit8->text() != "") { proc_001 = new QProcess( this ); proc_001->addArgument( "gimp"); proc_001->addArgument( lineEdit8->text() ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_thegimp_extractimg()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "The Gimp"); } else { this->setDisabled( true ); } } } void mainfrm::fin_thegimp_extractimg() { this->setEnabled( true ); QImage myimg ( lineEdit8->text(), 0); QPixmap mypix ( myimg ); appimgbt->setPixmap( mypix ); } void mainfrm::bt_defil_1_2_2_2_clicked() { m_pMPlayerWidget->slotSeek(0.1,0); m_pMPlayerWidget->slotPause(); } void mainfrm::bt_defil_1_2_2_clicked() { int myseek = 2; m_pMPlayerWidget->slotSeek(-myseek,0); m_pMPlayerWidget->slotPause(); } void mainfrm::bt_cut_film_clicked() { QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 && i->text(2) != "9" ) { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } path_video = i->text(1); m_pMPlayerWidget->setFilename(path_video); m_pMPlayerWidget->slotPlay(); durfilmchap = 0; while (durfilmchap == 0) { if (m_pMPlayerWidget->isPlaying() == false) { durfilmchap = 1; } else { m_pMPlayerWidget->slotReadStdout(); durfilmchap = m_pMPlayerWidget->m_fLength; } } if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop(); } rc_001 = 0; rc_002 = 0; bt_cutting->setDisabled(true); lstcut->clear(); debtxt->setText("0"); endtxt->setText("0"); Etape_02->setDisabled(true); cutfilm->setGeometry(180,145,640,410); cutfilm->show(); cutfilm->raise(); mediabar->setGeometry(190,428,341,30); mediabar->show(); mediabar->raise(); vframe->setGeometry(190,155,341,273); vframe->show(); vframe->raise(); tmp_004 = i->text(2); rc_003 = tmp_004.find ( "//EDL//" , 0); if (rc_003 != -1) { rc_004 = tmp_004.find ( "/*EDL/*" , 0); tmp_001 = tmp_004.mid(rc_003 + 7, rc_004 - (rc_003 + 7)); tmp_010 = tmp_001; openedl(tmp_001); rc_004 = 1; } else { rc_004 = 0; } } } void mainfrm::bt_fermer_cutfilm_clicked() { if (m_pMPlayerWidget->isPlaying() == true) { m_pMPlayerWidget->slotStop( ); } cutfilm->hide(); mediabar->hide(); vframe->setGeometry(31,125,115,71); Etape_02->setEnabled(true); vframe->show(); vframe->raise(); } void mainfrm::deb_pnt_cut_clicked() { int zcalcul; QTime mytime; float fElapsedTime = m_pMPlayerWidget->m_rxParseElapsedTime.cap(1).toFloat(); zcalcul = (int) fElapsedTime; debtxt->setText(QString::number(zcalcul)); rc_001 = 1; if (rc_001 == 1 && rc_002 == 1) { bt_cutting->setEnabled(true); } } void mainfrm::fin_pnt_cut_clicked() { int zcalcul; QTime mytime; float fElapsedTime = m_pMPlayerWidget->m_rxParseElapsedTime.cap(1).toFloat(); zcalcul = (int) fElapsedTime; endtxt->setText(QString::number(zcalcul)); rc_002 = 1; if (rc_001 == 1 && rc_002 == 1) { bt_cutting->setEnabled(true); } } void mainfrm::bt_cutting_clicked() { int thestartint; int theendint; QString thedeb = debtxt->text(); QString theend = endtxt->text(); thestartint = thedeb.toInt(&ok,10); if (ok != true) { thestartint = 0; } theendint = theend.toInt(&ok,10); if (ok != true) { theendint = 0; } if (thestartint < theendint) { QTime time_1(0,0,0); QTime time_2(0,0,0); QTime time_3(0,0,0); QTime time_4(0,0,0); time_3 = time_1.addSecs(thestartint); time_4 = time_2.addSecs(theendint); QListViewItem *j; j = new QListViewItem( lstcut, time_3.toString("hh:mm:ss"), time_4.toString("hh:mm:ss") ); lstcut->setSortColumn ( 1 ); lstcut->sort(); bt_cutting->setDisabled(true); debtxt->setText("0"); endtxt->setText("0"); rc_001 = 0; rc_002 = 0; } else { QMessageBox::warning(this, "ManDVD", table_message[29]); } } void mainfrm::bt_remove_cutting_clicked() { QListViewItem *i = lstcut->selectedItem(); if ( i != 0 ) { lstcut->takeItem( i ); } } void mainfrm::bt_valid_cutfilm_clicked() { if ( rc_004 == 0 && lstcut->childCount() > 0 ) { QString myfic = QFileDialog::getSaveFileName( path_out->text(), "EDL file (*.edl)", this, "Sauvegarde EDL", "EDL export" ); if ( myfic.isNull() ) { } else { if ( myfic.right(4) != ".edl" ) { myfic = myfic + ".edl"; } save_edl(myfic); } } else { save_edl(tmp_010); } } void mainfrm::save_edl(QString myfic) { lstcut->setSortColumn ( 1 ); lstcut->sort(); QFile myfichier(myfic); if ( myfichier.open( IO_WriteOnly )) { int cpt1 = 0; int cpt2 = lstcut->childCount(); QListViewItem *lvi = lstcut->firstChild(); int secondes; int minutes; int heures; QString thedeb; QString theend; int cumul_1; int cumul_2; while (cpt1 < cpt2) { thedeb = lvi->text(0); theend = lvi->text(1); // tmp_001 = thedeb.mid(0,2); heures = tmp_001.toInt(&ok,10); if (ok != true) { heures = 0; } tmp_001 = thedeb.mid(3,2); minutes = tmp_001.toInt(&ok,10); if (ok != true) { minutes = 0; } tmp_001 = thedeb.mid(6,2); secondes = tmp_001.toInt(&ok,10); if (ok != true) { secondes = 0; } cumul_1 = (heures * 3600) + (minutes * 60) + secondes; // tmp_001 = theend.mid(0,2); heures = tmp_001.toInt(&ok,10); if (ok != true) { heures = 0; } tmp_001 = theend.mid(3,2); minutes = tmp_001.toInt(&ok,10); if (ok != true) { minutes = 0; } tmp_001 = theend.mid(6,2); secondes = tmp_001.toInt(&ok,10); if (ok != true) { secondes = 0; } cumul_2 = (heures * 3600) + (minutes * 60) + secondes; // tmp_001 = QString::number(cumul_1) + " " + QString::number(cumul_2) + " 0\n"; myfichier.writeBlock(tmp_001, tmp_001.length()); cpt1 = cpt1 + 1; lvi = lvi->nextSibling(); } myfichier.close(); bt_fermer_cutfilm_clicked(); QListViewItem *i = lst_video_1->selectedItem(); if ( i != 0 ) { QImage wl_img1 = i->pixmap(0)->convertToImage(); QPixmap wl_pix1(wl_img1); QImage wl_img2 = previcon_3->pixmap()->convertToImage(); QPixmap wl_pix2(wl_img2); ::bitBlt( &wl_pix1, 3, 20, &wl_pix2, 0, 0, -1, -1, Qt::CopyROP, false ); tmp_004 = i->text(2); tmp_005 = ""; rc_003 = tmp_004.find ( "//EDL//" , 0); if (rc_003 == -1) { tmp_005 = "1//EDL//" + myfic + "/*EDL/*" + tmp_004.mid(1,tmp_004.length() - 1); i->setText(2, tmp_005); } i->setPixmap( 0, wl_pix1 ); bt_force->setDisabled(true); } } else { QMessageBox::warning(this, "ManDVD", table_message[8]); } } void mainfrm::bt_import_cutfilm_clicked() { QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "EDL (*.edl)", this, "Ouvrir un fichier", "Sélectionnez le fichier EDL à importer" ); if ( myfic.isNull() ) { } else { openedl(myfic); rc_001 = 0; rc_002 = 0; } } void mainfrm::openedl( QString myfic ) { QString myrec; QFile myfichier( myfic ); QTextStream mystream (&myfichier); QListViewItem *j; QTime time_1(0,0,0); QTime time_2(0,0,0); QTime time_3(0,0,0); QTime time_4(0,0,0); int thestartint; int theendint; if ( myfichier.open( IO_ReadOnly ) ) { int cpt1; myrec = mystream.readLine(); tmp_001 = ""; cpt1 = 0; while ( myrec.mid(cpt1,1) != " " && cpt1 < myrec.length() ) { tmp_001 = tmp_001 + myrec.mid(cpt1,1); cpt1 = cpt1 + 1; } // cpt1 = cpt1 + 1; tmp_002 = ""; while ( myrec.mid(cpt1,1) != " " && cpt1 < myrec.length() ) { tmp_002 = tmp_002 + myrec.mid(cpt1,1); cpt1 = cpt1 + 1; } // thestartint = tmp_001.toInt(&ok,10); if (ok != true) { thestartint = 0; } theendint = tmp_002.toInt(&ok,10); if (ok != true) { theendint = 0; } // time_1.setHMS(0,0,0); time_2.setHMS(0,0,0); time_3 = time_1.addSecs(thestartint); time_4 = time_2.addSecs(theendint); if ( theendint != 0) { j = new QListViewItem( lstcut, time_3.toString("hh:mm:ss"), time_4.toString("hh:mm:ss") ); } while( mystream.atEnd() == false ) { myrec = mystream.readLine(); tmp_001 = ""; cpt1 = 0; while ( myrec.mid(cpt1,1) != " " && cpt1 < myrec.length() ) { tmp_001 = tmp_001 + myrec.mid(cpt1,1); cpt1 = cpt1 + 1; } // cpt1 = cpt1 + 1; tmp_002 = ""; while ( myrec.mid(cpt1,1) != " " && cpt1 < myrec.length() ) { tmp_002 = tmp_002 + myrec.mid(cpt1,1); cpt1 = cpt1 + 1; } // thestartint = tmp_001.toInt(&ok,10); if (ok != true) { thestartint = 0; } theendint = tmp_002.toInt(&ok,10); if (ok != true) { theendint = 0; } // time_1.setHMS(0,0,0); time_2.setHMS(0,0,0); time_3 = time_1.addSecs(thestartint); time_4 = time_2.addSecs(theendint); // if ( theendint != 0) { j = new QListViewItem( lstcut, time_3.toString("hh:mm:ss"), time_4.toString("hh:mm:ss") ); } } if ( lstcut->childCount() > 0 ) { lstcut->setSortColumn ( 1 ); lstcut->sort(); } } } void mainfrm::outils1_2_2_clicked() { rc_003 = 3; QIconSet wl_icoset = outils1_2_2->iconSet(); pixmapLabel1_5->setPixmap(wl_icoset.pixmap()); tabpoint[0] = 0; tabpoint[1] = 0; buttonGroup63->setDisabled(true); } void mainfrm::toolButton158_clicked() { rc_004 = 0; } void mainfrm::toolButton158_2_clicked() { rc_004 = 1; } void mainfrm::toolButton158_3_clicked() { rc_004 = 2; } void mainfrm::toolButton158_3_2_clicked() { rc_004 = 3; } void mainfrm::toolButton158_3_2_2_clicked() { rc_004 = 4; } void mainfrm::outils1_2_2_2_clicked() { rc_003 = 4; QIconSet wl_icoset = outils1_2_2_2->iconSet(); pixmapLabel1_5->setPixmap(wl_icoset.pixmap()); buttonGroup63->setEnabled(true); tabpoint[0] = 0; tabpoint[1] = 0; } void mainfrm::bt_effets_anim_clicked() { if ( buttonGroup64->isShown() == true ) { buttonGroup64->hide(); } else { buttonGroup64->show(); } } void mainfrm::toolButton165_clicked() { if ( effmani1->isChecked() == true || effmani2->isChecked() == true || effmani3->isChecked() == true || effmani4->isChecked() == true || effmani5->isChecked() == true || effmani6->isChecked() == true) { QFile myfic(path_out->text() + "/geneffetsanim.sh"); if ( myfic.open( IO_WriteOnly )) { int wl_cpt1 = wdebut; int wl_cpt2 = wfin; int wl_cpt3 = wdebut + ((wfin - wdebut) / 2); int wl_cpt4 = 0; int wl_cpt5 = 0; myfic.writeBlock("#!/bin/bash\n",12); while (wl_cpt1 < wl_cpt2) { tmp_001 = QString::number(wl_cpt1); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); if ( effmani1->isChecked() == true ) { tmp_001 = "mogrify -sepia-tone 50000 " + wpathtotalproj + "/" + tmp_002 + ".jpg\n"; myfic.writeBlock(tmp_001, tmp_001.length()); } if ( effmani2->isChecked() == true ) { tmp_001 = "mogrify -monochrome " + wpathtotalproj + "/" + tmp_002 + ".jpg\n"; myfic.writeBlock(tmp_001, tmp_001.length()); } if ( effmani3->isChecked() == true ) { if (wl_cpt1 < wl_cpt3) { wl_cpt4 = wl_cpt4 + slider20->value(); } else { wl_cpt4 = wl_cpt4 - slider20->value(); } tmp_001 = "mogrify -wave " + QString::number(wl_cpt4) + "x400 " + wpathtotalproj + "/" + tmp_002 + ".jpg\n"; myfic.writeBlock(tmp_001, tmp_001.length()); } if ( effmani4->isChecked() == true ) { if (wl_cpt1 < wl_cpt3) { wl_cpt5 = wl_cpt5 + slider21->value(); } else { wl_cpt5 = wl_cpt5 - slider21->value(); } tmp_001 = "mogrify -swirl " + QString::number(wl_cpt5) + " " + wpathtotalproj + "/" + tmp_002 + ".jpg\n"; myfic.writeBlock(tmp_001, tmp_001.length()); } if ( effmani5->isChecked() == true ) { tmp_001 = "mogrify -cycle 100 " + wpathtotalproj + "/" + tmp_002 + ".jpg\n"; myfic.writeBlock(tmp_001, tmp_001.length()); } if ( effmani6->isChecked() == true ) { tmp_001 = "mogrify -paint " + wpathtotalproj + "/" + tmp_002 + ".jpg\n"; myfic.writeBlock(tmp_001, tmp_001.length()); } tmp_001 = "echo \"GIBOSTEP+1\"\n"; myfic.writeBlock(tmp_001, tmp_001.length()); wl_cpt1 = wl_cpt1 + 1; } myfic.close(); pb_006->setTotalSteps(wfin - wdebut); pb_006->setProgress(0); proc_001 = new QProcess( this ); proc_001->addArgument( "bash"); proc_001->addArgument( path_out->text() + "/geneffetsanim.sh" ); connect( proc_001, SIGNAL(processExited()), this, SLOT(fin_effet_anim()) ); connect( proc_001, SIGNAL(readyReadStdout()), this, SLOT(readStdouteffetanim()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + "mogrify (ImageMagick)"); } else { buttonGroup64->setDisabled(true); bt_valid_menu_anim->setDisabled(true); bt_fermer_menu_anim->setDisabled(true); bt_go_extract->setDisabled(true); bt_import_video_manim_2->setDisabled(true); bt_modif_gimp->setDisabled(true); bt_effets_anim->setDisabled(true); } } else { QMessageBox::warning(this, "ManDVD", table_message[8]); } } else { buttonGroup64->hide(); } } void mainfrm::fin_effet_anim() { buttonGroup64->setEnabled(true); buttonGroup64->hide(); effmani1->setChecked(false); effmani2->setChecked(false); effmani3->setChecked(false); effmani4->setChecked(false); effmani5->setChecked(false); effmani6->setChecked(false); bt_valid_menu_anim->setEnabled(true); bt_fermer_menu_anim->setEnabled(true); bt_go_extract->setEnabled(true); bt_import_video_manim_2->setEnabled(true); bt_modif_gimp->setEnabled(true); bt_effets_anim->setEnabled(true); progress = 0; tmp_001 = QString::number(wdebut); tmp_002 = "gibmenanim000000"; tmp_002.replace(tmp_002.length()-tmp_001.length(),tmp_001.length(),tmp_001); QImage myimg ( wpathtotalproj + "/" + tmp_002 + ".jpg", 0); QPixmap mypix ( myimg ); imgstart->setPixmap( mypix ); changingframe->setValue(wdebut); } void mainfrm::readStdouteffetanim() { // **************************** // *** Lecture de la sortie console *** // **************************** lineEdit1->setText( proc_001->readStdout() ); tmp_001 = lineEdit1->text(); // *** Test si changement d'étape *** rc_001 = tmp_001.find ( "GIBOSTEP+1" , 0); if (rc_001 != -1) { pb_006->setProgress(pb_006->progress() + 1); } } void mainfrm::btcancelencode_clicked() { rc_002 = 1; proc_001->kill(); btcancelencode->setDisabled(true); } void mainfrm::bt_renew_all_clicked() { max_boutons = 0; QPixmap mypix ( save_fond ); apercu_fond->setPixmap ( mypix ); my_pixmap_001->setPixmap ( mypix ); bt_et03_con_clicked(); } void mainfrm::toolButton168_2_clicked() { QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "Projet ManDVD (*.pma)", this, "Ouverture projet", "Ouverture projet" ); if ( myfic.isNull() ) { } else { goopenproj(myfic); } } void mainfrm::bt_save_1_clicked() { QString myfic = QFileDialog::getSaveFileName( dossier_travail_2, "Projet ManDVD (*.pma)", this, "Sauvegarde projet", "Sauvegarde projet" ); if ( myfic.isNull() ) { } else { if ( myfic.right(4) != ".pma" ) { myfic = myfic + ".pma"; } gosaveproj(myfic); } } void mainfrm::goopenproj(QString myfic) { QString myrec; QFile myfichier( myfic ); QTextStream mystream (&myfichier); QListViewItem *j; QString tmp_007; QImage wl_img1; nombre_video = 0; if ( myfichier.open( IO_ReadOnly ) ) { myrec = mystream.readLine(); rc_001 = myrec.toInt(&ok,10); if (ok != true) { projfps = 25; } else { projfps = rc_001; } myrec = mystream.readLine(); rc_001 = myrec.toInt(&ok,10); if (ok != true) { projhau = 576; } else { projhau = rc_001; } myrec = mystream.readLine(); rc_001 = myrec.toInt(&ok,10); if (ok != true) { projwid = 720; } else { projwid = rc_001; } myrec = mystream.readLine(); wpathtotalproj = myrec; path_out->setText(myrec); myrec = mystream.readLine(); while( mystream.atEnd() == false && myrec != "$$FINMEDIAS$$") { myrec = mystream.readLine(); tmp_001 = myrec; myrec = mystream.readLine(); tmp_002 = myrec; myrec = mystream.readLine(); tmp_003 = myrec; myrec = mystream.readLine(); tmp_004 = myrec; myrec = mystream.readLine(); tmp_005 = myrec; myrec = mystream.readLine(); tmp_006 = myrec; myrec = mystream.readLine(); tmp_007 = myrec; myrec = mystream.readLine(); tmp_008 = myrec; j = new QListViewItem( lst_video_1, tmp_001, tmp_002, tmp_003, tmp_004, tmp_005, tmp_006, tmp_007, tmp_008 ); wl_img1.load( wpathtotalproj + "/minbtsize" + QString::number(nombre_video) + ".png"); j->setPixmap(0,wl_img1); nombre_video = nombre_video + 1; path_video = tmp_002; // *** Calcul de la taille du DVD *** calculsize(0); myrec = mystream.readLine(); } newproj->hide(); lineEdit11->setText(wpathtotalproj); Etape_02->setEnabled(true); lst_video_1->setEnabled( true ); bt_modifier_titre->setEnabled( true ); bt_gest_sub_2->setEnabled( true ); bt_supprime_video->setEnabled( true ); bt_chapitres->setEnabled( true ); bt_gest_sub->setEnabled( true ); bt_cut_film->setEnabled( true ); panneau_bouton_1->setEnabled( true ); } } void mainfrm::gosaveproj(QString myfic) { QFile outfic(myfic); if ( outfic.open( IO_WriteOnly )) { int cpt_001 = 0; QImage wl_img1; QString tmp_007; tmp_001 = QString::number(projfps); outfic.writeBlock(tmp_001 + "\n",tmp_001.length() + 1); tmp_001 = QString::number(projhau); outfic.writeBlock(tmp_001 + "\n",tmp_001.length() + 1); tmp_001 = QString::number(projwid); outfic.writeBlock(tmp_001 + "\n",tmp_001.length() + 1); tmp_001 = wpathtotalproj; outfic.writeBlock(tmp_001 + "\n",tmp_001.length() + 1); QListViewItem *lvi = lst_video_1->firstChild(); while (cpt_001 < nombre_video && cpt_001 < 39) { tmp_001 = lvi->text(0); tmp_002 = lvi->text(1); tmp_003 = lvi->text(2); tmp_004 = lvi->text(3); tmp_005 = lvi->text(4); tmp_006 = lvi->text(5); tmp_007 = lvi->text(6); tmp_008 = lvi->text(7); // outfic.writeBlock("$$MEDIAS$$\n",11); outfic.writeBlock(tmp_001 + "\n",tmp_001.length() + 1); outfic.writeBlock(tmp_002 + "\n",tmp_002.length() + 1); outfic.writeBlock(tmp_003 + "\n",tmp_003.length() + 1); outfic.writeBlock(tmp_004 + "\n",tmp_004.length() + 1); outfic.writeBlock(tmp_005 + "\n",tmp_005.length() + 1); outfic.writeBlock(tmp_006 + "\n",tmp_006.length() + 1); outfic.writeBlock(tmp_007 + "\n",tmp_007.length() + 1); outfic.writeBlock(tmp_008 + "\n",tmp_008.length() + 1); // wl_img1 = lvi->pixmap(0)->convertToImage(); wl_img1.save(path_out->text() + "/minbtsize" + QString::number(cpt_001)+ ".png","PNG"); // lvi = lvi->nextSibling(); cpt_001 = cpt_001 + 1; } outfic.writeBlock("$$FINMEDIAS$$\n",14); outfic.close(); QMessageBox::warning(this, "ManDVD", table_message[39]); } else { QMessageBox::warning(this, "ManDVD", table_message[8]); } } void mainfrm::bt_musique_options_clicked() { if (nbre_images > 0) { int cpt_001; int duree1 = durfilmchap / nbre_images; int duree2 = duree1 / 2; int duree3; if (duree2 > 3) { duree3 = duree2 - 3; duree2 = duree2 + duree3; duree3 = 3; } else { duree3 = duree2; } cpt_001 = 0; while (cpt_001 < nbre_images) { if (table_images[cpt_001][2] == table_message[40]) { table_images[cpt_001][1] = QString::number(duree1); table_images[cpt_001][3] = QString::number(1); } else { table_images[cpt_001][1] = QString::number(duree2); table_images[cpt_001][3] = QString::number(duree3); } cpt_001 = cpt_001 + 1; } calcul_dureeslide(); if (table_images[ num_photo->value() - 1 ][2] == table_message[40]) { duree_affichage->setValue(duree1); duree_transition->setValue(1); } else { duree_affichage->setValue(duree2); duree_transition->setValue(duree3); } } } void mainfrm::toolButton170_clicked() { if ( groupBox13->isShown() == true ) { groupBox13->hide(); } else { if ( num_photo->value() > 1) { toolButton117_2_2->setEnabled(true); } else { toolButton117_2_2->setDisabled(true); } groupBox13->show(); groupBox13->raise(); } } void mainfrm::toolButton117_2_clicked() { QString myfic = QFileDialog::getOpenFileName( dossier_travail_2, "Images (*.jpg *.JPG *.jpeg *.JPEG *.png *.PNG)", this, "Ouvrir un fichier", "Sélectionnez le fichier image à importer" ); if ( myfic.isNull() ) { } else { wlanguage = myfic; calculcadre(); } } void mainfrm::toolButton117_2_2_clicked() { if ( num_photo->value() > 1) { wlanguage = table_images[num_photo->value() - 2][0]; calculcadre(); } } void mainfrm::dial_size_valueChanged( int ) { calculcadre(); } void mainfrm::dial_x_valueChanged( int ) { calculcadre(); } void mainfrm::dial_y_valueChanged( int ) { calculcadre(); } void mainfrm::videostandard_highlighted( const QString &txtvar ) { QString txtvalue = txtvar; if ( txtvalue == "PAL") { videosizedef->clear(); videosizedef->insertItem("720x576"); videosizedef->insertItem("704x480"); videosizedef->insertItem("352x576"); videosizedef->insertItem("352x288"); videosizedef->setCurrentItem(0); } else { videosizedef->clear(); videosizedef->insertItem("720x480"); videosizedef->insertItem("704x480"); videosizedef->insertItem("352x480"); videosizedef->insertItem("352x240"); videosizedef->setCurrentItem(0); } } void mainfrm::lstcut_clicked( QListViewItem * ) { QListViewItem *i = lstcut->selectedItem(); if ( i != 0 ) { tmp_001 = i->text(0).mid(0,2); tmp_002 = i->text(0).mid(3,2); tmp_003 = i->text(0).mid(6,2); int heures = tmp_001.toInt(&ok,10); int minutes = tmp_002.toInt(&ok,10); int secondes = tmp_003.toInt(&ok,10); float wpositionnow; wpositionnow = (heures * 3600) + (minutes * 60) + secondes; if (m_pMPlayerWidget->isPlaying() == false) { m_pMPlayerWidget->slotPlay(); } m_pMPlayerWidget->slotSeek(wpositionnow,2); } } void mainfrm::bt_generer_clicked() { if ( spin_start->value() < spin_end->value() ) { bt_generer->setDisabled(true); bt_generer_2->setDisabled(true); Slider_brake->setDisabled(true); spin_start->setDisabled(true); spin_end->setDisabled(true); toolButton176->setDisabled(true); toolButton176_2->setDisabled(true); QPB1->setProgress(0); if ( chkpingpong->isChecked() == true ) { QPB1->setTotalSteps((spin_start->value() + ((spin_end->value() - spin_start->value()) / 2)) * 2); } else { QPB1->setTotalSteps(nbre_images); } int wl_nbre_frame = nbre_images; int wl_total_nbre_frames = 0; int wl_compteur_1 = 0; int wl_compteur_2 = spin_start->value() + ((spin_end->value() - spin_start->value()) / 2); int wl_compteur_3 = wl_compteur_2 / Slider_brake->value(); int wl_compteur_4 = 1; int wl_compteur_5 = 1; int wl_compteur_6 = 0; int wl_compteur_7 = 0; int wl_increment = 1; QString wl_tmp_001; QString wl_tmp_002; QString wl_tmp_003; QImage wl_img_1; while ( wl_compteur_1 < wl_nbre_frame && wl_compteur_1 > -1 ) { wl_tmp_001 = QString::number(wl_compteur_1); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_img_1.load( wpathtotalproj + "/" + wl_tmp_002 + ".jpg"); if ( wl_compteur_4 > wl_compteur_3 ) { if ( wl_compteur_1 < wl_compteur_2 && wl_increment > 0 ) { wl_compteur_5 = wl_compteur_5 + 1; } else { if ( chkpingpong->isChecked() == true ) { wl_increment = -1; } wl_compteur_5 = wl_compteur_5 - 1; if (wl_compteur_5 < 1) { wl_compteur_5 = 1; } } wl_compteur_4 = 0; } wl_compteur_6 = 1; while ( wl_compteur_6 <= wl_compteur_5) { wl_tmp_001 = QString::number(wl_compteur_7); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_img_1.save(wpathtotalproj + "/xxx" + wl_tmp_002 + ".jpg","JPEG"); wl_total_nbre_frames = wl_total_nbre_frames + 1; wl_compteur_6 = wl_compteur_6 + 1; wl_compteur_7 = wl_compteur_7 + 1; } QPB1->setProgress( QPB1->progress() + 1 ); if ( wl_compteur_1 >= spin_start->value() && wl_compteur_1 <= spin_end->value() ) { wl_compteur_4 = wl_compteur_4 + 1; } else { wl_compteur_5 = 1; } wl_compteur_1 = wl_compteur_1 + wl_increment; } QFile myfic(wpathtotalproj + "/slanim.sh"); if ( myfic.open( IO_WriteOnly )) { myfic.writeBlock("#!/bin/bash\n",12); wl_tmp_001 = "rm -f " + wpathtotalproj + "/gibmen*.jpg\n"; myfic.writeBlock(wl_tmp_001, wl_tmp_001.length()); wl_compteur_7 = 0; while ( wl_compteur_7 < wl_total_nbre_frames ) { wl_tmp_001 = QString::number(wl_compteur_7); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_tmp_001 = "mv -f " + wpathtotalproj + "/xxx" + wl_tmp_002 + ".jpg " + wpathtotalproj + "/" + wl_tmp_002 + ".jpg\n"; myfic.writeBlock(wl_tmp_001, wl_tmp_001.length()); wl_compteur_7 = wl_compteur_7 + 1; } wl_tmp_001 = "rm -f " + wpathtotalproj + "/slanim.sh\n"; myfic.writeBlock(wl_tmp_001, wl_tmp_001.length()); myfic.close(); // proc_001 = new QProcess( this ); proc_001->addArgument( "bash" ); proc_001->addArgument( wpathtotalproj + "/slanim.sh" ); connect( proc_001, SIGNAL(readyReadStderr()), this, SLOT(SL_lecture_console()) ); connect( proc_001, SIGNAL(processExited()), this, SLOT(SL_fin_generation()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "SLMotion", "Le process de génération refuse de démarrer"); bt_generer->setEnabled(true); bt_generer_2->setEnabled(true); Slider_brake->setEnabled(true); spin_start->setEnabled(true); spin_end->setEnabled(true); toolButton176->setEnabled(true); toolButton176_2->setEnabled(true); } nbre_images = wl_total_nbre_frames; } else { QMessageBox::warning(this, "ManDVD", table_message[8]); bt_generer->setEnabled(true); bt_generer_2->setEnabled(true); Slider_brake->setEnabled(true); spin_start->setEnabled(true); spin_end->setEnabled(true); toolButton176->setEnabled(true); toolButton176_2->setEnabled(true); } } else { QMessageBox::warning(this, "ManDVD", table_message[28]); } } void mainfrm::SL_lecture_console() { lineEdit1->setText( proc_001->readStderr() ); textEdit5->append(lineEdit1->text()); } void mainfrm::SL_fin_generation() { txtnbreimages->setText("Nombre d'images : " + QString::number(nbre_images)); txtnbreimages_2->setText("Première image : 0"); txtnbreimages_2_2->setText("Dernière image : " + QString::number(nbre_images - 1)); progress = 0; wdebut = 0; wfin = nbre_images; changingframe->setMaxValue(nbre_images - 1); changingframe->setValue(0); SLMotion->hide(); creation_menu_anim->setEnabled(true); effmani7->setChecked(false); buttonGroup64->hide(); bt_generer->setEnabled(true); bt_generer_2->setEnabled(true); Slider_brake->setEnabled(true); spin_start->setEnabled(true); spin_end->setEnabled(true); } void mainfrm::spin_start_valueChanged( int ) { int wl_compteur_1 = spin_start->value(); QString wl_tmp_001; QString wl_tmp_002; QString wl_tmp_003; wl_tmp_001 = QString::number(wl_compteur_1); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_tmp_003 = wpathtotalproj + "/" + wl_tmp_002 + ".jpg"; wg_img_1->setPixmap( wl_tmp_003 ); } void mainfrm::spin_end_valueChanged( int ) { int wl_compteur_1 = spin_end->value(); QString wl_tmp_001; QString wl_tmp_002; QString wl_tmp_003; wl_tmp_001 = QString::number(wl_compteur_1); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_tmp_003 = wpathtotalproj + "/" + wl_tmp_002 + ".jpg"; wg_img_2->setPixmap( wl_tmp_003 ); } void mainfrm::effmani7_stateChanged( int ) { if ( effmani7->isChecked() == true ) { textEdit5->hide(); creation_menu_anim->setDisabled(true); SLMotion->setGeometry(345,160,310,330); spin_start->setValue(0); spin_start->setMinValue(0); spin_start->setMaxValue(nbre_images - 1); spin_end->setValue(nbre_images - 1); spin_end->setMinValue(0); spin_end->setMaxValue(nbre_images - 1); spin_start_valueChanged(0); spin_end_valueChanged(nbre_images - 1); SLMotion->show(); SLMotion->raise(); } } void mainfrm::bt_generer_2_clicked() { SLMotion->hide(); creation_menu_anim->setEnabled(true); effmani7->setChecked(false); } void mainfrm::bt_generer_2_2_clicked() { if ( textEdit5->isShown() == true ) { textEdit5->hide(); } else { textEdit5->setGeometry(10,11,290,270); textEdit5->show(); textEdit5->raise(); } } void mainfrm::toolButton176_clicked() { int wl_compteur_1 = spin_start->value(); QString wl_tmp_001; QString wl_tmp_002; QString wl_tmp_003; wl_tmp_001 = QString::number(wl_compteur_1); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_tmp_003 = wpathtotalproj + "/" + wl_tmp_002 + ".jpg"; proc_001 = new QProcess( this ); proc_001->addArgument( "gimp" ); proc_001->addArgument( wl_tmp_003 ); connect( proc_001, SIGNAL(processExited()), this, SLOT(slmo_fin_thegimp()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + " The Gimp"); } else { this->setDisabled(true); } } void mainfrm::toolButton176_2_clicked() { int wl_compteur_1 = spin_end->value(); QString wl_tmp_001; QString wl_tmp_002; QString wl_tmp_003; wl_tmp_001 = QString::number(wl_compteur_1); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_tmp_003 = wpathtotalproj + "/" + wl_tmp_002 + ".jpg"; proc_001 = new QProcess( this ); proc_001->addArgument( "gimp" ); proc_001->addArgument( wl_tmp_003 ); connect( proc_001, SIGNAL(processExited()), this, SLOT(slmo_fin_thegimp()) ); if ( ! proc_001->start() ) { QMessageBox::warning(this, "ManDVD", table_message[0] + " The Gimp"); } else { this->setDisabled(true); } } void mainfrm::slmo_fin_thegimp() { this->setEnabled(true); int wl_compteur_1 = spin_start->value(); QString wl_tmp_001; QString wl_tmp_002; QString wl_tmp_003; wl_tmp_001 = QString::number(wl_compteur_1); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_tmp_003 = wpathtotalproj + "/" + wl_tmp_002 + ".jpg"; wg_img_1->setPixmap( wl_tmp_003 ); // wl_compteur_1 = spin_end->value(); wl_tmp_001 = QString::number(wl_compteur_1); wl_tmp_002 = "gibmenanim000000"; wl_tmp_002.replace(wl_tmp_002.length()-wl_tmp_001.length(),wl_tmp_001.length(),wl_tmp_001); wl_tmp_003 = wpathtotalproj + "/" + wl_tmp_002 + ".jpg"; wg_img_2->setPixmap( wl_tmp_003 ); }