| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
This patch refactors the default_backend function to return a Box<dyn
Backend> instead of impl Backend. This will allow us to dynamically
choose the backend implementation in a future patch. To keep the
current interface, we change show_with to accept both a reference to a
backend instance as well as a reference to a boxed backend instance.
This also means we have to implement AsRef<Self> for the backend
structs.
|
| |
|
|
|
|
|
|
|
|
|
| |
The trait implementations for the Error enum contain a lot of
boilerplate code and are not very insightful. Therefore this patch
moves the Error enum, its trait implementations and the related Result
type definition from the main module to the error module. The Error and
Result types are re-exported from the main module so that the public
interface does not change.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This patch implements input dialog boxes. This required some
refactoring in the dialog backend to allow additional arguments after
the width and the height.
|
|
|
|
|
|
| |
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.
|
|
|