[Lldb-commits] [PATCH] D104395: [LLDB][GUI] Add initial forms support
Omar Emara via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 16 09:13:21 PDT 2021
OmarEmaraDev created this revision.
OmarEmaraDev added a reviewer: clayborg.
Herald added a reviewer: teemperor.
OmarEmaraDev requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
This patch adds initial support for forms and dialogs for the LLDB GUI.
The current supported form elements are Text, Integer, Boolean, and
Choices.
A new window delegate FormWindowDelegate was added to represent the
dialog window that contains the form. The window takes a FormDelegate as
an input.
FormDelegate is an abstract class than have a default implementation for
the drawing and char handing methods, while it require the
FormDelegateSubmit method to be defined, which contains the main dialog
submitting routine and can set error message as needed. In constructor
of the FormDelegate, the necessary fields are added using the provided
factory methods for fields. The returned field delegate can be used to
retrieve the information that the fields contains.
A field is defined by a FieldDelegate and implements the char handing
and drawing as needed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104395
Files:
lldb/source/Core/IOHandlerCursesGUI.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104395.352461.patch
Type: text/x-patch
Size: 19886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210616/620265be/attachment-0001.bin>
More information about the lldb-commits
mailing list