-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rework examples --------- Co-authored-by: Jannis <[email protected]>
- Loading branch information
Showing
35 changed files
with
135 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Examples | ||
|
||
## Multi Selection | ||
|
||
Example showing how to select multiple files and folders at once. | ||
|
||
```shell | ||
cargo run --example multi_selection | ||
``` | ||
|
||
![Screenshot](../media/examples/multi-selection.png) | ||
|
||
## Multilingual | ||
|
||
Example that shows how the dialog can be displayed and used in different languages. | ||
|
||
```shell | ||
cargo run --example multilingual | ||
``` | ||
|
||
![Screenshot](../media/examples/multilingual.png) | ||
|
||
## Multiple Actions | ||
|
||
This example shows how you can query multiple files from the user in one view. | ||
|
||
```shell | ||
cargo run --example multiple_actions | ||
``` | ||
|
||
![Screenshot](../media/examples/multiple_actions.png) | ||
|
||
## Persistence | ||
|
||
This example uses eframe to show how the persistent data of the file dialog can be saved. \ | ||
The example uses the `serde` feature to serialize the required data. | ||
|
||
```shell | ||
cargo run --example persistence | ||
``` | ||
|
||
## Pick Directory | ||
|
||
Example showing how to select a directory using the file dialog. | ||
|
||
```shell | ||
cargo run --example pick_directory | ||
``` | ||
|
||
![Screenshot](../media/examples/pick_directory.png) | ||
|
||
## Pick File | ||
|
||
Example showing how to select a file using the file dialog. | ||
|
||
```shell | ||
cargo run --example pick_file | ||
``` | ||
|
||
![Screenshot](../media/examples/pick_file.png) | ||
|
||
## Sandbox | ||
|
||
Sandbox app used during development of the file dialog. | ||
|
||
```shell | ||
cargo run --example sandbox | ||
``` | ||
|
||
## Save File | ||
|
||
Example showing how to save a file using the file dialog. | ||
|
||
```shell | ||
cargo run --example save_file | ||
``` | ||
|
||
![Screenshot](../media/examples/save_file.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.