Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement open/select/save file dialog. #27

Open
marco-sacchi opened this issue Dec 4, 2021 · 1 comment
Open

Implement open/select/save file dialog. #27

marco-sacchi opened this issue Dec 4, 2021 · 1 comment
Assignees
Labels
TUI library Text-based user interface library specific

Comments

@marco-sacchi
Copy link
Owner

Implement a dialog for opening / selecting and saving a file.

The window must contain the following controls:

  • editbox for entering the file name or wildcard to filter the displayed files
  • listbox to view files in the current folder
  • listbox for viewing the drives and folders of the current folder
  • open, save and cancel buttons

The difference in behavior between opening and saving consists in checking that the file exists when pressing the open / save button.

When moving in the file list or when changing directories the editbox must be synchronized accordingly, displaying the name of the selected file.

When in save mode, display a message box to confirm overwriting if the file already exists.

@marco-sacchi marco-sacchi changed the title Implement open/select file dialog. Implement open/select/save file dialog. Dec 4, 2021
@marco-sacchi marco-sacchi self-assigned this Dec 4, 2021
@marco-sacchi marco-sacchi added the TUI library Text-based user interface library specific label Dec 4, 2021
marco-sacchi added a commit that referenced this issue Apr 10, 2022
Bugfix on uicontrol for missing m_transparent initialization.

Added uilabel::set_text to dynamically change a label text and support for text wrapping.

Added default OK button on message boxes.

Extended testview to test open/save dialog.

Minor integrations on string and math modules.
@marco-sacchi
Copy link
Owner Author

It remains to implement the state recovery code after a critical error (see #28).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TUI library Text-based user interface library specific
Projects
None yet
Development

No branches or pull requests

1 participant