aboutsummaryrefslogtreecommitdiff
path: root/src/backends/mod.rs
Commit message (Collapse)AuthorAge
* Add FileSelection dialog typeReyk Floeter2019-12-10
| | | | | | | | | 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.
* Fix clippy complaints that don't change the semanticsStephan Sokolow2019-10-25
| | | | (Clippy also complains about `new()` without `impl Default`)
* Fix broken link in `backends` documentationStephan Sokolow2019-10-25
| | | | (Revealed by cargo-deadlinks)
* Add a backend based on KDE's `kdialog`Stephan Sokolow2019-10-25
|
* Add the stdio backendRobin Krahl2019-01-11
| | | | | | | 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.
* Check DISPLAY environment variable in default_backendRobin Krahl2019-01-11
| | | | | | | This patch changes the default_backend to also check the DISPLAY environment variable. If it is set, there probably is a X server running, so we try to use the zenity backend. Otherwise, the dialog backend is used.
* Check the DIALOG environment variable in default_backendRobin Krahl2019-01-11
| | | | | This patch changes the logic in default_backend to respect the DIALOG environment variable that may contain the name of the backend to use.
* Implement zenity backendRobin Krahl2019-01-08
|
* Add the Password dialog boxRobin Krahl2019-01-08
|
* Refactor io::Error into custom Error enumRobin Krahl2019-01-08
|
* Add question dialog boxesRobin Krahl2019-01-08
|
* Add input dialog boxesRobin Krahl2019-01-08
| | | | | | This patch implements input dialog boxes. This required some refactoring in the dialog backend to allow additional arguments after the width and the height.
* Implement message boxes using the dialog backendRobin Krahl2019-01-08
This patch adds a first dialog box type, message boxes, and a first backend, the dialog(1) tool. It does not yet address the problems of output handling and backend selection.