fr:code:windows:filedialog
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
fr:code:windows:filedialog [2012/04/26 13:03] – wismerheal | fr:code:windows:filedialog [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 384: | Ligne 384: | ||
==== setDontConfirmOverwrite ==== | ==== setDontConfirmOverwrite ==== | ||
- | Should the window ask for confirmation | + | La fenêtre doit-elle demander une confirmation |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setDontConfirmOverwrite(dontConfirmOverwrite); | myObject.setDontConfirmOverwrite(dontConfirmOverwrite); | ||
Ligne 392: | Ligne 392: | ||
=== Arguments === | === Arguments === | ||
- | - dontConfirmOverwrite - (boolean) | + | - dontConfirmOverwrite - (boolean) |
- | === Returns | + | === Renvoi |
- | * (FileDialog) | + | * (FileDialog) |
==== setDontUseNativeDialog ==== | ==== setDontUseNativeDialog ==== | ||
- | Should the window use native a dialog. | + | La fenêtre doit-elle utiliser le "dialog" natif. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setDontUseNativeDialog(dontUseNativeDialog); | myObject.setDontUseNativeDialog(dontUseNativeDialog); | ||
Ligne 406: | Ligne 406: | ||
=== Arguments === | === Arguments === | ||
- | - dontUseNativeDialog - (boolean) | + | - dontUseNativeDialog - (boolean) |
- | === Returns | + | === Renvoi |
- | * (FileDialog) | + | * (FileDialog) |
==== setReadOnly ==== | ==== setReadOnly ==== | ||
- | Should the window show readonly files. | + | La fenêtre doit-elle montrer les fichiers en lectures seuls. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setReadOnly(readOnly); | myObject.setReadOnly(readOnly); | ||
Ligne 420: | Ligne 420: | ||
=== Arguments === | === Arguments === | ||
- | - readOnly - (boolean) | + | - readOnly - (boolean) |
- | === Returns | + | === Renvoi |
- | * (FileDialog) | + | * (FileDialog) |
==== setHideNameFilterDetails ==== | ==== setHideNameFilterDetails ==== | ||
- | Hide name filter details. | + | Cache le détail des noms de filtres. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setHideNameFilterDetails(hideNameFilterDetails); | myObject.setHideNameFilterDetails(hideNameFilterDetails); | ||
Ligne 434: | Ligne 434: | ||
=== Arguments === | === Arguments === | ||
- | - hideNameFilterDetails - (boolean) | + | - hideNameFilterDetails - (boolean) |
- | === Returns | + | === Renvoi |
- | * (FileDialog) | + | * (FileDialog) |
==== setSidebarUrls ==== | ==== setSidebarUrls ==== | ||
- | Sets the sidebar | + | Définit les urls des barres de côté. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.setSidebarUrls(sidebarUrls); | myObject.setSidebarUrls(sidebarUrls); | ||
Ligne 448: | Ligne 448: | ||
=== Arguments === | === Arguments === | ||
- | - sidebarUrls - (array) | + | - sidebarUrls - (array) |
- | === Returns | + | === Renvoi |
- | * (FileDialog) | + | * (FileDialog) |
==== selectedFile ==== | ==== selectedFile ==== | ||
- | Returns the selected file. | + | Renvoi le fichier sélectionné. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.selectedFile(); | myObject.selectedFile(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (string) | + | * (string) |
==== selectedFiles ==== | ==== selectedFiles ==== | ||
- | Returns the selected files. | + | Renvoi les fichiers sélectionnés. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.selectedFiles(); | myObject.selectedFiles(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (array) | + | * (array) |
==== selectedNameFilter ==== | ==== selectedNameFilter ==== | ||
- | Returns the name filter. | + | Renvoi le nom du filtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.selectedNameFilter(); | myObject.selectedNameFilter(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (string) | + | * (string) |
==== selectedNameFilter ==== | ==== selectedNameFilter ==== | ||
- | Returns the name filter. | + | Renvoi le nom du filtre. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.selectedNameFilter(); | myObject.selectedNameFilter(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (string) | + | * (string) |
==== show ==== | ==== show ==== | ||
- | Show the window. (non-blocking) | + | Affiche la fenêtre. (non-bloquant) |
- | Use the [[# | + | Utilise l' |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.show(); | myObject.show(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (FileDialog) | + | * (FileDialog) |
==== showModal ==== | ==== showModal ==== | ||
- | Show the window. (blocking) | + | Affiche la fenêtre. (bloquant) |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.showModal(); | myObject.showModal(); | ||
</ | </ | ||
- | === Returns | + | === Renvoi |
- | * (integer) | + | * (integer) |
- | ===== Events | + | ===== Evènements |
==== onClosed ==== | ==== onClosed ==== | ||
- | Called when the window is closed. | + | Appelé quand la fenêtre est fermée. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onClosed = function(result) {}; | myObject.onClosed = function(result) {}; | ||
Ligne 531: | Ligne 531: | ||
=== Arguments === | === Arguments === | ||
- | - result - (integer) | + | - result - (integer) |
=== Example === | === Example === | ||
Ligne 545: | Ligne 545: | ||
==== onCurrentChanged ==== | ==== onCurrentChanged ==== | ||
- | Called when the current file has changed. | + | Appelé quand le fichier est changé. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onCurrentChanged = function(path) {}; | myObject.onCurrentChanged = function(path) {}; | ||
Ligne 553: | Ligne 553: | ||
=== Arguments === | === Arguments === | ||
- | - path - (string) | + | - path - (string) |
=== Example === | === Example === | ||
Ligne 564: | Ligne 564: | ||
==== onDirectoryEntered ==== | ==== onDirectoryEntered ==== | ||
- | Called when the current directory has changed. | + | Appelé quand le répertoire actuel est changé. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onDirectoryEntered = function(directory) {}; | myObject.onDirectoryEntered = function(directory) {}; | ||
Ligne 572: | Ligne 572: | ||
=== Arguments === | === Arguments === | ||
- | - directory - (string) | + | - directory - (string) |
=== Example === | === Example === | ||
Ligne 583: | Ligne 583: | ||
==== onFileSelected ==== | ==== onFileSelected ==== | ||
- | Called when the dialog | + | Appelé quand le "dialog" est accepté. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onFileSelected = function(file) {}; | myObject.onFileSelected = function(file) {}; | ||
Ligne 591: | Ligne 591: | ||
=== Arguments === | === Arguments === | ||
- | - file - (string) | + | - file - (string) |
=== Example === | === Example === | ||
Ligne 602: | Ligne 602: | ||
==== onFilesSelected ==== | ==== onFilesSelected ==== | ||
- | Called when the dialog | + | Appelé quand le "dialog" est accepté. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onFilesSelected = function(files) {}; | myObject.onFilesSelected = function(files) {}; | ||
Ligne 610: | Ligne 610: | ||
=== Arguments === | === Arguments === | ||
- | - files - (array) | + | - files - (array) |
=== Example === | === Example === | ||
Ligne 621: | Ligne 621: | ||
==== onFilterSelected ==== | ==== onFilterSelected ==== | ||
- | Called when the filter is changed. | + | Appelé quand le filtre est changé. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.onFilterSelected = function(filter) {}; | myObject.onFilterSelected = function(filter) {}; | ||
Ligne 629: | Ligne 629: | ||
=== Arguments === | === Arguments === | ||
- | - filter - (string) | + | - filter - (string) |
=== Example === | === Example === | ||
Ligne 642: | Ligne 642: | ||
==== title ==== | ==== title ==== | ||
- | The window' | + | Le titre de la fenêtre. (string) |
==== position ==== | ==== position ==== | ||
- | The window' | + | La position |
==== opacity ==== | ==== opacity ==== | ||
- | The window's opacity. (float) | + | L'opacité de la fenêtre. (float) |
==== enabled ==== | ==== enabled ==== | ||
- | The window's enabled status. (boolean) | + | Le statut d'activité de la fenêtre. (boolean) |
==== visible ==== | ==== visible ==== | ||
- | The window' | + | Le statut de visibilité de la fenêtre. (boolean) |
===== Enumerations ===== | ===== Enumerations ===== | ||
==== AcceptMode ==== | ==== AcceptMode ==== | ||
- | Sets the accept | + | Définit le mode d' |
- | === Values | + | === Valeurs |
- | - Open: the dialog | + | - Open: le "dialog" est utilisé pour ouvrir un fichier |
- | - Save: the dialog | + | - Save: le "dialog" est utilisé pour sauvegarder un fichier |
==== FileMode ==== | ==== FileMode ==== | ||
- | Sets the file mode of the window. | + | Définit le mode de fichier de la fenêtre. |
- | === Values | + | === Valeurs |
- | - AnyFile: | + | - AnyFile: |
- | - ExistingFile: | + | - ExistingFile: |
- | - ExistingFiles: | + | - ExistingFiles: |
- | - Directory: | + | - Directory: |
==== ViewMode ==== | ==== ViewMode ==== | ||
- | Sets the view mode of the window. | + | Définit le mode de vue d'une fenêtre. |
- | === Values | + | === Valeurs |
- | - Detail: | + | - Detail: |
- | - List: show only the file name and icon | + | - List: Montre seulement noms de fichier et icône |
==== DialogLabel ==== | ==== DialogLabel ==== | ||
- | The label of the window to edit. | + | Le label de la fenêtre à éditer. |
- | === Values | + | === Valeurs |
- | - LookIn: | + | - LookIn: |
- | - FileName: | + | - FileName: |
- | - FileType: | + | - FileType: |
- | - Accept: | + | - Accept: |
- | - Reject: | + | - Reject: |
==== Filters ==== | ==== Filters ==== | ||
- | The filters to use. | + | Les filtres à utiliser. |
- | === Values | + | === Valeurs |
- | - Dirs: list directories | + | - Dirs: liste de répertoires |
- | - AllDirs: | + | - AllDirs: |
- | - Files: | + | - Files: |
- | - Drives: | + | - Drives: |
- | - NoSymLinks: | + | - NoSymLinks: |
- | - NoDotAndDotDot: | + | - NoDotAndDotDot: |
- | - NoDot: | + | - NoDot: |
- | - NoDotDot: | + | - NoDotDot: |
- | - AllEntries: | + | - AllEntries: |
- | - Readable: | + | - Readable: |
- | - Writable: | + | - Writable: |
- | - Executable: | + | - Executable: |
- | - Modified: | + | - Modified: |
- | - Hidden: | + | - Hidden: |
- | - System: | + | - System: |
- | - CaseSensitive: | + | - CaseSensitive: |
=== Notes === | === Notes === | ||
- | This is a flag enumeration, this means that you can use multiple values using the | operator. | + | Ceci est une énumération d' |
Example : | Example : | ||
<code javascript> | <code javascript> | ||
- | myObject.setFilter(FileDialog.Files | FileDialog.Executable); | + | myObject.setFilter(FileDialog.Files | FileDialog.Executable); |
</ | </ |
fr/code/windows/filedialog.1335445389.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)