Vuo 2.4.4
Loading...
Searching...
No Matches
VuoCompositionMetadataPanel.hh
Go to the documentation of this file.
1
10#pragma once
11
13
14class VuoComposition;
15
20{
21 Q_OBJECT
22public:
23 explicit VuoCompositionMetadataPanel(VuoComposition *composition, QWidget *parent = 0);
26 QString getSelectedText();
27 void update();
28 void setIsUserComposition(bool userComposition);
29
30public slots:
31 void setTextWidth(int width);
32
33signals:
35
36protected:
37 void paintEvent(QPaintEvent *event);
38
39private slots:
40 void handleMetadataLinkClick(const QString &url);
41
42private:
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};