A widget that shows information about the composition.
Definition at line 19 of file VuoCompositionMetadataPanel.hh.
Public Slots | |
void | setTextWidth (int width) |
Sets the fixed text width of the panel to the provided width minus 2 * VuoCompositionMetadataPanel::margin . More... | |
Signals | |
void | metadataEditRequested () |
Emitted when the user has clicked the "Edit" link. More... | |
Signals inherited from VuoPanelDocumentation | |
void | textSelectionChanged () |
Emitted when the documentation's text selection changes. More... | |
Public Member Functions | |
VuoCompositionMetadataPanel (VuoComposition *composition, QWidget *parent=0) | |
Creates a new panel widget to display information about a composition. More... | |
~VuoCompositionMetadataPanel () | |
Destroys a panel. More... | |
QString | generateCompositionMetadataText () |
Generates a descriptive text string containing information about the panel's associated composition. More... | |
QString | getSelectedText () |
Returns the currently selected text within this widget's text field, or the empty string of not applicable. More... | |
void | update () |
Updates the widget with the current background color and text content. More... | |
void | setIsUserComposition (bool userComposition) |
Sets the boolean indicating whether or not this is a user-created composition (rather than a built-in example composition). More... | |
Public Member Functions inherited from VuoPanelDocumentation | |
VuoPanelDocumentation (QWidget *parent=0) | |
Creates a new widget for displaying content within the documentation panel of the node library. More... | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
Draws the composition metadata panel. More... | |
Protected Member Functions inherited from VuoPanelDocumentation | |
bool | event (QEvent *event) VuoWarnUnusedResult |
Handles events for the documentation widget. More... | |
Additional Inherited Members | |
Protected Attributes inherited from VuoPanelDocumentation | |
bool | documentationEntered |
Whether the cursor is currently positioned over this widget. More... | |
|
explicit |
Creates a new panel widget to display information about a composition.
Definition at line 27 of file VuoCompositionMetadataPanel.cc.
VuoCompositionMetadataPanel::~VuoCompositionMetadataPanel | ( | ) |
Destroys a panel.
Definition at line 254 of file VuoCompositionMetadataPanel.cc.
QString VuoCompositionMetadataPanel::generateCompositionMetadataText | ( | ) |
Generates a descriptive text string containing information about the panel's associated composition.
Definition at line 102 of file VuoCompositionMetadataPanel.cc.
|
virtual |
Returns the currently selected text within this widget's text field, or the empty string of not applicable.
Reimplemented from VuoPanelDocumentation.
Definition at line 211 of file VuoCompositionMetadataPanel.cc.
|
signal |
Emitted when the user has clicked the "Edit" link.
|
protected |
Draws the composition metadata panel.
Definition at line 85 of file VuoCompositionMetadataPanel.cc.
void VuoCompositionMetadataPanel::setIsUserComposition | ( | bool | userComposition | ) |
Sets the boolean indicating whether or not this is a user-created composition (rather than a built-in example composition).
Definition at line 242 of file VuoCompositionMetadataPanel.cc.
|
slot |
Sets the fixed text width of the panel to the provided width
minus 2 * VuoCompositionMetadataPanel::margin
.
Definition at line 193 of file VuoCompositionMetadataPanel.cc.
void VuoCompositionMetadataPanel::update | ( | ) |
Updates the widget with the current background color and text content.
Definition at line 222 of file VuoCompositionMetadataPanel.cc.