| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
This patch adds the option to set a FileSelectionMode, either Open or
Save. Not all backends might support this – currently, only zenity and
kdialog do. Per default, the Open mode is used (as before).
|
|
|
|
|
|
|
|
|
| |
This patch adds the FileSelection struct representing a file selection
dialog. It can be displayed using the backend’s show_file_selection
function.
Currently, we only support file open dialogs (i. e. choosing an
existing file). Support for save dialogs should be added in the future.
|
| |
|
|
|
|
|
|
|
| |
This patch adds the stdio backend which acts as a fallback backend and
uses standard input and output. For password queries, the rpassword
crate is used to suppress output. Also, default_backend is changed to
return Stdio if Dialog is not available.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This patch implements input dialog boxes. This required some
refactoring in the dialog backend to allow additional arguments after
the width and the height.
|
|
So far it is hard to write unit tests for this crate as we don’t have
much logic. The existing tests are usage examples, therefore they are
moved to the examples directory. They can be run with `cargo run
--example <name>`.
|