Vuo
2.3.2
editor
VuoCompositionMetadataPanel.hh
Go to the documentation of this file.
1
10
#pragma once
11
12
#include "
VuoPanelDocumentation.hh
"
13
14
class
VuoComposition
;
15
19
class
VuoCompositionMetadataPanel
:
public
VuoPanelDocumentation
20
{
21
Q_OBJECT
22
public
:
23
explicit
VuoCompositionMetadataPanel
(
VuoComposition
*composition, QWidget *parent = 0);
24
~VuoCompositionMetadataPanel
();
25
QString
generateCompositionMetadataText
();
26
QString
getSelectedText
();
27
void
update
();
28
void
setIsUserComposition
(
bool
userComposition);
29
30
public
slots:
31
void
setTextWidth
(
int
width);
32
33
signals:
34
void
metadataEditRequested
();
35
36
protected
:
37
void
paintEvent
(QPaintEvent *
event
);
38
39
private
slots:
40
void
handleMetadataLinkClick(
const
QString &url);
41
42
private
:
43
VuoComposition
*composition;
44
QLabel *textLabel;
45
bool
isUserComposition;
46
static
const
int
defaultPopoverTextWidth;
// @todo https://b33p.net/kosada/node/8613: Copied from VuoNodePopover.hh; re-factor.
47
static
const
int
margin;
// @todo https://b33p.net/kosada/node/8613: Copied from VuoNodePopover.hh; re-factor.
48
static
const
QString editLink;
// The link to edit the composition metadata.
49
QVBoxLayout *layout;
50
51
// Style
52
void
setStyle();
53
};
Generated on Sat Jun 19 2021 10:17:43 for Vuo by
1.9.1