Vuo  0.4
 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.
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
 The Return key accepts the edit and closes the dialog.
 
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 hits Return to accept edits.
 

Member Function Documentation

void VuoDataEditorDialog::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

The Return key accepts the edit and closes the dialog.

The Cancel key just closes the dialog, canceling the edit.

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 hits Return to accept 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: