Vuo  2.0.0
Protected Member Functions | Protected Attributes | List of all members
VuoPublishedPortNameEditor Class Reference

Description

A line edit that pops up in its own dialog and lets the user edit some text.

The text must meet the requirements of a published port identifier.

Definition at line 18 of file VuoPublishedPortNameEditor.hh.

Protected Member Functions

void setUpDialog (QDialog &dialog, json_object *originalValue, json_object *details=0)
 Adds a line edit widget to the dialog and assigns it a validator to enforce published port name requirements. More...
 
json_objectgetAcceptedValue (void)
 Returns the current text in the line edit. More...
 
- Protected Member Functions inherited from VuoTitleEditor
QString convertToLineEditFormat (json_object *value)
 Removes quotation marks from the value to display in the line edit. More...
 
json_objectconvertFromLineEditFormat (const QString &valueAsString)
 Adds quotation marks around the value from the line edit. More...
 
- Protected Member Functions inherited from VuoInputEditorWithLineEdit
void setUpLineEdit (QLineEdit *existingLineEdit, json_object *originalValue)
 Configures the provided line edit to display the dialog's initial value. More...
 
json_objectgetAcceptedValue (void)
 Returns the current text in the line edit. More...
 
- Protected Member Functions inherited from VuoInputEditorWithDialog
 VuoInputEditorWithDialog (void)
 Creates an input editor whose show() function displays a frameless dialog. More...
 
QDialog * getDialog (void)
 Returns a pointer to the dialog displayed by show(). More...
 
void setFirstWidgetInTabOrder (QWidget *widget)
 Makes the given widget the first in this input editor's tab order. More...
 
void setLastWidgetInTabOrder (QWidget *widget)
 Makes the given widget the last in this input editor's tab order. More...
 
bool eventFilter (QObject *object, QEvent *event) VuoWarnUnusedResult
 Handles tabbing past the last widget or reverse-tabbing past the first widget in the tab order. More...
 

Protected Attributes

json_objectoriginalValue
 The port's name prior to editing. More...
 
- Protected Attributes inherited from VuoInputEditorWithLineEdit
QLineEdit * lineEdit
 The text field widget. More...
 
- Protected Attributes inherited from VuoInputEditorWithDialog
bool isDark
 Is Vuo Editor in Dark Interface Mode? More...
 

Additional Inherited Members

- Signals inherited from VuoInputEditor
void valueChanged (json_object *newValue)
 An input editor can emit this signal to inform the Vuo Editor that the value has been edited. More...
 
void tabbedPastLastWidget ()
 If supportsTabbingBetweenPorts() returns true, an input editor should emit this signal when the Tab key is pressed while the last widget in the input editor's tab order has focus. More...
 
void tabbedBackwardPastFirstWidget ()
 If supportsTabbingBetweenPorts() returns true, an input editor should emit this signal when the Shift-Tab key combination is pressed while the first widget in the input editor's tab order has focus. More...
 
- Public Member Functions inherited from VuoTitleEditor
json_objectshow (QPoint portLeftCenter, json_object *originalValue, json_object *details)
 Convenience function for VuoInputEditorWithLineEdit::show(portLeftCenter, originalValue, details, portNamesAndValues) , useful for title editors since the portNamesAndValues does not apply. More...
 
- Public Member Functions inherited from VuoInputEditorWithLineEdit
 VuoInputEditorWithLineEdit (void)
 Creates an input editor whose show function displays a line edit. More...
 
virtual bool supportsTabbingBetweenPorts (void)
 Returns true. More...
 
void setWidth (int width)
 Sets the width of the line edit. More...
 
- Public Member Functions inherited from VuoInputEditorWithDialog
json_objectshow (QPoint portLeftCenter, json_object *originalValue, json_object *details, map< QString, json_object * > portNamesAndValues)
 Displays a frameless dialog. More...
 
- Static Public Member Functions inherited from VuoInputEditor
static QFont getDefaultFont (void)
 Returns the font that input editors are recommended to use. More...
 
static QString getDefaultFontCss (void)
 Returns a CSS representation of the font that input editors are recommended to use. More...
 

Member Function Documentation

◆ getAcceptedValue()

json_object * VuoPublishedPortNameEditor::getAcceptedValue ( void  )
protectedvirtual

Returns the current text in the line edit.

If the text is empty, returns the original value instead.

Implements VuoInputEditorWithDialog.

Definition at line 41 of file VuoPublishedPortNameEditor.cc.

◆ setUpDialog()

void VuoPublishedPortNameEditor::setUpDialog ( QDialog &  dialog,
json_object originalValue,
json_object details = 0 
)
protectedvirtual

Adds a line edit widget to the dialog and assigns it a validator to enforce published port name requirements.

Reimplemented from VuoInputEditorWithLineEdit.

Definition at line 17 of file VuoPublishedPortNameEditor.cc.

Member Data Documentation

◆ originalValue

json_object* VuoPublishedPortNameEditor::originalValue
protected

The port's name prior to editing.

Definition at line 23 of file VuoPublishedPortNameEditor.hh.


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