# Form3 + Form13 of 2001: the folders and the files of the computer, to add songs to the play list.form: title: 'Ajouter des fichiers' dialog: true width: 640 theme: dark accent: '#ff8080' gap: 8 children: - type: row gap: 8 children: - {type: combobox, id: places, grow: 1, events: {change: onPlacesChange}} - {type: button, id: import, text: "Importer de l'ordinateur…", events: {click: onImportClick}} - type: row gap: 8 children: - {type: textbox, id: path, grow: 1, placeholder: 'Quel chemin désirez-vous ? (ex : /home/moi/Musique)', events: {submit: onPathSubmit}} - {type: button, id: go, text: 'Ouvrir ce chemin', tooltip: 'Ouvre le dossier tapé (ou Entrée dans la case)', events: {click: onGoClick}} - type: row gap: 8 height: 260 items: stretch children: - {type: listbox, id: dirs, grow: 1, height: fill, events: {activate: onDirsActivate}} - {type: listbox, id: files, grow: 1, height: fill, events: {activate: onFilesActivate}} - {type: checkbox, id: subdirs, text: 'Inclure les sous-répertoires dans la recherche', checked: true} - {type: label, id: status, text: '', style: muted} - {type: progressbar, id: progress, value: 0, max: 100, visible: false} - type: row gap: 8 children: - {type: button, id: addDir, text: 'Ajouter le répertoire', events: {click: onAddDirClick}} - {type: button, id: addFile, text: 'Ajouter le fichier sélectionné', style: primary, events: {click: onAddFileClick}} - {type: spacer} - {type: button, id: cancel, text: Fermer, cancel: true, events: {click: onCancelClick}}