Vuo  0.4.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
VuoPublishedPortList Class Reference

Description

A widget displaying published input and/or output ports.

Public Slots

void updatePublishedPortGlobalLocs ()
 Updates the stored global coordinates of each VuoRenderPublishedPort * port in the list.
 

Signals

void publishedPortModified ()
 Emitted when any published port within this list has been unpublished or renamed.
 
void publishedPortNameEditorRequested (VuoRendererPublishedPort *port, QPoint editorPosition, bool isInput)
 Emitted in order to display a published port name editor.
 
void externalPortUnpublicationRequested (VuoRendererPublishedPort *port)
 Emitted when an externally visible published port is to be unpublished.
 
void publishedPortPositionsUpdated ()
 Emitted when the global positions of the published ports within the sidebars have been updated.
 

Public Member Functions

 VuoPublishedPortList (QWidget *parent=0)
 Creates a published port list widget.
 
bool getInput ()
 Returns a boolean indicating whether this published port list containts input ports (as opposed to output ports).
 
void setInput (bool isInput)
 Sets the boolean indicating whether this published port list containts input ports (as opposed to output ports).
 
QSize sizeHint () const
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *event)
 Displays a context menu tailored to the published port list item associated with the event (i.e., the right-clicked item).
 
void mousePressEvent (QMouseEvent *event)
 Handle mouse press events.
 
void keyPressEvent (QKeyEvent *event)
 Handle keypress events.
 

Member Function Documentation

void VuoPublishedPortList::keyPressEvent ( QKeyEvent *  event)
protected

Handle keypress events.

Pressing 'Return' while the published port list has keyboard focus and at least one published port within the sidebar is selected opens the "Rename Published Port" data editor for the selected ports.

void VuoPublishedPortList::mousePressEvent ( QMouseEvent *  event)
protected

Handle mouse press events.

Left-clicking on a port item that was already selected opens the "Rename Published Port" data editor for that port.

QSize VuoPublishedPortList::sizeHint ( ) const
Returns
The recommended size for the published port list.

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