Vuo  0.4.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
VuoDataEditorDialog Class Referenceabstract

Description

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.
 

Member Function Documentation

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.

void VuoDataEditorDialog::showEvent ( QShowEvent *  event)
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.

virtual void VuoDataEditorDialog::valueSet ( QString  value)
protectedpure virtual

Called after the user accepts edits.

Parameters
valueA string representation of the value entered in the data editor.

Implemented in VuoNodeTitleEditorDialog, VuoPortValueEditorDialog, and VuoPublishedPortNameEditorDialog.


The documentation for this class was generated from the following files: