Vuo
0.4.2
|
A dialog that displays a data editor.
Handles keypress events to accept or cancel edits.
Public Member Functions | |
VuoDataEditorDialog (QWidget *parent, VuoDataEditor *dataEditor) | |
Creates a new, empty data editor dialog. | |
void | acceptEdits (void) |
Dismisses the dialog and saves any edits made. | |
void | cancelEdits (void) |
Dismisses the dialog and discards any edits made. | |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *e) |
The Return/Enter key accepts the edits. | |
virtual void | showEvent (QShowEvent *event) |
This function is part of the workaround for a bug in Qt 5.1.0-beta that prevents positioning a QDialog (https://b33p.net/kosada/node/5086). | |
virtual void | valueSet (QString value)=0 |
Called after the user accepts edits. | |
void VuoDataEditorDialog::acceptEdits | ( | void | ) |
Dismisses the dialog and saves any edits made.
This function has the same effect as the Return/Enter key.
void VuoDataEditorDialog::cancelEdits | ( | void | ) |
Dismisses the dialog and discards any edits made.
This function has the same effect as the Escape key.
|
protectedvirtual |
This function is part of the workaround for a bug in Qt 5.1.0-beta that prevents positioning a QDialog (https://b33p.net/kosada/node/5086).
It allows the VuoDataEditorDialog to accept key-press events.
|
protectedpure virtual |
Called after the user accepts edits.
value | A string representation of the value entered in the data editor. |
Implemented in VuoNodeTitleEditorDialog, VuoPortValueEditorDialog, and VuoPublishedPortNameEditorDialog.